Fix typo in ChangeLog entry.
[gnulib.git] / ChangeLog
1 2012-03-31  Simon Josefsson  <simon@josefsson.org>
2
3         fflush: Fix syntax error.
4         * lib/fflush.c: Include unused-parameter.h, needed for
5         _GL_UNUSED_PARAMETER.
6         * modules/fflush (Depends-on): Add snippet/unused-parameter.
7
8 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
9
10         regex: pacify GCC when compiling GRUB
11         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
12         a diagnostic.  Reported by Vladimir Serbinenko in
13         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
14
15 2012-03-29  Eric Blake  <eblake@redhat.com>
16
17         stdio: don't assume gets any more
18         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
19         support.
20         * modules/stdio (Makefile.am): Likewise.
21         * lib/stdio-read.c (gets): Likewise.
22         * tests/test-stdio-c++.cc: Likewise.
23         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
24         * lib/stdio.in.h (gets): Make warning occur in more places.
25         * doc/posix-functions/gets.texi (gets): Update documentation.
26         Reported by Christer Solskogen.
27
28         maint.mk: fix syntax checks without exclusions
29         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
30         Reported by Daniel P. Berrange.
31
32         strerror_r: avoid compiler warning
33         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
34         level.
35
36         fflush: avoid compiler warning
37         * lib/fflush.c (update_fpos_cache): Mark variables that are
38         potentially unused.
39
40 2012-03-25  Bruno Haible  <bruno@clisp.org>
41
42         Tests for module 'localeconv'.
43         * modules/localeconv-tests: New file.
44         * tests/test-localeconv.c: New file.
45
46         New module 'localeconv'.
47         * lib/locale.in.h (localeconv): New declaration.
48         * lib/localeconv.c: New file.
49         * m4/localeconv.m4: New file.
50         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
51         REPLACE_LOCALECONV.
52         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
53         REPLACE_LOCALECONV.
54         * modules/localeconv: New file.
55         * modules/nl_langinfo (Depends-on): Add localeconv.
56         * modules/human (Depends-on): Likewise.
57         * doc/posix-functions/localeconv.texi: Mention the new module.
58
59 2012-03-25  Bruno Haible  <bruno@clisp.org>
60
61         locale: Provide a complete 'struct lconv'.
62         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
63         'struct lconv' does not contain int_p_cs_precedes.
64         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
65         * doc/posix-headers/locale.texi: Update.
66
67         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
68         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
69         * doc/posix-headers/locale.texi: Update.
70
71         locale: Provide a working 'struct lconv'.
72         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
73         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
74         'struct lconv' does not even contain decimal_point.
75         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
76         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
77         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
78         * doc/posix-headers/locale.texi: Mention the problems with
79         'struct lconv'.
80         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
81
82 2012-03-24  Bruno Haible  <bruno@clisp.org>
83
84         Enable common subexpression optimization in GCC.
85         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
86         macros.
87         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
88         GCC attribute 'const'.
89         (uc_locale_language): Declare with GCC attribute 'pure'.
90         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
91         with GCC attribute 'const'.
92         * lib/unictype.in.h (uc_is_general_category_withtable,
93         uc_combining_class, uc_combining_class_name,
94         uc_combining_class_long_name, uc_bidi_class_name,
95         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
96         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
97         uc_decimal_value, uc_digit_value, uc_numeric_value,
98         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
99         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
100         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
101         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
102         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
103         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
104         Declare with GCC attribute 'const'.
105         (uc_general_category_name, uc_general_category_long_name,
106         uc_general_category_byname, uc_general_category,
107         uc_is_general_category, uc_combining_class_byname,
108         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
109         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
110         Declare with GCC attribute 'pure'.
111         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
112         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
113         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
114         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
115         with GCC attribute 'pure'.
116         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
117         'const'.
118         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
119         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
120         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
121         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
122         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
123         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
124         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
125         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
126         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
127         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
128         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
129         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
130         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
131         GCC attribute 'pure'.
132         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
133         'const'.
134         * lib/uniwidth.in.h (uc_width): Simplify declaration.
135         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
136         u32_strwidth): Declare with GCC attribute 'pure'.
137
138         Enable common subexpression optimization in GCC.
139         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
140         (alphasort): Declare with GCC attribute 'pure'.
141         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
142         (atoll): Declare with GCC attribute 'pure'.
143         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
144         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
145         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
146         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
147         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
148         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
149         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
150
151 2012-03-24  Bruno Haible  <bruno@clisp.org>
152
153         gnulib-tool: Avoid unintended error output from 'cmp'.
154         * gnulib-tool (func_add_file, func_update_file, func_import): Use
155         "cmp -s", not "cmp > /dev/null".
156
157 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
158
159         gnulib-tool: fix imprecise comments w.r.t. an automake bug
160
161         It's not just Automake versions < 1.9b that creates an empty
162         pkgdatadir at installation time if pkgdata_DATA is specified
163         to empty; modern automake versions do this as well, at least
164         until automake 1.11.4 (not yet released at the moment of writing,
165         but soon to appear).  That behaviour was generally considered a
166         feature rather than a bug, at least until this discussion:
167         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
168
169         See also automake bugs #10997 and #11030.
170
171         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
172         reference to relevant automake bug numbers.
173         (func_emit_tests_Makefile_am): Likewise.
174
175 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
176
177         announce-gen: use Digest::SHA when possible
178         * build-aux/announce-gen: Use Digest::SHA when possible, falling
179         back to Digest::SHA1 if necessary.
180
181 2012-03-20  Jim Meyering  <meyering@redhat.com>
182
183         tests: avoid gcc warnings about argv vs. const initializers
184         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
185         warnings about discarding 'const' qualifier from pointer target type.
186         * tests/test-posix_spawn2.c (main): Likewise.
187
188 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
189
190         README-release: simplify slightly
191         * top/README-release: Run "git checkout master" only once.
192
193 2012-03-15  Mark Wielaard  <mark@klomp.org>
194
195         git-merge-changelog: add specific example on how to use with hg.
196         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
197
198 2012-03-18  Mark Wielaard  <mark@klomp.org>
199
200         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
201
202 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
203
204         git-version-gen: don't let "prefix" envvar cause trouble
205         * build-aux/git-version-gen (prefix): Initialize properly,
206         so as not to use a value specified via the environment.
207         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
208
209 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
210
211         regex: diagnose too-large repeat counts in EREs
212         Previously, the code did not diagnose the too-large repeat count
213         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
214         as if it were 'b\{1000000000}', which is unexpected.
215         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
216         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
217         is a reasonable one for this problem.  Another option would be to
218         create a new REG_OVERFLOW error for repeat counts that are too large.
219         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
220         count is too large, so that the caller can distinguish the two cases.
221         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
222         "Too large" return code, and that repeat counts are one example of this.
223
224 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
225
226         doc: some glibc x32 integer width issues
227         * doc/posix-headers/sys_types.texi (sys/types.h):
228         * doc/posix-headers/time.texi (time.h):
229         Mention that glibc x32 does not conform to POSIX in a couple of
230         areas related to integer widths.
231
232 2012-03-15  Bruno Haible  <bruno@clisp.org>
233
234         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
235         * lib/fma.c (VOLATILE): New macro.
236         (FUNC): Use it to work around a GCC compiler bug.
237
238 2012-03-13  Bruno Haible  <bruno@clisp.org>
239
240         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
241         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
242         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
243         REPLACE_HYPOTL to 1.
244         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
245
246 2012-03-13  Bruno Haible  <bruno@clisp.org>
247
248         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
249         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
250         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
251         REPLACE_REMAINDERL to 1.
252         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
253         bug.
254
255 2012-03-13  Bruno Haible  <bruno@clisp.org>
256
257         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
258         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
259         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
260         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
261         too big rounding errors.
262         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
263         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
264         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
265         (Depends-on): Update conditions.
266         * tests/test-sqrtl.c (my_ldexpl): New function.
267         (main): Add test of a particular value.
268         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
269
270 2012-03-13  Pádraig Brady  <P@draigBrady.com>
271
272         doc: Update timer_* platform portability notes.
273         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
274         that always return ENOSYS.
275         * doc/posix-functions/timer_delete.texi: Likewise.
276         * doc/posix-functions/timer_gettime.texi: Likewise.
277         * doc/posix-functions/timer_settime.texi: Likewise.
278
279 2012-03-13  Bruno Haible  <bruno@clisp.org>
280
281         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
282         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
283         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
284         REPLACE_CBRTL to 1.
285         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
286
287 2012-03-13  Bruno Haible  <bruno@clisp.org>
288
289         remainderl: Avoid compilation error on AIX >= 5.2.
290         * lib/math.in.h (remainderl): Undefine macro from the system header.
291
292 2012-03-13  Bruno Haible  <bruno@clisp.org>
293
294         Avoid compilation errors with MSVC option -fp:strict.
295         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
296         * lib/cbrtf.c: Likewise.
297         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
298
299 2012-03-12  Bruno Haible  <bruno@clisp.org>
300
301         uninorm: Don't crash in out-of-memory conditions.
302         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
303         gracefully.
304         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
305         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
306
307 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
308
309         quote: fix syntax-check
310         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
311         also exports quote_quoting_options.
312
313 2012-03-12  Simon Josefsson  <simon@josefsson.org>
314
315         Collapse list of copyright years to ranges.  See
316         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
317         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
318         build-aux/csharpexec.sh.in, build-aux/gnupload,
319         build-aux/install-reloc, build-aux/javacomp.sh.in,
320         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
321         build-aux/move-if-change, build-aux/reloc-ldflags,
322         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
323
324 2012-03-11  Bruno Haible  <bruno@clisp.org>
325
326         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
327         * m4/log2f-ieee.m4: New file.
328         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
329         whether log2f works with a minus zero argument. Replace it if not.
330         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
331         (Depends-on): Add log2-ieee.
332         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
333         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
334
335         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
336         * m4/log2-ieee.m4: New file.
337         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
338         whether log2 works with a minus zero argument. Replace it if not.
339         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
340         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
341         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
342
343         Tests for module 'log2l-ieee'.
344         * modules/log2l-ieee-tests: New file.
345         * tests/test-log2l-ieee.c: New file.
346
347         New module 'log2l-ieee'.
348         * modules/log2l-ieee: New file.
349
350         Tests for module 'log2-ieee'.
351         * modules/log2-ieee-tests: New file.
352         * tests/test-log2-ieee.c: New file.
353
354         New module 'log2-ieee'.
355         * modules/log2-ieee: New file.
356
357         Tests for module 'log2f-ieee'.
358         * modules/log2f-ieee-tests: New file.
359         * tests/test-log2f-ieee.c: New file.
360         * tests/test-log2-ieee.h: New file.
361
362         New module 'log2f-ieee'.
363         * modules/log2f-ieee: New file.
364
365 2012-03-11  Bruno Haible  <bruno@clisp.org>
366
367         Tests for module 'log2l'.
368         * modules/log2l-tests: New file.
369         * tests/test-log2l.c: New file.
370
371         New module 'log2l'.
372         * lib/math.in.h (log2l): New declaration.
373         * lib/log2l.c: New file.
374         * m4/log2l.m4: New file.
375         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
376         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
377         REPLACE_LOG2L.
378         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
379         REPLACE_LOG2L.
380         * modules/log2l: New file.
381         * tests/test-math-c++.cc: Check the declaration of log2l.
382         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
383         and OSF/1 problems.
384
385 2012-03-11  Bruno Haible  <bruno@clisp.org>
386
387         Tests for module 'log2f'.
388         * modules/log2f-tests: New file.
389         * tests/test-log2f.c: New file.
390
391         New module 'log2f'.
392         * lib/math.in.h (log2f): New declaration.
393         * lib/log2f.c: New file.
394         * m4/log2f.m4: New file.
395         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
396         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
397         REPLACE_LOG2F.
398         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
399         REPLACE_LOG2F.
400         * modules/log2f: New file.
401         * tests/test-math-c++.cc: Check the declaration of log2f.
402         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
403         and OSF/1 and Cygwin problems.
404
405 2012-03-11  Bruno Haible  <bruno@clisp.org>
406
407         Tests for module 'log2'.
408         * modules/log2-tests: New file.
409         * tests/test-log2.c: New file.
410         * tests/test-log2.h: New file.
411
412         New module 'log2'.
413         * lib/math.in.h (log2): New declaration.
414         * lib/log2.c: New file.
415         * m4/log2.m4: New file.
416         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
417         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
418         REPLACE_LOG2.
419         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
420         REPLACE_LOG2.
421         * modules/log2: New file.
422         * tests/test-math-c++.cc: Check the declaration of log2.
423         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
424         and OSF/1 and Cygwin problems.
425
426 2012-03-11  Bruno Haible  <bruno@clisp.org>
427
428         exp2* tests: More tests.
429         * tests/test-exp2.h (test_function): Test all integral arguments that
430         don't need to overflow or denormalized numbers.
431         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
432         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
433         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
434
435 2012-03-10  Bruno Haible  <bruno@clisp.org>
436
437         log1pl-ieee: Work around test failure on AIX 7.1.
438         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
439
440         log1pl-ieee: Work around test failure on IRIX 6.5.
441         * m4/log1pl-ieee.m4: New file.
442         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
443         test whether log1pl works with a minus zero argument. Replace it if
444         not.
445         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
446         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
447         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
448         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
449         (Depends-on): Update conditions.
450         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
451         m4/signbit.m4.
452         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
453         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
454
455         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
456         * m4/log1pf-ieee.m4: New file.
457         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
458         test whether log1pf works with a minus zero argument. Replace it if
459         not.
460         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
461         m4/signbit.m4.
462         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
463         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
464
465         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
466         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
467         (configure.ac): Require gl_FUNC_LOG1PF.
468
469         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
470         * m4/log1p-ieee.m4: New file.
471         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
472         whether log1p works with a minus zero argument. Replace it if not.
473         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
474         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
475         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
476         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
477         (Depends-on): Update conditions.
478         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
479         m4/signbit.m4.
480         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
481         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
482
483         Tests for module 'log1pl-ieee'.
484         * modules/log1pl-ieee-tests: New file.
485         * tests/test-log1pl-ieee.c: New file.
486
487         New module 'log1pl-ieee'.
488         * modules/log1pl-ieee: New file.
489
490         Tests for module 'log1p-ieee'.
491         * modules/log1p-ieee-tests: New file.
492         * tests/test-log1p-ieee.c: New file.
493
494         New module 'log1p-ieee'.
495         * modules/log1p-ieee: New file.
496
497         Tests for module 'log1pf-ieee'.
498         * modules/log1pf-ieee-tests: New file.
499         * tests/test-log1pf-ieee.c: New file.
500         * tests/test-log1p-ieee.h: New file.
501
502         New module 'log1pf-ieee'.
503         * modules/log1pf-ieee: New file.
504
505 2012-03-10  Bruno Haible  <bruno@clisp.org>
506
507         Tests for module 'log1pl'.
508         * modules/log1pl-tests: New file.
509         * tests/test-log1pl.c: New file.
510
511         New module 'log1pl'.
512         * lib/math.in.h (log1pl): New declaration.
513         * lib/log1pl.c: New file.
514         * m4/log1pl.m4: New file.
515         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
516         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
517         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
518         * modules/log1pl: New file.
519         * tests/test-math-c++.cc: Check the declaration of log1pl.
520         * doc/posix-functions/log1pl.texi: Mention the new module.
521
522 2012-03-10  Bruno Haible  <bruno@clisp.org>
523
524         Tests for module 'log1pf'.
525         * modules/log1pf-tests: New file.
526         * tests/test-log1pf.c: New file.
527
528         New module 'log1pf'.
529         * lib/math.in.h (log1pf): New declaration.
530         * lib/log1pf.c: New file.
531         * m4/log1pf.m4: New file.
532         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
533         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
534         REPLACE_LOG1PF.
535         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
536         REPLACE_LOG1PF.
537         * modules/log1pf: New file.
538         * tests/test-math-c++.cc: Check the declaration of log1pf.
539         * doc/posix-functions/log1pf.texi: Mention the new module.
540
541 2012-03-10  Bruno Haible  <bruno@clisp.org>
542
543         log1p tests: More tests.
544         * tests/test-log1p.h: New file.
545         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
546         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
547         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
548         (main): Invoke test_function.
549
550         log1p: Provide replacement for Minix and MSVC.
551         * lib/math.in.h (log1p): New declaration.
552         * lib/log1p.c: New file.
553         * m4/log1p.m4: New file.
554         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
555         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
556         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
557         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
558         (Depends-on): Add math, isnand, log, round.
559         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
560         HAVE_LOG1P is 0.
561         * tests/test-math-c++.cc: Check the declaration of log1p.
562         * doc/posix-functions/log1p.texi: Mention the replacement.
563
564 2012-03-10  Bruno Haible  <bruno@clisp.org>
565
566         math tests: Small simplification.
567         * tests/test-exp.h (test_function): Use the same err_bound for
568         'double' on platforms with sizeof (long double) == sizeof (double)
569         than on platforms with sizeof (long double) > sizeof (double).
570         * tests/test-exp2.h (test_function): Likewise.
571         * tests/test-expm1.h (test_function): Likewise.
572         * tests/test-log.h (test_function): Likewise.
573
574 2012-03-10  Bruno Haible  <bruno@clisp.org>
575
576         Fix some comments.
577         * lib/expl.c: Fix an ambiguous comment.
578         * lib/expm1.c: Likewise.
579         * lib/expm1l.c: Likewise.
580         * lib/exp2.c: Likewise.
581         * lib/exp2l.c: Likewise.
582
583 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
584
585         regex: allow inclusion of <regex.h> before <limits.h>
586         Without this patch, portable programs had to include <limits.h> before
587         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
588         I ran into this problem with a test version of GNU grep on Solaris 8.
589         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
590         This is done conditionally so that this change can be merged
591         back to glibc.
592         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
593         using the included regex.
594
595         fts: depend on fdopendir
596         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
597         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
598         problem was introduced when fdopendir was split out.
599
600 2012-03-10  Bruno Haible  <bruno@clisp.org>
601
602         Remove unused variables.
603         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
604         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
605
606 2012-03-10  Bruno Haible  <bruno@clisp.org>
607
608         isnanf-nolibm: Fix last commit.
609         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
610
611         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
612         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
613
614 2012-03-10  Bruno Haible  <bruno@clisp.org>
615
616         logf-ieee: Work around test failure on NetBSD 5.1.
617         * m4/logf-ieee.m4: New file.
618         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
619         whether logf works with a negative argument. Replace it if not.
620         * lib/logf.c (logf): For negative arguments, return NaN.
621         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
622         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
623         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
624
625         logf-ieee: Work around test failure on Solaris 9.
626         * modules/logf-ieee (Depends-on): Add log-ieee.
627         (configure.ac): Require gl_FUNC_LOGF.
628
629         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
630         * m4/log-ieee.m4: New file.
631         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
632         log works with a negative argument. Replace it if not.
633         * lib/log.c (log): For negative arguments, return NaN.
634         * modules/log-ieee (Files): Add m4/log-ieee.m4.
635         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
636         * doc/posix-functions/log.texi: Mention the log-ieee module.
637
638         Tests for module 'logl-ieee'.
639         * modules/logl-ieee-tests: New file.
640         * tests/test-logl-ieee.c: New file.
641
642         New module 'logl-ieee'.
643         * modules/logl-ieee: New file.
644
645         Tests for module 'log-ieee'.
646         * modules/log-ieee-tests: New file.
647         * tests/test-log-ieee.c: New file.
648
649         New module 'log-ieee'.
650         * modules/log-ieee: New file.
651
652         Tests for module 'logf-ieee'.
653         * modules/logf-ieee-tests: New file.
654         * tests/test-logf-ieee.c: New file.
655         * tests/test-log-ieee.h: New file.
656
657         New module 'logf-ieee'.
658         * modules/logf-ieee: New file.
659
660 2012-03-10  Bruno Haible  <bruno@clisp.org>
661
662         log: Fix bug introduced on 2012-03-09.
663         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
664
665 2012-03-10  Pádraig Brady  <P@draigBrady.com>
666
667         timer-time: link explicitly with pthreads on glibc
668         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
669         to support static linking, when newer glibc is
670         detected, as that contains pthread emulation of
671         POSIX timer functions where required.
672         * modules/timer-time: Depend on threadlib to
673         pull in the appropriate library to link.
674
675 2012-03-10  Bruno Haible  <bruno@clisp.org>
676
677         log* tests: More tests.
678         * tests/test-log.h: New file.
679         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
680         (main): Invoke test_function.
681         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
682         (main): Invoke test_function.
683         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
684         (main): Invoke test_function.
685         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
686         tests/randomd.c.
687         (Makefile.am): Add randomd.c to test_log_SOURCES.
688         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
689         tests/randomf.c.
690         (Makefile.am): Add randomf.c to test_logf_SOURCES.
691         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
692         tests/randoml.c.
693         (Depends-on): Add 'float'.
694         (Makefile.am): Add randoml.c to test_logl_SOURCES.
695
696 2012-03-09  Bruno Haible  <bruno@clisp.org>
697
698         logl: Work around OSF/1 5.1 bug.
699         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
700         * lib/logl.c (logl): If logl exists, use it and provide just the
701         workaround.
702         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
703         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
704         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
705         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
706         * modules/logl (configure.ac): Consider REPLACE_LOGL.
707         (Depends-on): Update conditions.
708         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
709
710 2012-03-09  Bruno Haible  <bruno@clisp.org>
711
712         logf: Work around OSF/1 5.1 bug.
713         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
714         * lib/logf.c (logf): If logf exists, use it and provide just the
715         workaround.
716         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
717         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
718         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
719         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
720         * modules/logf (configure.ac): Consider REPLACE_LOGF.
721         (Depends-on): Update conditions.
722         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
723
724 2012-03-09  Bruno Haible  <bruno@clisp.org>
725
726         log: Work around OSF/1 5.1 bug.
727         * lib/math.in.h (log): New declaration.
728         * lib/log.c: New file.
729         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
730         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
731         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
732         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
733         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
734         * modules/log (Files): Add lib/log.c.
735         (Depends-on): Add math.
736         (configure.ac): If REPLACE_LOG is 1, compile an override.
737         * tests/test-math-c++.cc: Check the declaration of log.
738         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
739
740 2012-03-09  Jim Meyering  <meyering@redhat.com>
741
742         readtokens.c: adjust wording in a comment
743         * lib/readtokens.c: Insert omitted "that" in a comment.
744
745 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
746
747         modechange: add notations +40, 00440, etc.
748         * lib/modechange.c (mode_compile): Support new notations
749         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
750
751 2012-03-08  Bruno Haible  <bruno@clisp.org>
752
753         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
754         * m4/exp2l-ieee.m4: New file.
755         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
756         test whether exp2l works with a NaN argument and with a negative
757         infinity argument. Replace it if not.
758         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
759         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
760         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
761         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
762         (Depends-on): Update conditions.
763         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
764         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
765         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
766
767         Tests for module 'exp2l-ieee'.
768         * modules/exp2l-ieee-tests: New file.
769         * tests/test-exp2l-ieee.c: New file.
770
771         New module 'exp2l-ieee'.
772         * modules/exp2l-ieee: New file.
773
774         Tests for module 'exp2-ieee'.
775         * modules/exp2-ieee-tests: New file.
776         * tests/test-exp2-ieee.c: New file.
777
778         New module 'exp2-ieee'.
779         * modules/exp2-ieee: New file.
780
781         Tests for module 'exp2f-ieee'.
782         * modules/exp2f-ieee-tests: New file.
783         * tests/test-exp2f-ieee.c: New file.
784         * tests/test-exp2-ieee.h: New file.
785
786         New module 'exp2f-ieee'.
787         * modules/exp2f-ieee: New file.
788
789 2012-03-08  Bruno Haible  <bruno@clisp.org>
790
791         Tests for module 'exp2l'.
792         * modules/exp2l-tests: New file.
793         * tests/test-exp2l.c: New file.
794
795         New module 'exp2l'.
796         * lib/math.in.h (exp2l): New declaration.
797         * lib/exp2l.c: New file.
798         * lib/expl-table.c: New file, extracted from lib/expl.c.
799         * lib/expl.c (gl_expl_table): New declaration.
800         (expl): Remove expl_table. Update reference.
801         * m4/exp2l.m4: New file.
802         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
803         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
804         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
805         * modules/exp2l: New file.
806         * modules/expl (Files): Add lib/expl-table.c.
807         (configure.ac): Compile also expl-table.c.
808         * tests/test-math-c++.cc: Check the declaration of exp2l.
809         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
810         problem.
811
812 2012-03-08  Bruno Haible  <bruno@clisp.org>
813
814         Tests for module 'exp2f'.
815         * modules/exp2f-tests: New file.
816         * tests/test-exp2f.c: New file.
817
818         New module 'exp2f'.
819         * lib/math.in.h (exp2f): New declaration.
820         * lib/exp2f.c: New file.
821         * m4/exp2f.m4: New file.
822         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
823         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
824         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
825         * modules/exp2f: New file.
826         * tests/test-math-c++.cc: Check the declaration of exp2f.
827         * doc/posix-functions/exp2f.texi: Mention the new module and the
828         IRIX problem.
829
830 2012-03-08  Bruno Haible  <bruno@clisp.org>
831
832         Tests for module 'exp2'.
833         * modules/exp2-tests: New file.
834         * tests/test-exp2.c: New file.
835         * tests/test-exp2.h: New file.
836
837         New module 'exp2'.
838         * lib/math.in.h (exp2): New declaration.
839         * lib/exp2.c: New file.
840         * m4/exp2.m4: New file.
841         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
842         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
843         REPLACE_EXP2.
844         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
845         REPLACE_EXP2.
846         * modules/exp2: New file.
847         * tests/test-math-c++.cc: Check the declaration of exp2.
848         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
849         and OpenBSD problems.
850
851 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
852
853         savedir: fix comment typo
854         * lib/savedir.c (savedirstream): Fix typo in comment.
855
856 2012-03-08  Bruno Haible  <bruno@clisp.org>
857
858         test-readtokens.c: use const; remove unwarranted cast
859         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
860
861 2012-03-08  Bruno Haible  <bruno@clisp.org>
862
863         fmal: Avoid compilation error on AIX.
864         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
865         AIX 5.2..7.1.
866
867 2012-03-08  Bruno Haible  <bruno@clisp.org>
868
869         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
870         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
871         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
872         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
873         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
874         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
875         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
876
877 2012-03-08  Bruno Haible  <bruno@clisp.org>
878
879         remainderf: Override buggy system function on IRIX 6.5.
880         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
881         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
882         when it exists.
883         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
884
885 2012-03-08  Jim Meyering  <meyering@redhat.com>
886
887         test-readtokens.c: avoid const-related compilation warnings
888         * tests/test-readtokens.c: Avoid const-related compilation warnings.
889
890 2012-03-07  Jim Meyering  <meyering@redhat.com>
891             Bruno Haible  <bruno@clisp.org>
892
893         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
894         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
895         tests/randomd.c.
896         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
897         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
898         tests/randoml.c.
899         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
900
901 2012-03-07  Bruno Haible  <bruno@clisp.org>
902
903         expm1l: Avoid compilation error on AIX.
904         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
905         AIX 5.2..7.1.
906
907 2012-03-07  Bruno Haible  <bruno@clisp.org>
908
909         expm1l: Don't override undeclared system function on IRIX 6.5.
910         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
911         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
912         it exists. Set HAVE_DECL_EXPM1L.
913         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
914         HAVE_EXPM1L.
915         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
916         HAVE_EXPM1L.
917         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
918
919 2012-03-07  Bruno Haible  <bruno@clisp.org>
920
921         remainderl: Don't override undeclared system function on IRIX 6.5.
922         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
923         HAVE_REMAINDERL.
924         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
925         declared when it exists. Set HAVE_DECL_REMAINDERL.
926         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
927         not HAVE_REMAINDERL.
928         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
929         HAVE_REMAINDERL.
930         * doc/posix-functions/remainderl.texi: Mention missing declaration
931         problem.
932
933 2012-03-07  Bruno Haible  <bruno@clisp.org>
934
935         rintf: Don't override undeclared system function on IRIX 6.5.
936         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
937         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
938         exists. Set HAVE_DECL_RINTF.
939         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
940         HAVE_RINTF.
941         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
942         HAVE_RINTF.
943         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
944
945 2012-03-07  Bruno Haible  <bruno@clisp.org>
946
947         roundl: Avoid compilation error on AIX.
948         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
949         AIX 5.2..7.1.
950
951 2012-03-07  Bruno Haible  <bruno@clisp.org>
952
953         roundl: Don't override undeclared system function on IRIX 6.5.
954         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
955         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
956         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
957         * modules/roundl (configure.ac): For replacement code, test
958         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
959         (Depends-on): Update conditions.
960         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
961
962 2012-03-07  Bruno Haible  <bruno@clisp.org>
963
964         roundf: Don't override undeclared system function on IRIX 6.5.
965         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
966         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
967         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
968         * modules/roundf (configure.ac): For replacement code, test
969         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
970         (Depends-on): Update conditions.
971         * modules/roundf-ieee (Depends-on): Update conditions.
972         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
973
974 2012-03-07  Bruno Haible  <bruno@clisp.org>
975
976         round: Don't override undeclared system function on IRIX 6.5.
977         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
978         argument.
979         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
980         also when it is not declared. Set HAVE_ROUND. For replacement code,
981         test HAVE_ROUND, not HAVE_DECL_ROUND.
982         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
983         not HAVE_DECL_ROUND.
984         (Depends-on): Update conditions.
985         * modules/round-ieee (Depends-on): Update conditions.
986         * doc/posix-functions/round.texi: Mention the IRIX problem.
987
988 2012-03-07  Bruno Haible  <bruno@clisp.org>
989
990         copysignf: Don't override undeclared system function on IRIX 6.5.
991         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
992         HAVE_COPYSIGNF.
993         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
994         declared when it exists. Set HAVE_DECL_COPYSIGNF.
995         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
996         not HAVE_COPYSIGNF.
997         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
998         HAVE_COPYSIGNF.
999         * doc/posix-functions/copysignf.texi: Mention missing declaration
1000         problem.
1001
1002 2012-03-07  Jim Meyering  <meyering@redhat.com>
1003
1004         readtokens: add tests
1005         * modules/readtokens-tests: New file.
1006         * tests/test-readtokens.c: New file.
1007
1008 2012-03-07  Jim Meyering  <meyering@redhat.com>
1009
1010         quotearg: the module must now include quote.h
1011         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
1012         So must the module.
1013         * modules/quotearg (Files): Add quote.h.
1014
1015 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
1016
1017         readtokens: avoid core dumps with unusual calling patterns
1018         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
1019         * lib/readtokens.c: Include limits.h.
1020         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
1021         (readtoken): Don't cache the delimiters; the cache code was buggy
1022         if !delim && saved_delim, or if the new n_delim differs from the old.
1023         Also, it wasn't thread-safe.
1024
1025 2012-03-07  Bruno Haible  <bruno@clisp.org>
1026
1027         quote: Adhere to common module description layout.
1028         * modules/quote (Makefile.am): Add back empty section.
1029
1030 2012-03-06  Akim Demaille  <demaille@gostai.com>
1031
1032         quote: fuse into quotearg
1033         This patch is made for the benefit of Bison.
1034         quote does not leave the choice of the quoting style to the user.
1035         quoting_style provides poor customizability, yet quoting_options,
1036         which is very rich, is hidden inside quotearg.c.  So in order to
1037         allow quote customization, move its implementation to quotearg.c.
1038         * lib/quote.c: Remove.
1039         * modules/quote: Adjust.
1040         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
1041         warning: provide all the members of literal structs.
1042         (quote_quoting_options): New.
1043         (quote, quote_n): Import implementation from quote.c.
1044         * lib/quote.h: Import the comments from quote.c.
1045         (quote_quoting_options): New.
1046
1047 2012-03-06  Bruno Haible  <bruno@clisp.org>
1048
1049         Tests for module 'expm1l-ieee'.
1050         * modules/expm1l-ieee-tests: New file.
1051         * tests/test-expm1l-ieee.c: New file.
1052
1053         New module 'expm1l-ieee'.
1054         * modules/expm1l-ieee: New file.
1055
1056         Tests for module 'expm1f-ieee'.
1057         * modules/expm1f-ieee-tests: New file.
1058         * tests/test-expm1f-ieee.c: New file.
1059
1060         New module 'expm1f-ieee'.
1061         * modules/expm1f-ieee: New file.
1062
1063         Tests for module 'expm1-ieee'.
1064         * modules/expm1-ieee-tests: New file.
1065         * tests/test-expm1-ieee.c: New file.
1066         * tests/test-expm1-ieee.h: New file.
1067
1068         New module 'expm1-ieee'.
1069         * modules/expm1-ieee: New file.
1070         * m4/expm1-ieee.m4: New file.
1071         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
1072         whether expm1 works with a minus zero argument. Replace it if not.
1073         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
1074         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
1075         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
1076         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
1077         (Depends-on): Update conditions.
1078         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
1079         AIX problem.
1080
1081 2012-03-06  Bruno Haible  <bruno@clisp.org>
1082
1083         Work around expm1f bug on IRIX 6.5.
1084         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
1085         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
1086         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
1087         not work.
1088         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
1089         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
1090         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
1091         (Depends-on): Update conditions.
1092         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
1093
1094 2012-03-06  Bruno Haible  <bruno@clisp.org>
1095
1096         Tests for module 'expm1l'.
1097         * modules/expm1l-tests: New file.
1098         * tests/test-expm1l.c: New file.
1099
1100         New module 'expm1l'.
1101         * lib/math.in.h (expm1l): New declaration.
1102         * lib/expm1l.c: New file.
1103         * m4/expm1l.m4: New file.
1104         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
1105         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
1106         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
1107         * modules/expm1l: New file.
1108         * tests/test-math-c++.cc: Check the declaration of expm1l.
1109         * doc/posix-functions/expm1l.texi: Mention the new module.
1110
1111 2012-03-06  Bruno Haible  <bruno@clisp.org>
1112
1113         Tests for module 'expm1f'.
1114         * modules/expm1f-tests: New file.
1115         * tests/test-expm1f.c: New file.
1116
1117         New module 'expm1f'.
1118         * lib/math.in.h (expm1f): New declaration.
1119         * lib/expm1f.c: New file.
1120         * m4/expm1f.m4: New file.
1121         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
1122         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
1123         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
1124         * modules/expm1f: New file.
1125         * tests/test-math-c++.cc: Check the declaration of expm1f.
1126         * doc/posix-functions/expm1f.texi: Mention the new module.
1127
1128 2012-03-06  Bruno Haible  <bruno@clisp.org>
1129
1130         Tests for module 'expm1'.
1131         * modules/expm1-tests: New file.
1132         * tests/test-expm1.c: New file.
1133         * tests/test-expm1.h: New file.
1134
1135         New module 'expm1'.
1136         * lib/math.in.h (expm1): New declaration.
1137         * lib/expm1.c: New file.
1138         * m4/expm1.m4: New file.
1139         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
1140         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
1141         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
1142         * modules/expm1: New file.
1143         * tests/test-math-c++.cc: Check the declaration of expm1.
1144         * doc/posix-functions/expm1.texi: Mention the new module.
1145
1146 2012-03-06  Bruno Haible  <bruno@clisp.org>
1147
1148         math: Ensure declarations of math functions.
1149         * modules/acosf (Depends-on): Add 'extensions'.
1150         * modules/asinf (Depends-on): Likewise.
1151         * modules/atan2f (Depends-on): Likewise.
1152         * modules/atanf (Depends-on): Likewise.
1153         * modules/cbrt (Depends-on): Likewise.
1154         * modules/cbrtf (Depends-on): Likewise.
1155         * modules/cbrtl (Depends-on): Likewise.
1156         * modules/copysignf (Depends-on): Likewise.
1157         * modules/copysignl (Depends-on): Likewise.
1158         * modules/cosf (Depends-on): Likewise.
1159         * modules/coshf (Depends-on): Likewise.
1160         * modules/expf (Depends-on): Likewise.
1161         * modules/fabsf (Depends-on): Likewise.
1162         * modules/fabsl (Depends-on): Likewise.
1163         * modules/fmaf (Depends-on): Likewise.
1164         * modules/fmal (Depends-on): Likewise.
1165         * modules/fmodf (Depends-on): Likewise.
1166         * modules/fmodl (Depends-on): Likewise.
1167         * modules/frexpf (Depends-on): Likewise.
1168         * modules/frexpl (Depends-on): Likewise.
1169         * modules/hypot (Depends-on): Likewise.
1170         * modules/hypotf (Depends-on): Likewise.
1171         * modules/hypotl (Depends-on): Likewise.
1172         * modules/ldexpf (Depends-on): Likewise.
1173         * modules/ldexpl (Depends-on): Likewise.
1174         * modules/log10f (Depends-on): Likewise.
1175         * modules/log10l (Depends-on): Likewise.
1176         * modules/log1p (Depends-on): Likewise.
1177         * modules/logb (Depends-on): Likewise.
1178         * modules/logf (Depends-on): Likewise.
1179         * modules/modff (Depends-on): Likewise.
1180         * modules/modfl (Depends-on): Likewise.
1181         * modules/powf (Depends-on): Likewise.
1182         * modules/remainderf (Depends-on): Likewise.
1183         * modules/remainderl (Depends-on): Likewise.
1184         * modules/rintf (Depends-on): Likewise.
1185         * modules/rintl (Depends-on): Likewise.
1186         * modules/sinf (Depends-on): Likewise.
1187         * modules/sinhf (Depends-on): Likewise.
1188         * modules/sqrtf (Depends-on): Likewise.
1189         * modules/tanf (Depends-on): Likewise.
1190         * modules/tanhf (Depends-on): Likewise.
1191         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
1192         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
1193         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
1194         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
1195         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
1196         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
1197         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
1198         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
1199         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
1200         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
1201         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
1202         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
1203         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
1204         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
1205         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
1206         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
1207         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
1208         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
1209         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
1210         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
1211         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
1212         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
1213         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
1214         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
1215         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
1216         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
1217         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
1218         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
1219         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
1220         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
1221         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
1222         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
1223         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
1224         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
1225         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
1226         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
1227         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
1228         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
1229         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
1230         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
1231         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
1232
1233 2012-03-06  Bruno Haible  <bruno@clisp.org>
1234
1235         math: Update module names in warnings.
1236         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
1237         tanl): Use specific module name in warn-on-use warning.
1238
1239 2012-03-06  Bruno Haible  <bruno@clisp.org>
1240
1241         expl: Simplify computation.
1242         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
1243
1244 2012-03-05  Bruno Haible  <bruno@clisp.org>
1245
1246         exp* tests: More tests.
1247         * tests/test-exp.h: New file.
1248         * tests/test-exp.c: Include <float.h> and test-exp.h.
1249         (main): Invoke test_function.
1250         * tests/test-expf.c: Include <float.h> and test-exp.h.
1251         (main): Invoke test_function.
1252         * tests/test-expl.c: Include <float.h> and test-exp.h.
1253         (main): Invoke test_function.
1254         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
1255         (Makefile.am): Add randomd.c to test_exp_SOURCES.
1256         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
1257         (Makefile.am): Add randomf.c to test_expf_SOURCES.
1258         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
1259         (Depends-on): Add 'float'.
1260         (Makefile.am): Add randoml.c to test_expl_SOURCES.
1261
1262         expl: Fix precision of computed result.
1263         * lib/expl.c: Completely rewritten.
1264         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
1265         (Maintainer): Add me.
1266         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
1267
1268 2012-03-05  Bruno Haible  <bruno@clisp.org>
1269
1270         cbrt* tests: More tests.
1271         * tests/test-cbrt.h: New file.
1272         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
1273         (main): Invoke test_function.
1274         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
1275         (main): Invoke test_function.
1276         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
1277         (main): Invoke test_function.
1278         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
1279         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
1280         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
1281         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
1282         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
1283         (Depends-on): Add 'float'.
1284         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
1285
1286 2012-03-05  Bruno Haible  <bruno@clisp.org>
1287
1288         hypot* tests: More tests.
1289         * tests/test-hypot.h: New file, partially extracted from
1290         tests/test-hypotl.c.
1291         * tests/test-hypot.c: Include test-hypot.h.
1292         (main): Invoke test_function.
1293         * tests/test-hypotf.c: Include test-hypot.h.
1294         (main): Invoke test_function.
1295         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
1296         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
1297         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
1298         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
1299         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
1300         tests/randomf.c.
1301         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
1302         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
1303         tests/randoml.c.
1304         (Depends-on): Add 'fpucw', 'float'.
1305         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
1306
1307 2012-03-05  Bruno Haible  <bruno@clisp.org>
1308
1309         fpucw: Doc about FreeBSD.
1310         * lib/fpucw.h: Mention FreeBSD in comments.
1311
1312 2012-03-04  Bruno Haible  <bruno@clisp.org>
1313
1314         sqrt* tests: More tests.
1315         * tests/test-sqrt.h: New file.
1316         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
1317         (main): Invoke test_function.
1318         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
1319         (main): Invoke test_function.
1320         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
1321         (main): Invoke test_function.
1322         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
1323         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
1324         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
1325         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
1326         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
1327         (Depends-on): Add 'float'.
1328         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
1329
1330 2012-03-04  Bruno Haible  <bruno@clisp.org>
1331
1332         remainder* tests: More tests.
1333         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
1334         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
1335         (main): Invoke test_function.
1336         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
1337         (main): Invoke test_function.
1338         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
1339         (main): Invoke test_function.
1340         * modules/remainder-tests (Files): Add tests/test-remainder.h,
1341         tests/randomd.c.
1342         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
1343         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
1344         tests/randomf.c.
1345         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
1346         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
1347         tests/randoml.c.
1348         (Depends-on): Add 'float'.
1349         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
1350
1351 2012-03-04  Bruno Haible  <bruno@clisp.org>
1352
1353         remainder, remainderf, remainderl: Fix computation for large quotients.
1354         * lib/remainder.c: Completely rewritten.
1355         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
1356         USE_FLOAT.
1357         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
1358         USE_LONG_DOUBLE.
1359         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
1360         isnand, isinf. Remove round, fma.
1361         * modules/remainderf (Files): Add lib/remainder.c.
1362         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
1363         Remove roundf, fmaf.
1364         * modules/remainderl (Files): Add lib/remainder.c.
1365         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
1366         isinf. Remove roundl, fmal.
1367         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
1368         REMAINDER_LIBM.
1369         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
1370         REMAINDERF_LIBM.
1371         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
1372         REMAINDERL_LIBM.
1373
1374 2012-03-04  Bruno Haible  <bruno@clisp.org>
1375
1376         fmod* tests: More tests.
1377         * tests/test-fmod.h (my_ldexp): New function.
1378         (test_function): Reduce amount of random numbers to test. Add tests
1379         of very large quotients x / y.
1380         * tests/test-fmod.c (MAX_EXP): New macro.
1381         * tests/test-fmodf.c (MAX_EXP): Likewise.
1382         * tests/test-fmodl.c (MAX_EXP): Likewise.
1383
1384 2012-03-04  Bruno Haible  <bruno@clisp.org>
1385
1386         fmod, fmodl: Fix computation for large quotients x / y.
1387         * lib/fmod.c: Completely rewritten.
1388         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
1389         USE_LONG_DOUBLE.
1390         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
1391         isnand. Remove fma.
1392         * modules/fmodl (Files): Add lib/fmod.c.
1393         (Depends-on): Add float, isfinite, signbit, fabsl,
1394         frexpl, ldexpl, isnanl. Remove fma.
1395         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
1396         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
1397
1398 2012-03-03  Bruno Haible  <bruno@clisp.org>
1399
1400         fmod* tests: More tests.
1401         * tests/test-fmod.h: New file.
1402         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
1403         (main): Invoke test_function.
1404         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
1405         (main): Invoke test_function.
1406         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
1407         (main): Invoke test_function.
1408         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
1409         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
1410         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
1411         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
1412         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
1413         (Depends-on): Add 'float'.
1414         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
1415
1416 2012-03-03  Bruno Haible  <bruno@clisp.org>
1417
1418         rint* tests: More tests.
1419         * tests/test-rint.h: New file, partially extracted from
1420         tests/test-rintl.c.
1421         * tests/test-rint.c: Include test-rint.h.
1422         (main): Invoke test_function.
1423         * tests/test-rintf.c: Include test-rint.h.
1424         (main): Invoke test_function.
1425         * tests/test-rintl.c: Include test-rint.h.
1426         (main): Invoke test_function.
1427         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
1428         (Makefile.am): Add randomd.c to test_rint_SOURCES.
1429         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
1430         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
1431         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
1432         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
1433
1434 2012-03-03  Bruno Haible  <bruno@clisp.org>
1435
1436         modf* tests: More tests.
1437         * tests/test-modf.h: New file.
1438         * tests/test-modf.c: Include <float.h> and test-modf.h.
1439         (main): Invoke test_function.
1440         * tests/test-modff.c: Include <float.h> and test-modf.h.
1441         (main): Invoke test_function.
1442         * tests/test-modfl.c: Include <float.h> and test-modf.h.
1443         (main): Invoke test_function.
1444         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
1445         (Makefile.am): Add randomd.c to test_modf_SOURCES.
1446         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
1447         (Makefile.am): Add randomf.c to test_modff_SOURCES.
1448         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
1449         (Depends-on): Add 'float'.
1450         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
1451
1452 2012-03-03  Bruno Haible  <bruno@clisp.org>
1453
1454         fabs* tests: More tests.
1455         * tests/test-fabs.h: New file, partially extracted from
1456         tests/test-fabsl.c.
1457         * tests/test-fabs.c (RANDOM): New macro.
1458         * tests/test-fabsf.c (RANDOM): New macro.
1459         * tests/test-fabsl.c (RANDOM): New macro.
1460         * modules/fabs-tests (Files): Add tests/randomd.c.
1461         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
1462         * modules/fabsf-tests (Files): Add tests/randomf.c.
1463         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
1464         * modules/fabsl-tests (Files): Add tests/randoml.c.
1465         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
1466
1467 2012-03-03  Bruno Haible  <bruno@clisp.org>
1468
1469         ldexp* tests: More tests.
1470         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
1471         * tests/test-ldexp.c (RANDOM): New macro.
1472         * tests/test-ldexpf.c (RANDOM): New macro.
1473         * tests/test-ldexpl.c (RANDOM): New macro.
1474         * modules/ldexp-tests (Files): Add tests/randomd.c.
1475         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
1476         * modules/ldexpf-tests (Files): Add tests/randomf.c.
1477         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
1478         * modules/ldexpl-tests (Files): Add tests/randoml.c.
1479         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
1480
1481 2012-03-03  Bruno Haible  <bruno@clisp.org>
1482
1483         frexp* tests: More tests.
1484         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
1485         * tests/test-frexp.c (RANDOM): New macro.
1486         * tests/test-frexpf.c (RANDOM): New macro.
1487         * tests/test-frexpl.c (RANDOM): New macro.
1488         * modules/frexp-tests (Files): Add tests/randomd.c.
1489         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
1490         * modules/frexpf-tests (Files): Add tests/randomf.c.
1491         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
1492         * modules/frexpl-tests (Files): Add tests/randoml.c.
1493         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
1494
1495 2012-03-03  Bruno Haible  <bruno@clisp.org>
1496
1497         Support for pseudo-random numbers in tests.
1498         * tests/randomf.c: New file.
1499         * tests/randomd.c: New file.
1500         * tests/randoml.c: New file.
1501         * tests/macros.h (randomf, randomd, randoml): New declarations.
1502
1503 2012-03-03  Bruno Haible  <bruno@clisp.org>
1504
1505         frexp* tests: Refactor.
1506         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
1507         * tests/test-frexp.c: Include and use it.
1508         * tests/test-frexpf.c: Likewise.
1509         * tests/test-frexpl.c: Likewise.
1510         * modules/frexp-tests (Files): Add tests/test-frexp.h.
1511         * modules/frexpf-tests (Files): Likewise.
1512         * modules/frexpl-tests (Files): Likewise.
1513
1514 2012-03-02  Jim Meyering  <meyering@redhat.com>
1515
1516         maint: don't specify XZ_OPT=-9ev in dist-related rule
1517         Using xz's -9 option is warranted only if you have a very large
1518         tarball (see xz's documentation for the sizes vs. presets), and
1519         requires 64MiB of memory at decompression time.
1520         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
1521         Automake's default of just "-e" is fine.  Override on a
1522         per-package basis by setting XZ_OPT e.g., in cfg.mk.
1523
1524 2012-03-01  Eric Blake  <eblake@redhat.com>
1525
1526         maint.mk: allow announcement for non-gnulib project
1527         * maint.mk (announcement): Skip gnulib version if not used.
1528
1529 2012-03-01  Jim Meyering  <meyering@redhat.com>
1530
1531         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
1532         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
1533         envvar settings cannot interfere.  Otherwise, setting envvars like
1534         prohibit=foo require=bar, etc. would cause spurious test failures.
1535
1536 2012-03-01  Eric Blake  <eblake@redhat.com>
1537
1538         maint.mk: add per-line exclusions to prohibitions
1539         * maint.mk (_sc_search_regexp): Add $exclude parameter.
1540         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
1541         (sc_const_long_option): Use it.
1542
1543 2012-03-01  Bruno Haible  <bruno@clisp.org>
1544
1545         Tests for module 'expl-ieee'.
1546         * modules/expl-ieee-tests: New file.
1547         * tests/test-expl-ieee.c: New file.
1548
1549         New module 'expl-ieee'.
1550         * modules/expl-ieee: New file.
1551
1552         Tests for module 'exp-ieee'.
1553         * modules/exp-ieee-tests: New file.
1554         * tests/test-exp-ieee.c: New file.
1555
1556         New module 'exp-ieee'.
1557         * modules/exp-ieee: New file.
1558
1559         Tests for module 'expf-ieee'.
1560         * modules/expf-ieee-tests: New file.
1561         * tests/test-expf-ieee.c: New file.
1562         * tests/test-exp-ieee.h: New file.
1563
1564         New module 'expf-ieee'.
1565         * modules/expf-ieee: New file.
1566
1567 2012-02-29  Bruno Haible  <bruno@clisp.org>
1568
1569         cbrtl-ieee: Work around test failure on IRIX 6.5.
1570         * m4/cbrtl-ieee.m4: New file.
1571         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
1572         test whether cbrtl works with a minus zero argument. Replace it if not.
1573         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
1574         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
1575         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
1576         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
1577         (Depends-on): Update conditions.
1578         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
1579         m4/signbit.m4.
1580         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
1581         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
1582         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
1583
1584         Tests for module 'cbrtl-ieee'.
1585         * modules/cbrtl-ieee-tests: New file.
1586         * tests/test-cbrtl-ieee.c: New file.
1587
1588         New module 'cbrtl-ieee'.
1589         * modules/cbrtl-ieee: New file.
1590
1591         Tests for module 'cbrt-ieee'.
1592         * modules/cbrt-ieee-tests: New file.
1593         * tests/test-cbrt-ieee.c: New file.
1594
1595         New module 'cbrt-ieee'.
1596         * modules/cbrt-ieee: New file.
1597
1598         Tests for module 'cbrtf-ieee'.
1599         * modules/cbrtf-ieee-tests: New file.
1600         * tests/test-cbrtf-ieee.c: New file.
1601         * tests/test-cbrt-ieee.h: New file.
1602
1603         New module 'cbrtf-ieee'.
1604         * modules/cbrtf-ieee: New file.
1605
1606 2012-02-29  Bruno Haible  <bruno@clisp.org>
1607
1608         cbrtf: Work around bug in IRIX 6.5 system function.
1609         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
1610         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
1611         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
1612         work.
1613         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
1614         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
1615         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
1616         (Depends-on): Update conditions.
1617         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
1618
1619 2012-02-29  Bruno Haible  <bruno@clisp.org>
1620
1621         Tests for module 'cbrtl'.
1622         * modules/cbrtl-tests: New file.
1623         * tests/test-cbrtl.c: New file.
1624
1625         New module 'cbrtl'.
1626         * lib/math.in.h (cbrtl): New declaration.
1627         * lib/cbrtl.c: New file.
1628         * m4/cbrtl.m4: New file.
1629         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
1630         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
1631         HAVE_DECL_CBRTL.
1632         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
1633         HAVE_DECL_CBRTL.
1634         * modules/cbrtl: New file.
1635         * tests/test-math-c++.cc: Check the declaration of cbrtl.
1636         * doc/posix-functions/cbrtl.texi: Mention the new module.
1637
1638 2012-02-29  Bruno Haible  <bruno@clisp.org>
1639
1640         Tests for module 'cbrtf'.
1641         * modules/cbrtf-tests: New file.
1642         * tests/test-cbrtf.c: New file.
1643
1644         New module 'cbrtf'.
1645         * lib/math.in.h (cbrtf): New declaration.
1646         * lib/cbrtf.c: New file.
1647         * m4/cbrtf.m4: New file.
1648         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
1649         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
1650         HAVE_DECL_CBRTF.
1651         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
1652         HAVE_DECL_CBRTF.
1653         * modules/cbrtf: New file.
1654         * tests/test-math-c++.cc: Check the declaration of cbrtf.
1655         * doc/posix-functions/cbrtf.texi: Mention the new module.
1656
1657 2012-02-29  Bruno Haible  <bruno@clisp.org>
1658
1659         cbrt: Provide replacement on MSVC and Minix.
1660         * lib/math.in.h (cbrt): New declaration.
1661         * lib/cbrt.c: New file.
1662         * m4/cbrt.m4: New file.
1663         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
1664         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
1665         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
1666         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
1667         (Depends-on): Add dependencies.
1668         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
1669         * tests/test-math-c++.cc: Check the declaration of cbrt.
1670         * doc/posix-functions/cbrt.texi: Mention that the module provides a
1671         replacement.
1672
1673 2012-02-29  Bruno Haible  <bruno@clisp.org>
1674
1675         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
1676         * m4/hypotl-ieee.m4: New file.
1677         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
1678         test whether hypotl works with mixed NaN and Infinity arguments.
1679         Replace it if not.
1680         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
1681         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
1682         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
1683         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
1684         (Depends-on): Update conditions.
1685         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
1686         (Depends-on): Add hypot-ieee.
1687         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
1688         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
1689
1690         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
1691         * m4/hypotf-ieee.m4: New file.
1692         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
1693         test whether hypotf works with mixed NaN and Infinity arguments.
1694         Replace it if not.
1695         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
1696         (Depends-on): Add hypot-ieee.
1697         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
1698         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
1699
1700         hypot-ieee: Work around test failure on OSF/1 and native Windows.
1701         * lib/math.in.h (hypot): New declaration.
1702         * lib/hypot.c: New file.
1703         * m4/hypot-ieee.m4: New file.
1704         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
1705         whether hypot works with mixed NaN and Infinity arguments. Replace it
1706         if not.
1707         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
1708         REPLACE_HYPOT.
1709         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
1710         * modules/hypot (Files): Add lib/hypot.c.
1711         (Depends-on): Add dependencies.
1712         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
1713         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
1714         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
1715         * tests/test-math-c++.cc: Check the declaration of hypot.
1716         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
1717
1718         Tests for module 'hypotl-ieee'.
1719         * modules/hypotl-ieee-tests: New file.
1720         * tests/test-hypotl-ieee.c: New file.
1721
1722         New module 'hypotl-ieee'.
1723         * modules/hypotl-ieee: New file.
1724
1725         Tests for module 'hypot-ieee'.
1726         * modules/hypot-ieee-tests: New file.
1727         * tests/test-hypot-ieee.c: New file.
1728
1729         New module 'hypot-ieee'.
1730         * modules/hypot-ieee: New file.
1731
1732         Tests for module 'hypotf-ieee'.
1733         * modules/hypotf-ieee-tests: New file.
1734         * tests/test-hypotf-ieee.c: New file.
1735         * tests/test-hypot-ieee.h: New file.
1736
1737         New module 'hypotf-ieee'.
1738         * modules/hypotf-ieee: New file.
1739
1740 2012-02-29  Bruno Haible  <bruno@clisp.org>
1741
1742         Remove unused variables.
1743         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
1744         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
1745         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
1746         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
1747
1748 2012-02-29  Eric Blake  <eblake@redhat.com>
1749
1750         termios: fix pid_t always, not just for tcgetsid
1751         * doc/posix-headers/termios.texi (termios.h): Mention problem.
1752         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
1753         just when building tcgetsid.
1754
1755 2012-02-29  Bruno Haible  <bruno@clisp.org>
1756
1757         Tests for module 'hypotl'.
1758         * modules/hypotl-tests: New file.
1759         * tests/test-hypotl.c: New file.
1760
1761         New module 'hypotl'.
1762         * lib/math.in.h (hypotl): New declaration.
1763         * lib/hypotl.c: New file.
1764         * m4/hypotl.m4: New file.
1765         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
1766         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
1767         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
1768         * modules/hypotl: New file.
1769         * tests/test-math-c++.cc: Check the hypotl declaration.
1770         * doc/posix-functions/hypotl.texi: Mention the new module.
1771
1772 2012-02-29  Eric Blake  <eblake@redhat.com>
1773
1774         tcgetsid: fix cygwin header bug
1775         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
1776
1777         docs: update cygwin progress
1778         * doc/posix-functions/llround.texi (llround): Added in cygwin
1779         1.7.8.
1780         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
1781         * doc/glibc-functions/program_invocation_name.texi
1782         (program_invocation_name): Likewise.
1783         * doc/glibc-functions/program_invocation_short_name.texi
1784         (program_invocation_short_name): Likewise.
1785         * doc/glibc-functions/madvise.texi (madvise): Likewise.
1786         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
1787         Likewise.
1788         * doc/posix-functions/pthread_spin_destroy.texi
1789         (pthread_spin_destroy): Added in cygwin 1.7.10.
1790         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
1791         Likewise.
1792         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
1793         Likewise.
1794         * doc/posix-functions/pthread_spin_trylock.texi
1795         (pthread_spin_trylock): Likewise.
1796         * doc/posix-functions/pthread_spin_unlock.texi
1797         (pthread_spin_unlock): Likewise.
1798         * doc/posix-functions/pthread_setschedprio.texi
1799         (pthread_setschedprio): Likewise.
1800         * doc/posix-functions/pthread_attr_getstack.texi
1801         (pthread_attr_getstack): Likewise.
1802         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
1803         (pthread_attr_getstackaddr): Likewise.
1804         * doc/glibc-functions/pthread_getattr_np.texi
1805         (pthread_getattr_np): Likewise.
1806         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
1807         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
1808         * doc/posix-functions/clock_settime.texi (clock_settime):
1809         Likewise.
1810         * doc/posix-functions/pthread_attr_getguardsize.texi
1811         (pthread_attr_getguardsize): Likewise.
1812         * doc/posix-functions/pthread_attr_setguardsize.texi
1813         (pthread_attr_setguardsize): Likewise.
1814         * doc/posix-functions/pthread_attr_setstack.texi
1815         (pthread_attr_setstack): Likewise.
1816         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
1817         (pthread_attr_setstackaddr): Likewise.
1818         * doc/posix-functions/clock_getcpuclockid.texi
1819         (clock_getcpuclockid): Likewise.
1820         * doc/posix-functions/pthread_getcpuclockid.texi
1821         (pthread_getcpuclockid): Likewise.
1822         * doc/glibc-functions/error.texi (error): Likewise.
1823         * doc/glibc-functions/error_at_line.texi (error_at_line):
1824         Likewise.
1825         * doc/glibc-functions/error_message_count.texi
1826         (error_message_count): Likewise.
1827         * doc/glibc-functions/error_one_per_line.texi
1828         (error_one_per_line): Likewise.
1829         * doc/glibc-functions/error_print_progname.texi
1830         (error_print_progname): Likewise.
1831         * doc/posix-functions/pthread_condattr_getclock.texi
1832         (pthread_condattr_getclock): Likewise.
1833         * doc/posix-functions/pthread_condattr_setclock.texi
1834         (pthread_condattr_setclock): Likewise.
1835         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
1836         Likewise.
1837         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
1838         * doc/glibc-functions/getpt.texi (getpt): Likewise.
1839         * doc/glibc-functions/get_current_dir_name.texi
1840         (get_current_dir_name): Likewise.
1841         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
1842         Likewise.
1843         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
1844         wrong return type.
1845         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
1846         1.7.11.
1847
1848 2012-02-29  Bruno Haible  <bruno@clisp.org>
1849
1850         Tests for module 'hypotf'.
1851         * modules/hypotf-tests: New file.
1852         * tests/test-hypotf.c: New file.
1853
1854         New module 'hypotf'.
1855         * lib/math.in.h (hypotf): New declaration.
1856         * lib/hypotf.c: New file.
1857         * m4/hypotf.m4: New file.
1858         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
1859         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
1860         REPLACE_HYPOTF.
1861         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
1862         REPLACE_HYPOTF.
1863         * modules/hypotf: New file.
1864         * tests/test-math-c++.cc: Check the hypotf declaration.
1865         * doc/posix-functions/hypotf.texi: Mention the new module.
1866
1867         hypot: Prepare for hypotf module.
1868         * m4/hypot.m4: New file.
1869         * modules/hypot (Files): Add m4/hypot.m4.
1870         (configure.ac): Invoke gl_FUNC_HYPOT.
1871
1872 2012-02-29  Bruno Haible  <bruno@clisp.org>
1873
1874         hypot tests: More tests.
1875         * tests/test-hypot.c: Include <float.h>.
1876         (main): Add tests about overflow and underflow.
1877
1878 2012-02-29  Bruno Haible  <bruno@clisp.org>
1879
1880         math code: Add comments.
1881         * lib/acosl.c: Add comment about related glibc source files.
1882         * lib/asinl.c: Likewise.
1883         * lib/atanl.c: Likewise.
1884         * lib/expl.c: Likewise.
1885         * lib/logl.c: Likewise.
1886         * lib/sincosl.c: Likewise.
1887         * lib/sinl.c: Likewise.
1888         * lib/tanl.c: Likewise.
1889         * lib/trigl.c: Likewise.
1890         * lib/cosl.c: Likewise. Fix comments.
1891
1892 2012-02-28  Bruno Haible  <bruno@clisp.org>
1893
1894         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
1895         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
1896         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
1897         HUGE_VALL are defined.
1898         (numeric_equald): Renamed from numeric_equal.
1899         (numeric_equalf, numeric_equall): New functions.
1900         (main): Check also HUGE_VALF, HUGE_VALL.
1901         * modules/math-tests (Files): Add tests/macros.h.
1902         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
1903         HUGE_VALL.
1904
1905 2012-02-28  Bruno Haible  <bruno@clisp.org>
1906
1907         doc: Move ISO C11 feature notes into POSIX chapters.
1908         * doc/posix-functions/aligned_alloc.texi: Renamed from
1909         doc/glibc-functions/aligned_alloc.texi.
1910         * doc/posix-functions/quick_exit.texi: Renamed from
1911         doc/glibc-functions/quick_exit.texi.
1912         * doc/posix-headers/uchar.texi: Renamed from
1913         doc/glibc-headers/uchar.texi.
1914         * doc/posix-functions/c16rtomb.texi: Renamed from
1915         doc/glibc-functions/c16rtomb.texi.
1916         * doc/posix-functions/c32rtomb.texi: Renamed from
1917         doc/glibc-functions/c32rtomb.texi.
1918         * doc/posix-functions/mbrtoc16.texi: Renamed from
1919         doc/glibc-functions/mbrtoc16.texi.
1920         * doc/posix-functions/mbrtoc32.texi: Renamed from
1921         doc/glibc-functions/mbrtoc32.texi.
1922         * doc/gnulib.texi: Update.
1923         (Glibc uchar.h): Remove section.
1924         Suggested by Eric Blake.
1925
1926 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
1927
1928         stdnoreturn: port to MSVC better
1929         MSVC standard headers use __declspec(noreturn), so #define noreturn
1930         to empty on that platform.  Reported by Bruno Haible in
1931         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
1932         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
1933         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
1934
1935 2012-02-28  Bruno Haible  <bruno@clisp.org>
1936
1937         doc: Mention new glibc headers and functions.
1938         * doc/glibc-headers/uchar.texi: New file.
1939         * doc/glibc-functions/aligned_alloc.texi: New file.
1940         * doc/glibc-functions/c16rtomb.texi: New file.
1941         * doc/glibc-functions/c32rtomb.texi: New file.
1942         * doc/glibc-functions/clock_adjtime.texi: New file.
1943         * doc/glibc-functions/fanotify_init.texi: New file.
1944         * doc/glibc-functions/fanotify_mark.texi: New file.
1945         * doc/glibc-functions/inet6_opt_append.texi: New file.
1946         * doc/glibc-functions/inet6_opt_find.texi: New file.
1947         * doc/glibc-functions/inet6_opt_finish.texi: New file.
1948         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
1949         * doc/glibc-functions/inet6_opt_init.texi: New file.
1950         * doc/glibc-functions/inet6_opt_next.texi: New file.
1951         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
1952         * doc/glibc-functions/inet6_rth_add.texi: New file.
1953         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
1954         * doc/glibc-functions/inet6_rth_init.texi: New file.
1955         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
1956         * doc/glibc-functions/inet6_rth_segments.texi: New file.
1957         * doc/glibc-functions/inet6_rth_space.texi: New file.
1958         * doc/glibc-functions/login.texi: New file.
1959         * doc/glibc-functions/mbrtoc16.texi: New file.
1960         * doc/glibc-functions/mbrtoc32.texi: New file.
1961         * doc/glibc-functions/name_to_handle_at.texi: New file.
1962         * doc/glibc-functions/ntp_gettimex.texi: New file.
1963         * doc/glibc-functions/open_by_handle_at.texi: New file.
1964         * doc/glibc-functions/prlimit.texi: New file.
1965         * doc/glibc-functions/process_vm_readv.texi: New file.
1966         * doc/glibc-functions/process_vm_writev.texi: New file.
1967         * doc/glibc-functions/recvmmsg.texi: New file.
1968         * doc/glibc-functions/scandirat.texi: New file.
1969         * doc/glibc-functions/sendmmsg.texi: New file.
1970         * doc/glibc-functions/setns.texi: New file.
1971         * doc/glibc-functions/timespec_get.texi: New file.
1972         * doc/gnulib.texi: Include them.
1973         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
1974         sections.
1975         Reported by Eric Blake.
1976
1977 2012-02-28  Bruno Haible  <bruno@clisp.org>
1978
1979         Avoid compilation errors with MSVC option -fp:strict.
1980         * lib/floor.c: Use MSVC specific pragma fenv_access.
1981         * lib/ceil.c: Likewise.
1982         * lib/trunc.c: Likewise.
1983         * lib/round.c: Likewise.
1984         * lib/rint.c: Likewise.
1985         * lib/fma.c: Likewise.
1986         * lib/integer_length.c: Likewise.
1987         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
1988         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
1989         * tests/test-floor2.c: Likewise.
1990         * tests/test-floorf2.c: Likewise.
1991         * tests/test-ceil2.c: Likewise.
1992         * tests/test-ceilf2.c: Likewise.
1993         * tests/test-trunc2.c: Likewise.
1994         * tests/test-truncf2.c: Likewise.
1995         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1996
1997 2012-02-27  Bruno Haible  <bruno@clisp.org>
1998
1999         Tests for module 'sqrtl-ieee'.
2000         * modules/sqrtl-ieee-tests: New file.
2001         * tests/test-sqrtl-ieee.c: New file.
2002
2003         New module 'sqrtl-ieee'.
2004         * modules/sqrtl-ieee: New file.
2005
2006         Tests for module 'sqrt-ieee'.
2007         * modules/sqrt-ieee-tests: New file.
2008         * tests/test-sqrt-ieee.c: New file.
2009
2010         New module 'sqrt-ieee'.
2011         * modules/sqrt-ieee: New file.
2012
2013         Tests for module 'sqrtf-ieee'.
2014         * modules/sqrtf-ieee-tests: New file.
2015         * tests/test-sqrtf-ieee.c: New file.
2016         * tests/test-sqrt-ieee.h: New file.
2017
2018         New module 'sqrtf-ieee'.
2019         * modules/sqrtf-ieee: New file.
2020
2021 2012-02-27  Bruno Haible  <bruno@clisp.org>
2022
2023         remainderl-ieee: Work around test failure on OSF/1.
2024         * m4/remainderl-ieee.m4: New file.
2025         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
2026         present, test whether remainderl works with a zero second argument.
2027         Replace it if not.
2028         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
2029         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
2030         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
2031         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
2032         (Depends-on): Update conditions.
2033         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
2034         (Depends-on): Add remainder-ieee.
2035         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
2036         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
2037         module.
2038
2039         remainderf-ieee: Work around test failure on OSF/1.
2040         * m4/remainderf-ieee.m4: New file.
2041         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
2042         present, test whether remainderf works with a zero second argument.
2043         Replace it if not.
2044         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
2045         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
2046         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
2047         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
2048         (Depends-on): Update conditions.
2049         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
2050         (Depends-on): Add remainder-ieee.
2051         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
2052         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
2053         module.
2054
2055         remainder-ieee: Work around test failure on OSF/1.
2056         * m4/remainder-ieee.m4: New file.
2057         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
2058         present, test whether remainder works with a zero second argument.
2059         Replace it if not.
2060         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
2061         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
2062         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
2063         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
2064         (Depends-on): Update dependencies.
2065         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
2066         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
2067         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
2068
2069         Tests for module 'remainderl-ieee'.
2070         * modules/remainderl-ieee-tests: New file.
2071         * tests/test-remainderl-ieee.c: New file.
2072
2073         New module 'remainderl-ieee'.
2074         * modules/remainderl-ieee: New file.
2075
2076         Tests for module 'remainder-ieee'.
2077         * modules/remainder-ieee-tests: New file.
2078         * tests/test-remainder-ieee.c: New file.
2079
2080         New module 'remainder-ieee'.
2081         * modules/remainder-ieee: New file.
2082
2083         Tests for module 'remainderf-ieee'.
2084         * modules/remainderf-ieee-tests: New file.
2085         * tests/test-remainderf-ieee.c: New file.
2086         * tests/test-remainder-ieee.h: New file.
2087
2088         New module 'remainderf-ieee'.
2089         * modules/remainderf-ieee: New file.
2090
2091 2012-02-27  Bruno Haible  <bruno@clisp.org>
2092
2093         modff, modfl: Fix configure syntax error.
2094         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
2095         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
2096
2097 2012-02-27  Bruno Haible  <bruno@clisp.org>
2098
2099         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
2100         * m4/fmodl-ieee.m4: New file.
2101         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
2102         whether fmodl works with zero arguments. Replace it if not.
2103         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
2104         (Depends-on): Add fmod-ieee.
2105         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
2106         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
2107
2108         fmodf-ieee: Work around test failure on OSF/1.
2109         * m4/fmodf-ieee.m4: New file.
2110         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
2111         whether fmodf works with zero arguments. Replace it if not.
2112         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
2113         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
2114         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
2115         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
2116         (Depends-on): Update dependencies.
2117         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
2118         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
2119         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
2120
2121         fmodf-ieee: Work around test failure on MSVC 9.
2122         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
2123         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
2124
2125         fmod-ieee: Work around test failures on OSF/1, mingw.
2126         * m4/fmod-ieee.m4: New file.
2127         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
2128         whether fmod works with zero arguments. Replace it if not.
2129         * lib/math.in.h (fmod): New declaration.
2130         * lib/fmod.c: New file.
2131         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
2132         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
2133         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
2134         * modules/fmod (Files): Add lib/fmod.c.
2135         (Depends-on): Add math, isinf, trunc, fma.
2136         (configure.ac): Arrange to compile lib/fmod.c if needed.
2137         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
2138         m4/signbit.m4.
2139         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
2140         * tests/test-math-c++.cc: Check the declaration of fmod.
2141         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
2142
2143         fmodl-ieee: Fix test failures.
2144         * lib/fmodl.c (fmodl): Treat Inf specially.
2145         * modules/fmodl (Depends-on): Add isinf.
2146
2147         Tests for module 'fmodl-ieee'.
2148         * modules/fmodl-ieee-tests: New file.
2149         * tests/test-fmodl-ieee.c: New file.
2150
2151         New module 'fmodl-ieee'.
2152         * modules/fmodl-ieee: New file.
2153
2154         Tests for module 'fmod-ieee'.
2155         * modules/fmod-ieee-tests: New file.
2156         * tests/test-fmod-ieee.c: New file.
2157
2158         New module 'fmod-ieee'.
2159         * modules/fmod-ieee: New file.
2160
2161         Tests for module 'fmodf-ieee'.
2162         * modules/fmodf-ieee-tests: New file.
2163         * tests/test-fmodf-ieee.c: New file.
2164         * tests/test-fmod-ieee.h: New file.
2165
2166         New module 'fmodf-ieee'.
2167         * modules/fmodf-ieee: New file.
2168
2169 2012-02-27  Bruno Haible  <bruno@clisp.org>
2170
2171         Tests for module 'rintl-ieee'.
2172         * modules/rintl-ieee-tests: New file.
2173         * tests/test-rintl-ieee.c: New file.
2174
2175         New module 'rintl-ieee'.
2176         * modules/rintl-ieee: New file.
2177
2178         Tests for module 'rint-ieee'.
2179         * modules/rint-ieee-tests: New file.
2180         * tests/test-rint-ieee.c: New file.
2181
2182         New module 'rint-ieee'.
2183         * modules/rint-ieee: New file.
2184
2185         Tests for module 'rintf-ieee'.
2186         * modules/rintf-ieee-tests: New file.
2187         * tests/test-rintf-ieee.c: New file.
2188         * tests/test-rint-ieee.h: New file.
2189
2190         New module 'rintf-ieee'.
2191         * modules/rintf-ieee: New file.
2192
2193 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
2194
2195         regex: re_search etc. should return -2 when memory exhausted
2196         This bug was uncovered when testing 'grep'.  Without the fix,
2197         re_search and friends return -1 when memory is exhausted, but -1
2198         means no match, and this causes grep to falsely report no-match
2199         instead of memory-exhaustion.  See
2200         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
2201         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
2202         trouble; this can occur if re_search_internal ran out of memory.
2203
2204 2012-02-26  Bruno Haible  <bruno@clisp.org>
2205
2206         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
2207         * m4/modfl-ieee.m4: New file.
2208         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
2209         whether modfl works with Inf. Replace it if not.
2210         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
2211         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
2212         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
2213         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
2214         (Depends-on): Update dependencies.
2215         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
2216         m4/signbit.m4.
2217         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
2218         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
2219
2220         modfl-ieee: Fix dependencies.
2221         * modules/modfl-ieee (Depends-on): Add modf-ieee.
2222
2223         modfl-ieee: Fix test failures.
2224         * lib/modfl.c (modfl): Treat NaN and Inf specially.
2225         * modules/modfl (Depends-on): Add isfinite, isinf.
2226
2227         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
2228         * m4/modff-ieee.m4: New file.
2229         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
2230         whether modff works with NaN and Inf. Replace it if not.
2231         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
2232         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
2233         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
2234         * modules/modff (configure.ac): Consider REPLACE_MODFF.
2235         (Depends-on): Update dependencies.
2236         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
2237         m4/signbit.m4.
2238         (Depends-on): Add modf-ieee.
2239         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
2240         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
2241
2242         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
2243         * m4/modf-ieee.m4: New file.
2244         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
2245         whether modf works with NaN and Inf. Replace it if not.
2246         * lib/math.in.h (modf): New declaration.
2247         * lib/modf.c: New file.
2248         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
2249         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
2250         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
2251         * modules/modf (Files): Add lib/modf.c.
2252         (Depends-on): Add math, isfinite, trunc, isinf.
2253         (configure.ac): Addrange to compile lib/modf.c if needed.
2254         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
2255         m4/signbit.m4.
2256         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
2257         * tests/test-math-c++.cc: Check the declaration of modf.
2258         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
2259
2260         Tests for module 'modfl-ieee'.
2261         * modules/modfl-ieee-tests: New file.
2262         * tests/test-modfl-ieee.c: New file.
2263
2264         New module 'modfl-ieee'.
2265         * modules/modfl-ieee: New file.
2266
2267         Tests for module 'modf-ieee'.
2268         * modules/modf-ieee-tests: New file.
2269         * tests/test-modf-ieee.c: New file.
2270
2271         New module 'modf-ieee'.
2272         * modules/modf-ieee: New file.
2273
2274         Tests for module 'modff-ieee'.
2275         * modules/modff-ieee-tests: New file.
2276         * tests/test-modff-ieee.c: New file.
2277         * tests/test-modf-ieee.h: New file.
2278
2279         New module 'modff-ieee'.
2280         * modules/modff-ieee: New file.
2281
2282 2012-02-26  Bruno Haible  <bruno@clisp.org>
2283
2284         Tests for module 'fabsl-ieee'.
2285         * modules/fabsl-ieee-tests: New file.
2286         * tests/test-fabsl-ieee.c: New file.
2287
2288         New module 'fabsl-ieee'.
2289         * modules/fabsl-ieee: New file.
2290
2291         Tests for module 'fabs-ieee'.
2292         * modules/fabs-ieee-tests: New file.
2293         * tests/test-fabs-ieee.c: New file.
2294
2295         New module 'fabs-ieee'.
2296         * modules/fabs-ieee: New file.
2297
2298         Tests for module 'fabsf-ieee'.
2299         * modules/fabsf-ieee-tests: New file.
2300         * tests/test-fabsf-ieee.c: New file.
2301         * tests/test-fabs-ieee.h: New file.
2302
2303         New module 'fabsf-ieee'.
2304         * modules/fabsf-ieee: New file.
2305
2306 2012-02-26  Bruno Haible  <bruno@clisp.org>
2307
2308         Tests for module 'fmal-ieee'.
2309         * modules/fmal-ieee-tests: New file.
2310         * tests/test-fmal-ieee.c: New file.
2311
2312         New module 'fmal-ieee'.
2313         * modules/fmal-ieee: New file.
2314
2315         Tests for module 'fma-ieee'.
2316         * modules/fma-ieee-tests: New file.
2317         * tests/test-fma-ieee.c: New file.
2318
2319         New module 'fma-ieee'.
2320         * modules/fma-ieee: New file.
2321
2322         Tests for module 'fmaf-ieee'.
2323         * modules/fmaf-ieee-tests: New file.
2324         * tests/test-fmaf-ieee.c: New file.
2325         * tests/test-fma-ieee.h: New file.
2326
2327         New module 'fmaf-ieee'.
2328         * modules/fmaf-ieee: New file.
2329
2330 2012-02-26  Bruno Haible  <bruno@clisp.org>
2331
2332         Tests for module 'ldexpl-ieee'.
2333         * modules/ldexpl-ieee-tests: New file.
2334         * tests/test-ldexpl-ieee.c: New file.
2335
2336         New module 'ldexpl-ieee'.
2337         * modules/ldexpl-ieee: New file.
2338
2339         Tests for module 'ldexp-ieee'.
2340         * modules/ldexp-ieee-tests: New file.
2341         * tests/test-ldexp-ieee.c: New file.
2342
2343         New module 'ldexp-ieee'.
2344         * modules/ldexp-ieee: New file.
2345
2346         Tests for module 'ldexpf-ieee'.
2347         * modules/ldexpf-ieee-tests: New file.
2348         * tests/test-ldexpf-ieee.c: New file.
2349         * tests/test-ldexp-ieee.h: New file.
2350
2351         New module 'ldexpf-ieee'.
2352         * modules/ldexpf-ieee: New file.
2353
2354 2012-02-26  Bruno Haible  <bruno@clisp.org>
2355
2356         Refactor frexp*-ieee tests.
2357         * tests/test-frexp-ieee.h: New file.
2358         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
2359         (main): Just call test_function.
2360         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
2361         (main): Just call test_function.
2362         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
2363         (main): Just call test_function.
2364         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
2365         * modules/frexp-ieee-tests (Files): Likewise.
2366         * modules/frexpl-ieee-tests (Files): Likewise.
2367
2368         Tests for module 'frexpl-ieee'.
2369         * modules/frexpl-ieee-tests: New file.
2370         * tests/test-frexpl-ieee.c: New file.
2371
2372         New module 'frexpl-ieee'.
2373         * modules/frexpl-ieee: New file.
2374
2375         Tests for module 'frexp-ieee'.
2376         * modules/frexp-ieee-tests: New file.
2377         * tests/test-frexp-ieee.c: New file.
2378
2379         New module 'frexp-ieee'.
2380         * modules/frexp-ieee: New file.
2381
2382         Tests for module 'frexpf-ieee'.
2383         * modules/frexpf-ieee-tests: New file.
2384         * tests/test-frexpf-ieee.c: New file.
2385
2386         New module 'frexpf-ieee'.
2387         * modules/frexpf-ieee: New file.
2388
2389 2012-02-26  Bruno Haible  <bruno@clisp.org>
2390
2391         roundl-ieee tests: More tests.
2392         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2393         (main): Add tests for [MX] shaded specification in POSIX.
2394         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2395         (Depends-on): Add isnanl-nolibm.
2396
2397         round-ieee tests: More tests.
2398         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2399         (main): Add tests for [MX] shaded specification in POSIX.
2400         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2401         (Depends-on): Add isnand-nolibm.
2402
2403         roundf-ieee tests: More tests.
2404         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2405         (main): Add tests for [MX] shaded specification in POSIX.
2406         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2407         (Depends-on): Add isnanf-nolibm.
2408
2409         truncl-ieee tests: More tests.
2410         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2411         (main): Add tests for [MX] shaded specification in POSIX.
2412         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2413         (Depends-on): Add isnanl-nolibm.
2414
2415         trunc-ieee tests: More tests.
2416         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2417         (main): Add tests for [MX] shaded specification in POSIX.
2418         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2419         (Depends-on): Add isnand-nolibm.
2420
2421         truncf-ieee tests: More tests.
2422         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2423         (main): Add tests for [MX] shaded specification in POSIX.
2424         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2425         (Depends-on): Add isnanf-nolibm.
2426
2427         ceill-ieee tests: More tests.
2428         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2429         (main): Add tests for [MX] shaded specification in POSIX.
2430         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2431         (Depends-on): Add isnanl-nolibm.
2432
2433         ceil-ieee tests: More tests.
2434         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2435         (main): Add tests for [MX] shaded specification in POSIX.
2436         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2437         (Depends-on): Add isnand-nolibm.
2438
2439         ceilf-ieee tests: More tests.
2440         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2441         (main): Add tests for [MX] shaded specification in POSIX.
2442         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2443         (Depends-on): Add isnanf-nolibm.
2444
2445         floorl-ieee tests: More tests.
2446         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
2447         (main): Add tests for [MX] shaded specification in POSIX.
2448         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2449         (Depends-on): Add isnanl-nolibm.
2450
2451         floor-ieee tests: More tests.
2452         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
2453         (main): Add tests for [MX] shaded specification in POSIX.
2454         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2455         (Depends-on): Add isnand-nolibm.
2456
2457         floorf-ieee tests: More tests.
2458         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
2459         (main): Add tests for [MX] shaded specification in POSIX.
2460         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
2461         (Depends-on): Add isnanf-nolibm.
2462
2463 2012-02-26  Bruno Haible  <bruno@clisp.org>
2464
2465         fpieee: More comments.
2466         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
2467
2468 2012-02-25  Bruno Haible  <bruno@clisp.org>
2469
2470         Tests for module 'log10l'.
2471         * modules/log10l-tests: New file.
2472         * tests/test-log10l.c: New file.
2473         * tests/test-math-c++.cc: Check the declaration of log10l.
2474
2475         New module 'log10l'.
2476         * lib/math.in.h (log10l): New declaration.
2477         * lib/log10l.c: New file.
2478         * m4/log10l.m4: New file.
2479         * modules/log10l: New file.
2480         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
2481         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
2482         HAVE_DECL_LOG10L.
2483         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
2484         HAVE_DECL_LOG10L.
2485         * doc/posix-functions/log10l.texi: Mention the new module.
2486
2487 2012-02-25  Bruno Haible  <bruno@clisp.org>
2488
2489         fmodl, remainder*: Avoid wrong results due to rounding errors.
2490         * lib/fmodl.c (fmodl): Correct the result if it is not within the
2491         expected bounds.
2492         * lib/remainderf.c (remainderf): Likewise.
2493         * lib/remainder.c (remainder): Likewise.
2494         * lib/remainderl.c (remainderl): Likewise.
2495
2496 2012-02-25  Bruno Haible  <bruno@clisp.org>
2497
2498         Tests for module 'remainderl'.
2499         * modules/remainderl-tests: New file.
2500         * tests/test-remainderl.c: New file.
2501         * tests/test-math-c++.cc: Check the declaration of remainderl.
2502
2503         New module 'remainderl'.
2504         * lib/math.in.h (remainderl): New declaration.
2505         * lib/remainderl.c: New file.
2506         * m4/remainderl.m4: New file.
2507         * modules/remainderl: New file.
2508         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
2509         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
2510         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
2511         HAVE_REMAINDERL.
2512         * doc/posix-functions/remainderl.texi: Mention the new module.
2513
2514 2012-02-25  Bruno Haible  <bruno@clisp.org>
2515
2516         Tests for module 'remainderf'.
2517         * modules/remainderf-tests: New file.
2518         * tests/test-remainderf.c: New file.
2519         * tests/test-math-c++.cc: Check the declaration of remainderf.
2520
2521         New module 'remainderf'.
2522         * lib/math.in.h (remainderf): New declaration.
2523         * lib/remainderf.c: New file.
2524         * m4/remainderf.m4: New file.
2525         * modules/remainderf: New file.
2526         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
2527         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
2528         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
2529         HAVE_REMAINDERF.
2530         * doc/posix-functions/remainderf.texi: Mention the new module.
2531
2532 2012-02-25  Bruno Haible  <bruno@clisp.org>
2533
2534         remainder: Support for MSVC.
2535         * lib/math.in.h (remainder): New declaration.
2536         * lib/remainder.c: New file.
2537         * m4/remainder.m4: New file.
2538         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
2539         (Depends-on): Add math, round, fma.
2540         (configure.ac): Use results of gl_FUNC_REMAINDER.
2541         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
2542         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
2543         HAVE_DECL_REMAINDER.
2544         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
2545         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
2546         * tests/test-math-c++.cc: Check the declaration of remainder.
2547         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
2548         problems are fixed.
2549
2550 2012-02-25  Bruno Haible  <bruno@clisp.org>
2551
2552         Tests for module 'fmodl'.
2553         * modules/fmodl-tests: New file.
2554         * tests/test-fmodl.c: New file.
2555         * tests/test-math-c++.cc: Check the declaration of fmodl.
2556
2557         New module 'fmodl'.
2558         * lib/math.in.h (fmodl): New declaration.
2559         * lib/fmodl.c: New file.
2560         * m4/fmodl.m4: New file.
2561         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
2562         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
2563         REPLACE_FMODL.
2564         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
2565         REPLACE_FMODL.
2566         * modules/fmodl: New file.
2567         * doc/posix-functions/fmodl.texi: Mention the new module.
2568
2569 2012-02-25  Bruno Haible  <bruno@clisp.org>
2570
2571         Tests for module 'modfl'.
2572         * modules/modfl-tests: New file.
2573         * tests/test-modfl.c: New file.
2574         * tests/test-math-c++.cc: Check the declaration of modfl.
2575
2576         New module 'modfl'.
2577         * lib/math.in.h (modfl): New declaration.
2578         * lib/modfl.c: New file.
2579         * m4/modfl.m4: New file.
2580         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
2581         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
2582         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
2583         * modules/modfl: New file.
2584         * doc/posix-functions/modfl.texi: Mention the new module.
2585
2586 2012-02-25  Bruno Haible  <bruno@clisp.org>
2587
2588         Tests for module 'fabsl'.
2589         * modules/fabsl-tests: New file.
2590         * tests/test-fabsl.c: New file.
2591         * tests/test-math-c++.cc: Check the declaration of fabsl.
2592
2593         New module 'fabsl'.
2594         * lib/math.in.h (fabsl): New declaration.
2595         * lib/fabsl.c: New file.
2596         * m4/fabsl.m4: New file.
2597         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
2598         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
2599         REPLACE_FABSL.
2600         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
2601         REPLACE_FABSL.
2602         * modules/fabsl: New file.
2603         * doc/posix-functions/fabsl.texi: Mention the new module.
2604
2605 2012-02-25  Bruno Haible  <bruno@clisp.org>
2606
2607         fabs tests: More tests.
2608         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
2609         (zero): New variable.
2610         (main): Add tests for signed zero.
2611         * modules/fabs-tests (Files): Add tests/minus-zero.h.
2612
2613         fabsf tests: More tests.
2614         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
2615         (zero): New variable.
2616         (main): Add tests for signed zero.
2617         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
2618
2619 2012-02-24  Bruno Haible  <bruno@clisp.org>
2620
2621         atanl: Provide function definition on MSVC.
2622         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
2623         function pointer.
2624         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
2625
2626 2012-02-24  Bruno Haible  <bruno@clisp.org>
2627
2628         acosl: Provide function definition on MSVC.
2629         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
2630         function pointer.
2631         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
2632
2633 2012-02-24  Bruno Haible  <bruno@clisp.org>
2634
2635         asinl: Provide function definition on MSVC.
2636         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
2637         function pointer.
2638         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
2639
2640 2012-02-24  Bruno Haible  <bruno@clisp.org>
2641
2642         tanl: Provide function definition on MSVC.
2643         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
2644         function pointer.
2645         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
2646
2647 2012-02-24  Bruno Haible  <bruno@clisp.org>
2648
2649         cosl: Provide function definition on MSVC.
2650         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
2651         function pointer.
2652         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
2653
2654 2012-02-24  Bruno Haible  <bruno@clisp.org>
2655
2656         sinl: Provide function definition on MSVC.
2657         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
2658         function pointer.
2659         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
2660
2661 2012-02-24  Bruno Haible  <bruno@clisp.org>
2662
2663         logl: Provide function definition on MSVC.
2664         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
2665         function pointer.
2666         * lib/math.in.h (logl): Undefine if it does not exist as a function.
2667
2668 2012-02-24  Bruno Haible  <bruno@clisp.org>
2669
2670         expl: Provide function definition on MSVC.
2671         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
2672         function pointer.
2673         * lib/math.in.h (expl): Undefine if it does not exist as a function.
2674
2675 2012-02-24  Bruno Haible  <bruno@clisp.org>
2676
2677         sqrtl: Provide function definition on MSVC.
2678         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
2679         a function pointer.
2680         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
2681
2682 2012-02-24  Bruno Haible  <bruno@clisp.org>
2683
2684         ceill: Provide function definition on MSVC.
2685         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
2686         used as a function pointer.
2687         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
2688
2689 2012-02-24  Bruno Haible  <bruno@clisp.org>
2690
2691         floorl: Provide function definition on MSVC.
2692         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
2693         used as a function pointer.
2694         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
2695
2696 2012-02-24  Bruno Haible  <bruno@clisp.org>
2697
2698         ceilf: Provide function definition on MSVC.
2699         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
2700         used as a function pointer.
2701         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
2702
2703 2012-02-24  Bruno Haible  <bruno@clisp.org>
2704
2705         floorf: Provide function definition on MSVC.
2706         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
2707         used as a function pointer.
2708         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
2709
2710 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
2711
2712         stdnoreturn: new module
2713         This implements a replacement for C11's <stdnoreturn.h>.
2714         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
2715         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
2716         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
2717         * tests/test-stdnoreturn.c: New files.
2718
2719 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
2720
2721         regex: fix false multibyte matches in some regular expressions
2722         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
2723         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
2724         * lib/regex_internal.c (re_string_skip_chars):
2725         Fix miscomputation of remain_len that may cause incomplete
2726         multi-byte character and false match.
2727
2728 2012-02-24  Jim Meyering  <meyering@redhat.com>
2729
2730         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
2731         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
2732         uses with "==" *before* the call, e.g., 0 == strcmp (...)
2733         Remove now-unnecessary str''cmp obfuscation.
2734         Suggested by Akim Demaille.
2735
2736 2012-02-24  Bruno Haible  <bruno@clisp.org>
2737
2738         streq: Rename macro.
2739         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
2740         * NEWS: Mention the change.
2741         * lib/mbrtowc.c (mbrtowc): Update.
2742         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
2743         * lib/wcwidth.c (wcwidth): Update.
2744         Suggested by Akim Demaille and Jim Meyering.
2745
2746 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
2747
2748         regex: fix typo in definition of MIN
2749         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
2750         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
2751
2752 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
2753             Bruno Haible  <bruno@clisp.org>
2754
2755         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
2756         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
2757         entries into a stack-allocated buffer directly.
2758         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
2759
2760 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
2761             Bruno Haible  <bruno@clisp.org>
2762
2763         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
2764
2765          - There were several instances of this pattern:
2766
2767              for (;;) {
2768                n = acl (f, GETACLCNT, 0, NULL);
2769                [ allocate an array A of size N ]
2770                if (acl (f, GETACL, n, a) == n)
2771                  break;
2772              }
2773
2774            This loop might never terminate if some other process is constantly
2775            manipulating the file's ACL.  The loop should be rewritten to
2776            terminate.
2777
2778          - The acl (... GETACLNT ...) call is merely an optimization; its value
2779            is merely a hint as to how big to make the array.  A better
2780            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
2781            and just guess a reasonably-big size, growing the size and trying
2782            again if it's not large enough.  This guarantees termination, and
2783            saves a system call.
2784
2785         * lib/acl-internal.h: Include <limits.h>.
2786         (MIN, SIZE_MAX): New macros.
2787         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
2788         a stack-allocated buffer, and use malloc if it does not fit. Don't
2789         use GETACLCNT.
2790         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
2791
2792 2012-02-19  Bruno Haible  <bruno@clisp.org>
2793
2794         acl: Fix endless loop on Solaris with vxfs.
2795         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
2796         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
2797         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
2798         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
2799         * tests/test-sameacls.c (main)[Solaris]: Likewise.
2800         Reported by Bill Jones in
2801         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
2802
2803 2012-02-19  Bruno Haible  <bruno@clisp.org>
2804
2805         acl: Fix copy-acl test failure on Solaris 11 2011-11.
2806         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
2807         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
2808         that this function returns 0 in some more cases.
2809
2810 2012-02-19  Bruno Haible  <bruno@clisp.org>
2811
2812         acl: Update doc references.
2813         * doc/acl-resources.txt: Update links to Solaris documentation.
2814
2815 2012-02-19  Bruno Haible  <bruno@clisp.org>
2816
2817         Fix test failure in many locales on Solaris 11.
2818         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
2819         'tr' arguments.
2820         * tests/test-pipe-filter-ii1.c (main): Likewise.
2821         * build-aux/bootstrap (check_versions): Run 'tr' command with range
2822         expressions in the C locale.
2823         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
2824         * m4/host-os.m4 (gl_HOST_OS): Likewise.
2825
2826 2012-02-19  Bruno Haible  <bruno@clisp.org>
2827
2828         gnulib-tool: Improve usage message.
2829         * gnulib-tool (func_usage): Move doc of --help and --version to the
2830         section "Operation modes".
2831
2832 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
2833
2834         README-release: make it easier to execute commands
2835         * top/README-release: break commands out on to separate lines.
2836
2837 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
2838
2839         GNUmakefile: simplify detection of unconfigured trees
2840         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
2841         whether the tree make is being run from is already configured or
2842         not.  Related simplifications.
2843
2844 2012-02-13  Simon Josefsson  <simon@josefsson.org>
2845
2846         * gnulib-tool (func_usage): Document --help and --version.
2847
2848 2012-02-11  Jim Meyering  <meyering@redhat.com>
2849
2850         bootstrap: don't exit 0 upon gnulib-tool failure
2851         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
2852         its exit status, not 0.
2853
2854 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
2855
2856         README-release: various improvements
2857         * top/README-release: Give a command to push changes for the
2858         release.  Add "distcheck" to list of other pre-release checks.
2859         Fix instance of "make stable" which should be "make TYPE".
2860
2861 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
2862
2863         maint: replace FSF snail-mail addresses with URLs
2864         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
2865         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
2866         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
2867         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
2868         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
2869         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
2870         * lib/check-version.c, lib/check-version.h, lib/config.charset:
2871         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
2872         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
2873         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
2874         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
2875         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
2876         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
2877         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
2878         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
2879         * lib/glthread/thread.c, lib/glthread/thread.h:
2880         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
2881         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
2882         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
2883         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
2884         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
2885         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
2886         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
2887         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
2888         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
2889         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
2890         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
2891         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
2892         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
2893         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
2894         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
2895         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
2896         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
2897         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
2898         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
2899         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
2900         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
2901         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
2902         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
2903         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
2904         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
2905         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
2906         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
2907         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
2908         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
2909         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
2910         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
2911         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
2912         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
2913         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
2914         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
2915         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
2916         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
2917         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
2918         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
2919         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
2920         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
2921         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
2922         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
2923         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
2924         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
2925         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
2926         * tests/test-poll.c, tests/test-quotearg-simple.c:
2927         * tests/test-quotearg.c, tests/test-quotearg.h:
2928         * tests/test-round-ieee.c, tests/test-round1.c:
2929         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
2930         * tests/test-roundl-ieee.c, tests/test-roundl.c:
2931         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
2932         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
2933         * tests/test-strerror.c, tests/test-strerror_r.c:
2934         * tests/test-strsignal.c, tests/test-strverscmp.c:
2935         * tests/test-xmemdup0.c:
2936         Replace FSF snail mail addresses with URLs, as per GNU coding
2937         standards.  See glibc bug
2938         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
2939
2940 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
2941
2942         README-release: capitalize a word and split a line
2943         * top/README-release: Fix punctuation and spacing.
2944
2945 2012-02-08  Akim Demaille  <demaille@gostai.com>
2946
2947         fatal-signal: use C prototypes (with explicit void).
2948         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
2949         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
2950
2951 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
2952
2953         regex: spelling fix
2954         * lib/regexec.c: spelling fix
2955
2956         regex: rely on stdint.h for SIZE_MAX
2957         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
2958
2959 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
2960
2961         regex: merge glibc changes
2962
2963         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
2964         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
2965         (init_word_char): Work even if bitset words are not exactly 32 or
2966         64 bits wide.  Don't assume there are no padding bits.
2967         * lib/regex.c [_LIBC]: Do not include <config.h>.
2968         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
2969         and -Wtype-limits.
2970         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
2971         needless disagreement with glibc.  All uses changed.  Define it to
2972         1 only if _GNU_SOURCE, to match glibc.
2973         (_REG_RM_NAME): Remove; no longer needed, since the names in
2974         question are now all protected by __USE_GNU.
2975         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
2976         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
2977         * lib/regex_internal.h (MIN): New macro.
2978
2979         2012-01-03 Ulrich Drepper <drepper@gmail.com>
2980         * lib/regcomp.c (init_word_char): Optimize regex a bit.
2981
2982         2011-12-30 Jakub Jelinek <jakub@redhat.com>
2983         * lib/regex_internal.c (re_string_fetch_byte_case):
2984         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
2985         is miscompiled, and it turns out it is because of an incorrect
2986         attribute on re_string_fetch_byte_case.  Unlike
2987         re_string_peek_byte_case, this one is really not pure, it modifies
2988         memory (increments pstr->cur_idx), and with the pure attribute GCC
2989         assumed it doesn't and it cached the presumed value of
2990         regexp->cur_idx in a variable across the
2991          for (;; ++i)
2992            {
2993              if (i >= BRACKET_NAME_BUF_SIZE)
2994                return REG_EBRACK;
2995              if (token->type == OP_OPEN_CHAR_CLASS)
2996                ch = re_string_fetch_byte_case (regexp);
2997              else
2998                ch = re_string_fetch_byte (regexp);
2999              if (re_string_eoi(regexp))
3000                return REG_EBRACK;
3001              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
3002                break;
3003              elem->opr.name[i] = ch;
3004            }
3005
3006         2011-11-29 Andreas Schwab <schwab@redhat.com>
3007         * lib/regcomp.c (build_equiv_class):
3008         Fix access after end of search string in regex matcher.
3009
3010         2011-11-12 Ulrich Drepper <drepper@redhat.com>
3011         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
3012
3013         2011-10-12 Ulrich Drepper <drepper@redhat.com>
3014         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
3015
3016         2011-10-11 Ulrich Drepper <drepper@redhat.com>
3017         * lib/regcomp.c (parse_branch, parse_sub_exp):
3018         More regex memory leak fixes and tests.
3019         (parse_sub_exp, parse_bracket_exp):
3020         Fix memory leak for some invalid regular expressions.
3021
3022         2011-05-28 Ulrich Drepper <drepper@gmail.com>
3023         * lib/regex_internal.c, lib/regexec.c:
3024         Fix unnecessary overallocation due to incomplete character.  When
3025         incomplete characters are found at the end of a string the code
3026         ran amok and allocated lots of memory.  Stricter limits are now in
3027         place.
3028
3029         2011-05-20 Reuben Thomas <rrt@sc3d.org>
3030         * lib/regex.h: Update documentation.
3031
3032         2011-05-16 Aharon Robbins <arnold@skeeve.com>
3033         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
3034
3035         2010-05-05 Andreas Schwab <schwab@redhat.com>
3036         * lib/regexec.c (find_collation_sequence_value):
3037         Fix lookup of collation sequence value during regexp matching.
3038
3039         2010-01-22 Ulrich Drepper <drepper@redhat.com>
3040         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
3041
3042         2008-01-16 Ulrich Drepper <drepper@redhat.com>
3043         * lib/regex.h: Cleanup namespace.
3044
3045         2007-11-26 Ulrich Drepper <drepper@redhat.com>
3046         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
3047
3048         2007-08-26 Ulrich Drepper <drepper@redhat.com>
3049         * lib/regex_internal.h: Prevent some declarations and definitions
3050         to be seen when used in tests.
3051
3052         2005-05-06 Ulrich Drepper <drepper@redhat.com>
3053         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
3054         __libc_lock_* macros if not _LIBC.
3055         (struct re_dfa_t): Add lock.
3056
3057 2012-02-07  Eric Blake  <eblake@redhat.com>
3058
3059         maint.mk: also prohibit lower-case @var@
3060         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
3061         lower case, like @top_srcdir@.
3062
3063 2012-02-04  Eric Blake  <eblake@redhat.com>
3064
3065         canonicalize: avoid uninitialized memory use
3066         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
3067         random '/' left in dest.
3068         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
3069
3070 2012-02-04  Bruno Haible  <bruno@clisp.org>
3071
3072         isatty: Fix test failure of ptsname_r on native Windows.
3073         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
3074         and don't set errno.
3075         (isatty): Test first whether fd is valid. Set errno when returning 0.
3076
3077 2012-02-04  Bruno Haible  <bruno@clisp.org>
3078
3079         spawn-pipe tests: Fix a NULL program name in a diagnostic.
3080         * tests/test-spawn-pipe-main.c: Include progname.h.
3081         (main): Invoke set_program_name.
3082         * modules/spawn-pipe-tests (Depends-on): Add progname.
3083
3084         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
3085         * tests/test-nonblocking-socket-main.c: Include progname.h.
3086         (main): Invoke set_program_name.
3087         * modules/nonblocking-socket-tests (Depends-on): Add progname.
3088
3089         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
3090         * tests/test-nonblocking-pipe-main.c: Include progname.h.
3091         (main): Invoke set_program_name.
3092         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
3093
3094 2012-02-04  Eric Blake  <eblake@redhat.com>
3095
3096         canonicalize-lgpl: fix // handling
3097         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
3098
3099         canonicalize: fix // handling
3100         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
3101         /// to //, since only // is special.
3102
3103 2012-02-04  Bruno Haible  <bruno@clisp.org>
3104
3105         ioctl: Fix test failure on native Windows.
3106         * lib/ioctl.c: Include msvc-nothrow.h.
3107         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
3108
3109 2012-02-04  Bruno Haible  <bruno@clisp.org>
3110
3111         fsync: Avoid test failure on native Windows.
3112         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
3113         read-only.
3114
3115 2012-02-04  Bruno Haible  <bruno@clisp.org>
3116
3117         sys_select: Avoid syntax error on OpenBSD 5.0.
3118         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
3119         currently being included, just include the system's <sys/select.h>.
3120
3121 2012-02-04  Bruno Haible  <bruno@clisp.org>
3122
3123         sys_select: Avoid syntax error on OpenBSD 5.0.
3124         * lib/sys_select.in.h: Include <signal.h> only after the include_next
3125         <sys/select.h>, not before.
3126         Reported by Jiri B <jirib@devio.us>.
3127
3128 2012-02-04  Bruno Haible  <bruno@clisp.org>
3129
3130         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
3131         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
3132         global variables.
3133         * tests/test-get-rusage-data.c (main): Likewise.
3134         Reported by Jim Meyering.
3135
3136 2012-02-04  Bruno Haible  <bruno@clisp.org>
3137
3138         stdioext: Fix last commit.
3139         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
3140
3141 2012-02-03  Bruno Haible  <bruno@clisp.org>
3142
3143         stdioext: Add tentative support for Plan9.
3144         * lib/stdio-impl.h: Include <errno.h>.
3145         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
3146         * lib/freadable.c (freadable): Likewise.
3147         * lib/fwritable.c (fwritable): Likewise.
3148         * lib/fbufmode.c (fbufmode): Likewise.
3149         * lib/freading.c (freading): Likewise.
3150         * lib/fwriting.c (fwriting): Likewise.
3151         * lib/freadptr.c (freadptr): Likewise.
3152         * lib/freadseek.c (freadptrinc): Likewise.
3153         * lib/freadahead.c (freadahead): Likewise.
3154         * lib/fpurge.c (fpurge): Likewise.
3155         * lib/fseeko.c (rpl_fseeko): Likewise.
3156         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
3157         Reported by Jens Staal <staal1978@gmail.com>.
3158
3159 2012-02-02  Jim Meyering  <meyering@redhat.com>
3160
3161         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
3162         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
3163         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
3164         not even to try to add the attribute.  Instead, add a pragma to suppress
3165         the suggestion/warning.
3166
3167 2012-01-31  Karl Berry  <karl@gnu.org>
3168
3169         setstate doc: typo.
3170         * doc/posix-functions/setstate.texi (setstate): { not (.
3171
3172 2012-01-31  Bruno Haible  <bruno@clisp.org>
3173
3174         popen: Make more robust on Windows.
3175         * lib/popen.c: On native Windows, use the _popen based code even if
3176         HAVE_POPEN is set.
3177         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
3178         environment variable on native Windows.
3179
3180 2012-01-30  Bruno Haible  <bruno@clisp.org>
3181
3182         pclose: Fix typo.
3183         * lib/stdio.in.h (pclose): Fix typo in warning message.
3184
3185 2012-01-30  Bruno Haible  <bruno@clisp.org>
3186
3187         doc about getlogin_r, setstate.
3188         * doc/posix-functions/getlogin_r.texi: List the incompatible
3189         declaration problem under "not fixed by gnulib".
3190         * doc/posix-functions/setstate.texi: Mention incompatible declaration
3191         problem on Solaris 11 and other platforms.
3192
3193 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
3194             Bruno Haible  <bruno@clisp.org>
3195
3196         poll tests: Make test more robust.
3197         * tests/test-poll.c: Include macros.h.
3198         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
3199         return value of various I/O operations.
3200         * modules/poll-tests (Files): Add tests/macros.h.
3201
3202 2012-01-30  Bruno Haible  <bruno@clisp.org>
3203
3204         sys_stat: Fix support for mingw64 and MSVC.
3205         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
3206         header files already do it.
3207         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
3208         stat itself.
3209         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
3210
3211 2012-01-30  Bruno Haible  <bruno@clisp.org>
3212
3213         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
3214         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
3215         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
3216
3217 2012-01-29  Bruno Haible  <bruno@clisp.org>
3218
3219         quotearg: Fix test failure on MacOS X 10.5.
3220         * tests/test-quotearg-simple.c: Include localcharset.h.
3221         (main): If the locale encoding is not ASCII, bypass the tests of
3222         locale_quoting_style and clocale_quoting_style.
3223         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
3224
3225 2012-01-29  Jim Meyering  <meyering@redhat.com>
3226
3227         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
3228         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
3229         detect uses of canonicalize_file_name.
3230
3231 2012-01-28  Bruno Haible  <bruno@clisp.org>
3232
3233         test-framework-sh: Fix test failure with AIX 7.1 diff.
3234         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
3235         in column 1, like 'diff -c' does.
3236         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
3237         whether 'diff -u' is used. Instead, test whether the output contains
3238         some '@' character.
3239
3240 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
3241
3242         strtoimax: eliminate need for stdint.h, inttypes.h checks
3243         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
3244         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
3245         the prerequisites for a recently-introduced strtoimax test.
3246         I guess this might cause strtoimax to be replaced when not
3247         strictly necessary on older hosts, but this shouldn't introduce
3248         any bugs and it should make Emacs 'configure' faster on typical
3249         modern hosts.  Problem discovered when importing the latest gnulib
3250         to an Emacs test version.
3251         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
3252
3253 2012-01-28  Bruno Haible  <bruno@clisp.org>
3254
3255         sys_time: Override 'struct timeval' on some native Windows platforms.
3256         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
3257         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
3258         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
3259         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
3260         needs to be overridden.
3261         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
3262         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
3263         * tests/test-sys_select.c: Check that the tv_sec member has the same
3264         size as a 'time_t'.
3265         * tests/test-sys_time.c: Likewise.
3266         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
3267         is set, set also REPLACE_GETTIMEOFDAY.
3268         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
3269         convert the resulting 'struct timeval' before returning.
3270         * lib/select.c: Include <sys/time.h>.
3271         (select, timeval): Undefine at the right place.
3272         * modules/select (Depends-on): Add sys_time.
3273         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
3274         some Windows platforms.
3275         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
3276
3277 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
3278
3279         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
3280         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
3281         an integer.
3282         * lib/fcntl.c (dupfd): Likewise.
3283         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
3284
3285 2012-01-28  Bruno Haible  <bruno@clisp.org>
3286
3287         fcntl: Avoid compilation error on native Windows.
3288         * modules/fcntl (Depends-on): Add 'close'.
3289
3290 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
3291
3292         select, poll, isatty: Avoid warnings on x86_64 mingw64.
3293         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
3294         pointer to an integer.
3295         * lib/poll.c (IsConsoleHandle): Likewise.
3296         * lib/isatty.c (IsConsoleHandle): Likewise.
3297
3298 2012-01-28  Jim Meyering  <meyering@redhat.com>
3299
3300         doc: clarify README-release
3301         * top/README-release: Clarify: you should make a point to have
3302         the latest stable versions of build tools in your PATH, and the
3303         reference to buildreq is solely for its list of tool names, not
3304         for its minimal-functional version numbers.
3305         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
3306
3307         maint.mk: use more readable (yet functionally equivalent) quoting
3308         It is common to quote a single quote in a single quoted string like
3309         this:  '...'\''...'.  Unless you know the idiom, that looks like
3310         gibberish, so prefer to double-quote the string when possible.
3311         Then you can use a more readable, lone single quote: "...'..."
3312         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
3313         "don't" is more readable than the equivalent 'don'\''t'.
3314         (sc_cast_of_x_alloc_return_value): Likewise.
3315         (sc_cast_of_alloca_return_value): Likewise.
3316         (sc_makefile_path_separator_check): Similar: use ":" in '...',
3317         rather than '\'':'\''.
3318
3319 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
3320
3321         stdalign: relax _Alignof and tighten _Alignas test
3322         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
3323         as it was too strict: alignof must divide offsetof, but it need
3324         not equal offsetof.  Inspired by Joseph S. Myers's comment
3325         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
3326         Conversely, tighten the _Alignas test a bit, as the resulting
3327         alignment must be exactly 8.
3328
3329 2012-01-27  Bruno Haible  <bruno@clisp.org>
3330
3331         stdalign: Document the last change.
3332         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
3333
3334 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
3335
3336         stdalign: check that alignof and offsetof are consistent
3337         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
3338         Problem reported for gnulib by Richard W.M. Jones in
3339         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
3340
3341 2012-01-27  Jim Meyering  <meyering@redhat.com>
3342
3343         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
3344         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
3345         convert a sequence with gaps to the minimal containing range.
3346         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
3347         * tests/test-update-copyright.sh: Test for this.
3348         The FSF confirmed it is ok to do this, assuming there is at
3349         least one significant change per year in the affected range:
3350         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
3351
3352 2012-01-26  Bruno Haible  <bruno@clisp.org>
3353
3354         pipe2: refine doc about thread-safety
3355         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
3356         multithread-safety problem.
3357         * doc/glibc-functions/accept4.texi: Likewise.
3358
3359 2012-01-26  Bruno Haible  <bruno@clisp.org>
3360
3361         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
3362         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
3363         In the test program, include <fcntl.h>, for O_RDONLY.
3364
3365 2012-01-26  Eric Blake  <eblake@redhat.com>
3366
3367         pipe2: document lack of thread-safety in replacement
3368         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
3369         issue in replacement.
3370         * doc/glibc-functions/accept4.texi (accept4): Likewise.
3371         Based on a report by Eric Wong.
3372
3373 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
3374             Bruno Haible  <bruno@clisp.org>
3375
3376         malloca: Avoid warnings on x86_64 mingw64.
3377         * lib/malloca.c: Include <stdint.h>.
3378         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
3379         * modules/malloca (Depends-on): Add stdint.
3380         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
3381
3382 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
3383
3384         obstack: remove __STDC__ conditionals
3385         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
3386         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
3387         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
3388         m4/include_next.m4 as the only gnulib-maintained places that still
3389         refer to __STDC__.
3390
3391 2012-01-24  Bruno Haible  <bruno@clisp.org>
3392
3393         havelib: Modern quoting.
3394         * build-aux/config.rpath: Quote 'like this', not `like this', as per
3395         the recent change to the GNU coding standards.
3396
3397 2012-01-24  Bruno Haible  <bruno@clisp.org>
3398
3399         stdint: Improve support for Android.
3400         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
3401         Reported by Simon Josefsson <simon@josefsson.org>.
3402
3403 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
3404
3405         doc: omit trailing empty lines from INSTALL etc.
3406         * doc/Makefile (INSTALL): Omit trailing empty lines.
3407         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
3408         omit trailing empty lines.  This simplifies the build procedure.
3409
3410 2012-01-23  Jim Meyering  <meyering@redhat.com>
3411
3412         tests: avoid spurious warnings about gl_sockets_startup
3413         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
3414         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
3415         reporting a "statement with no effect".
3416         * tests/test-accept.c (main): Mark as "(void)".
3417         * tests/test-accept4.c (main): Likewise.
3418         * tests/test-bind.c (main): Likewise.
3419         * tests/test-connect.c (main): Likewise.
3420         * tests/test-getpeername.c (main): Likewise.
3421         * tests/test-getsockname.c (main): Likewise.
3422         * tests/test-getsockopt.c (main): Likewise.
3423         * tests/test-listen.c (main): Likewise.
3424         * tests/test-recv.c (main): Likewise.
3425         * tests/test-recvfrom.c (main): Likewise.
3426         * tests/test-send.c (main): Likewise.
3427         * tests/test-sendto.c (main): Likewise.
3428         * tests/test-setsockopt.c (main): Likewise.
3429         * tests/test-shutdown.c (main): Likewise.
3430
3431 2012-01-21  Bruno Haible  <bruno@clisp.org>
3432
3433         locale-fr.m4: Fix for Android.
3434         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
3435         failure of the test program on Bionic libc.
3436
3437 2012-01-21  Jim Meyering  <meyering@redhat.com>
3438
3439         bootstrap: fail when bootstrap_post_import_hook fails
3440         Otherwise, it's far too easy to miss diagnostics emitted
3441         between gnulib-tool's output and that of running configure.
3442         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
3443
3444 2012-01-17  Jim Meyering  <meyering@redhat.com>
3445
3446         maint: enable sc_trailing_blank
3447         * build-aux/pmccabe.css: Remove trailing blanks.
3448         * doc/acl-cygwin.txt: Likewise.
3449         * doc/gnu-oids.texi: Likewise
3450         * cfg.mk: Enable sc_trailing_blank.
3451         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
3452
3453 2012-01-17  Jim Meyering  <meyering@redhat.com>
3454
3455         maint: enable sc_prohibit_openat_without_use
3456         * cfg.mk: Enable sc_prohibit_openat_without_use.
3457         Exempt lib/selinux-at.c.
3458
3459 2012-01-17  Jim Meyering  <meyering@redhat.com>
3460
3461         maint: enable sc_prohibit_cloexec_without_use
3462         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
3463         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
3464
3465 2012-01-17  Jim Meyering  <meyering@redhat.com>
3466
3467         maint: enable sc_prohibit_intprops_without_use
3468         * cfg.mk: Enable sc_prohibit_intprops_without_use
3469         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
3470
3471 2012-01-17  Jim Meyering  <meyering@redhat.com>
3472
3473         maint: enable sc_prohibit_hash_pjw_without_use
3474         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
3475         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
3476         to match any use of \<hash_pjw\>, i.e., not necessarily with a
3477         following " (".
3478
3479 2012-01-17  Jim Meyering  <meyering@redhat.com>
3480
3481         maint: enable double-word-prohibiting rule
3482         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
3483         Exempt three files.
3484
3485 2012-01-17  Jim Meyering  <meyering@redhat.com>
3486
3487         maint: remove empty lines at EOF, but excluding modules/*
3488         Apply syntax rules at home as well as abroad.  Most changes
3489         were induced by running this:
3490           make srcdir=. _build-aux=build-aux -f top/maint.mk \
3491             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
3492             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
3493         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
3494         Exempt modules/* and two binary files.
3495         Also exempt doc/INSTALL*, per request from Bruno Haible.
3496         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
3497         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
3498         * doc/Copyright/request-assign.future: Likewise.
3499         * doc/Copyright/request-disclaim.changes: Likewise.
3500         * doc/INSTALL: Likewise.
3501         * doc/INSTALL.ISO: Likewise.
3502         * doc/INSTALL.UTF-8: Likewise.
3503         * doc/acl-cygwin.txt: Likewise.
3504         * doc/acl-resources.txt: Likewise.
3505         * doc/fdl-1.2.texi: Likewise.
3506         * doc/fdl-1.3.texi: Likewise.
3507         * doc/fdl.texi: Likewise.
3508         * lib/argp-pin.c: Likewise.
3509         * lib/round.c: Likewise.
3510         * lib/unicase/u16-totitle.c: Likewise.
3511         * lib/unictype/block_test.c: Likewise.
3512         * lib/uninorm/canonical-decomposition.c: Likewise.
3513         * m4/README: Likewise.
3514         * m4/relocatable-lib.m4: Likewise.
3515         * tests/test-isnand-nolibm.c: Likewise.
3516         * tests/test-isnand.c: Likewise.
3517         * tests/uninorm/NormalizationTest.txt: Likewise.
3518
3519 2012-01-17  Jim Meyering  <meyering@redhat.com>
3520
3521         maint: add framework to run syntax-check rules against gnulib sources
3522         * cfg.mk: New file, to disable all currently-failing tests.
3523         We'll enable them one by one, as they are made to pass.
3524         * Makefile (sc_maint): New rule.
3525
3526 2012-01-21  Bruno Haible  <bruno@clisp.org>
3527
3528         stdint: Add support for Android.
3529         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
3530         include the system's <stdint.h>.
3531         Reported by Simon Josefsson <simon@josefsson.org>.
3532
3533 2012-01-19  Jim Meyering  <meyering@redhat.com>
3534
3535         bootstrap: add bootstrap_post_import_hook
3536         Bison does still need something like the gnulib_mk_hook whose
3537         invocation I had to remove along with slurp in commit 767ccd40.
3538         Technically, we could get along without it, but doing so would
3539         have required living with a warning and a mandatory post-bootstrap
3540         automake rerun.
3541         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
3542         (bootstrap_post_import_hook): New function.
3543         Invoke it after gnulib-tool --import and before autoreconf.
3544
3545 2012-01-18  Jim Meyering  <meyering@redhat.com>
3546
3547         gitlog-to-changelog: don't use "no_"-prefixed variable name
3548         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
3549         to enable both --cluster and --no-cluster.  Change variable name,
3550         s/\$no_cluster/$cluster/, and reverse usage to match.
3551
3552         gitlog-to-changelog: use "||", not "or" in expressions
3553         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
3554         expressions.
3555
3556 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
3557
3558         gitlog-to-changelog: new option --no-cluster
3559         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
3560         clustering of adjacent commit messages.
3561
3562 2012-01-17  Jim Meyering  <meyering@redhat.com>
3563
3564         maint: spell file systems with two words, not one
3565         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
3566         two words, not one.
3567
3568 2012-01-16  Jim Meyering  <meyering@redhat.com>
3569
3570         bootstrap: add a FIXME comment to ensure we eventually remove the hack
3571         * build-aux/bootstrap (gnulib_tool_options): Add comment.
3572
3573 2012-01-16  Eric Blake  <eblake@redhat.com>
3574
3575         bootstrap: cater to autoconf 2.59
3576         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
3577         is not available.
3578
3579         bootstrap: properly check for libtool
3580         * build-aux/bootstrap (libtoolize): Also run libtool when older
3581         usage is detected.
3582
3583 2012-01-15  Bruno Haible  <bruno@clisp.org>
3584
3585         Improve support for MSVC 9.
3586         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
3587         clashes on MSVC.
3588         * lib/fcntl.in.h: Likewise.
3589         * lib/stdlib.in.h: Likewise.
3590         * lib/sys_stat.in.h: Likewise.
3591
3592 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
3593
3594         gnupload: we hold the master copy of this script now
3595         For motivation and more information, see:
3596         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
3597         * build-aux/gnupload: Make it clear in the heading comments that the
3598         master copy of this file is maintained by gnulib.  Since we are at
3599         it, bump its copyright year and ...
3600         ($scriptversion): ... the date in its version.
3601         ($usage): Patches and bug reports should be sent to the gnulib list,
3602         not the automake one.
3603         * config/srclist.txt: Don't try to sync 'gnupload' from automake
3604         anymore.
3605
3606 2012-01-15  Bruno Haible  <bruno@clisp.org>
3607
3608         Fix module 'random'.
3609         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
3610         initstate, setstate are declared.
3611
3612 2012-01-14  Bruno Haible  <bruno@clisp.org>
3613
3614         Tests for module 'random'.
3615         * modules/random-tests: New file.
3616         * tests/test-random.c: New file, based on tests/test-random_r.c.
3617
3618         New module 'random'.
3619         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
3620         declarations.
3621         * lib/random.c: New file, based on glibc/stdlib/random.c.
3622         * m4/random.m4: New file.
3623         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
3624         HAVE_RANDOM.
3625         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
3626         * modules/random: New file.
3627         * config/srclist.txt: Add an entry for random.c.
3628         * doc/posix-functions/random.texi: Mention the 'random' module.
3629         * doc/posix-functions/initstate.texi: Likewise.
3630         * doc/posix-functions/setstate.texi: Likewise.
3631         * doc/posix-functions/srandom.texi: Likewise.
3632
3633 2012-01-12  Bruno Haible  <bruno@clisp.org>
3634
3635         random_r: Use common idioms.
3636         * lib/random_r.c: Include <stdlib.h> first.
3637
3638         random_r: Override incompatible API on AIX, OSF/1.
3639         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
3640         Override the system function if REPLACE_RANDOM_R is 1.
3641         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
3642         and OSF/1, set REPLACE_RANDOM_R.
3643         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
3644         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
3645         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
3646         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
3647         * doc/glibc-functions/random_r.texi: Likewise.
3648         * doc/glibc-functions/setstate_r.texi: Likewise.
3649
3650         random_r: Support for MSVC 9.
3651         * lib/random_r.c: Include stdint.h, not inttypes.h.
3652
3653 2012-01-12  Eric Blake  <eblake@redhat.com>
3654
3655         inet_ntop: guard extra work by IF_LINT
3656         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
3657         better code generation when not checking for warnings.
3658         Suggested by Paul Eggert and Jim Meyering.
3659
3660         strptime: fix regression on mingw
3661         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
3662         Fix regression.  Reported by Bruno Haible.
3663
3664 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
3665             Bruno Haible  <bruno@clisp.org>
3666
3667         copy-file: add error-code-returning variant.
3668         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
3669         (qcopy_file_preserving): New declaration.
3670         * lib/copy-file.c (qcopy_file_preserving): Renamed from
3671         copy_file_preserving. Change return type to 'int'. Don't emit an error
3672         message here.
3673         (copy_file_preserving): New function.
3674         * tests/test-copy-file.c: Include <stdlib.h>.
3675         (main): Test qcopy_file_preserving if the environment variable
3676         NO_STDERR_OUTPUT is set.
3677         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
3678         with NO_STDERR_OUTPUT
3679         * tests/test-copy-file-2.sh: Likewise.
3680
3681 2012-01-10  Bruno Haible  <bruno@clisp.org>
3682
3683         copy-file: Use 'quote' module consistently.
3684         * lib/copy-file.c (copy_file_preserving): Use quote().
3685
3686         copy-file: Refactor.
3687         * lib/copy-file.c: Include quote.h.
3688         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
3689         message here.
3690         * modules/copy-file (Depends-on): Add quote.
3691
3692         acl: Export qcopy_acl.
3693         * lib/acl.h (qcopy_acl): New declaration.
3694         * lib/copy-acl.c (qcopy_acl): Make non-static.
3695
3696         acl: Rename a local variable.
3697         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
3698
3699         acl: Align return values of copy_acl and qcopy_acl.
3700         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
3701         maybe < -1.
3702
3703 2012-01-11  Eric Blake  <eblake@redhat.com>
3704
3705         strptime: silence gcc warnings
3706         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
3707         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
3708         Reported by Daniel P. Berrange.
3709
3710         inet_ntop: silence gcc warning
3711         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
3712         Reported by Daniel P. Berrange.
3713
3714 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
3715
3716         getloadavg test: skip the test on GNU/Linux without /proc mounted
3717         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
3718         file.  When /proc is not mounted, it always fails with ENOENT.
3719         * tests/test-getloadavg.c (main): Treat ENOENT return code from
3720         getloadavg(3) the same way as ENOSYS and ENOTSUP.
3721
3722 2012-01-10  Bruno Haible  <bruno@clisp.org>
3723
3724         regex: Avoid link error on MSVC 9.
3725         * modules/regex (Depends-on): Add wctype.
3726
3727 2012-01-10  Bruno Haible  <bruno@clisp.org>
3728
3729         doc: Mention --with-tests option.
3730         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
3731         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
3732         --with-tests.
3733         Reported by Reuben Thomas.
3734
3735 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
3736
3737         users.txt: order package names lexicographically.
3738         * users.txt: Order package names lexicographically.
3739
3740 2012-01-10  Jim Meyering  <meyering@redhat.com>
3741
3742         maint.mk: fix description in comment
3743         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
3744
3745         ignore-value: remove deprecated ignore_ptr function
3746         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
3747         * NEWS: Note this.
3748
3749 2012-01-09  Jim Meyering  <meyering@redhat.com>
3750
3751         test-init.sh: avoid a subshell
3752         * tests/test-init.sh: Remove protective subshell.
3753         Suggested by Bernhard Voelker.  While a subshell is normally
3754         required to protect against older shells (Solaris, FreeBSD) that
3755         warn about a missing program before performing redirection, the
3756         shell-selection tests performed by init.sh probably exclude any
3757         offending shell.
3758
3759 2012-01-08  Bruno Haible  <bruno@clisp.org>
3760
3761         setlocale tests: Avoid test failure on Solaris 11 2011-11.
3762         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
3763         variable.
3764
3765 2012-01-08  Bruno Haible  <bruno@clisp.org>
3766
3767         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
3768         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
3769         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
3770         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
3771         macro.
3772         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
3773         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
3774         * lib/spawn_faction_addopen.c: Add workaround implementation if
3775         HAVE_WORKING_POSIX_SPAWN.
3776         * modules/spawn (Makefile): Substitute
3777         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
3778         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
3779         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
3780         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
3781         (Depends-on): Update conditions.
3782         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
3783         the Solaris 11 bug.
3784
3785 2012-01-08  Bruno Haible  <bruno@clisp.org>
3786
3787         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
3788         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
3789         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
3790         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
3791         macro.
3792         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
3793         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
3794         * lib/spawn_faction_adddup2.c: Add workaround implementation if
3795         HAVE_WORKING_POSIX_SPAWN.
3796         * modules/spawn (Makefile): Substitute
3797         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
3798         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
3799         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
3800         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
3801         (Depends-on): Update conditions.
3802         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
3803         the Solaris 11 bug.
3804
3805 2012-01-08  Bruno Haible  <bruno@clisp.org>
3806
3807         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
3808         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
3809         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
3810         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
3811         HAVE_WORKING_POSIX_SPAWN.
3812         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
3813         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
3814         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
3815         * lib/spawn_faction_addclose.c: Add workaround implementation if
3816         HAVE_WORKING_POSIX_SPAWN.
3817         * modules/spawn (Makefile): Substitute
3818         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
3819         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
3820         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
3821         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
3822         (Depends-on): Update conditions.
3823         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
3824         the Solaris 11 bug.
3825
3826 2012-01-08  Bruno Haible  <bruno@clisp.org>
3827
3828         doc: Update for Solaris 11 2011-11.
3829         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
3830         * m4/printf.m4: Update comments.
3831
3832 2012-01-08  Bruno Haible  <bruno@clisp.org>
3833
3834         mktime: Avoid compilation error on Solaris 11.
3835         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
3836
3837 2012-01-08  Bruno Haible  <bruno@clisp.org>
3838
3839         doc: Small fix.
3840         * doc/posix-headers/nl_types.texi: Correct platforms list.
3841
3842 2012-01-08  Simon Josefsson  <simon@josefsson.org>
3843
3844         Add lgpl-3.0 module.
3845         * MODULES.html.sh (Support for building documentation): Add
3846         lgpl-3.0.
3847         * modules/lgpl-3.0: New file.
3848
3849 2012-01-08  Jim Meyering  <meyering@redhat.com>
3850
3851         select.c: indent with spaces, not TABs
3852         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
3853
3854 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
3855
3856         quotearg: do not use grave accent for left quote
3857         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
3858         locale_quoting_style.
3859         (quotearg_buffer_restyled): Fix example.
3860         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
3861
3862 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
3863
3864         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
3865         Most programs do not have translation catalogs for English and much
3866         less separate catalogs for British and American English.  Drop the
3867         suggestion to translators about these two, and provide it
3868         automatically for Unicode locales.  Like most programs, even those
3869         using American English, we use single quotation marks.  This conflicts
3870         with the American typographic convention, but works better when you
3871         cite the entire error message within double quotes.  It also tries not
3872         to clash with established practice and with what non-gnulib programs
3873         will usually do.
3874         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
3875         using an UTF-8 or GB-18030 locale.  The list of other locales with
3876         quotes was provided by Bruno Haible.
3877         (quotearg_buffer_restyled): Adjust instructions to translators.
3878         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
3879         text, since this would be wrong when using Unicode.
3880         * modules/quotearg: Depend on c-strcaseeq.
3881
3882 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
3883
3884         quotearg: fix Wikipedia link
3885         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
3886
3887 2012-01-07  Simon Josefsson  <simon@josefsson.org>
3888
3889         Fix for mingw with MSVC9.
3890         * m4/ld-version-script.m4: Check that compiler rejects version
3891         scripts with syntax errors.  Reported by Bruno Haible
3892         <bruno@clisp.org>.
3893
3894 2012-01-06  Bruno Haible  <bruno@clisp.org>
3895
3896         Talk about "native Windows API", not "Woe32".
3897         * lib/accept4.c: Update comments to mention native Windows.
3898         * lib/execute.c: Likewise.
3899         * lib/fatal-signal.c: Likewise.
3900         * lib/localcharset.c: Likewise.
3901         * lib/nanosleep.c: Likewise.
3902         * lib/nl_langinfo.c: Likewise.
3903         * lib/pclose.c: Likewise.
3904         * lib/pipe-filter-gi.c: Likewise.
3905         * lib/pipe-filter-ii.c: Likewise.
3906         * lib/pipe.c: Likewise.
3907         * lib/pipe2.c: Likewise.
3908         * lib/popen.c: Likewise.
3909         * lib/progreloc.c: Likewise.
3910         * lib/relocatable.c: Likewise.
3911         * lib/sigaction.c: Likewise.
3912         * lib/sigprocmask.c: Likewise.
3913         * lib/spawn-pipe.h: Likewise.
3914         * lib/spawn-pipe.c: Likewise.
3915         * lib/spawni.c: Likewise.
3916         * lib/stat-time.h: Likewise.
3917         * lib/w32spawn.h: Likewise.
3918         * tests/test-isatty.c: Likewise.
3919         * lib/config.charset: More comments.
3920         * doc/gnulib-intro.texi: Mention native Windows.
3921         * doc/posix-functions/_Exit_C99.texi: Likewise.
3922         * doc/posix-headers/fcntl.texi: Likewise.
3923
3924 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
3925
3926         argp: Avoid crash if translator uses % characters in a translation.
3927         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
3928         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
3929
3930 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
3931
3932         doc: C11 and C++11 are now official
3933         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
3934         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
3935         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
3936         * modules/stdalign:
3937         Replace references to draft C1X to C11, and to draft C++0X to C++11.
3938
3939 2012-01-06  Bruno Haible  <bruno@clisp.org>
3940
3941         uc-is-grapheme-break tests: Tweak.
3942         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
3943         message.
3944
3945 2012-01-06  Bruno Haible  <bruno@clisp.org>
3946
3947         test-init.sh: correct the test for diff -u
3948         * tests/test-init.sh: Also redirect stdout to /dev/null.
3949
3950 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
3951
3952         Use ', not `, for quoting output.
3953         * build-aux/announce-gen (usage, sizes, print_news_deltas)
3954         (print_changelog_deltas, get_tool_versions, main program):
3955         * build-aux/git-version-gen:
3956         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
3957         * build-aux/move-if-change (help):
3958         * build-aux/useless-if-before-free (usage, main program):
3959         * check-module (parse_module_file, usage)
3960         (find_included_lib_files, check_module):
3961         * lib/argmatch.c (main) [TEST]:
3962         * lib/argp-help.c (_help):
3963         * lib/getopt1.c (main) [TEST]:
3964         * lib/git-merge-changelog.c (usage):
3965         * lib/xstrtol-error.c (xstrtol_error):
3966         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
3967         * m4/argz.m4 (gl_FUNC_ARGZ):
3968         * m4/bison.m4 (gl_BISON):
3969         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
3970         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
3971         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
3972         * m4/fpending.m4 (gl_PREREQ_FPENDING):
3973         * m4/gc-random.m4 (gl_GC_RANDOM):
3974         * m4/intl.m4 (gt_CHECK_DECL):
3975         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
3976         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
3977         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
3978         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
3979         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
3980         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
3981         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
3982         * tests/test-dirname.c (main):
3983         * tests/test-getpass.c (main):
3984         * tests/test-iconvme.c (main):
3985         * tests/test-parse-datetime.c (LOG):
3986         * tests/test-xstrtoimax.sh:
3987         * tests/test-xstrtol.sh:
3988         * tests/test-xstrtoll.sh:
3989         * tests/test-xstrtoumax.sh:
3990         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
3991         * top/GNUmakefile (abort-due-to-no-makefile):
3992         Quote 'like this', not `like this', as per the recent change to
3993         the GNU coding standards.
3994
3995 2012-01-05  Bruno Haible  <bruno@clisp.org>
3996
3997         strtoimax: Don't force a replacement on systems where intmax_t is int.
3998         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
3999         'intmax_t' is not larger than 'int'.
4000         Reported by Pádraig Brady <P@draigBrady.com>.
4001
4002 2012-01-05  Bruno Haible  <bruno@clisp.org>
4003
4004         doc: Mention NetBSD bugs.
4005         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
4006         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
4007
4008 2012-01-05  Bruno Haible  <bruno@clisp.org>
4009
4010         strtoumax tests: Enhance tests.
4011         * tests/test-strtoumax.c (main): Add tests for large values.
4012
4013 2012-01-05  Bruno Haible  <bruno@clisp.org>
4014
4015         strtoimax: Work around AIX 5.1 bug.
4016         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
4017         definition.
4018         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
4019         Set HAVE_STRTOIMAX.
4020         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
4021         REPLACE_STRTOIMAX.
4022         * modules/inttypes-incomplete (Makefile.am): Substitute
4023         REPLACE_STRTOIMAX.
4024         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
4025         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
4026         (Depends-on): Update conditions.
4027         * tests/test-strtoimax.c (main): Add tests for large values.
4028         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
4029
4030 2012-01-05  Bruno Haible  <bruno@clisp.org>
4031
4032         inttypes: Modernize.
4033         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
4034         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
4035         (Makefile.am): Update inttypes.h rule.
4036
4037 2012-01-05  Jim Meyering  <meyering@redhat.com>
4038
4039         init.sh: don't waste a subshell just to redirect stderr
4040         * tests/init.sh: In testing for diff -u and diff -c, use a
4041         stderr-redirecting exec inside `...` rather than a subshell.
4042
4043         test-init.sh: avoid failure on HP-UX 11.00
4044         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
4045         resolves to diff -c or cmp.  Reported by Bruno Haible.
4046
4047 2012-01-05  Bruno Haible  <bruno@clisp.org>
4048
4049         Tests for module 'strtoull'.
4050         * modules/strtoull-tests: New file.
4051         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
4052
4053 2012-01-05  Bruno Haible  <bruno@clisp.org>
4054
4055         Tests for module 'strtoll'.
4056         * modules/strtoll-tests: New file.
4057         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
4058
4059 2012-01-05  Bruno Haible  <bruno@clisp.org>
4060
4061         Tests for module 'strtoul'.
4062         * modules/strtoul-tests: New file.
4063         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
4064
4065 2012-01-05  Bruno Haible  <bruno@clisp.org>
4066
4067         Tests for module 'strtol'.
4068         * modules/strtol-tests: New file.
4069         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
4070
4071 2012-01-04  Jim Meyering  <meyering@redhat.com>
4072
4073         test-init.sh: accommodate Solaris 5.10's different diff -u output
4074         * tests/test-init.sh: Also exempt @@ lines from the comparison
4075         of diff output, since Solaris 5.10 and GNU diff formats differ.
4076         Reported by Stefano Lattarini.
4077
4078 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
4079
4080         test-posixtm: don't assume signed integer wraparound
4081         * tests/test-posixtm.c (main): Don't assume wraparound semantics
4082         after signed integer overflow.  Inspired by (though it may not
4083         fix) Bruno Haible's bug report in
4084         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
4085
4086         Spell out "Windows 9x" and "Windows XP".
4087         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
4088         "Windows 9x" and "WinXP" with "Windows XP".
4089
4090 2012-01-04  Jim Meyering  <meyering@redhat.com>
4091
4092         test-vc-list-files-cvs.sh: remove obsolete comment
4093         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
4094         double exit.  Now that's all encapsulated via skip_ and Exit.
4095
4096 2012-01-04  Bruno Haible  <bruno@clisp.org>
4097
4098         Talk about "native Windows API", not "Win32".
4099         * lib/classpath.c: Update comments to mention native Windows.
4100         * lib/csharpexec.c: Likewise.
4101         * lib/dup2.c: Likewise.
4102         * lib/error.c: Likewise.
4103         * lib/fcntl.c: Likewise.
4104         * lib/filename.h: Likewise.
4105         * lib/findprog.c: Likewise.
4106         * lib/get-rusage-as.c: Likewise.
4107         * lib/get-rusage-data.c: Likewise.
4108         * lib/getpagesize.c: Likewise.
4109         * lib/javaexec.c: Likewise.
4110         * lib/msvc-inval.c: Likewise.
4111         * lib/msvc-nothrow.c: Likewise.
4112         * lib/nanosleep.c: Likewise.
4113         * lib/nonblocking.c: Likewise.
4114         * lib/printf-parse.c: Likewise.
4115         * lib/setlocale.c: Likewise.
4116         * lib/sigaction.c: Likewise.
4117         * lib/strerror_r.c: Likewise.
4118         * lib/tmpdir.c: Likewise.
4119         * lib/vasnprintf.c: Likewise.
4120         * lib/w32spawn.h: Likewise.
4121         * lib/waitpid.c: Likewise.
4122         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
4123         * m4/locale-ar.m4: Likewise.
4124         * m4/locale-fr.m4: Likewise.
4125         * m4/locale-ja.m4: Likewise.
4126         * m4/locale-tr.m4: Likewise.
4127         * m4/locale-zh.m4: Likewise.
4128         * m4/printf.m4: Likewise.
4129         * tests/test-cloexec.c: Likewise.
4130         * tests/test-copy-acl.sh: Likewise.
4131         * tests/test-copy-file.sh: Likewise.
4132         * tests/test-file-has-acl.sh: Likewise.
4133         * tests/test-set-mode-acl.sh: Likewise.
4134         * tests/test-dup-safer.c: Likewise.
4135         * tests/test-dup2.c: Likewise.
4136         * tests/test-dup3.c: Likewise.
4137         * tests/test-fcntl.c: Likewise.
4138         * tests/test-nonblocking-pipe.h: Likewise.
4139         * tests/test-nonblocking-socket.h: Likewise.
4140         * tests/test-pipe.c: Likewise.
4141         * tests/test-pipe2.c: Likewise.
4142         * tests/test-spawn-pipe-child.c: Likewise.
4143         * doc/acl-resources.txt: Likewise.
4144         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
4145         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
4146         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
4147         * lib/localcharset.c: Update comments to mention native Windows.
4148         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
4149         * lib/localename.c: Likewise.
4150         * lib/progreloc.c: Likewise.
4151         * lib/relocatable.c: Likewise.
4152         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
4153         (windows_compute_revents): Renamed from win32_compute_revents.
4154         (windows_compute_revents_socket): Renamed from
4155         win32_compute_revents_socket.
4156         * lib/select.c: Update comments to mention native Windows.
4157         (windows_poll_handle): Renamed from win32_poll_handle.
4158         * m4/threadlib.m4: Update comments to mention native Windows.
4159         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
4160         --enable-threads=windows instead of --enable-threads=win32. Set
4161         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
4162         * lib/glthread/lock.h: Update comments to mention native Windows.
4163         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
4164         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
4165         USE_WIN32_THREADS.
4166         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
4167         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
4168         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
4169         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
4170         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
4171         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
4172         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
4173         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
4174         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
4175         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
4176         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
4177         * tests/test-tls.c: Likewise.
4178         Rationale:
4179         Microsoft renamed the "Win32 API" to "Windows API", as it is available
4180         on both 32-bit and 64-bit Windows systems.
4181         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
4182         line of distinction is between "native Windows" on one side and Unix/
4183         POSIX systems on the other side. More details in
4184         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
4185         Suggested by Paul Eggert.
4186
4187 2012-01-03  Bruno Haible  <bruno@clisp.org>
4188
4189         isatty: Support for MSVC 9.
4190         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
4191         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
4192         (_isatty_nothrow): New function.
4193         (isatty): Use it instead of _isatty.
4194         (IsConsoleHandle): Add comment, from Paolo Bonzini.
4195         * lib/poll.c (IsConsoleHandle): Likewise.
4196         * lib/select.c (IsConsoleHandle): Likewise.
4197         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
4198         (gl_PREREQ_ISATTY): New macro.
4199         * modules/isatty (Depends-on): Add msvc-inval.
4200         (configure.ac): Invoke gl_PREREQ_ISATTY.
4201
4202 2012-01-03  Jim Meyering  <meyering@redhat.com>
4203
4204         maint.mk: remove temporary transition aid from over 1.5 years ago
4205         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
4206         purpose was to aid in the transition (avoiding silent malfunction)
4207         from that old name to the new _sc_search_regexp.  This shim was
4208         added by commit 219c504b.
4209
4210         init.sh: do not try to accommodate compare arguments starting with "-"
4211         * tests/init.sh (compare_dev_null_): Do not try to accommodate
4212         compare arguments that start with "-".  Besides, we do not worry
4213         about this when invoking diff or cmp; why start now with sed?
4214         Using "--" to separate options from argument would trigger sed
4215         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
4216         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
4217
4218 2012-01-02  Bruno Haible  <bruno@clisp.org>
4219
4220         Enhance tests for module 'isatty'.
4221         * modules/isatty-tests (Depends-on): Add pipe-posix.
4222         * tests/test-isatty.c: Include <fcntl.h>.
4223         (DEV_NULL): New macro.
4224         (main): Test the resut of isatty() also on regular files, pipes, and
4225         /dev/null.
4226
4227         New module 'isatty'.
4228         * lib/unistd.in.h (isatty): New declaration.
4229         * lib/isatty.c: New file, based on an idea of
4230         Bastien Roucariès <roucaries.bastien@gmail.com>.
4231         * m4/isatty.m4: New file.
4232         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
4233         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
4234         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
4235         REPLACE_ISATTY.
4236         * modules/isatty: New file.
4237         * doc/posix-functions/isatty.texi: Mention the new module.
4238         Suggested by Paolo Bonzini.
4239
4240 2012-01-02  Bruno Haible  <bruno@clisp.org>
4241
4242         canonicalize: Tweak 2011-12-29 commit.
4243         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
4244         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
4245
4246 2012-01-02  Jim Meyering  <meyering@redhat.com>
4247
4248         gitlog-to-changelog: describe input syntax in --help output
4249         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
4250
4251         gitlog-to-changelog: fix typo in --help: show backslash before email @
4252         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
4253         in sources, but not in actual output.
4254
4255 2011-12-30  Jim Meyering  <meyering@redhat.com>
4256
4257         gitlog-to-changelog: don't malfunction when name contains %-directive
4258         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
4259         in a name string cause trouble.  E.g., with a user name of "%s",
4260         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
4261
4262 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
4263
4264         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
4265         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
4266         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
4267         the "  (tiny change)" notation that is appended to the standard
4268         ChangeLog "date  name  email" header line.
4269
4270 2012-01-01  Jim Meyering  <meyering@redhat.com>
4271
4272         test-framework-sh: init.sh: fix "make dist" failure
4273         When using gnulib-tool's --with-tests option and any module that
4274         depends on test-framework-sh, "make dist" would fail due to the
4275         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
4276         in the gltests directory, and not in the gllib/ directory.
4277         One way to work around that is to move the EXTRA_DIST += init.sh
4278         from the primary module to the -tests one:
4279         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
4280         * modules/test-framework-sh (Makefile.am): ...not here.
4281         Reported by Tom G. Christensen in
4282         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
4283
4284         version-etc: update copyright year reported by --version
4285         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
4286
4287 2011-12-31  Pádraig Brady  <P@draigBrady.com>
4288
4289         canonicalize: only stat() if required
4290         * lib/canonicalize.c (canonicalize_filename_mode):
4291         Avoid calling l?stat() when both CAN_MISSING,
4292         and CAN_NOLINKS are set, as we neither need
4293         to resolve symlinks or test component existence.
4294
4295 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
4296
4297         doc: cover st_ino issues once; add OpenVMS etc.
4298         * doc/posix-functions/stat.texi (stat):
4299         * doc/posix-functions/lstat.texi (lstat):
4300         * doc/posix-functions/fstatat.texi (fstatat):
4301         * doc/posix-functions/fstat.texi (fstat):
4302         Move general 'struct stat' stuff to sys_stat.texi,
4303         leaving behind a pointer.
4304         * doc/posix-headers/sys_stat.texi (sys/stat.h):
4305         Merge duplicate info about 'struct stat' problems into here.
4306         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
4307         and suggest partial workarounds.
4308
4309         same-inode: port to OpenVMS
4310         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
4311         three st_ino values.
4312
4313 2011-12-30  Pádraig Brady  <P@draigBrady.com>
4314
4315         canonicalize: fix references to stat() and lstat()
4316         * lib/canonicalize.c (canonicalize_filename_mode):
4317         Ensure references always resolve to a replacement
4318         function if required (even via a macro).
4319
4320 2011-12-30  Jim Meyering  <meyering@redhat.com>
4321
4322         gitlog-to-changelog: remove a little duplication
4323         * build-aux/gitlog-to-changelog (main): Grep @lines once,
4324         rather than twice.
4325
4326 2011-12-29  Pádraig Brady  <P@draigBrady.com>
4327
4328         canonicalize: add support for not resolving symlinks
4329         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
4330         indicate we don't want to follow symlinks.  Also
4331         provide CAN_MODE_MASK to aid setting these existing
4332         mutually exclusive values.
4333         * lib/canonicalize.c (canonicalize_filename_mode):
4334         Extract the flags from can_mode parameter, which
4335         are currently just used to select between stat()
4336         and lstat().  Also ensure that mutually exclusive
4337         values are flagged immediately as invalid.
4338         * tests/test-canonicalize.c: Verify symlinks are
4339         not followed, and that invalid flag combinations
4340         are diagnosed.
4341
4342 2011-12-25  Jim Meyering  <meyering@redhat.com>
4343
4344         gitlog-to-changelog: do not clump multi-paragraph entries
4345         Identical header lines (date,name,email+coauthors) are suppressed,
4346         thus putting all entries with those same characteristics under
4347         a single header.  However, when a log entry consists of two or
4348         more paragraphs, it may not be clear where it starts and ends.
4349         This change makes it so that such an entry is always separated
4350         from others by a header line, even when that header would
4351         otherwise be suppressed.
4352         * build-aux/gitlog-to-changelog: Implement the above.
4353         Inspired by a related request from Stefano Lattarini in
4354         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
4355
4356 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
4357
4358         announce-gen: fix `cmd' typo in diagnostic
4359         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
4360         diagnostic: a missing '$' meant that the command was not output.
4361
4362 2011-12-23  Jim Meyering  <meyering@redhat.com>
4363
4364         test-framework-sh: distribute init.sh
4365         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
4366         Otherwise, "make -C gnulib-tests check" (at least in grep) would
4367         fail due to the lack of init.sh.
4368
4369         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
4370         * modules/atexit-tests: Rather than listing tests/init.sh,
4371         now that there's a module for it, simply depend on that new module.
4372         * modules/closein-tests: Likewise.
4373         * modules/exclude-tests: Likewise.
4374         * modules/getcwd-tests: Likewise.
4375         * modules/perror-tests: Likewise.
4376         * modules/pread-tests: Likewise.
4377         * modules/pwrite-tests: Likewise.
4378         * modules/vc-list-files-tests: Likewise.
4379         * modules/verify-tests: Likewise.
4380         * modules/xalloc-die-tests: Likewise.
4381         * modules/xstrtoimax-tests: Likewise.
4382         * modules/xstrtol-tests: Likewise.
4383         * modules/xstrtoll-tests: Likewise.
4384         * modules/xstrtoumax-tests: Likewise.
4385         * modules/yesno-tests: Likewise.
4386
4387 2011-12-22  Jim Meyering  <meyering@redhat.com>
4388
4389         test-framework-sh: add minimal tests of init.sh's compare function
4390         * modules/test-framework-sh-tests: New file.
4391         * tests/test-init.sh: New file.
4392
4393         test-framework-sh: new module
4394         * modules/test-framework-sh: New file.
4395         * MODULES.html.sh (Support for maintaining and releasing projects):
4396         List it.
4397
4398         init.sh: do not emit simulated diff output to stderr
4399         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
4400
4401 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
4402
4403         .gitignore: ignore gnulib.dvi and regex.info
4404         * doc/.gitignore:add gnulib.dvi and regex.info
4405
4406 2011-12-22  Jim Meyering  <meyering@redhat.com>
4407
4408         init.sh: correct previous change
4409         * tests/init.sh (compare): My previous change was wrong.
4410         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
4411
4412         init.sh: avoid unwarranted test failure when using "set -e"
4413         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
4414         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
4415         a use like "compare exp out" would get evoke an unconditional failure.
4416
4417 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
4418
4419         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
4420         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
4421         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
4422         autoreconf that did not.
4423         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
4424         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
4425
4426 2011-12-17  Jim Meyering  <meyering@redhat.com>
4427
4428         bootstrap: remove some now-unneeded code
4429         This script arose back when gnulib-tool was young.
4430         Since then, it has seen improvements that render much of this
4431         script unnecessary.  In particular, it can now make symlinks
4432         to the files it uses.  Also, I no longer see as much value in
4433         marking files as read-only via comments.
4434         If you relied on the symlink-creation feature of the preceding
4435         version of this script, you can get most of that functionality
4436         by adding the --symlink option to the definition of
4437         gnulib_tool_option_extras in your bootstrap.conf file.
4438         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
4439         Run autopoint and libtoolize *before* gnulib-tool.
4440         After it, run an abbreviated autoreconf, rather than a loop around
4441         all tools.
4442         (slirp, bt_mark_as_generated): Remove functions.
4443
4444 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
4445
4446         ftoastr: fix typo
4447         * lib/ftoastr.h: Fix misspelling in comment.
4448
4449 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
4450
4451         * top/README-release: fix punctuation.
4452
4453 2011-12-17  Jim Meyering  <meyering@redhat.com>
4454
4455         bootstrap: correct the recent buildreq change
4456         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
4457         had no effect.
4458         * build-aux/bootstrap (buildreq): Bracket each search term with
4459         "*...*", so that the shell "case" statement works as intended.
4460         Add comments.
4461
4462 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
4463
4464         build: let bootstrap resort to wget when downloading .po files
4465         * build-aux/bootstrap (download_po_files): Fallback to wget when
4466         downloading the .po files via rsync fails.  This is necessary to
4467         bootstrap from behind a strict firewall.
4468
4469 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
4470
4471         stdint: don't assume C++11 when compiling with g++
4472         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
4473         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
4474         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
4475         work also in C++ before C++11, as that improperly inhibits
4476         generating a substitute stdint.h for that case.
4477
4478 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
4479
4480         alloca: protect comment from gnulib-tool
4481         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
4482         that gnulib-tool doesn't think it's a license, and munge it to
4483         say "GCC version 3".
4484
4485 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
4486
4487         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
4488         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
4489         $(abs_top_builddir) instead of $(top_builddir).
4490
4491 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
4492
4493         strftime-tests: also test nanoseconds
4494         * tests/test-strftime.c (T): Add a test of %N.
4495
4496 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
4497
4498         inttypes, stdint: add C++11 support
4499         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
4500         when including inttypes.h and stdint.h.  Support this change to
4501         the standard.
4502         * doc/posix-headers/inttypes.texi (inttypes.h):
4503         * doc/posix-headers/stdint.texi (stdint.h): Document this.
4504         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
4505         Define if not defined already, for the benefit of pre-C++11 hosts.
4506         Define the standard format macros (e.g., PRId8) always.
4507         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
4508         Likewise, if __cpluspus.  Define the standard constant and limit
4509         macros (e.g., INT8_C, INT8_MAX) always.
4510         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
4511         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
4512         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
4513         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
4514         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
4515         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
4516         Likewise.
4517
4518 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
4519
4520         nonblocking tests: Fix test failure on Linux/PPC.
4521         Suggested by Prerna Saxena in
4522         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
4523         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
4524         Set to 1100000.
4525
4526 2011-12-12  Jim Meyering  <meyering@redhat.com>
4527
4528         argmatch: don't hard-code `' when listing valid option arguments
4529         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
4530         use the quote function to add quotes.  Use fputs rather than
4531         fprintf for the format string with no format directive.
4532
4533 2011-12-07  Eric Blake  <eblake@redhat.com>
4534
4535         bootstrap: detect tools required by gnulib-tool
4536         * build-aux/bootstrap (buildreq): Provide minimum implicit
4537         dependencies.
4538         * DEPENDENCIES: Mention patch as a prereq.
4539
4540 2011-12-04  Bruno Haible  <bruno@clisp.org>
4541
4542         sethostname: Port to Windows platforms.
4543         * lib/sethostname.c: Provide an alternate implementation for Windows
4544         platforms.
4545         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
4546         (main): Skip the test if sethostname() fails with EPERM. On Windows
4547         platforms, don't check the result of gethostname().
4548
4549 2011-12-04  Bruno Haible  <bruno@clisp.org>
4550             Jim Meyering  <meyering@redhat.com>
4551
4552         tests: Avoid spurious error message on platforms without mktemp program.
4553         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
4554
4555 2011-12-04  Bruno Haible  <bruno@clisp.org>
4556
4557         sethostname: Fix documentation.
4558         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
4559         "not fixed" section.
4560
4561 2011-12-03  Bruno Haible  <bruno@clisp.org>
4562
4563         gnulib-tool: Verify that the License field is present and non-empty.
4564         * gnulib-tool (func_get_license_raw): New function, extracted from
4565         func_get_license.
4566         (func_get_license): Use it. Warn if the module is not a test module and
4567         has no license.
4568         Suggested by Jim Meyering.
4569
4570 2011-12-03  Bruno Haible  <bruno@clisp.org>
4571
4572         sethostname tests: Fix link error on mingw.
4573         * tests/test-sethostname1.c: New file, extracted from
4574         tests/test-sethostname.c.
4575         * tests/test-sethostname2.c: New file, extracted from
4576         tests/test-sethostname.c.
4577         * tests/test-sethostname.c: Remove file.
4578         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
4579         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
4580         (Depends-on): Add gethostname.
4581         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
4582         Link the latter with $(GETHOSTNAME_LIB).
4583
4584         sethostname tests: Fix compilation error on mingw.
4585         * tests/test-sethostname.c: Don't include <sys/types.h>.
4586         (geteuid): Use a dummy value without uid_t.
4587         * modules/sethostname-tests (Depends-on): Remove sys_types.
4588
4589         sethostname tests: Avoid a gcc warning.
4590         * tests/test-sethostname.c (main): Remove an unused variable.
4591
4592         Tweak last commit.
4593         * modules/sethostname-tests (Files): Sort by decreasing importance.
4594         (configure.ac): Check for geteuid.
4595         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
4596         the test when there's nothing to test. Drop an unnecessary cast.
4597         Improve an error message. Verify that the final sethostname() call
4598         succeeds.
4599
4600 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4601
4602         Add a test suite for the sethostname module.
4603         * modules/sethostname-tests: New file.  A test program
4604         for the sethostname module.
4605         * tests/test-sethostname.c: Likewise.
4606
4607 2011-12-03  Bruno Haible  <bruno@clisp.org>
4608
4609         Tweak last commit.
4610         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
4611         Fix preprocessor directives indentation. Fix typos.
4612         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
4613         * modules/unistd (Makefile): Likewise.
4614
4615 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4616
4617         Integrate the sethostname module into unistd.
4618         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
4619         into the unistd.h header.
4620         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
4621         preprocessor directives.
4622         * modules/unistd: Setup the Makefile substitutions of the
4623         SETHOSTNAME preprocessor directives.
4624
4625 2011-12-03  Bruno Haible  <bruno@clisp.org>
4626
4627         Tweak last commit.
4628         * lib/sethostname.c: Don't include <string.h>.
4629         (sethostname): No need to copy the argument string to the stack. Don't
4630         call clearerr. Preserve errno when fprintf failed.
4631         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
4632         Don't invoke AC_REPLACE_FUNCS.
4633         * modules/sethostname (Link): Remove empty section.
4634         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
4635         failure problem.
4636
4637 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4638
4639         New module 'sethostname'.
4640         * lib/sethostname.c (sethostname): New file.  Provide sethostname
4641         for systems that lack it.
4642         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
4643         sethostname declaration and function.
4644         * modules/sethostname: New file.  Define the sethostname module.
4645
4646 2011-12-03  Bruno Haible  <bruno@clisp.org>
4647
4648         Tweak last commit.
4649         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
4650
4651 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
4652
4653         Split the HOST_NAME_MAX detection into a separate m4 macro.
4654         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
4655         macro so it can be used by the pending sethostname module.
4656
4657 2011-12-03  Bruno Haible  <bruno@clisp.org>
4658
4659         Fix module descriptions syntax.
4660         * modules/argv-iter (License): Fix syntax.
4661         * modules/di-set (License): Likewise.
4662         * modules/ino-map (License): Likewise.
4663         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
4664
4665 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
4666
4667         stdalign: port to Clang 3.0
4668         Problem reported by Simon Josefsson in
4669         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
4670         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
4671         which has <stdalign.h> but which does not define alignof.
4672         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
4673
4674 2011-12-01  Eric Blake  <eblake@redhat.com>
4675
4676         mktempd: silence dd usage
4677         * build-aux/mktempd (rand_bytes): Silence dd.
4678
4679 2011-11-30  Simon Josefsson  <simon@josefsson.org>
4680
4681         manywarnings: Don't mention gcc version in docstring.
4682         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
4683         Jim Meyering <meyering@redhat.com>.
4684
4685 2011-11-30  Jim Meyering  <meyering@redhat.com>
4686
4687         hash: mark a few floating point constants with "f" suffix
4688         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
4689         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
4690         floating point constants with "f", since they're destined to be
4691         saved/used as "float"s.
4692
4693 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
4694
4695         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
4696         * tests/test-float.c (test_long_double): Correct and re-enable the
4697         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
4698
4699 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
4700
4701         Avoid subtracting two pointers that don't point into the same block.
4702         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
4703         only pointers into the same memory block are subtracted. We cannot
4704         assume that sizeof (ptrdiff_t) == sizeof (void *).
4705
4706 2011-11-29  Eric Blake  <eblake@redhat.com>
4707
4708         maint.mk: add syntax check for use of compare from init.sh
4709         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
4710         moved here from coreutils.
4711
4712         manywarnings: drop -Wunsuffixed-float-constants
4713         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
4714         '1.0D', which is the only way to silence this warning for 'double'.
4715
4716 2011-11-29  Jim Meyering  <meyering@redhat.com>
4717
4718         hash: mark compute_bucket_size with the pure attribute
4719         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
4720
4721         quotearg, propername: correct pragma guard expression
4722         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
4723         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
4724
4725 2011-11-28  Jim Meyering  <meyering@redhat.com>
4726
4727         propername: do not mark proper_name with the const attribute
4728         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
4729         since it examines data pointed to by its parameter.
4730         * lib/propername.c (proper_name): Instead, add a pragma to suppress
4731         the suggestion from -Wsuggest-attribute=const.
4732
4733         propername: mark one more function as const
4734         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
4735
4736 2011-11-27  Jim Meyering  <meyering@redhat.com>
4737
4738         mark functions with const and pure attributes
4739
4740         Mark functions per suggestions from gcc-4.6 when using these options:
4741         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
4742         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
4743         Follow these guidelines: when possible, apply the attribute to
4744         an extern declaration, not to its definition.  Apply it to the
4745         definition only when the definition is static.
4746         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
4747         * lib/argv-iter.h (argv_iter_n_args): Likewise.
4748         * lib/base64.h (isbase64): Likewise.
4749         * lib/basename-lgpl.c (last_component, base_len): Likewise.
4750         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
4751         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
4752         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
4753         (c_tolower, c_toupper): Likewise.
4754         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
4755         * lib/chdir-long.c (find_non_slash): Likewise.
4756         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
4757         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
4758         * lib/file-type.h (file_type): Likewise.
4759         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
4760         * lib/filevercmp.c (verrevcmp): Likewise.
4761         * lib/freadahead.h (freadahead): Likewise.
4762         * lib/fts.c (fts_maxarglen): Likewise.
4763         * lib/hash-pjw.h (hash_pjw): Likewise.
4764         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
4765         * lib/hash.c (is_prime, next_prime): Likewise.
4766         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
4767         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
4768         (hash_table_ok, hash_get_first, hash_string): Likewise.
4769         (compute_bucket_size): Likewise.
4770         * lib/i-ring.h (i_ring_empty): Likewise.
4771         * lib/isnan.c (isnanl): Likewise.
4772         * lib/math.h (isnanl, rpl_isnanl): Likewise.
4773         * lib/memcasecmp.h (memcasecmp): Likewise.
4774         * lib/memchr2.h (memchr2): Likewise.
4775         * lib/memcmp2.h (memcmp2): Likewise.
4776         * lib/parse-datetime.y (lookup_zone): Likewise.
4777         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
4778         [!WINDOWS_SOCKETS]: Likewise.
4779         * lib/strnlen1.h (strnlen1): Likewise.
4780         * lib/uniwidth.in.h (uc_width): Likewise.
4781         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
4782         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
4783         (quoting_options_from_style): Add a comment.
4784         * lib/propername.h (proper_name): Add a comment.
4785
4786 2011-11-27  Bruno Haible  <bruno@clisp.org>
4787
4788         Remove unused macros from !_LIBC code in glibc-borrowed files.
4789         * lib/fnmatch.c (STRCOLL): Remove macro.
4790         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
4791         * lib/glob.c (__stat, __readdir64): Remove macros.
4792         * lib/tempname.c (__open64, __xstat64): Remove macros.
4793         Suggested by Paul Eggert.
4794
4795 2011-11-27  Bruno Haible  <bruno@clisp.org>
4796
4797         getcwd: Fix link error on MSVC 9.
4798         * modules/getcwd (Depends-on): Add readdir, rewinddir.
4799
4800 2011-11-27  Bruno Haible  <bruno@clisp.org>
4801
4802         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
4803         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
4804         HAVE_OPENDIR is 0.
4805         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
4806         HAVE_CLOSEDIR is 0.
4807         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
4808         is 0.
4809         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
4810
4811 2011-11-27  Bruno Haible  <bruno@clisp.org>
4812
4813         getcwd: Fix bug from 2011-08-17.
4814         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
4815         platforms that need it.
4816         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
4817         code of 4 to be a failure, not a success. This ensures that
4818         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
4819
4820 2011-11-27  Bruno Haible  <bruno@clisp.org>
4821
4822         binary-io tests: Avoid test failure on mingw when libtool is used.
4823         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
4824         Don't verify the size of t-bin-out1.tmp here.
4825         * tests/test-binary-io.sh: Verify it here.
4826         Reported by Simon Josefsson.
4827
4828 2011-11-26  Bruno Haible  <bruno@clisp.org>
4829
4830         Fix conflict between two instantiations of module 'unistd'.
4831         * gnulib-tool (func_emit_autoconf_snippet): Substitute
4832         ${include_guard_prefix} also in the autoconf snippet.
4833         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
4834         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
4835         GNULIB_UNISTD_H_GETOPT.
4836         * modules/getopt-posix (configure.ac): Set the
4837         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
4838         * modules/getopt-gnu (configure.ac): Likewise.
4839         * modules/unistd (Makefile.am): Change the substitution value of
4840         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
4841         Reported by Simon Josefsson.
4842
4843 2011-11-25  Bruno Haible  <bruno@clisp.org>
4844
4845         pagealign_alloc: Doc and comments.
4846         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
4847         module.
4848         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
4849
4850 2011-11-25  Jim Meyering  <meyering@redhat.com>
4851
4852         test-update-copyright.sh: avoid false-positive failure
4853         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
4854         around false positive failure on Cygwin/Windows.  The latter was
4855         matching erroneously-created files with names like
4856         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
4857
4858 2011-11-25  Simon Josefsson  <simon@josefsson.org>
4859
4860         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
4861         * m4/valgrind-tests.m4: Check that the parameters that will be
4862         used works, not just a subset of them.  Reported by Bruno Haible
4863         <bruno@clisp.org>.
4864
4865 2011-11-24  Jim Meyering  <meyering@redhat.com>
4866
4867         test-stdalign.c: comment out long double tests
4868         * tests/test-stdalign.c: Don't try to reduce alignment of long double
4869         variables.  That provokes errors like this from gcc-4.7.0 20111124:
4870         error: '_Alignas' specifiers cannot reduce alignment of \
4871         'static_longdouble_alignas'.
4872
4873 2011-11-22  Jim Meyering  <meyering@redhat.com>
4874
4875         init.sh: make "compare /dev/null FILE" output more readable
4876         * tests/init.sh (compare_): Document the preferred order of arguments.
4877         (emit_diff_u_header_): New function.
4878         (compare_dev_null_): Emit a simulated diff, rather than just the
4879         contents of the unexpected file.  Suggestion from Bruno Haible.
4880
4881 2011-11-21  Jim Meyering  <meyering@redhat.com>
4882             Eric Blake  <eblake@redhat.com>
4883
4884         init.sh: work around OSF/1 5.1's mishandling of /dev/null
4885         * tests/init.sh: Make our compare function slightly more portable.
4886         Reported by Bruno Haible in
4887         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
4888
4889 2011-11-21  Simon Josefsson  <simon@josefsson.org>
4890
4891         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
4892         before using it, in code that ends up in config.h.
4893
4894 2011-11-20  Bruno Haible  <bruno@clisp.org>
4895
4896         getcwd: Work around getcwd bug on AIX 5..7.
4897         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
4898         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
4899         Use a different value for gl_cv_func_getcwd_path_max. Move the
4900         definition of HAVE_PARTLY_WORKING_GETCWD from here...
4901         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
4902         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
4903         Define HAVE_MINIMALLY_WORKING_GETCWD.
4904         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
4905         where it is not even minimally working, that is, on AIX.
4906         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
4907         m4/getcwd-path-max.m4.
4908         (main): Update exit code computation.
4909         * doc/posix-functions/getcwd.texi: Mention list of platforms where
4910         getcwd does not handle long file names.
4911
4912 2011-11-20  Bruno Haible  <bruno@clisp.org>
4913
4914         getcwd: Fix bug from 2009-09-10.
4915         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
4916         like "no".
4917
4918 2011-11-20  Simon Josefsson  <simon@josefsson.org>
4919
4920         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
4921
4922 2011-11-20  Bruno Haible  <bruno@clisp.org>
4923
4924         fma tests: Avoid shadowing local variables.
4925         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
4926         expected.
4927
4928 2011-11-20  Bruno Haible  <bruno@clisp.org>
4929
4930         copysignf tests: Fix.
4931         * tests/test-copysignf.c: Fix signature check.
4932
4933 2011-11-20  Bruno Haible  <bruno@clisp.org>
4934
4935         fma: Remove unused code.
4936         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
4937         unused macros.
4938
4939 2011-11-20  Bruno Haible  <bruno@clisp.org>
4940
4941         sethostname: Fix doc about AIX.
4942         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
4943         sethostname; it has it.
4944
4945         sethostname: Mention more portability problems.
4946         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
4947         problem.
4948         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
4949
4950 2011-11-19  Bruno Haible  <bruno@clisp.org>
4951
4952         Depend on module fcntl-h when AT_FDCWD is used.
4953         * modules/utimens (Depends-on): Add fcntl-h.
4954         * modules/areadlinkat (Depends-on): Likewise.
4955         * modules/areadlinkat-with-size (Depends-on): Likewise.
4956         * modules/faccessat (Depends-on): Likewise.
4957         * modules/fchmodat (Depends-on): Likewise.
4958         * modules/fchownat (Depends-on): Likewise.
4959         * modules/getcwd (Depends-on): Likewise.
4960         * modules/mkdirat (Depends-on): Likewise.
4961         * modules/mkfifoat (Depends-on): Likewise.
4962         * modules/readlinkat (Depends-on): Likewise.
4963         * modules/symlinkat (Depends-on): Likewise.
4964         * modules/dup2-tests (Depends-on): Likewise.
4965         * modules/fdutimensat-tests (Depends-on): Likewise.
4966         * modules/futimens-tests (Depends-on): Likewise.
4967
4968 2011-11-19  Bruno Haible  <bruno@clisp.org>
4969
4970         euidaccess: Update a comment.
4971         * lib/euidaccess.c: Update comment about platforms with faccessat.
4972
4973 2011-11-19  Bruno Haible  <bruno@clisp.org>
4974
4975         openat: Fix file list.
4976         * modules/openat (Files): Remove lib/at-func.c.
4977
4978 2011-11-19  Bruno Haible  <bruno@clisp.org>
4979
4980         fstatat: Simplify.
4981         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
4982         gnulib should define rpl_fstatat, there is a
4983         "#define fstatat rpl_fstatat" in <sys/stat.h>.
4984
4985 2011-11-19  Bruno Haible  <bruno@clisp.org>
4986
4987         Ensure 'inline' can be used in tests/test-utimens-common.h.
4988         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
4989         * modules/futimens-tests (configure.ac): Likewise.
4990         * modules/utimens-tests (configure.ac): Likewise.
4991         * modules/utimensat-tests (configure.ac): Likewise.
4992
4993 2011-11-19  Simon Josefsson  <simon@josefsson.org>
4994
4995         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
4996         not hash_insert0.
4997         (hash_insert_if_absent): Doc fix.
4998
4999 2011-11-19  Simon Josefsson  <simon@josefsson.org>
5000
5001         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
5002
5003 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
5004
5005         test-getcwd: disambiguate exit status
5006         * tests/test-getcwd.c (test_long_name): Return 0..7.
5007         (main): Exit with an unambiguous exit status.  The old
5008         code yielded a mysterious mixture of two failure codes.
5009
5010         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
5011         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
5012         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
5013         rpl_fstatat or fstatat.  This should fix the other problem
5014         reported by Kai Habel in
5015         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
5016         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
5017         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
5018         and I reproduced it on a Solaris 8 host we still have in production.
5019
5020 2011-11-18  Jim Meyering  <meyering@redhat.com>
5021
5022         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
5023         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
5024         Add a sentence to the comment.
5025         (hash_insert0): New function that simply calls hash_insert_if_absent.
5026         * lib/hash.h (hash_insert_if_absent): Declare it.
5027         (hash_insert0): Add deprecation attribute.
5028         (_GL_ATTRIBUTE_DEPRECATED): Define.
5029         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
5030         not hash_insert0.
5031         * NEWS: Mention it, even though it's not really an incompatible change.
5032
5033 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
5034
5035         openat: avoid compilation failure due to lack of <errno.h> inclusion
5036         * lib/openat.c: Include <errno.h>.
5037
5038 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
5039
5040         * modules/getcwd (Depends-on): Add fdopendir.
5041         This fixes one of the two problems reported by Kai Habel in
5042         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
5043
5044         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
5045         stdalign problem reported by Ian Beckwith in
5046         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
5047         * modules/crypto/gc-arcfour (Depends-on):
5048         Depend conditionally on crypto/arcfour.
5049         * modules/crypto/gc-arctwo (Depends-on):
5050         Depend conditionally on crypto/arctwo.
5051         * modules/crypto/gc-des (Depends-on):
5052         Depend conditionally on crypto/des.
5053         * modules/crypto/gc-hmac-md5 (Depends-on):
5054         Depend conditionally on crypto/hmac-md5.
5055         * modules/crypto/gc-hmac-sha1 (Depends-on):
5056         Depend conditionally on crypto/hmac-sha1.
5057         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
5058         * modules/crypto/gc-md4 (Depends-on):
5059         Depend conditionally on crypto/md4.
5060         * modules/crypto/gc-md5 (Depends-on):
5061         Depend conditionally on crypto/md5.
5062         * modules/crypto/gc-rijndael (Depends-on):
5063         Depend conditionally on crypto/rijndael.
5064         * modules/crypto/gc-sha1 (Depends-on):
5065         Depend conditionally on crypto/sha1.
5066         * modules/crypto/gc-arcfour:
5067         * modules/crypto/gc-arctwo:
5068         * modules/crypto/gc-des:
5069         * modules/crypto/gc-hmac-md5:
5070         * modules/crypto/gc-hmac-sha1:
5071         * modules/crypto/gc-md2:
5072         * modules/crypto/gc-md4:
5073         * modules/crypto/gc-md5:
5074         * modules/crypto/gc-rijndael:
5075         * modules/crypto/gc-sha1:
5076         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
5077         now that the conditional dependencies do the work for us.
5078
5079 2011-11-17  Jim Meyering  <meyering@redhat.com>
5080
5081         tests: factor st_ctime-comparison out of two headers
5082         * tests/test-utimens-common.h (ctime_compare): Define.
5083         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
5084         * tests/test-lutimens.h (test_lutimens): Likewise.
5085         * tests/test-utimens.h (test_utimens): Likewise.
5086
5087         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
5088         Invoke the test program via an init.sh-using wrapper.
5089         * tests/test-getcwd.sh: New file.
5090         * modules/getcwd-tests (Files): Add it.
5091         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
5092
5093 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
5094
5095         gitlog-to-changelog: support multi-author commits.
5096         The FSF cares about keeping track of all authors of patches to its
5097         projects, but Git doesn't provide obvious support for multi-author
5098         changesets. Consensus seems to be forming around the use of extra
5099         Signed-off-by inspired lines in the log message formatted as
5100         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
5101         multi-author commits between version control systems.
5102         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
5103         log message and output in standard ChangeLog multi-author format.
5104         Reported by Peter Rosin <peda@lysator.liu.se>
5105
5106 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
5107             Bruno Haible  <bruno@clisp.org>
5108
5109         Fix some modules' file list.
5110         * modules/fstatat (Files): Add m4/lstat.m4.
5111         * modules/openat (Files): Likewise.
5112         * modules/unlinkat (Files): Likewise.
5113
5114 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
5115
5116         maint.mk: fix tight-scope.mk generation in VPATH builds.
5117         * top/maint.mk (tight-scope.mk): Make sure to prefix file
5118         reference with $(srcdir) so that the file is found correctly even
5119         when running `make syntax-check' in a VPATH build.
5120
5121 2011-11-13  Bruno Haible  <bruno@clisp.org>
5122             Jim Meyering  <meyering@redhat.com>
5123
5124         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
5125         * tests/init.sh (compare): Remove "No differences encountered" or
5126         synonymous output from the 'diff' program.
5127
5128 2011-11-13  Bruno Haible  <bruno@clisp.org>
5129
5130         Makefile: Tweak indentation.
5131         * Makefile: Use tab as first character in every line that contains rule
5132         commands.
5133
5134 2011-11-13  Bruno Haible  <bruno@clisp.org>
5135
5136         Syntax check for copyright statements.
5137         * check-copyright: New file.
5138         * Makefile (sc_check_copyright): New rule.
5139
5140 2011-11-13  Simon Josefsson  <simon@josefsson.org>
5141
5142         * build-aux/git-version-gen: Add --prefix to configure the tag
5143         match string.
5144
5145 2011-11-13  Simon Josefsson  <simon@josefsson.org>
5146
5147         * build-aux/git-version-gen: Add --help and --version.
5148
5149 2011-11-12  Jim Meyering  <meyering@redhat.com>
5150
5151         revamp the other test-exclude?.sh scripts to use init.sh, too
5152         * tests/test-exclude1.sh: Use init.sh.
5153         * tests/test-exclude2.sh: Likewise.
5154         * tests/test-exclude3.sh: Likewise.
5155         * tests/test-exclude4.sh: Likewise.
5156         * tests/test-exclude5.sh: Likewise.
5157         * tests/test-exclude6.sh: Likewise.
5158         * tests/test-exclude7.sh: Likewise.
5159         * tests/test-exclude8.sh: Likewise.
5160         * modules/exclude-tests (Files): List init.sh.
5161
5162         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
5163         These shell scripts ignored failure of the binary test-exclude,
5164         so making the latter return 77 didn't cause them to be skipped.
5165         * tests/test-exclude5.sh: Exit with test-exclude's error status
5166         when that program fails.  Revamp to use init.sh.
5167         * tests/test-exclude2.sh: Likewise.
5168
5169         test-exclude: fix a typo
5170         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
5171
5172 2011-11-11  Bruno Haible  <bruno@clisp.org>
5173
5174         obstack: Fix compilation error on MSVC 9.
5175         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
5176
5177 2011-11-11  Jim Meyering  <meyering@redhat.com>
5178
5179         test-exclude: skip tests rather than failing on deficient systems
5180         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
5181         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
5182         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
5183         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
5184
5185 2011-11-10  Bruno Haible  <bruno@clisp.org>
5186
5187         ptsname_r test: Avoid gcc warning on glibc systems.
5188         * tests/test-ptsname_r.c (null_ptr): New function.
5189         (test_errors): Use it.
5190
5191 2011-11-10  Bruno Haible  <bruno@clisp.org>
5192
5193         ptsname_r: Avoid compilation error on OSF/1 5.1.
5194         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
5195         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
5196         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
5197         function is not declared or incompatibly declared.
5198         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
5199         * modules/ptsname_r (Depends-on, configure.ac): Update.
5200         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
5201
5202 2011-11-10  Bruno Haible  <bruno@clisp.org>
5203
5204         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
5205         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
5206         When cross-compiling, guess yes on all platforms except AIX.
5207         Reported by Ludovic Courtès <ludo@gnu.org>.
5208
5209 2011-11-09  Bruno Haible  <bruno@clisp.org>
5210
5211         ptsname_r tests: Fix bugs.
5212         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
5213         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
5214
5215 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
5216
5217         fstatat: work with cross-compilation
5218         Problem reported by Ludovic Courtès in
5219         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
5220         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
5221         "cross-compiling" and assume the bug is present.  Replace
5222         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
5223         an inverted sense, to be more conservative about our assumptions.
5224         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
5225
5226 2011-11-09  Bruno Haible  <bruno@clisp.org>
5227
5228         Improve MODULES.html output.
5229         * modules/mkfifoat (Description): Use the word "function".
5230         * modules/readlinkat (Description): Likewise.
5231         * modules/symlinkat (Description): Likewise.
5232
5233 2011-11-09  Eric Blake  <eblake@redhat.com>
5234
5235         ptsname_r-tests: new test module
5236         * modules/ptsname_r-tests: New module.
5237         * tests/test-ptsname_r.c: New file.
5238
5239         ptsname_r: new module
5240         * modules/ptsname_r: New module.
5241         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
5242         * lib/ptsname.c (__ptsname_r): Split...
5243         * lib/ptsname_r.c: ...into new file.
5244         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
5245         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
5246         * modules/stdlib (Makefile.am): Substitute witnesses.
5247         * lib/stdlib.in.h (ptsname_r): Declare it.
5248         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
5249         * MODULES.html.sh (Misc): Likewise.
5250         * modules/ptsname (Depends-on): Alter dependency.
5251         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
5252
5253 2011-11-09  Jim Meyering  <meyering@redhat.com>
5254
5255         announce-gen: be more concise when there's only one URL+tarball
5256         * build-aux/announce-gen (get_tool_versions): When you distribute
5257         only one type of tarball, combine the first two "Here are..."
5258         sections and make the key-checking grammar independent of
5259         how many tarballs there are.
5260
5261 2011-11-09  Eric Blake  <eblake@redhat.com>
5262
5263         openpty: provide a stub on mingw
5264         * lib/pty.in.h (includes): Provide forward declarations.
5265         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
5266
5267         raise: fix mingw handling of SIGPIPE
5268         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
5269
5270 2011-11-08  Bruno Haible  <bruno@clisp.org>
5271
5272         More conditional dependencies.
5273         * modules/faccessat (Depends-on): Add conditions.
5274         * modules/fchmodat (Depends-on): Likewise.
5275         * modules/fchownat (Depends-on): Likewise.
5276         * modules/fstatat (Depends-on): Likewise.
5277         * modules/mkfifoat (Depends-on): Likewise.
5278         * modules/readlinkat (Depends-on): Likewise.
5279         * modules/symlinkat (Depends-on): Likewise.
5280         * modules/unlinkat (Depends-on): Likewise.
5281         * modules/utimensat (Depends-on): Likewise.
5282         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
5283         * modules/linkat (Depends-on): Refine the conditions.
5284         * modules/renameat (Depends-on): Likewise.
5285
5286 2011-11-08  Bruno Haible  <bruno@clisp.org>
5287
5288         faccessat: Move AC_LIBOBJ invocation to module description.
5289         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
5290         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
5291         invocation from here...
5292         * modules/faccessat (configure.ac): ... to here. Invoke
5293         gl_PREREQ_FACCESSAT.
5294
5295 2011-11-08  Bruno Haible  <bruno@clisp.org>
5296
5297         faccessat: Simplify autoconf macro.
5298         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
5299         gl_FUNC_EUIDACCESS.
5300
5301 2011-11-08  Bruno Haible  <bruno@clisp.org>
5302
5303         renameat: Fix dependencies.
5304         * modules/renameat (Depends-on): Add stdbool.
5305
5306 2011-11-08  Bruno Haible  <bruno@clisp.org>
5307
5308         mkfifoat: Fix module description.
5309         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
5310         not gl_UNISTD_MODULE_INDICATOR.
5311
5312 2011-11-08  Bruno Haible  <bruno@clisp.org>
5313
5314         fstatat: Remove unused dependency.
5315         * modules/fstatat (Depends-on): Remove fstat.
5316
5317 2011-11-08  Simon Josefsson  <simon@josefsson.org>
5318
5319         GNUmakefile: behave when Makefile is missing.
5320         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
5321
5322 2011-11-08  Bruno Haible  <bruno@clisp.org>
5323
5324         openat: Conditionalize dependencies.
5325         * lib/openat.c: Reduce the scope of some #includes.
5326         * modules/openat (Depends-on): Add conditions.
5327
5328 2011-11-07  Jim Meyering  <meyering@redhat.com>
5329
5330         maint.mk: extract GPG key ID without using a temporary file
5331         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
5332         without using a temporary file.  Based on a suggestion from Werner Koch
5333         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
5334
5335 2011-11-07  Eric Blake  <eblake@redhat.com>
5336
5337         grantpt: fix typo
5338         * lib/stdlib.in.h (grantpt): Check correct function.
5339
5340         maint.mk: silence new syntax check
5341         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
5342
5343 2011-11-06  Bruno Haible  <bruno@clisp.org>
5344
5345         Doc about floating-point and math API.
5346         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
5347         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
5348
5349 2011-11-06  Bruno Haible  <bruno@clisp.org>
5350
5351         stdalign tests: Skip the test when compiled by Sun C.
5352         * tests/test-stdalign.c (main): Skip the test on Sun C.
5353
5354 2011-11-06  Bruno Haible  <bruno@clisp.org>
5355
5356         ansi-c++-opt: Complete the 2011-06-05 change.
5357         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
5358         does not support namespaces, set the variable to "no", not to ":".
5359
5360 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
5361
5362         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
5363
5364 2011-11-06  Bruno Haible  <bruno@clisp.org>
5365
5366         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
5367         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
5368         (minus_zerol) [HP-UX]: New macro.
5369         (unary_minus) [HP-UX]: New function.
5370         (copysignl) [HP-UX]: Use unary_minus function.
5371
5372 2011-11-06  Bruno Haible  <bruno@clisp.org>
5373
5374         ldexp, ldexpf, ldexpl: Enhance tests.
5375         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
5376         and tests/test-ldexpl.c.
5377         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
5378         LDEXP, MIN_EXP, MAX_EXP): New macros.
5379         Include test-ldexp.h.
5380         (main): Just call test_function.
5381         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
5382         infinity.h, nan.h.
5383         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
5384         MAX_EXP): New macros.
5385         Include test-ldexp.h.
5386         (x, y): Remove variables.
5387         (main): Just call test_function.
5388         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
5389         infinity.h, nan.h.
5390         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
5391         MAX_EXP): New macros.
5392         Include test-ldexp.h.
5393         (x, y): Remove variables.
5394         (main): Just call test_function.
5395         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
5396         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
5397         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
5398         (Depends-on): Add isnand-nolibm, signbit, float.
5399         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
5400         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
5401         (Depends-on): Add isnanf-nolibm, signbit, float.
5402
5403 2011-11-06  Bruno Haible  <bruno@clisp.org>
5404
5405         math tests: Cosmetics.
5406         * tests/test-math-c++.cc: Reorder declarations.
5407
5408 2011-11-05  Bruno Haible  <bruno@clisp.org>
5409
5410         fma*: Simplify test.
5411         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
5412         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
5413
5414         Tests for module 'fmal'.
5415         * modules/fmal-tests: New file.
5416         * tests/test-fmal1.c: New file.
5417         * tests/test-fmal2.c: New file.
5418
5419         New module 'fmal'.
5420         * lib/math.in.h (fmal): New declaration.
5421         * lib/fmal.c: New file.
5422         * m4/fmal.m4: New file.
5423         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
5424         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
5425         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
5426         REPLACE_FMAL.
5427         * modules/fmal: New file.
5428         * doc/posix-functions/fmal.texi: Mention the new module and the various
5429         bugs.
5430
5431         Tests for module 'fmaf'.
5432         * modules/fmaf-tests: New file.
5433         * tests/test-fmaf1.c: New file.
5434         * tests/test-fmaf2.c: New file.
5435
5436         New module 'fmaf'.
5437         * lib/math.in.h (fmaf): New declaration.
5438         * lib/fmaf.c: New file.
5439         * m4/fmaf.m4: New file.
5440         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
5441         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
5442         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
5443         REPLACE_FMAF.
5444         * modules/fmaf: New file.
5445         * doc/posix-functions/fmaf.texi: Mention the new module and the various
5446         bugs.
5447
5448         Tests for module 'fma'.
5449         * modules/fma-tests: New file.
5450         * tests/test-fma1.c: New file.
5451         * tests/test-fma1.h: New file.
5452         * tests/test-fma2.c: New file.
5453         * tests/test-fma2.h: New file.
5454
5455         New module 'fma'.
5456         * lib/math.in.h (fma): New declaration.
5457         * lib/fma.c: New file.
5458         * m4/fma.m4: New file.
5459         * m4/fegetround.m4: New file.
5460         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
5461         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
5462         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
5463         REPLACE_FMA.
5464         * modules/fma: New file.
5465         * doc/posix-functions/fma.texi: Mention the new module and the various
5466         bugs.
5467
5468         Extend gl_MATHFUNC.
5469         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
5470         Support 'void' as argument type.
5471         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
5472
5473 2011-11-05  Jim Meyering  <meyering@redhat.com>
5474
5475         maint.mk: also prohibit inclusion of dirent.h without use
5476         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
5477
5478 2011-11-05  Bruno Haible  <bruno@clisp.org>
5479
5480         ldexpl tests: Avoid test failure on MSVC 9.
5481         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
5482         value. Needed in order to enforce the conversion from a value greater
5483         than LDBL_MAX to Infinity.
5484
5485 2011-11-05  Bruno Haible  <bruno@clisp.org>
5486
5487         New modules 'at-internal', 'openat-h', split off from module 'openat'.
5488         * modules/at-internal: New file, extracted from modules/openat.
5489         * modules/openat-h: New file.
5490         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
5491         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
5492         * modules/openat (Description): Add reference to POSIX function.
5493         (Files): Remove lib/openat.h, lib/openat-proc.c.
5494         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
5495         intprops, unistd.
5496         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
5497         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
5498         gl_FCNTL_MODULE_INDICATOR.
5499         (Include): Remove unistd.h, openat.h.
5500         * modules/areadlinkat (Files): Add lib/at-func.c.
5501         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
5502         openat-die, openat-h, save-cwd.
5503         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
5504         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
5505         openat-die, openat-h, save-cwd, unistd.
5506         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
5507         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5508         openat-h, save-cwd. Remove fcntl-h, openat.
5509         * modules/fchmodat (Files): Remove lib/openat.h.
5510         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
5511         openat, stdbool, unistd.
5512         * modules/fchownat (Files): Remove lib/openat.h.
5513         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
5514         openat, stdbool, sys_stat.
5515         * modules/fdopendir (Files): Remove lib/openat-priv.h,
5516         lib/openat-proc.c.
5517         (Depends-on): Add at-internal.
5518         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
5519         * modules/fstatat (Files): Remove lib/openat.h.
5520         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
5521         stdbool, unistd.
5522         * modules/fts (Depends-on): Add openat-h.
5523         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
5524         openat.
5525         * modules/mkdirat (Files): Remove lib/openat.h.
5526         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
5527         openat, stdbool, sys_stat.
5528         * modules/mkfifoat (Files): Add lib/at-func.c.
5529         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5530         openat-h, save-cwd. Remove fcntl-h, openat.
5531         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
5532         * modules/readlinkat (Files): Add lib/at-func.c.
5533         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5534         openat-h, save-cwd. Remove fcntl-h, openat.
5535         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
5536         openat.
5537         * modules/selinux-at (Files): Add lib/at-func.c.
5538         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
5539         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
5540         * modules/symlinkat (Files): Add lib/at-func.c.
5541         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
5542         openat-h, save-cwd. Remove fcntl-h, openat.
5543         * modules/unlinkat (Files): Remove lib/openat.h.
5544         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
5545         stdbool.
5546         * modules/utimensat (Files): Add lib/at-func.c.
5547         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
5548         openat-die, openat-h, save-cwd.
5549         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
5550         * modules/fdutimensat-tests (Depends-on): Add openat.
5551         * modules/fstatat-tests (Depends-on): Add openat-h.
5552         * modules/readlinkat-tests (Depends-on): Add openat.
5553         * modules/symlinkat-tests (Depends-on): Add openat.
5554
5555 2011-11-05  Bruno Haible  <bruno@clisp.org>
5556
5557         openat: Include <stdbool.h>.
5558         * lib/openat.c: Include <stdbool.h>.
5559
5560 2011-11-04  Bruno Haible  <bruno@clisp.org>
5561
5562         fchownat, renameat, unlinkat: Fix dependencies.
5563         * modules/fchownat (Depends-on): Add fstatat.
5564         * modules/renameat (Depends-on): Likewise.
5565         * modules/unlinkat (Depends-on): Likewise.
5566
5567 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
5568
5569         openat: remove direct dependency on dirent
5570         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
5571         and hasn't been needed ever since fdopendir was split into its own
5572         module on 2009-08-31.
5573         * modules/openat (Depends-on): Remove dirent.
5574
5575 2011-11-04  Bruno Haible  <bruno@clisp.org>
5576
5577         renameat: Optimize code size.
5578         * modules/renameat (configure.ac): Don't compile at-func2.c if
5579         REPLACE_RENAMEAT is 1.
5580
5581 2011-11-04  Bruno Haible  <bruno@clisp.org>
5582
5583         openat tests: Fix file list.
5584         * modules/openat-tests (Files): Add tests/test-open.h.
5585
5586 2011-11-04  Bruno Haible  <bruno@clisp.org>
5587
5588         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
5589         * modules/fchmodat (Depends-on): Add openat-die.
5590         * modules/fchownat (Depends-on): Likewise.
5591         * modules/linkat (Depends-on): Likewise.
5592         * modules/renameat (Depends-on): Likewise.
5593         * modules/openat (Depends-on): Add dirent.
5594
5595 2011-11-04  Jim Meyering  <meyering@redhat.com>
5596
5597         at-func*.c: fix comments
5598         * lib/at-func2.c: Correct/improve first-line comment.
5599         * lib/at-func.c: Correct grammar in first-line comment.
5600
5601 2011-11-04  Bruno Haible  <bruno@clisp.org>
5602
5603         New module 'mkdirat', split off from module 'openat'.
5604         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
5605         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
5606         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
5607         * modules/mkdirat: New file, extracted from modules/openat.
5608         * modules/openat (Files): Remove lib/mkdirat.c.
5609         (Depends-on): Remove mkdir.
5610         (configure.ac): Remove AC_LIBOBJ of mkdirat.
5611         (Include): Remove <sys/stat.h>.
5612         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
5613         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
5614         tests/test-mkdir.h.
5615         (Depends-on): Remove ignore-value.
5616         (Makefile.am): Remove rules for test-mkdirat.
5617         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
5618         of module 'openat'.
5619         * NEWS: Mention the change.
5620
5621 2011-11-04  Bruno Haible  <bruno@clisp.org>
5622
5623         closedir: Avoid warning on mingw.
5624         * lib/closedir.c: Include <unistd.h>.
5625
5626 2011-11-04  Bruno Haible  <bruno@clisp.org>
5627
5628         New module 'fstatat', split off from module 'openat'.
5629         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
5630         defined.
5631         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
5632         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
5633         gl_FUNC_FSTATAT.
5634         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
5635         * modules/fstatat: New file, extracted from modules/openat.
5636         * modules/openat (Files): Remove lib/fstatat.c.
5637         (Depends-on): Remove lstat.
5638         (configure.ac): Remove AC_LIBOBJ of fstatat.
5639         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
5640         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
5641         tests/test-lstat.h, tests/test-stat.h.
5642         (Depends-on): Remove getcwd-lgpl.
5643         (Makefile.am): Remove rules for test-fstatat.
5644         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
5645         of module 'openat'.
5646         * NEWS: Mention the change.
5647         * modules/getcwd (Depends-on): Add fstatat.
5648         * modules/linkat (Depends-on): Likewise.
5649         * modules/mkfifoat-tests (Depends-on): Likewise.
5650         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
5651
5652 2011-11-03  Bruno Haible  <bruno@clisp.org>
5653
5654         New module 'unlinkat', split off from module 'openat'.
5655         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
5656         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
5657         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
5658         * modules/unlinkat: New file, extracted from modules/openat. Correct
5659         the dependency conditions.
5660         * modules/openat (Files): Remove lib/unlinkat.c.
5661         (Depends-on): Remove rmdir, unlink.
5662         (configure.ac): Remove AC_LIBOBJ of unlinkat.
5663         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
5664         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
5665         tests/test-rmdir.h, tests/test-unlink.h.
5666         (Depends-on): Remove unlinkdir.
5667         (Makefile.am): Remove rules for test-unlinkat.
5668         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
5669         of module 'openat'.
5670         * NEWS: Mention the change.
5671         * modules/linkat-tests (Depends-on): Add unlinkat.
5672         * modules/mkfifoat-tests (Depends-on): Likewise.
5673         * modules/readlinkat-tests (Depends-on): Likewise.
5674
5675 2011-11-02  Bruno Haible  <bruno@clisp.org>
5676
5677         New module 'fchmodat', split off from module 'openat'.
5678         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
5679         defined.
5680         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
5681         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
5682         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
5683         * modules/fchmodat: New file, extracted from modules/openat.
5684         * modules/openat (Files): Remove lib/fchmodat.c.
5685         (configure.ac): Remove AC_LIBOBJ of fchmodat.
5686         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
5687         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
5688         (Makefile.am): Remove rules for test-fchmodat.
5689         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
5690         of module 'openat'.
5691         * NEWS: Mention the change.
5692
5693 2011-11-02  Jim Meyering  <meyering@redhat.com>
5694
5695         putenv: indent #definition of "environ" to placate cppi
5696         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
5697
5698         gitlog-to-changelog: provide a ChangeLog-repair mechanism
5699         Git logs are often treated as immutable, because editing them
5700         changes the SHA1 checksums of all descendants.  Thus, errors in
5701         git logs tend to stay there forever.  However, when we generate
5702         a ChangeLog file -- typically for distribution -- from that git log,
5703         we can actually make corrections in the generated file.  The key
5704         lies in recording in machine-readable/applicable form the desired
5705         corrections.  See --help for description and an example.
5706         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
5707         (usage): Describe it; alphabetize option descriptions.
5708         (main): Honor the new option, carefully.
5709
5710 2011-11-01  Jim Meyering  <meyering@redhat.com>
5711
5712         gitlog-to-changelog: avoid an infloop
5713         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
5714         that ends up being empty.
5715
5716 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
5717
5718         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
5719         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
5720         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
5721         contains (possibly-quoted) backslashes.  This should avoid
5722         all-too-common shell bugs if COMPLICATED contains backslashes in
5723         the "wrong" places.  Reported by David Evans in
5724         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
5725         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
5726         because we want ASCII ranges.  Is there some reason we don't use
5727         the C locale everywhere in this script?
5728         (func_module, top level): Avoid unwanted pathname expansion when
5729         $repo_url_prefix or $repo_url_suffix_repl contain shell
5730         metacharacters like '?' and '*'.
5731
5732 2011-11-01  Bruno Haible  <bruno@clisp.org>
5733
5734         fchownat: Improve description.
5735         * modules/fchownat (Description): Add link to function.
5736
5737 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
5738
5739         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
5740         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
5741         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
5742         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
5743
5744 2011-11-01  Bruno Haible  <bruno@clisp.org>
5745
5746         alignof: Avoid collision with stdalign module.
5747         * lib/alignof.h (alignof): Remove macro.
5748         * NEWS: Mention the change.
5749         Reported by Paul Eggert.
5750
5751 2011-11-01  Bruno Haible  <bruno@clisp.org>
5752
5753         New module 'fchownat', split off from module 'openat'.
5754         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
5755         defined.
5756         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
5757         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
5758         invoke gl_FUNC_FCHOWNAT.
5759         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
5760         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
5761         * modules/fchownat: New file, extracted from modules/openat.
5762         * modules/openat (Files): Remove lib/fchownat.c.
5763         (Depends-on): Remove lchown.
5764         (configure.ac): Remove AC_LIBOBJ of fchownat.
5765         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
5766         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
5767         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
5768         (Depends-on): Remove mgetgroups, usleep, stat-time.
5769         (configure.ac): Remove test for getegid.
5770         (Makefile.am): Remove rules for test-fchownat.
5771         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
5772         of module 'openat'.
5773         * NEWS: Mention the change.
5774
5775 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
5776
5777         stdalign: port better to MSVC and to Sun C 5.11
5778         This fixes some of the problems reported by Bruno Haible in
5779         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
5780         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
5781         shortcomings of MSVC and of Sun C 5.11.
5782         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
5783         around __declspec arg.
5784         * modules/stdalign-tests (Files): Add tests/macros.h.
5785         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
5786         Include macros.h, for ASSERT.
5787         (DECLARE_ALIGNED): Remove.
5788         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
5789         to catch bug), and to 1 if not (simplifies the rest of the code).
5790         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
5791         (CHECK_AUTO): Remove.
5792         (CHECK_ALIGNED): Check only the alignment of the static vars,
5793         since auto var alignment isn't supported by Sun C 5.11.
5794         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
5795         ASSERT failures are easier to diagnose.
5796
5797 2011-10-31  Bruno Haible  <bruno@clisp.org>
5798
5799         doc about some IRIX 5.3 problems.
5800         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
5801         on IRIX 5.3.
5802         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
5803         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
5804         5.3.
5805         * doc/posix-functions/grantpt.texi: Likewise.
5806         * doc/posix-functions/unlockpt.texi: Likewise.
5807         * doc/posix-functions/lgamma.texi: Likewise.
5808         * doc/posix-functions/nextafter.texi: Likewise.
5809         * doc/posix-functions/remainder.texi: Likewise.
5810         * doc/posix-functions/select.texi: Mention misplaced declaration on
5811         IRIX 5.3.
5812         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5813
5814 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
5815
5816         gitlog-to-changelog: fix git-log invocation.
5817         git-log mishandles date strings before 1970-01-01 UTC, and there is
5818         no use to specify --since=1970-01-01 by default anyway.
5819         * build-aux/gitlog-to-changelog: By default, when no --since option
5820         was given, do not specify explicit --since option to git-log.
5821
5822 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
5823
5824         gitlog-to-changelog: new option --append-dot.
5825         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
5826         first non-blank line of each commit message terminated with a dot.
5827
5828 2011-10-30  Bruno Haible  <bruno@clisp.org>
5829
5830         ffsl, ffsll: Avoid compilation error due to 'restrict'.
5831         * lib/ffsl.h: Include <config.h>.
5832         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
5833
5834 2011-10-30  Jim Meyering  <meyering@redhat.com>
5835
5836         GNUmakefile: reenable "make syntax-check" for most projects
5837         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
5838         build-aux variable", "syntax-check" would do nothing but succeed with
5839         the "No version control files detected..." diagnostic (unless you
5840         happened to override _build-aux via cfg.mk).
5841         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
5842         to precede inclusion of maint.mk.  Otherwise, these variables would
5843         be used undefined in any project that does not override the default.
5844
5845 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
5846
5847         gitlog-to-changelog: treat a message with only blank lines as empty.
5848         * build-aux/gitlog-to-changelog: Move the code that removes leading and
5849         trailing blank lines before the code that issues a warning about an
5850         empty commit message.
5851
5852 2011-10-30  Jim Meyering  <meyering@redhat.com>
5853
5854         test-parse-datetime.c: avoid new DST-related false positive test failure
5855         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
5856         based on the time/date we'll convert, not the current time.
5857         Otherwise, the moment we cross a DST boundary like today's in
5858         Europe, (CEST to CET), that offset ends up being one hour off.
5859
5860 2011-10-27  Bruno Haible  <bruno@clisp.org>
5861
5862         fstat: Tweak documentation.
5863         * modules/fstat (Description): More precise description.
5864
5865 2011-10-27  Bruno Haible  <bruno@clisp.org>
5866
5867         Update documentation regarding 'largefile' module.
5868         * doc/posix-functions/fstat.texi: Tweak wording.
5869         * doc/posix-functions/opendir.texi: Mention that the module fixes the
5870         problems with huge directories and/or small ino_t types.
5871         * doc/posix-functions/readdir.texi: Likewise.
5872         * doc/posix-functions/rewinddir.texi: Likewise.
5873
5874 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
5875
5876         maint.mk: don't maintain a second build-aux variable.
5877         * maint.mk (build_aux): Removed.  The maintainer-makefile module
5878         depends on GNUmakefile, which already maintains a cfg.mk
5879         overridable $(_build-aux) for projects with a non-standard
5880         build-aux directory location, although without the $(srcdir)
5881         prefix.  Use that variable consistently instead of introducing a
5882         second one.  Adjust all call sites.
5883
5884 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
5885
5886         Add stdalign module and use it in other modules.
5887         This is based on a previous proposal by Bruno Haible
5888         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
5889
5890         stdalign: new module
5891         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
5892         * modules/stdalign: New files.
5893         * MODULES.html.sh (c1x_core_properties): Add stdalign.
5894         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
5895
5896         stdalign-tests: new module
5897         * modules/stdalign-tests, tests/test-stdalign.c: New files.
5898
5899         argp: use stdalign
5900         * lib/argp-parse.c: Include <stdalign.h>.
5901         (alignof): Remove.
5902         * modules/argp (Depends-on): Add stdalign.
5903
5904         crypto libraries: use stdalign
5905         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
5906         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
5907         Do not include <stdlib.h> twice, in md4.c.
5908         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
5909         because we are accessing a pointer's bit-pattern, not a size.
5910         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
5911         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
5912         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
5913         * modules/crypto/sha512: Likewise.
5914
5915         sys_socket: use stdalign, not alignof
5916         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
5917         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
5918
5919 2011-10-27  Bruno Haible  <bruno@clisp.org>
5920
5921         raise test: Avoid a test failure on Linux/MIPS.
5922         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
5923         because 99 is a valid signal on Linux/MIPS.
5924
5925 2011-10-27  Bruno Haible  <bruno@clisp.org>
5926
5927         nonblocking tests: Fix test failure on Linux/MIPS.
5928         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
5929         Set to 270000.
5930
5931 2011-10-27  Bruno Haible  <bruno@clisp.org>
5932
5933         utimensat: Work around problem on Linux/hppa.
5934         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
5935         values.
5936         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
5937
5938 2011-10-25  Jim Meyering  <meyering@redhat.com>
5939
5940         maint.mk: fix a bug in sc_prohibit_stddef_without_use
5941         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
5942         after symbols like NULL, size_t, etc.
5943         Reported by Alfred M. Szmidt.
5944
5945         maint.mk: exempt ENODATA from a syntax-check rule
5946         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
5947         from the sc_prohibit_always-defined_macros syntax-check rule.
5948         Add a comment.  See this for more details:
5949         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
5950
5951 2011-10-23  Jim Meyering  <meyering@redhat.com>
5952
5953         fts: close parent dir FD before returning from post-traversal fts_read
5954         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
5955         unlink A, even though an FD open on A remained.  This is suboptimal
5956         (holding a file descriptor open longer than needed), but otherwise not
5957         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
5958         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
5959         that represents a real problem: it causes the removal of A to fail
5960         with e.g., "rm: cannot remove `A': Device or resource busy"
5961
5962         fts visits each directory twice and keeps a cache (fts_fd_ring) of
5963         directory file descriptors.  After completing the final, FTS_DP,
5964         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
5965         cache, but then proceeded to add a new FD to it via the subsequent
5966         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
5967         final file descriptor would be closed only via fts_close's call to
5968         fd_ring_clear.  Now, it is usually closed earlier, via the final
5969         FTS_DP-returning fts_read call.
5970         * lib/fts.c (restore_initial_cwd): New function, converted from
5971         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
5972         Update callers.
5973         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
5974         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
5975
5976 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
5977             Bruno Haible  <bruno@clisp.org>
5978             Jim Meyering  <jim@meyering.net>
5979
5980         readme-release: improve safety of release prep instructions.
5981         * README-release: Don't git pull all branches when only master
5982         is needed for the release process.
5983         Run make maintainer-clean before changing trees and merging.
5984         Don't try to run ./configure right after git pull in case files
5985         that influence the bootstrap process have changed, move the
5986         ./configure step to after running ./bootstrap.
5987         Don't bootstrap "one last time"... it's the first time!
5988
5989 2011-10-22  Bruno Haible  <bruno@clisp.org>
5990
5991         errno, strerror-override: Support for MSVC 10.
5992         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
5993         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
5994         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
5995         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
5996         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
5997         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
5998         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
5999         Assign values compatible with MSVC 10.
6000         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
6001         New macros.
6002         (GNULIB_defined_EWINSOCK): New macro.
6003         * lib/strerror-override.c (strerror_override): Update accordingly.
6004         * lib/strerror-override.h: Likewise.
6005         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
6006         longer equal to the corresponding errno value.
6007         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6008
6009 2011-10-22  Bruno Haible  <bruno@clisp.org>
6010
6011         perror: Recognize when test program crashes.
6012         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
6013         strerror, set gl_cv_func_perror_works to no.
6014         Reported by Daniel Richard G. <skunk@iskunk.org>.
6015
6016         perror: Fix indentation.
6017         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
6018
6019 2011-10-22  Bruno Haible  <bruno@clisp.org>
6020
6021         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
6022         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
6023         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
6024         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
6025         functions, not as a macro.
6026         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
6027         macros.
6028         (isfinite, isinf, isnan, signbit): Check overloaded functions and
6029         absence of macro.
6030         Suggested by Eric Blake.
6031         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6032
6033 2011-10-21  Bruno Haible  <bruno@clisp.org>
6034
6035         relocatable-prog-wrapper: Don't leave object files behind.
6036         * build-aux/install-reloc: Re-synchronize list of .o files to be
6037         removed with list of compilation units.
6038
6039 2011-10-20  Bruno Haible  <bruno@clisp.org>
6040
6041         openpty, posix_openpt: Remove code duplication.
6042         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
6043         * lib/openpty.c: Include <stdlib.h>.
6044         (openpty): Use posix_openpt on all platforms except IRIX.
6045         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
6046
6047 2011-10-20  Bruno Haible  <bruno@clisp.org>
6048
6049         unlockpt: Detect invalid argument.
6050         * lib/unlockpt.c: Include <fcntl.h>.
6051         (unlockpt): Check whether fd is valid, using fcntl().
6052         * modules/unlockpt (Depends-on): Add fcntl-h.
6053
6054 2011-10-20  Bruno Haible  <bruno@clisp.org>
6055
6056         openpty: Avoid compilation error on AIX 6.1.
6057         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
6058
6059 2011-10-20  Bruno Haible  <bruno@clisp.org>
6060
6061         posix_openpt: Support for OpenBSD.
6062         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
6063         (posix_openpt) [OpenBSD]: New code.
6064         * lib/grantpt.c: Include <fcntl.h>.
6065         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
6066         * modules/grantpt (Depends-on): Add fcntl-h.
6067
6068 2011-10-20  Bruno Haible  <bruno@clisp.org>
6069
6070         posix_openpt test: Coding style.
6071         * tests/test-posix_openpt.c: Use GNU coding style.
6072
6073 2011-10-20  Bruno Haible  <bruno@clisp.org>
6074
6075         grantpt: Support --avoid=pt_chown.
6076         * modules/grantpt (Files): Add lib/pty-private.h.
6077
6078 2011-10-20  Bruno Haible  <bruno@clisp.org>
6079
6080         posix_openpt: Fix autoconf macro.
6081         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
6082         unneeded check for _getpty.
6083
6084 2011-10-20  Bruno Haible  <bruno@clisp.org>
6085
6086         openpty: Update comments.
6087         * lib/openpty.c: Add comments about Minix.
6088
6089 2011-10-19  Eric Blake  <eblake@redhat.com>
6090
6091         openpty: relax license
6092         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
6093
6094         pt_chown: use configmake to simplify build
6095         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
6096
6097         ptsname and others: relax license
6098         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
6099         * modules/unlockpt (License): Likewise.
6100         * modules/pt_chown (License): Likewise.
6101         * modules/ptsname (License): Likewise.
6102         * modules/ttyname_r (License): Likewise.
6103
6104 2011-10-19  Jim Meyering  <meyering@redhat.com>
6105
6106         posix_openpt: remove spurious #endif
6107         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
6108
6109 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
6110
6111         maint.mk: Respect $(build_aux) in web-manual rule.
6112         * top/maint.mk (web-manual): Find gen-announce script in user's
6113         $(build_aux) directory instead of hard-coding 'build-aux'.
6114
6115 2011-10-19  Bruno Haible  <bruno@clisp.org>
6116
6117         posix_openpt: Fix compilation error.
6118         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
6119         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
6120         Mention the openpty module as an alternative.
6121
6122 2011-10-19  Bruno Haible  <bruno@clisp.org>
6123
6124         Support for old NeXTstep 3.3 frexp().
6125         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
6126         execution time of the test to 5 seconds.
6127         Reported by Daniel Richard G. <skunk@iskunk.org>.
6128
6129 2011-10-19  Bruno Haible  <bruno@clisp.org>
6130
6131         Support for old NeXTstep 3.3 sed.
6132         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
6133         part, use /.../, not \|...|. Escape periods in the header file name.
6134         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
6135         Reported by Daniel Richard G. <skunk@iskunk.org>.
6136
6137 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
6138
6139         Support for old NeXTstep 3.3 gcc.
6140         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
6141         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
6142         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
6143         * lib/spawn.in.h (_Restrict_arr_): Likewise.
6144         * lib/regex.h (_Restrict_arr_): Likewise.
6145         * lib/regex_internal.h (re_token_t): Likewise.
6146         * lib/regexec.c (check_node_accept_bytes): Likewise.
6147         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
6148
6149 2011-10-18  Eric Blake  <eblake@redhat.com>
6150
6151         posix_openpt: new module
6152         * modules/posix_openpt: New module.
6153         * m4/posix_openpt.m4: New file.
6154         * lib/posix_openpt.c: Likewise.
6155         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
6156         (gl_STDLIB_H_DEFAULTS): Set defaults.
6157         * modules/stdlib (Makefile.am): Substitute macros.
6158         * lib/stdlib.in.h (posix_openpt): Declare.
6159         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
6160         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
6161         * modules/posix_openpt-tests: New test module.
6162         * tests/test-posix_openpt.c: New test.
6163
6164 2011-10-15  Bruno Haible  <bruno@clisp.org>
6165
6166         xstrtoll: Fix compilation failure.
6167         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
6168         from lib/strtol.c.
6169         * doc/posix-headers/limits.texi: Mention missing numerical limits on
6170         some platforms.
6171         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6172
6173 2011-10-15  Bruno Haible  <bruno@clisp.org>
6174
6175         vasnprintf: Optimize bit search operation.
6176         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
6177         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
6178         gl_DOUBLE_EXPONENT_LOCATION.
6179         * modules/vasnprintf (Files): Add m4/exponentd.m4.
6180         * modules/unistdio/u8-vasnprintf (Files): Likewise.
6181         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
6182         * modules/unistdio/u16-vasnprintf (Files): Likewise.
6183         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
6184         * modules/unistdio/u32-vasnprintf (Files): Likewise.
6185         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
6186         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
6187         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
6188
6189 2011-10-15  Bruno Haible  <bruno@clisp.org>
6190
6191         vasnprintf: Fix comments.
6192         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
6193
6194 2011-10-14  Bruno Haible  <bruno@clisp.org>
6195
6196         Tests for module 'integer_length_ll'.
6197         * modules/integer_length_ll-tests: New file.
6198         * tests/test-integer_length_ll.c: New file.
6199
6200         New module 'integer_length_ll'.
6201         * lib/integer_length_ll.c: New file.
6202         * modules/integer_length_ll: New file.
6203
6204 2011-10-14  Bruno Haible  <bruno@clisp.org>
6205
6206         Tests for module 'integer_length_l'.
6207         * modules/integer_length_l-tests: New file.
6208         * tests/test-integer_length_l.c: New file.
6209
6210         New module 'integer_length_l'.
6211         * lib/integer_length_l.c: New file.
6212         * modules/integer_length_l: New file.
6213
6214 2011-10-14  Bruno Haible  <bruno@clisp.org>
6215
6216         Tests for module 'integer_length'.
6217         * modules/integer_length-tests: New file.
6218         * tests/test-integer_length.c: New file.
6219
6220         New module 'integer_length'.
6221         * lib/integer_length.h: New file.
6222         * lib/integer_length.c: New file.
6223         * modules/integer_length: New file.
6224
6225 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
6226
6227         popen: Fix dependency conditions.
6228         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
6229
6230 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
6231
6232         perror: Fix autoconf test.
6233         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
6234         <stdlib.h> and <string.h>.
6235
6236 2011-10-14  Bruno Haible  <bruno@clisp.org>
6237
6238         ffsl: Optimize on 64-bit platforms.
6239         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
6240         unrolling.
6241
6242 2011-10-13  Bruno Haible  <bruno@clisp.org>
6243
6244         ffsl: Optimize on 32-bit platforms.
6245         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
6246         use ffs() without a loop.
6247
6248         ffsl, ffsll: Optimize for GCC.
6249         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
6250         * lib/ffsl.c (GCC_BUILTIN): New macro.
6251         * lib/ffsll.c (GCC_BUILTIN): Likewise.
6252
6253 2011-10-13  Bruno Haible  <bruno@clisp.org>
6254
6255         ffs, bcopy, memset: Support symbol renaming via config.h.
6256         * lib/ffs.c: Include <config.h>.
6257         * lib/bcopy.c: Likewise.
6258         * lib/memset.c: Likewise.
6259
6260 2011-10-10  Bruno Haible  <bruno@clisp.org>
6261
6262         atanl: Simplify for platforms where 'long double' == 'double'.
6263         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6264         alternative implementation.
6265         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6266         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6267         * modules/atanl (Depends-on): Add atan. Update conditions.
6268
6269 2011-10-10  Bruno Haible  <bruno@clisp.org>
6270
6271         acosl: Simplify for platforms where 'long double' == 'double'.
6272         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6273         alternative implementation.
6274         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6275         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6276         * modules/acosl (Depends-on): Add acos. Update conditions.
6277
6278 2011-10-10  Bruno Haible  <bruno@clisp.org>
6279
6280         asinl: Simplify for platforms where 'long double' == 'double'.
6281         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6282         alternative implementation.
6283         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6284         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6285         * modules/asinl (Depends-on): Add asin. Update conditions.
6286
6287 2011-10-10  Bruno Haible  <bruno@clisp.org>
6288
6289         tanl: Simplify for platforms where 'long double' == 'double'.
6290         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6291         implementation.
6292         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6293         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6294         * modules/tanl (Depends-on): Add tan. Update conditions.
6295         (configure.ac): Don't compile trigl.c if
6296         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6297
6298 2011-10-10  Bruno Haible  <bruno@clisp.org>
6299
6300         cosl: Simplify for platforms where 'long double' == 'double'.
6301         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6302         implementation.
6303         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6304         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6305         * modules/cosl (Depends-on): Add cos. Update conditions.
6306         (configure.ac): Don't compile sincosl.c and trigl.c if
6307         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6308
6309 2011-10-10  Bruno Haible  <bruno@clisp.org>
6310
6311         sinl: Simplify for platforms where 'long double' == 'double'.
6312         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6313         implementation.
6314         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6315         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6316         * modules/sinl (Depends-on): Add sin. Update conditions.
6317         (configure.ac): Don't compile sincosl.c and trigl.c if
6318         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6319
6320 2011-10-10  Bruno Haible  <bruno@clisp.org>
6321
6322         logl: Simplify for platforms where 'long double' == 'double'.
6323         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6324         implementation.
6325         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6326         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6327         * modules/logl (Depends-on): Add log. Update conditions.
6328
6329 2011-10-10  Bruno Haible  <bruno@clisp.org>
6330
6331         expl: Simplify for platforms where 'long double' == 'double'.
6332         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
6333         implementation.
6334         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6335         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6336         * modules/expl (Depends-on): Add exp. Update conditions.
6337
6338 2011-10-10  Bruno Haible  <bruno@clisp.org>
6339
6340         sqrtl: Simplify for platforms where 'long double' == 'double'.
6341         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6342         alternative implementation.
6343         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6344         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6345         * modules/sqrtl (Depends-on): Update conditions.
6346
6347 2011-10-10  Bruno Haible  <bruno@clisp.org>
6348
6349         ldexpl: Simplify for platforms where 'long double' == 'double'.
6350         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6351         alternative implementation.
6352         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6353         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6354         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
6355
6356 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
6357
6358         ffsll: set correct witness
6359         * modules/ffsll (configure.ac): Fix typo.
6360
6361 2011-10-10  Bruno Haible  <bruno@clisp.org>
6362
6363         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
6364         * lib/printf-frexpl.c: Include <config.h>.
6365         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6366         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
6367         second time.
6368         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
6369         gl_LONG_DOUBLE_VS_DOUBLE.
6370         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
6371         conditions.
6372
6373 2011-10-10  Bruno Haible  <bruno@clisp.org>
6374
6375         frexpl: Simplify for platforms where 'long double' == 'double'.
6376         * lib/frexpl.c: Include <config.h>.
6377         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6378         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6379         time.
6380         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6381         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6382         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
6383         * modules/frexpl (Depends-on): Add frexp. Update conditions.
6384         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
6385         conditions.
6386
6387 2011-10-10  Jim Meyering  <meyering@redhat.com>
6388
6389         test-renameat: don't leave behind a temporary file
6390         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
6391           ERROR: files left in build directory after distclean:
6392           ./gltests/test-renameat.too
6393           make[1]: *** [distcleancheck] Error 1
6394         Reported by Tom G. Christensen.
6395
6396 2011-10-09  Bruno Haible  <bruno@clisp.org>
6397
6398         rint: Determine RINT_LIBM correctly on AIX 7.
6399         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
6400         directly, not only through a function pointer. Also accept an optional
6401         4th argument with extra code.
6402         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
6403         rintf() call by gcc when optimizing.
6404
6405         mathfunc.m4: Refactor.
6406         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
6407         m4 variable.
6408
6409 2011-10-09  Bruno Haible  <bruno@clisp.org>
6410
6411         rintl: Simplify for platforms where 'long double' == 'double'.
6412         * lib/rintl.c: Include <config.h>.
6413         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6414         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6415         time.
6416         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6417         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6418         * modules/rintl (Depends-on): Add rint. Update conditions.
6419
6420 2011-10-09  Bruno Haible  <bruno@clisp.org>
6421
6422         roundl: Simplify for platforms where 'long double' == 'double'.
6423         * lib/roundl.c: Include <config.h>.
6424         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6425         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6426         time.
6427         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6428         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6429         * modules/roundl (Depends-on): Add round. Update conditions.
6430
6431 2011-10-09  Bruno Haible  <bruno@clisp.org>
6432
6433         truncl: Simplify for platforms where 'long double' == 'double'.
6434         * lib/truncl.c: Include <config.h>.
6435         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6436         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6437         time.
6438         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6439         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6440         * modules/truncl (Depends-on): Add trunc. Update conditions.
6441
6442 2011-10-09  Bruno Haible  <bruno@clisp.org>
6443
6444         ceill: Simplify for platforms where 'long double' == 'double'.
6445         * lib/ceill.c: Include <config.h>.
6446         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6447         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6448         time.
6449         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6450         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6451         * modules/ceill (Depends-on): Add ceil. Update conditions.
6452
6453 2011-10-09  Bruno Haible  <bruno@clisp.org>
6454
6455         floorl: Simplify for platforms where 'long double' == 'double'.
6456         * lib/floorl.c: Include <config.h>.
6457         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
6458         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
6459         time.
6460         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6461         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6462         * modules/floorl (Depends-on): Add floor. Update conditions.
6463
6464 2011-10-09  Bruno Haible  <bruno@clisp.org>
6465
6466         rint: Fix ordering constraints.
6467         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
6468         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
6469         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
6470
6471 2011-10-09  Bruno Haible  <bruno@clisp.org>
6472
6473         copysignl: Simplify for platforms where 'long double' == 'double'.
6474         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
6475         alternative.
6476         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6477         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
6478         * modules/copysignl (Depends-on): Add copysign. Update conditions.
6479
6480 2011-10-09  Bruno Haible  <bruno@clisp.org>
6481
6482         Tests for module 'rintl'.
6483         * modules/rintl-tests: New file.
6484         * tests/test-rintl.c: New file.
6485
6486         New module 'rintl'.
6487         * lib/math.in.h (rintl): New declaration.
6488         * lib/rintl.c: New file.
6489         * m4/rintl.m4: New file.
6490         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
6491         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
6492         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
6493         * modules/rintl: New file.
6494         * tests/test-math-c++.cc: Check the declaration of rintl.
6495         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
6496         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
6497         * doc/posix-functions/rintl.texi: Mention the new module.
6498
6499 2011-10-09  Bruno Haible  <bruno@clisp.org>
6500
6501         Tests for module 'rintf'.
6502         * modules/rintf-tests: New file.
6503         * tests/test-rintf.c: New file.
6504
6505         New module 'rintf'.
6506         * lib/math.in.h (rintf): New declaration.
6507         * lib/rintf.c: New file.
6508         * m4/rintf.m4: New file.
6509         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
6510         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
6511         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
6512         * modules/rintf: New file.
6513         * tests/test-math-c++.cc: Check the declaration of rintf.
6514         * doc/posix-functions/rintf.texi: Mention the new module.
6515
6516 2011-10-09  Bruno Haible  <bruno@clisp.org>
6517
6518         rint: Support for MSVC.
6519         * lib/math.in.h (rint): New declaration.
6520         * lib/rint.c: New file.
6521         * m4/rint.m4: New file.
6522         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
6523         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
6524         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
6525         * modules/rint (Description): Fix.
6526         (Files): Add lib/rint.c, m4/rint.m4.
6527         (Depends-on): Add math.
6528         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
6529         gl_MATH_MODULE_INDICATOR.
6530         * tests/test-math-c++.cc: Check the declaration of rint.
6531         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
6532         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
6533         * doc/posix-functions/rint.texi: Mention the replacement provided by
6534         the module.
6535
6536         rint tests: More tests.
6537         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
6538         minus-zero.h, infinity.h, nan.h.
6539         (main): Skip the test if the current rounding mode is not standard. Add
6540         tests for negative numbers, minus zero, infinity, NaN.
6541         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
6542         tests/nan.h.
6543         (Depends-on): Add isnand-nolibm.
6544
6545 2011-10-09  Bruno Haible  <bruno@clisp.org>
6546
6547         Tests for module 'copysignl'.
6548         * modules/copysignl-tests: New file.
6549         * tests/test-copysignl.c: New file.
6550
6551         New module 'copysignl'.
6552         * lib/math.in.h (copysignl): New declaration.
6553         * lib/copysignl.c: New file.
6554         * m4/copysignl.m4: New file.
6555         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
6556         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
6557         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
6558         HAVE_COPYSIGNL.
6559         * modules/copysignl: New file.
6560         * tests/test-math-c++.cc: Check the declaration of copysignl.
6561         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
6562         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
6563         * doc/posix-functions/copysignl.texi: Mention the new module.
6564
6565 2011-10-09  Bruno Haible  <bruno@clisp.org>
6566
6567         Tests for module 'copysignf'.
6568         * modules/copysignf-tests: New file.
6569         * tests/test-copysignf.c: New file.
6570
6571         New module 'copysignf'.
6572         * lib/math.in.h (copysignf): New declaration.
6573         * lib/copysignf.c: New file.
6574         * m4/copysignf.m4: New file.
6575         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
6576         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
6577         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
6578         HAVE_COPYSIGNF.
6579         * modules/copysignf: New file.
6580         * tests/test-math-c++.cc: Check the declaration of copysignf.
6581         * doc/posix-functions/copysignf.texi: Mention the new module.
6582
6583 2011-10-09  Bruno Haible  <bruno@clisp.org>
6584
6585         Ensure that HAVE_* variables are set to 1 before they are set to 0.
6586         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
6587         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
6588         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
6589         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
6590         gl_SIGNAL_H_DEFAULTS.
6591
6592 2011-10-09  Bruno Haible  <bruno@clisp.org>
6593
6594         poll: Make macro safer.
6595         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
6596         ac_cv_header_poll_h is not set.
6597
6598 2011-10-09  Bruno Haible  <bruno@clisp.org>
6599
6600         copysign: Provide replacement.
6601         * lib/math.in.h (copysign): New declaration.
6602         * lib/copysign.c: New file.
6603         * m4/copysign.m4: New file.
6604         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
6605         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
6606         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
6607         HAVE_COPYSIGN.
6608         * modules/copysign (Description): Clarify.
6609         (Files): Add lib/copysign.c, m4/copysign.m4.
6610         (Depends-on): Add math, signbit.
6611         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
6612         gl_MATH_MODULE_INDICATOR.
6613         * tests/test-math-c++.cc: Check the declaration of copysign.
6614         * doc/posix-functions/copysign.texi: Mention the effects of the module
6615         on Minix and MSVC.
6616
6617 2011-10-09  Bruno Haible  <bruno@clisp.org>
6618
6619         isinf: Ensure macro on AIX 5.1.
6620         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
6621         macro.
6622         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
6623
6624 2011-10-09  Bruno Haible  <bruno@clisp.org>
6625
6626         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
6627         * modules/snprintf-posix-tests (configure.ac): Require
6628         gl_LONG_DOUBLE_VS_DOUBLE.
6629         * modules/sprintf-posix-tests (configure.ac): Likewise.
6630         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
6631         * modules/vasprintf-posix-tests (configure.ac): Likewise.
6632         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
6633         * modules/vsprintf-posix-tests (configure.ac): Likewise.
6634         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
6635         tests on platforms where 'long double' is the same as 'double'.
6636         * tests/test-sprintf-posix.h (test_function): Likewise.
6637         * tests/test-vasnprintf-posix.c (test_function): Likewise.
6638         * tests/test-vasprintf-posix.c (test_function): Likewise.
6639
6640         *printf: Fix for platforms where 'long double' == 'double'.
6641         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
6642         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
6643         * modules/dprintf-posix (Files): Add m4/math_h.m4.
6644         * modules/fprintf-posix (Files): Likewise.
6645         * modules/obstack-printf-posix (Files): Likewise.
6646         * modules/snprintf-posix (Files): Likewise.
6647         * modules/sprintf-posix (Files): Likewise.
6648         * modules/vasnprintf (Files): Likewise.
6649         * modules/vasnprintf-posix (Files): Likewise.
6650         * modules/vasprintf-posix (Files): Likewise.
6651         * modules/vdprintf-posix (Files): Likewise.
6652         * modules/vfprintf-posix (Files): Likewise.
6653         * modules/vsnprintf-posix (Files): Likewise.
6654         * modules/vsprintf-posix (Files): Likewise.
6655         * modules/unistdio/u8-vasnprintf (Files): Likewise.
6656         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
6657         * modules/unistdio/u16-vasnprintf (Files): Likewise.
6658         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
6659         * modules/unistdio/u32-vasnprintf (Files): Likewise.
6660         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
6661         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
6662
6663         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
6664         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
6665         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
6666         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
6667         'long double'.
6668         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
6669
6670         isinf: Fix for platforms where 'long double' == 'double'.
6671         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
6672         Don't blindly assume 80-bit 'long double'.
6673
6674         isfinite: Fix for platforms where 'long double' == 'double'.
6675         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
6676         Don't blindly assume 80-bit 'long double'.
6677
6678         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
6679         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
6680         * modules/isfinite-tests (configure.ac): Require
6681         gl_LONG_DOUBLE_VS_DOUBLE.
6682         * modules/isinf-tests (configure.ac): Likewise.
6683         * modules/isnan-tests (configure.ac): Likewise.
6684         * modules/isnanl-tests (configure.ac): Likewise.
6685         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
6686         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
6687         tests on platforms where 'long double' is the same as 'double'.
6688         * tests/test-isinf.c (test_isinfl): Likewise.
6689         * tests/test-isnan.c (test_long_double): Likewise.
6690         * tests/test-isnanl.h (main): Likewise.
6691
6692 2011-10-08  Bruno Haible  <bruno@clisp.org>
6693
6694         Tests for module 'tanhf'.
6695         * modules/tanhf-tests: New file.
6696         * tests/test-tanhf.c: New file.
6697
6698         New module 'tanhf'.
6699         * lib/math.in.h (tanhf): New declaration.
6700         * lib/tanhf.c: New file.
6701         * m4/tanhf.m4: New file.
6702         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
6703         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
6704         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
6705         * modules/tanhf: New file.
6706         * tests/test-math-c++.cc: Check the declaration of tanhf.
6707         * doc/posix-functions/tanhf.texi: Mention the new module.
6708
6709         tanh: Use a .m4 file.
6710         * m4/tanh.m4: New file.
6711         * modules/tanh (Files): Add it.
6712         (configure.ac): Just invoke gl_FUNC_TANH.
6713
6714 2011-10-08  Bruno Haible  <bruno@clisp.org>
6715
6716         Tests for module 'coshf'.
6717         * modules/coshf-tests: New file.
6718         * tests/test-coshf.c: New file.
6719
6720         New module 'coshf'.
6721         * lib/math.in.h (coshf): New declaration.
6722         * lib/coshf.c: New file.
6723         * m4/coshf.m4: New file.
6724         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
6725         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
6726         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
6727         * modules/coshf: New file.
6728         * tests/test-math-c++.cc: Check the declaration of coshf.
6729         * doc/posix-functions/coshf.texi: Mention the new module.
6730
6731         cosh: Use a .m4 file.
6732         * m4/cosh.m4: New file.
6733         * modules/cosh (Files): Add it.
6734         (configure.ac): Just invoke gl_FUNC_COSH.
6735
6736 2011-10-08  Bruno Haible  <bruno@clisp.org>
6737
6738         Tests for module 'sinhf'.
6739         * modules/sinhf-tests: New file.
6740         * tests/test-sinhf.c: New file.
6741
6742         New module 'sinhf'.
6743         * lib/math.in.h (sinhf): New declaration.
6744         * lib/sinhf.c: New file.
6745         * m4/sinhf.m4: New file.
6746         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
6747         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
6748         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
6749         * modules/sinhf: New file.
6750         * tests/test-math-c++.cc: Check the declaration of sinhf.
6751         * doc/posix-functions/sinhf.texi: Mention the new module.
6752
6753         sinh: Use a .m4 file.
6754         * m4/sinh.m4: New file.
6755         * modules/sinh (Files): Add it.
6756         (configure.ac): Just invoke gl_FUNC_SINH.
6757
6758 2011-10-08  Bruno Haible  <bruno@clisp.org>
6759
6760         Tests for module 'atan2f'.
6761         * modules/atan2f-tests: New file.
6762         * tests/test-atan2f.c: New file.
6763
6764         New module 'atan2f'.
6765         * lib/math.in.h (atan2f): New declaration.
6766         * lib/atan2f.c: New file.
6767         * m4/atan2f.m4: New file.
6768         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
6769         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
6770         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
6771         * modules/atan2f: New file.
6772         * tests/test-math-c++.cc: Check the declaration of atan2f.
6773         * doc/posix-functions/atan2f.texi: Mention the new module.
6774
6775         atan2: Use a .m4 file.
6776         * m4/atan2.m4: New file.
6777         * modules/atan2 (Files): Add it.
6778         (configure.ac): Just invoke gl_FUNC_ATAN2.
6779
6780 2011-10-08  Bruno Haible  <bruno@clisp.org>
6781
6782         Tests for module 'atanf'.
6783         * modules/atanf-tests: New file.
6784         * tests/test-atanf.c: New file.
6785
6786         New module 'atanf'.
6787         * lib/math.in.h (atanf): New declaration.
6788         * lib/atanf.c: New file.
6789         * m4/atanf.m4: New file.
6790         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
6791         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
6792         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
6793         * modules/atanf: New file.
6794         * tests/test-math-c++.cc: Check the declaration of atanf.
6795         * doc/posix-functions/atanf.texi: Mention the new module.
6796
6797         atan: Use a .m4 file.
6798         * m4/atan.m4: New file.
6799         * modules/atan (Files): Add it.
6800         (configure.ac): Just invoke gl_FUNC_ATAN.
6801
6802 2011-10-08  Bruno Haible  <bruno@clisp.org>
6803
6804         Tests for module 'acosf'.
6805         * modules/acosf-tests: New file.
6806         * tests/test-acosf.c: New file.
6807
6808         New module 'acosf'.
6809         * lib/math.in.h (acosf): New declaration.
6810         * lib/acosf.c: New file.
6811         * m4/acosf.m4: New file.
6812         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
6813         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
6814         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
6815         * modules/acosf: New file.
6816         * tests/test-math-c++.cc: Check the declaration of acosf.
6817         * doc/posix-functions/acosf.texi: Mention the new module.
6818
6819         acos: Use a .m4 file.
6820         * m4/acos.m4: New file.
6821         * modules/acos (Files): Add it.
6822         (configure.ac): Just invoke gl_FUNC_ACOS.
6823
6824 2011-10-08  Bruno Haible  <bruno@clisp.org>
6825
6826         Tests for module 'asinf'.
6827         * modules/asinf-tests: New file.
6828         * tests/test-asinf.c: New file.
6829
6830         New module 'asinf'.
6831         * lib/math.in.h (asinf): New declaration.
6832         * lib/asinf.c: New file.
6833         * m4/asinf.m4: New file.
6834         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
6835         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
6836         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
6837         * modules/asinf: New file.
6838         * tests/test-math-c++.cc: Check the declaration of asinf.
6839         * doc/posix-functions/asinf.texi: Mention the new module.
6840
6841         asin: Use a .m4 file.
6842         * m4/asin.m4: New file.
6843         * modules/asin (Files): Add it.
6844         (configure.ac): Just invoke gl_FUNC_ASIN.
6845
6846 2011-10-08  Bruno Haible  <bruno@clisp.org>
6847
6848         Tests for module 'tanf'.
6849         * modules/tanf-tests: New file.
6850         * tests/test-tanf.c: New file.
6851
6852         New module 'tanf'.
6853         * lib/math.in.h (tanf): New declaration.
6854         * lib/tanf.c: New file.
6855         * m4/tanf.m4: New file.
6856         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
6857         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
6858         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
6859         * modules/tanf: New file.
6860         * tests/test-math-c++.cc: Check the declaration of tanf.
6861         * doc/posix-functions/tanf.texi: Mention the new module.
6862
6863         tan: Use a .m4 file.
6864         * m4/tan.m4: New file.
6865         * modules/tan (Files): Add it.
6866         (configure.ac): Just invoke gl_FUNC_TAN.
6867
6868 2011-10-08  Bruno Haible  <bruno@clisp.org>
6869
6870         Tests for module 'cosf'.
6871         * modules/cosf-tests: New file.
6872         * tests/test-cosf.c: New file.
6873
6874         New module 'cosf'.
6875         * lib/math.in.h (cosf): New declaration.
6876         * lib/cosf.c: New file.
6877         * m4/cosf.m4: New file.
6878         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
6879         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
6880         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
6881         * modules/cosf: New file.
6882         * tests/test-math-c++.cc: Check the declaration of cosf.
6883         * doc/posix-functions/cosf.texi: Mention the new module.
6884
6885         cos: Use a .m4 file.
6886         * m4/cos.m4: New file.
6887         * modules/cos (Files): Add it.
6888         (configure.ac): Just invoke gl_FUNC_COS.
6889
6890 2011-10-08  Bruno Haible  <bruno@clisp.org>
6891
6892         Tests for module 'sinf'.
6893         * modules/sinf-tests: New file.
6894         * tests/test-sinf.c: New file.
6895
6896         New module 'sinf'.
6897         * lib/math.in.h (sinf): New declaration.
6898         * lib/sinf.c: New file.
6899         * m4/sinf.m4: New file.
6900         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
6901         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
6902         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
6903         * modules/sinf: New file.
6904         * tests/test-math-c++.cc: Check the declaration of sinf.
6905         * doc/posix-functions/sinf.texi: Mention the new module.
6906
6907         sin: Use a .m4 file.
6908         * m4/sin.m4: New file.
6909         * modules/sin (Files): Add it.
6910         (configure.ac): Just invoke gl_FUNC_SIN.
6911
6912 2011-10-08  Bruno Haible  <bruno@clisp.org>
6913
6914         Tests for module 'powf'.
6915         * modules/powf-tests: New file.
6916         * tests/test-powf.c: New file.
6917
6918         New module 'powf'.
6919         * lib/math.in.h (powf): New declaration.
6920         * lib/powf.c: New file.
6921         * m4/powf.m4: New file.
6922         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
6923         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
6924         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
6925         * modules/powf: New file.
6926         * tests/test-math-c++.cc: Check the declaration of powf.
6927         * doc/posix-functions/powf.texi: Mention the new module.
6928
6929         pow: Use a .m4 file.
6930         * m4/pow.m4: New file.
6931         * modules/pow (Files): Add it.
6932         (configure.ac): Just invoke gl_FUNC_POW.
6933
6934 2011-10-08  Bruno Haible  <bruno@clisp.org>
6935
6936         Tests for module 'log10f'.
6937         * modules/log10f-tests: New file.
6938         * tests/test-log10f.c: New file.
6939
6940         New module 'log10f'.
6941         * lib/math.in.h (log10f): New declaration.
6942         * lib/log10f.c: New file.
6943         * m4/log10f.m4: New file.
6944         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
6945         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
6946         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
6947         * modules/log10f: New file.
6948         * tests/test-math-c++.cc: Check the declaration of log10f.
6949         * doc/posix-functions/log10f.texi: Mention the new module.
6950
6951         log10: Use a .m4 file.
6952         * m4/log10.m4: New file.
6953         * modules/log10 (Files): Add it.
6954         (configure.ac): Just invoke gl_FUNC_LOG10.
6955
6956 2011-10-08  Bruno Haible  <bruno@clisp.org>
6957
6958         Tests for module 'logf'.
6959         * modules/logf-tests: New file.
6960         * tests/test-logf.c: New file.
6961
6962         New module 'logf'.
6963         * lib/math.in.h (logf): New declaration.
6964         * lib/logf.c: New file.
6965         * m4/logf.m4: New file.
6966         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
6967         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
6968         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
6969         * modules/logf: New file.
6970         * tests/test-math-c++.cc: Check the declaration of logf.
6971         * doc/posix-functions/logf.texi: Mention the new module.
6972
6973         log: Use a .m4 file.
6974         * m4/log.m4: New file.
6975         * modules/log (Files): Add it.
6976         (configure.ac): Just invoke gl_FUNC_LOG.
6977
6978 2011-10-08  Bruno Haible  <bruno@clisp.org>
6979
6980         Tests for module 'expf'.
6981         * modules/expf-tests: New file.
6982         * tests/test-expf.c: New file.
6983
6984         New module 'expf'.
6985         * lib/math.in.h (expf): New declaration.
6986         * lib/expf.c: New file.
6987         * m4/expf.m4: New file.
6988         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
6989         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
6990         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
6991         * modules/expf: New file.
6992         * tests/test-math-c++.cc: Check the declaration of expf.
6993         * doc/posix-functions/expf.texi: Mention the new module.
6994
6995         exp: Use a .m4 file.
6996         * m4/exp.m4: New file.
6997         * modules/exp (Files): Add it.
6998         (configure.ac): Just invoke gl_FUNC_EXP.
6999
7000 2011-10-08  Bruno Haible  <bruno@clisp.org>
7001
7002         Tests for module 'sqrtf'.
7003         * modules/sqrtf-tests: New file.
7004         * tests/test-sqrtf.c: New file.
7005
7006         New module 'sqrtf'.
7007         * lib/math.in.h (sqrtf): New declaration.
7008         * lib/sqrtf.c: New file.
7009         * m4/sqrtf.m4: New file.
7010         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
7011         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
7012         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
7013         * modules/sqrtf: New file.
7014         * tests/test-math-c++.cc: Check the declaration of sqrtf.
7015         * doc/posix-functions/sqrtf.texi: Mention the new module.
7016
7017 2011-10-08  Bruno Haible  <bruno@clisp.org>
7018
7019         Tests: Avoid link failures w.r.t. libintl.
7020         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
7021         $(LIBINTL).
7022         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
7023         $(LIBINTL).
7024         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
7025         against $(LIBINTL).
7026         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
7027         $(LIBINTL).
7028         * modules/openat-tests (Makefile.am): Link test-fchmodat against
7029         $(LIBINTL).
7030         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
7031
7032 2011-10-08  Bruno Haible  <bruno@clisp.org>
7033
7034         pow tests: Defeat compiler optimizations.
7035         * tests/test-pow.c (main): Assign arguments to x and y before use.
7036
7037 2011-10-08  Bruno Haible  <bruno@clisp.org>
7038
7039         gnulib-tool: Improve last commit.
7040         * gnulib-tool (func_modules_transitive_closure): Simplify code.
7041         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
7042         ignore dependencies that are not among the modules list.
7043
7044 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
7045
7046         gnulib-tool: don't follow dependencies to avoided modules
7047         This fixes a bug that is related to the previous one.
7048         * gnulib-tool (func_modules_transitive_closure)
7049         (func_emit_autoconf_snippets):
7050         Check whether a dependency is acceptable before using it.
7051         (--extract-dependencies): Report an error if --avoid is also used,
7052         since this combination of options is not yet supported.
7053
7054         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
7055         Problem reported by Peter Dyballa in
7056         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
7057         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
7058         when echoing "$condition".
7059
7060 2011-10-07  Bruno Haible  <bruno@clisp.org>
7061
7062         Fix documentation about math functions on MacOS X.
7063         * doc/posix-functions/exp2.texi: Don't say the function is missing on
7064         MacOS X 10.5.
7065         * doc/posix-functions/fdim.texi: Likewise.
7066         * doc/posix-functions/feclearexcept.texi: Likewise.
7067         * doc/posix-functions/fegetenv.texi: Likewise.
7068         * doc/posix-functions/fegetround.texi: Likewise.
7069         * doc/posix-functions/feholdexcept.texi: Likewise.
7070         * doc/posix-functions/feraiseexcept.texi: Likewise.
7071         * doc/posix-functions/fesetenv.texi: Likewise.
7072         * doc/posix-functions/fesetround.texi: Likewise.
7073         * doc/posix-functions/fetestexcept.texi: Likewise.
7074         * doc/posix-functions/feupdateenv.texi: Likewise.
7075         * doc/posix-functions/fmax.texi: Likewise.
7076         * doc/posix-functions/fmin.texi: Likewise.
7077         * doc/posix-functions/log2.texi: Likewise.
7078         * doc/posix-functions/modff.texi: Likewise.
7079         * doc/posix-functions/nan.texi: Likewise.
7080         * doc/posix-functions/nanf.texi: Likewise.
7081         * doc/posix-functions/nextafterf.texi: Likewise.
7082         * doc/posix-functions/remquo.texi: Likewise.
7083
7084 2011-10-07  Bruno Haible  <bruno@clisp.org>
7085
7086         modff: Drop assumption about library that defines modff.
7087         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
7088         AC_CHECK_FUNCS.
7089         * modules/modff (Files): Add m4/mathfunc.m4.
7090
7091 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
7092
7093         raise tests: Avoid a GCC warning.
7094         * tests/test-raise.c (handler): Use _Noreturn.
7095
7096 2011-10-07  Bruno Haible  <bruno@clisp.org>
7097
7098         Tests for module 'ldexpf'.
7099         * modules/ldexpf-tests: New file.
7100         * tests/test-ldexpf.c: New file.
7101
7102         New module 'ldexpf'.
7103         * lib/math.in.h (ldexpf): New declaration.
7104         * lib/ldexpf.c: New file.
7105         * m4/ldexpf.m4: New file.
7106         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
7107         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
7108         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
7109         * modules/ldexpf: New file.
7110         * tests/test-math-c++.cc: Check the declaration of ldexpf.
7111         * doc/posix-functions/ldexpf.texi: Mention the new module.
7112
7113 2011-10-06  Bruno Haible  <bruno@clisp.org>
7114
7115         frexpf: Work around problems on IRIX and mingw.
7116         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
7117         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
7118         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
7119         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
7120         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
7121         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
7122         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
7123
7124 2011-10-06  Bruno Haible  <bruno@clisp.org>
7125
7126         fabsf: Drop assumption about library that defines fabsf.
7127         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
7128         AC_CHECK_FUNCS.
7129         * modules/fabsf (Files): Add m4/mathfunc.m4.
7130
7131 2011-10-06  Bruno Haible  <bruno@clisp.org>
7132
7133         frexpf: Drop assumption about library that defines frexpf.
7134         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
7135         'int *', 'float *', 'long double *', 'float', 'long double'.
7136         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
7137         AC_CHECK_FUNCS.
7138         * modules/frexpf (Files): Add m4/mathfunc.m4.
7139
7140         Tests for module 'frexpf'.
7141         * modules/frexpf-tests: New file.
7142         * tests/test-frexpf.c: New file.
7143
7144         New module 'frexpf'.
7145         * lib/math.in.h (frexpf): New declaration.
7146         * lib/frexpf.c: New file.
7147         * m4/frexpf.m4: New file.
7148         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
7149         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
7150         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
7151         * modules/frexpf: New file.
7152         * tests/test-math-c++.cc: Check the declaration of frexpf.
7153         * doc/posix-functions/frexpf.texi: Mention the new module.
7154
7155 2011-10-06  Bruno Haible  <bruno@clisp.org>
7156
7157         math: Sort function declarations of math.in.h.
7158         * lib/math.in.h (frexp, logb): Move declarations.
7159
7160 2011-10-05  Bruno Haible  <bruno@clisp.org>
7161
7162         Tests for module 'modff'.
7163         * modules/modff-tests: New file.
7164         * tests/test-modff.c: New file.
7165
7166         New module 'modff'.
7167         * lib/math.in.h (modff): New declaration.
7168         * lib/modff.c: New file.
7169         * m4/modff.m4: New file.
7170         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
7171         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
7172         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
7173         * modules/modff: New file.
7174         * tests/test-math-c++.cc: Check the declaration of modff.
7175         * doc/posix-functions/modff.texi: Mention the new module.
7176
7177         modf tests: Make test sharper.
7178         * tests/test-modf.c (main): Strengthen upper bound.
7179
7180         modf: Use a .m4 file.
7181         * m4/modf.m4: New file.
7182         * modules/modf (Files): Add it.
7183         (configure.ac): Just invoke gl_FUNC_MODF.
7184
7185 2011-10-05  Bruno Haible  <bruno@clisp.org>
7186
7187         Tests for module 'fmodf'.
7188         * modules/fmodf-tests: New file.
7189         * tests/test-fmodf.c: New file.
7190
7191         New module 'fmodf'.
7192         * lib/math.in.h (fmodf): New declaration.
7193         * lib/fmodf.c: New file.
7194         * m4/fmodf.m4: New file.
7195         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
7196         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
7197         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
7198         * modules/fmodf: New file.
7199         * tests/test-math-c++.cc: Check the declaration of fmodf.
7200         * doc/posix-functions/fmodf.texi: Mention the new module.
7201
7202         fmod: Use a .m4 file.
7203         * m4/fmod.m4: New file.
7204         * modules/fmod (Files): Add it.
7205         (configure.ac): Just invoke gl_FUNC_FMOD.
7206
7207 2011-10-05  Bruno Haible  <bruno@clisp.org>
7208
7209         Tests for module 'fabsf'.
7210         * modules/fabsf-tests: New file.
7211         * tests/test-fabsf.c: New file.
7212
7213         New module 'fabsf'.
7214         * lib/math.in.h (fabsf): New declaration.
7215         * lib/fabsf.c: New file.
7216         * m4/fabsf.m4: New file.
7217         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
7218         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
7219         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
7220         * modules/fabsf: New file.
7221         * tests/test-math-c++.cc: Check the declaration of fabsf.
7222         * doc/posix-functions/fabsf.texi: Mention the new module.
7223
7224         fabs: Use a .m4 file.
7225         * m4/fabs.m4: New file.
7226         * modules/fabs (Files): Add it.
7227         (configure.ac): Just invoke gl_FUNC_FABS.
7228
7229 2011-10-05  Jim Meyering  <meyering@redhat.com>
7230
7231         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
7232         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
7233         ls -lL regression introduced in coreutils-8.12, it does so at the
7234         cost of an additional stat call in the common case.  Besides, now
7235         that the kernel change that prompted commit 95f7c57f has been reverted
7236         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
7237         we have no use for commit 95f7c57f, "file-has-acl: use
7238         acl_extended_file_nofollow if available".
7239
7240 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
7241
7242         file-has-acl: revert unintended change in behavior of ls -L
7243         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
7244         derived from...
7245         (file_has_acl): ...code here.  Call it.
7246         This problem was introduced with 2011-07-22 commit 95f7c57f,
7247         "file-has-acl: use acl_extended_file_nofollow if available".
7248         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
7249
7250 2011-10-03  Bruno Haible  <bruno@clisp.org>
7251
7252         poll: Avoid link errors on MSVC.
7253         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
7254         * modules/poll (Depends-on): Add sockets.
7255         (Link): New section.
7256         * NEWS: Mention the change.
7257         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
7258         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
7259         $(LIB_POLL) instead of $(LIBSOCKET).
7260
7261 2011-10-03  Bruno Haible  <bruno@clisp.org>
7262
7263         sys_select tests: Fix link error on MSVC 9.
7264         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
7265         with $(LIB_SELECT) instead of $(LIBSOCKET).
7266
7267 2011-10-03  Bruno Haible  <bruno@clisp.org>
7268
7269         sys_select: Fix compilation error on mingw.
7270         * lib/sys_select.in.h: On native Windows, include <io.h>.
7271
7272 2011-10-03  Bruno Haible  <bruno@clisp.org>
7273
7274         wmemset: Support for MSVC.
7275         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
7276         whether wmemset() exists.
7277
7278 2011-10-03  Bruno Haible  <bruno@clisp.org>
7279
7280         wmemmove: Support for MSVC.
7281         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
7282         whether wmemmove() exists.
7283
7284 2011-10-03  Bruno Haible  <bruno@clisp.org>
7285
7286         wmemcpy: Support for MSVC.
7287         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
7288         whether wmemcpy() exists.
7289
7290 2011-10-03  Bruno Haible  <bruno@clisp.org>
7291
7292         wmemcmp: Support for MSVC.
7293         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
7294         whether wmemcmp() exists.
7295
7296 2011-10-03  Bruno Haible  <bruno@clisp.org>
7297
7298         wmemchr: Support for MSVC.
7299         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
7300         whether wmemchr() exists.
7301
7302 2011-10-03  Bruno Haible  <bruno@clisp.org>
7303
7304         glthread/*, strsignal: Support for MSVC.
7305         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
7306         including <winsock.h> on MSVC 9.
7307         * lib/glthread/lock.h: Likewise.
7308         * lib/glthread/thread.h: Likewise.
7309         * lib/glthread/tls.h: Likewise.
7310         * lib/glthread/yield.h: Likewise.
7311         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
7312         if HAVE_UNISTD_H is false.
7313         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
7314
7315 2011-10-03  Bruno Haible  <bruno@clisp.org>
7316
7317         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
7318         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
7319         Set to 100000.
7320
7321 2011-10-03  Bruno Haible  <bruno@clisp.org>
7322
7323         acl: Fix specification.
7324         * lib/file-has-acl.c (file_has_acl): Fix specification.
7325
7326 2011-10-03  Bruno Haible  <bruno@clisp.org>
7327
7328         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
7329         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
7330         (compute_curr_prefix, shared_library_fullname,
7331         find_shared_library_fullname, get_shared_library_fullname, relocate):
7332         Use it together with PIC && INSTALLDIR.
7333         Reported by <jojelino@gmail.com>
7334         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
7335
7336 2011-10-01  Jim Meyering  <meyering@redhat.com>
7337
7338         maint.mk: adjust a release-related rule not to require use of gzip
7339         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
7340         Instead, check each file in $(DIST_ARCHIVES).  This is better for
7341         projects that build only .tar.xz files.  Also fix an erroneous test.
7342
7343         test-linkat: don't leave behind a temporary file
7344         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
7345         Otherwise, coreutils' "make distcheck" would fail with this:
7346           Only in /c/cu/tests/torture/coreutils/test/\
7347             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
7348           make[2]: *** [my-distcheck] Error 1
7349
7350         float, math: add omitted file
7351         * lib/itold.c: Add file, required for yesterday's float change.
7352
7353 2011-10-01  Bruno Haible  <bruno@clisp.org>
7354
7355         isinf: Fix for OpenBSD/x86.
7356         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
7357         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
7358         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
7359
7360 2011-10-01  Bruno Haible  <bruno@clisp.org>
7361
7362         isfinite: Fix syntax error in configure test.
7363         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
7364
7365         isfinite: Fix typo.
7366         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
7367         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
7368
7369 2011-10-01  Bruno Haible  <bruno@clisp.org>
7370
7371         nonblocking tests: Fix test failure on Linux/IA-64.
7372         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
7373         Set to 270000.
7374
7375 2011-10-01  Bruno Haible  <bruno@clisp.org>
7376
7377         mkfifoat tests: Fix a test failure on mingw.
7378         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
7379         with error ENOSYS.
7380
7381 2011-09-30  Bruno Haible  <bruno@clisp.org>
7382
7383         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
7384         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
7385         'long double'. Set REPLACE_ITOLD.
7386         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
7387         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
7388         * lib/itold.c: New file.
7389         * modules/float (Files): Add lib/itold.c.
7390         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
7391         (Makefile.am): Substitute REPLACE_ITOLD.
7392         * modules/math (Depends-on): Add float.
7393         (Makefile.am): Substitute REPLACE_ITOLD.
7394         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
7395         * doc/posix-headers/math.texi: Likewise.
7396         * doc/posix-functions/logl.texi: Likewise.
7397
7398 2011-09-30  Bruno Haible  <bruno@clisp.org>
7399
7400         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
7401         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
7402         Set to 140000.
7403
7404 2011-09-30  Bruno Haible  <bruno@clisp.org>
7405
7406         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
7407         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
7408         invocation, say "right after AC_PROG_CC_STDC", not "right after
7409         AC_PROG_CC".
7410         Reported by Gary V. Vaughan <gary@gnu.org>.
7411
7412 2011-09-30  Bruno Haible  <bruno@clisp.org>
7413
7414         Centralize C99 requirement.
7415         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
7416         * modules/stdarg (configure.ac-early): Invoke it instead of
7417         AC_PROG_CC_STDC.
7418         Reported by Gary V. Vaughan and Paul Eggert.
7419
7420 2011-09-29  Bruno Haible  <bruno@clisp.org>
7421
7422         float: Fix LDBL_MAX value on Linux/PowerPC.
7423         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
7424         on Linux/PowerPC.
7425         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
7426         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
7427         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
7428         platform.
7429         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
7430
7431 2011-09-29  Bruno Haible  <bruno@clisp.org>
7432
7433         doc: Improve doc about gl_EARLY.
7434         * doc/gnulib-tool.texi (Initial import): Mention where to place an
7435         AC_PROG_CC_STDC invocation.
7436         Reported by Gary V. Vaughan <gary@gnu.org>.
7437
7438 2011-09-28  Bruno Haible  <bruno@clisp.org>
7439
7440         fgetc, fputc, fread, fwrite tests: Fix link error.
7441         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
7442         on non-MSVC platforms.
7443         * tests/test-fputc.c (main): Likewise.
7444         * tests/test-fread.c (main): Likewise.
7445         * tests/test-fwrite.c (main): Likewise.
7446         Reported by Jim Meyering.
7447
7448 2011-09-27  Bruno Haible  <bruno@clisp.org>
7449
7450         fputc, fwrite tests: Avoid test failure on MSVC.
7451         * tests/test-fgetc.c: Include msvc-inval.h.
7452         (main): Invoke gl_msvc_inval_ensure_handler.
7453         * tests/test-fputc.c: Include msvc-inval.h.
7454         (main): Invoke gl_msvc_inval_ensure_handler.
7455         * tests/test-fread.c: Include msvc-inval.h.
7456         (main): Invoke gl_msvc_inval_ensure_handler.
7457         * tests/test-fwrite.c: Include msvc-inval.h.
7458         (main): Invoke gl_msvc_inval_ensure_handler.
7459         * modules/fgetc-tests (Depends-on): Add msvc-inval.
7460         * modules/fputc-tests (Depends-on): Likewise.
7461         * modules/fread-tests (Depends-on): Likewise.
7462         * modules/fwrite-tests (Depends-on): Likewise.
7463
7464 2011-09-27  Bruno Haible  <bruno@clisp.org>
7465
7466         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
7467         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
7468         (raise): Remove older, duplicated declaration.
7469         (_gl_raise_SIGPIPE): New declaration.
7470         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
7471         (rpl_raise): Remove function.
7472         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
7473         a gnulib-defined SIGPIPE here.
7474         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
7475         'sigprocmask' has detected missing signal-blocking and the module
7476         'sigpipe' is enabled.
7477         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
7478
7479 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
7480
7481         base64-tests: avoid memory leak
7482         * tests/test-base64.c (main): Plug memory leak.
7483
7484         base32: new module
7485         * modules/base32: New module.
7486         * lib/base32.c: New file.
7487         * lib/base32.h: Likewise.
7488         * m4/base32.m4: Likewise.
7489         * modules/base32-tests: New test.
7490         * tests/test-base32.c: Likewise.
7491         * MODULES.html.sh (Misc): Mention it.
7492
7493 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
7494
7495         gnulib: use more-standard license notice wording
7496         * gnulib-tool (func_emit_copyright_notice): When emitting a
7497         license notice into a file, use the standard wording as suggested
7498         by the current information for GNU maintainers, except say "file"
7499         rather than "program".  The new wording gives a license version
7500         number, which addresses an issue raised by Glenn Morris in
7501         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
7502         * m4/onceonly.m4: Use that same wording here, too.
7503
7504         dup2: minor simplification
7505         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
7506         as lib/dup2.c no longer uses 'inline'.
7507
7508 2011-09-25  Bruno Haible  <bruno@clisp.org>
7509
7510         strings: Fix compilation error on MSVC.
7511         * lib/strings.in.h: Include <stddef.h> for size_t.
7512
7513 2011-09-25  Bruno Haible  <bruno@clisp.org>
7514
7515         fflush et al.: Document limitation on MSVC.
7516         * doc/posix-functions/fflush.texi: Document possible crash in handling
7517         mode other than DEFAULT_HANDLING.
7518         * doc/posix-functions/fgetc.texi: Likewise.
7519         * doc/posix-functions/fputc.texi: Likewise.
7520         * doc/posix-functions/fread.texi: Likewise.
7521         * doc/posix-functions/fwrite.texi: Likewise.
7522
7523 2011-09-25  Bruno Haible  <bruno@clisp.org>
7524
7525         msvc-inval: Allow three invalid parameter handling modes.
7526         * lib/msvc-inval.h: Don't include <stdlib.h> here.
7527         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
7528         macros.
7529         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
7530         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
7531         SANE_LIBRARY_HANDLING as a no-op.
7532         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
7533         <stdlib.h>.
7534         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
7535
7536 2011-09-25  Bruno Haible  <bruno@clisp.org>
7537
7538         msvc-inval: Make handler multithread-safe.
7539         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
7540         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
7541         declarations.
7542         (gl_msvc_inval_current): New declaration.
7543         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
7544         Operate on the structure returned by gl_msvc_inval_current().
7545         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
7546         Remove varaiables.
7547         (tls_index, tls_initialized): New variables.
7548         (not_per_thread): New variable.
7549         (gl_msvc_inval_current): New function.
7550         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
7551         returned by gl_msvc_inval_current().
7552
7553 2011-09-25  Bruno Haible  <bruno@clisp.org>
7554
7555         msvc-inval: Install handler globally.
7556         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
7557         !_MSC_VER.
7558         (gl_msvc_invalid_parameter_handler): Remove declaration.
7559         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
7560         declarations.
7561         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
7562         Install the handler globally, don't uninstall it.
7563         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
7564         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
7565         currently valid, call RaiseException instead.
7566         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
7567         for !_MSC_VER.
7568
7569 2011-09-25  Bruno Haible  <bruno@clisp.org>
7570
7571         strerror_r-posix: Fix for MSVC 9.
7572         * lib/strerror_r.c (local_snprintf): New function.
7573         (snprintf): Define to local_snprintf, not to _snprintf.
7574
7575 2011-09-25  Bruno Haible  <bruno@clisp.org>
7576
7577         ftruncate: Support for MSVC 9.
7578         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
7579         (chsize_nothrow): New function.
7580         (chsize): Redefine as a macro.
7581         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
7582         * modules/ftruncate (Depends-on): Add msvc-inval.
7583
7584 2011-09-25  Bruno Haible  <bruno@clisp.org>
7585
7586         New module 'fstat'.
7587         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
7588         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
7589         * lib/fchdir.c (rpl_fstat): Remove function.
7590         * m4/fstat.m4: New file.
7591         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
7592         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
7593         declared.
7594         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
7595         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
7596         * modules/fstat: New file.
7597         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
7598         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
7599         is set.
7600         * doc/posix-functions/fstat.texi: Mention the new module and the
7601         problem on MSVC.
7602         * NEWS: Mention the change.
7603         * modules/acl (Depends-on): Add fstat.
7604         * modules/chdir-safer (Depends-on): Likewise.
7605         * modules/chown (Depends-on): Likewise.
7606         * modules/copy-file (Depends-on): Likewise.
7607         * modules/fchdir (Depends-on): Likewise.
7608         * modules/fdopendir (Depends-on): Likewise.
7609         * modules/fopen (Depends-on): Likewise.
7610         * modules/fts (Depends-on): Likewise.
7611         * modules/getcwd (Depends-on): Likewise.
7612         * modules/isapipe (Depends-on): Likewise.
7613         * modules/linkat (Depends-on): Likewise.
7614         * modules/lseek (Depends-on): Likewise.
7615         * modules/mkdir-p (Depends-on): Likewise.
7616         * modules/open (Depends-on): Likewise.
7617         * modules/openat (Depends-on): Likewise.
7618         * modules/read-file (Depends-on): Likewise.
7619         * modules/renameat (Depends-on): Likewise.
7620         * modules/utimens (Depends-on): Likewise.
7621
7622 2011-09-25  Bruno Haible  <bruno@clisp.org>
7623
7624         linkat: Fix compilation on MSVC 9.
7625         * lib/linkat.c: Don't include <stdint.h>.
7626
7627 2011-09-25  Bruno Haible  <bruno@clisp.org>
7628
7629         fclose: Support for MSVC 9.
7630         * lib/fclose.c: Include msvc-inval.h.
7631         (fclose_nothrow): New function.
7632         (rpl_fclose): Use it.
7633         * modules/fclose (Depends-on): Add msvc-inval.
7634         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
7635
7636 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
7637
7638         dup2: minor simplifications
7639         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
7640         that it's a performance win.
7641         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
7642         ! defined __CYGWIN__)" to "ifdef F_GETFL".
7643
7644 2011-09-24  Jim Meyering  <meyering@redhat.com>
7645
7646         test-futimens: avoid a warning from gcc -Wshadow
7647         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
7648         to avoid a shadowing warning.
7649
7650 2011-09-24  Bruno Haible  <bruno@clisp.org>
7651
7652         fdopen: Support for MSVC 9.
7653         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
7654         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
7655         * lib/fdopen.c: Include msvc-inval.h.
7656         (fdopen_nothrow): New function.
7657         (rpl_fdopen): Use it.
7658         * modules/fdopen (Depends-on): Add msvc-inval.
7659         * modules/fclose-tests (Depends-on): Add fdopen.
7660         * modules/fflush-tests (Depends-on): Likewise.
7661         * modules/fgetc-tests (Depends-on): Likewise.
7662         * modules/fputc-tests (Depends-on): Likewise.
7663         * modules/fread-tests (Depends-on): Likewise.
7664         * modules/freopen-tests (Depends-on): Likewise.
7665         * modules/fseeko-tests (Depends-on): Likewise.
7666         * modules/ftello-tests (Depends-on): Likewise.
7667         * modules/fwrite-tests  (Depends-on): Likewise.
7668         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
7669
7670 2011-09-24  Bruno Haible  <bruno@clisp.org>
7671
7672         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
7673         * modules/fgetc-tests (Depends-on): Add unistd.
7674         * modules/fputc-tests (Depends-on): Likewise.
7675         * modules/fread-tests (Depends-on): Likewise.
7676         * modules/fwrite-tests (Depends-on): Likewise.
7677
7678 2011-09-24  Bruno Haible  <bruno@clisp.org>
7679
7680         dup: Simplify autoconf test.
7681         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
7682         on gl_MSVC_INVAL's result.
7683
7684 2011-09-24  Bruno Haible  <bruno@clisp.org>
7685
7686         Tests for function fwrite().
7687         * modules/fwrite-tests: New file.
7688         * tests/test-fwrite.c: New file.
7689         * modules/stdio-tests (Depends-on): Add fwrite-tests.
7690
7691         Tests for function fread().
7692         * modules/fread-tests: New file.
7693         * tests/test-fread.c: New file.
7694         * modules/stdio-tests (Depends-on): Add fread-tests.
7695
7696         Activate fputc tests.
7697         * modules/stdio-tests (Depends-on): Add fputc-tests.
7698
7699         Enhance fgetc, fputc tests.
7700         * tests/test-fgetc.c (main): Also test the stream's error indicator.
7701         * tests/test-fputc.c (main): Likewise.
7702
7703 2011-09-24  Bruno Haible  <bruno@clisp.org>
7704
7705         write: Support for MSVC 9.
7706         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
7707         is not 1.
7708         * lib/write.c (write_nothrow): New function.
7709         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
7710         not 1. Use write_nothrow.
7711         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
7712         invalid parameter handler.
7713         (gl_PREREQ_WRITE): New macro.
7714         * modules/write (Depends-on): Add msvc-inval.
7715         (configure.ac): Invoke gl_PREREQ_WRITE.
7716         * doc/posix-functions/write.texi: Mention the problem on MSVC.
7717
7718 2011-09-24  Bruno Haible  <bruno@clisp.org>
7719
7720         read: Fix last commit.
7721         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
7722
7723 2011-09-24  Bruno Haible  <bruno@clisp.org>
7724
7725         dup2: Fix last commit.
7726         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
7727         (rpl_dup2): Disable fcntl workaround on native Windows.
7728
7729         sigprocmask: Make code safer.
7730         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
7731         section that changes macro definitions for this compilation unit.
7732
7733 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
7734
7735         dup2: clarify by coalescing Windows-specific material
7736         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
7737         "msvc-nothrow.h"' to the Windows-specific section, so that the
7738         Emacs source need not contain these include files.
7739         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
7740         Windows-specific fixes into this function rather than just the
7741         nothrow fix, as this shortens and clarifies the code.  Always
7742         define as a function, as that's a bit cleaner than having it be
7743         sometimes a function and sometimes a macro.
7744         (rpl_dup2): Move the Windows-specific stuff out of here and into
7745         ms_windows_dup2.  Don't protect the Haiku-related fix with
7746         "#if !defined __linux__", as the same code also works around
7747         a Linux kernel bug, and it doesn't add any system calls on any
7748         platform.  Add comment about FreeBSD 6.1.
7749
7750         sigprocmask: move #include directive
7751         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
7752         Windows-specific section, so that the Emacs source need not
7753         contain msvc-inval.h.
7754
7755 2011-09-23  Bruno Haible  <bruno@clisp.org>
7756
7757         read: Support for MSVC 9.
7758         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
7759         is not 1.
7760         * lib/read.c (read_nothrow): New function.
7761         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
7762         read_nothrow.
7763         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
7764         invalid parameter handler.
7765         (gl_PREREQ_READ): New macro.
7766         * modules/read (Depends-on): Add msvc-inval.
7767         (configure.ac): Invoke gl_PREREQ_READ.
7768         * doc/posix-functions/read.texi: Mention the problem on MSVC.
7769
7770 2011-09-23  Bruno Haible  <bruno@clisp.org>
7771
7772         close: Support for MSVC 9.
7773         * lib/close.c: Include <errno.h>, msvc-inval.h.
7774         (close_nothrow): New function.
7775         (rpl_close): Use it.
7776         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
7777         invalid parameter handler.
7778         * modules/close (Depends-on): Add msvc-inval.
7779         * modules/dup2-tests (Depends-on): Add close.
7780         * modules/dup3-tests (Depends-on): Likewise.
7781         * modules/fcntl-tests (Depends-on): Likewise.
7782         * modules/spawn-pipe-tests (Depends-on): Likewise.
7783         * modules/unistd-safer-tests (Depends-on): Likewise.
7784         * doc/posix-functions/close.texi: Mention the problem on MSVC.
7785
7786 2011-09-23  Bruno Haible  <bruno@clisp.org>
7787
7788         New module 'dup'.
7789         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
7790         Allow replacement.
7791         * lib/dup.c: New file.
7792         * lib/fchdir.c (rpl_dup): Remove function.
7793         * m4/dup.m4: New file.
7794         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
7795         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
7796         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
7797         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
7798         * modules/dup: New file.
7799         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
7800         'dup' module is in use.
7801         * modules/fdopendir (Depends-on): Add dup.
7802         * modules/fdutimensat-tests (Depends-on): Likewise.
7803         * modules/fts (Depends-on): Likewise.
7804         * modules/futimens-tests (Depends-on): Likewise.
7805         * modules/posix_spawnp-tests (Depends-on): Likewise.
7806         * modules/unistd-safer-tests (Depends-on): Likewise.
7807         * modules/utimens-tests (Depends-on): Likewise.
7808         * doc/posix-functions/dup.texi: Mention the new module and the problem
7809         on MSVC.
7810
7811 2011-09-23  Bruno Haible  <bruno@clisp.org>
7812
7813         getdtablesize: Support for MSVC 9.
7814         * lib/getdtablesize.c: Include msvc-inval.h.
7815         (_setmaxstdio_nothrow): New function.
7816         (_setmaxstdio): Redefine it.
7817         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
7818         * modules/getdtablesize (Depends-on): Add msvc-inval.
7819         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
7820
7821 2011-09-23  Bruno Haible  <bruno@clisp.org>
7822
7823         signal-h: Rename from signal.
7824         * modules/signal-h: Renamed from modules/signal.
7825         * modules/pthread_sigmask (Depends-on): Update.
7826         * modules/raise (Depends-on): Likewise.
7827         * modules/sigaction (Depends-on): Likewise.
7828         * modules/sigpipe (Depends-on): Likewise.
7829         * modules/sigprocmask (Depends-on): Likewise.
7830         * modules/sys_select (Depends-on): Likewise.
7831         * modules/signal-h-tests: Renamed from modules/signal-tests.
7832         (Files, Depends-on, Makefile.am): Update.
7833         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
7834         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
7835         (Files, Makefile.am): Update.
7836         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
7837         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
7838         * modules/signal: New placeholder file.
7839         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
7840         * doc/posix-headers/signal.texi: Update.
7841         * NEWS: Mention the change.
7842
7843 2011-09-23  Bruno Haible  <bruno@clisp.org>
7844
7845         sigprocmask: Avoid crashes through signal() on MSVC 9.
7846         * lib/sigprocmask.c: Include msvc-inval.h.
7847         (signal_nothrow): New function.
7848         (signal): Redefine it.
7849         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
7850         * modules/sigprocmask (Depends-on): Add msvc-inval.
7851         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
7852
7853 2011-09-23  Bruno Haible  <bruno@clisp.org>
7854
7855         Tests for module 'raise'.
7856         * modules/raise-tests: New file.
7857         * tests/test-raise.c: New file.
7858
7859         raise: Support for MSVC.
7860         * lib/signal.in.h (raise): New declaration.
7861         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
7862         for native Windows platforms.
7863         * m4/raise.m4: New file.
7864         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
7865         HAVE_RAISE, REPLACE_RAISE.
7866         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
7867         REPLACE_RAISE.
7868         * modules/raise (Status, Notice): Remove fields.
7869         (Files): Add m4/raise.m4.
7870         (Depends-on): Add signal, msvc-inval.
7871         (configure.ac): Use the common idioms.
7872         (Maintainer): Add me.
7873         * tests/test-signal-c++.cc: Check the signature of raise.
7874         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
7875
7876 2011-09-23  Bruno Haible  <bruno@clisp.org>
7877
7878         pipe2: Fix compilation on pre-C99 compilers.
7879         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
7880
7881 2011-09-23  Bruno Haible  <bruno@clisp.org>
7882
7883         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
7884         * lib/msvc-nothrow.h: New file.
7885         * lib/msvc-nothrow.c: New file.
7886         * m4/msvc-nothrow.m4: New file.
7887         * modules/msvc-nothrow: New file.
7888         * lib/dup2.c: Include msvc-nothrow.h.
7889         (rpl_dup2): No need to protect _get_osfhandle call here.
7890         * lib/accept4.c: Include msvc-nothrow.h.
7891         * lib/error.c: Likewise.
7892         * lib/fcntl.c: Likewise.
7893         * lib/lseek.c: Likewise.
7894         * lib/nonblocking.c: Likewise.
7895         * lib/poll.c: Likewise.
7896         * lib/read.c: Likewise.
7897         * lib/select.c: Likewise.
7898         * lib/sockets.h: Likewise.
7899         * lib/sockets.c: Likewise.
7900         * lib/stdio-read.c: Likewise.
7901         * lib/stdio-write.c: Likewise.
7902         * lib/write.c: Likewise.
7903         * lib/w32sock.h: Likewise.
7904         * lib/w32spawn.h: Likewise.
7905         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
7906         * lib/fsync.c: Likewise.
7907         * lib/isapipe.c: Likewise.
7908         * modules/dup2 (Depends-on): Add msvc-nothrow.
7909         * modules/accept4 (Depends-on): Likewise.
7910         * modules/error (Depends-on): Likewise.
7911         * modules/fcntl (Depends-on): Likewise.
7912         * modules/lseek (Depends-on): Likewise.
7913         * modules/nonblocking (Depends-on): Likewise.
7914         * modules/poll (Depends-on): Likewise.
7915         * modules/read (Depends-on): Likewise.
7916         * modules/select (Depends-on): Likewise.
7917         * modules/sockets (Depends-on): Likewise.
7918         * modules/sigpipe (Depends-on): Likewise.
7919         * modules/write (Depends-on): Likewise.
7920         * modules/accept (Depends-on): Likewise.
7921         * modules/bind (Depends-on): Likewise.
7922         * modules/connect (Depends-on): Likewise.
7923         * modules/gethostname (Depends-on): Likewise.
7924         * modules/getpeername (Depends-on): Likewise.
7925         * modules/getsockname (Depends-on): Likewise.
7926         * modules/getsockopt (Depends-on): Likewise.
7927         * modules/ioctl (Depends-on): Likewise.
7928         * modules/listen (Depends-on): Likewise.
7929         * modules/recv (Depends-on): Likewise.
7930         * modules/recvfrom (Depends-on): Likewise.
7931         * modules/send (Depends-on): Likewise.
7932         * modules/sendto (Depends-on): Likewise.
7933         * modules/setsockopt (Depends-on): Likewise.
7934         * modules/shutdown (Depends-on): Likewise.
7935         * modules/socket (Depends-on): Likewise.
7936         * modules/execute (Depends-on): Likewise.
7937         * modules/spawn-pipe (Depends-on): Likewise.
7938         * modules/flock (Depends-on): Likewise.
7939         * modules/fsync (Depends-on): Likewise.
7940         * modules/isapipe (Depends-on): Likewise.
7941         * tests/test-cloexec.c: Include msvc-nothrow.h.
7942         * tests/test-dup-safer.c: Likewise.
7943         * tests/test-dup2.c: Likewise.
7944         * tests/test-dup3.c: Likewise.
7945         * tests/test-fcntl.c: Likewise.
7946         * tests/test-pipe.c: Likewise.
7947         * tests/test-pipe2.c: Likewise.
7948         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
7949         * modules/unistd-safer-tests (Depends-on): Likewise.
7950         * modules/dup2-tests (Depends-on): Likewise.
7951         * modules/dup3-tests (Depends-on): Likewise.
7952         * modules/fcntl-tests (Depends-on): Likewise.
7953         * modules/pipe-posix-tests (Depends-on): Likewise.
7954         * modules/pipe2-tests (Depends-on): Likewise.
7955
7956 2011-09-23  Bruno Haible  <bruno@clisp.org>
7957
7958         dup2: Make code more maintainable.
7959         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
7960         (rpl_dup2): Use it.
7961         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
7962         * modules/dup2 (configure.ac): Invoke it.
7963         Reported by Paul Eggert.
7964
7965 2011-09-23  Bruno Haible  <bruno@clisp.org>
7966
7967         msvc-inval: Fix compilation error.
7968         * lib/msvc-inval.h: Include <excpt.h>.
7969
7970 2011-09-23  Bruno Haible  <bruno@clisp.org>
7971
7972         mkdir: Tweak for MSVC 9.
7973         * lib/sys_stat.in.h: Update comments.
7974         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
7975
7976         Tests for module 'chdir'.
7977         * modules/chdir-tests: New file.
7978         * tests/test-chdir.c: New file.
7979
7980         New module 'chdir'.
7981         * modules/chdir: New file.
7982         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
7983         (chdir): New declaration.
7984         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
7985         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
7986         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
7987         * tests/test-unistd-c++.cc: Check signature of chdir.
7988         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
7989         * modules/chdir-long (Depends-on): Add chdir.
7990         * modules/fchdir (Depends-on): Likewise.
7991         * modules/rename (Depends-on): Likewise.
7992         * modules/savewd (Depends-on): Likewise.
7993
7994         rmdir: Support for mingw, MSVC 9.
7995         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
7996         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
7997
7998         getcwd: Tweak for MSVC 9.
7999         * lib/unistd.in.h: Update comments.
8000         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
8001
8002 2011-09-22  Bruno Haible  <bruno@clisp.org>
8003
8004         strerror_r-posix: Avoid a link error on MSVC.
8005         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
8006         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
8007
8008 2011-09-22  Bruno Haible  <bruno@clisp.org>
8009
8010         select: Avoid link errors on MSVC.
8011         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
8012         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
8013         * modules/pselect (Link): Likewise.
8014         * NEWS: Mention the change.
8015         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
8016         test-select-stdin against $(LIB_SELECT).
8017         * modules/pselect-tests (Makefile.am): Link test-pselect against
8018         $(LIB_SELECT).
8019
8020 2011-09-22  Bruno Haible  <bruno@clisp.org>
8021
8022         select: Avoid compilation error on MSVC.
8023         * lib/select.c: Don't include <stdbool.h>.
8024
8025 2011-09-21  Bruno Haible  <bruno@clisp.org>
8026
8027         Consolidate all uses of PATH_MAX in *.m4 files.
8028         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
8029         macros.
8030         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
8031         and gl_PATHMAX_SNIPPET.
8032         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
8033         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
8034         * modules/chdir-long (Files): Add m4/pathmax.m4.
8035         * modules/getcwd (Files): Likewise.
8036
8037 2011-09-21  Bruno Haible  <bruno@clisp.org>
8038
8039         ftruncate: Un-deprecate, concentrate on Win32 support.
8040         * modules/ftruncate (Status, Notice): Remove sections.
8041         (Depends-on): Add largefile.
8042         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
8043         non-mingw platforms.
8044         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
8045         include <io.h>.
8046         * modules/perror-tests (Depends-on): Add ftruncate.
8047         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
8048         'ftruncate' module.
8049
8050 2011-09-21  Bruno Haible  <bruno@clisp.org>
8051
8052         Add dependencies to new dirent related modules.
8053         * modules/opendir (Depends-on): Add closedir.
8054         * modules/getcwd (Depends-on): Add opendir, closedir.
8055         * modules/dirent-safer-tests (Depends-on): Likewise.
8056         * modules/fdopendir-tests (Depends-on): Likewise.
8057         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
8058         * modules/renameat-tests (Depends-on): Likewise.
8059
8060 2011-09-21  Bruno Haible  <bruno@clisp.org>
8061
8062         opendir: Avoid compilation error on mingw.
8063         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
8064         * modules/opendir (Depends-on): Add unistd.
8065
8066 2011-09-21  Bruno Haible  <bruno@clisp.org>
8067
8068         ftruncate tests: Avoid a test failure on mingw.
8069         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
8070
8071 2011-09-21  Bruno Haible  <bruno@clisp.org>
8072
8073         select tests: Avoid test failures on OSF/1 5.1 and mingw.
8074         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
8075         native Windows.
8076
8077 2011-09-21  Bruno Haible  <bruno@clisp.org>
8078
8079         New module 'fdopen'.
8080         * lib/stdio.in.h (fdopen): New declaration.
8081         * lib/fdopen.c: New file.
8082         * m4/fdopen.m4: New file.
8083         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
8084         REPLACE_FDOPEN.
8085         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
8086         REPLACE_FDOPEN.
8087         * modules/fdopen: New file.
8088         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
8089         * tests/test-stdio-c++.cc: Check signature of fdopen.
8090         * doc/posix-functions/fdopen.texi: Mention the new module.
8091
8092 2011-09-21  Bruno Haible  <bruno@clisp.org>
8093
8094         unlockpt tests: Avoid test failure on NetBSD 5.1.
8095         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
8096         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
8097
8098 2011-09-21  Bruno Haible  <bruno@clisp.org>
8099
8100         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
8101         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
8102         * tests/test-getlogin_r.c (main): Likewise.
8103
8104 2011-09-20  Bruno Haible  <bruno@clisp.org>
8105
8106         time tests: Don't require pid_t.
8107         * doc/posix-headers/time.texi: Revert last change.
8108         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
8109         * tests/test-time.c: Comment out the check for pid_t.
8110
8111 2011-09-20  Bruno Haible  <bruno@clisp.org>
8112
8113         fsync tests: Avoid a test failure on mingw.
8114         * tests/test-fsync.c (main): Allow a failure with EIO.
8115
8116 2011-09-20  Bruno Haible  <bruno@clisp.org>
8117
8118         euidaccess: Update comments.
8119         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
8120
8121 2011-09-20  Bruno Haible  <bruno@clisp.org>
8122
8123         Ensure EBADF returns for socket functions on mingw.
8124         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
8125         descriptor is invalid.
8126         * lib/bind.c (rpl_bind): Likewise.
8127         * lib/connect.c (rpl_connect): Likewise.
8128         * lib/getpeername.c (rpl_getpeername): Likewise.
8129         * lib/getsockname.c (rpl_getsockname): Likewise.
8130         * lib/getsockopt.c (rpl_getsockopt): Likewise.
8131         * lib/listen.c (rpl_listen): Likewise.
8132         * lib/recv.c (rpl_recv): Likewise.
8133         * lib/recvfrom.c (rpl_recvfrom): Likewise.
8134         * lib/send.c (rpl_send): Likewise.
8135         * lib/sendto.c (rpl_sendto): Likewise.
8136         * lib/setsockopt.c (rpl_setsockopt): Likewise.
8137         * lib/shutdown.c (rpl_shutdown): Likewise.
8138
8139 2011-09-20  Bruno Haible  <bruno@clisp.org>
8140
8141         select tests: EBADF tests.
8142         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
8143         test_bad_fd): New functions.
8144         (test_function): Invoke also test_bad_fd.
8145
8146 2011-09-20  Bruno Haible  <bruno@clisp.org>
8147
8148         Tests for module 'posix_spawn_file_actions_addopen.
8149         * modules/posix_spawn_file_actions_addopen-tests: New file.
8150         * tests/test-posix_spawn_file_actions_addopen.c: New file.
8151
8152         Tests for module 'posix_spawn_file_actions_adddup2'.
8153         * modules/posix_spawn_file_actions_adddup2-tests: New file.
8154         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
8155
8156         Tests for module 'posix_spawn_file_actions_addclose'.
8157         * modules/posix_spawn_file_actions_addclose-tests: New file.
8158         * tests/test-posix_spawn_file_actions_addclose.c: New file.
8159
8160 2011-09-20  Bruno Haible  <bruno@clisp.org>
8161
8162         Tests for module 'unlockpt'.
8163         * modules/unlockpt-tests: New file.
8164         * tests/test-unlockpt.c: New file.
8165         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
8166
8167         Tests for module 'grantpt'.
8168         * modules/grantpt-tests: New file.
8169         * tests/test-grantpt.c: New file.
8170         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
8171
8172 2011-09-20  Bruno Haible  <bruno@clisp.org>
8173
8174         freopen tests: EBADF tests.
8175         * tests/test-freopen.c: Include errno.h, unistd.h.
8176         (main): Add tests for EBADF, commented out for the moment.
8177
8178         fclose tests: EBADF tests.
8179         * tests/test-fclose.c (main): Add tests for EBADF.
8180
8181         fflush tests: EBADF tests.
8182         * tests/test-fflush.c: Include errno.h, macros.h.
8183         (main): Add tests for EBADF.
8184
8185         ftello tests: EBADF tests.
8186         * tests/test-ftello4.sh: New file.
8187         * tests/test-ftello4.c: New file.
8188         * modules/ftello-tests (Files): Add them.
8189         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
8190
8191         fseeko tests: EBADF tests.
8192         * tests/test-fseeko4.sh: New file.
8193         * tests/test-fseeko4.c: New file.
8194         * modules/fseeko-tests (Files): Add them.
8195         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
8196
8197         Tests for function fputc().
8198         * modules/fputc-tests: New file.
8199         * tests/test-fputc.c: New file.
8200         * modules/stdio-tests (Depends-on): Add fputc-tests.
8201
8202         Tests for function fgetc().
8203         * modules/fgetc-tests: New file.
8204         * tests/test-fgetc.c: New file.
8205         * modules/stdio-tests (Depends-on): Add fgetc-tests.
8206
8207         Tests for function fdopen().
8208         * modules/fdopen-tests: New file.
8209         * tests/test-fdopen.c: New file.
8210         * modules/stdio-tests (Depends-on): Add fdopen-tests.
8211
8212         Tests for module 'vdprintf'.
8213         * modules/vdprintf-tests: New file.
8214         * tests/test-vdprintf.c: New file.
8215
8216         Tests for module 'dprintf'.
8217         * modules/dprintf-tests: New file.
8218         * tests/test-dprintf.c: New file.
8219
8220 2011-09-20  Bruno Haible  <bruno@clisp.org>
8221
8222         Tests for module 'ioctl'.
8223         * modules/ioctl-tests: New file.
8224         * tests/test-ioctl.c: New file.
8225
8226 2011-09-20  Bruno Haible  <bruno@clisp.org>
8227
8228         fcntl tests: EBADF tests.
8229         * tests/test-fcntl.c (main): Add more tests for EBADF.
8230
8231 2011-09-20  Bruno Haible  <bruno@clisp.org>
8232
8233         utimensat tests: EBADF tests.
8234         * tests/test-utimensat.c (main): Add tests for EBADF.
8235
8236         renameat tests: EBADF tests.
8237         * tests/test-renameat.c (main): Add tests for EBADF.
8238
8239         mkfifoat tests: EBADF tests.
8240         * tests/test-mkfifoat.c (main): Add tests for EBADF.
8241
8242         readlinkat tests: EBADF tests.
8243         * tests/test-readlinkat.c (main): Add tests for EBADF.
8244
8245         symlinkat tests: EBADF tests.
8246         * tests/test-symlinkat.c (main): Add tests for EBADF.
8247
8248         linkat tests: EBADF tests.
8249         * tests/test-linkat.c (main): Add tests for EBADF.
8250
8251         Tests for module 'faccessat'.
8252         * modules/faccessat-tests: New file.
8253         * tests/test-faccessat.c: New file.
8254
8255         fdopendir tests: EBADF tests.
8256         * tests/test-fdopendir.c (main): Add more tests for EBADF.
8257
8258         openat tests: EBADF tests.
8259         * tests/test-fchownat.c (main): Add tests for EBADF.
8260         * tests/test-fstatat.c (main): Likewise.
8261         * tests/test-mkdirat.c (main): Likewise.
8262         * tests/test-openat.c (main): Likewise.
8263         * tests/test-unlinkat.c (main): Likewise.
8264         * tests/test-fchmodat.c: New file.
8265         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
8266         (Makefile.am): Also run 'test-fchmodat'.
8267
8268 2011-09-20  Bruno Haible  <bruno@clisp.org>
8269
8270         utimens, futimens, fdutimensat tests: EBADF tests.
8271         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
8272
8273         Tests for function fstat().
8274         * modules/fstat-tests: New file.
8275         * tests/test-fstat.c: New file.
8276         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
8277
8278 2011-09-20  Bruno Haible  <bruno@clisp.org>
8279
8280         test-ttyname_r tests: EBADF tests.
8281         * tests/test-ttyname_r.c (main): Add tests for EBADF.
8282
8283         Tests for module 'isatty'.
8284         * modules/isatty-tests: New file.
8285         * tests/test-isatty.c: New file.
8286
8287         Tests for module 'write'.
8288         * modules/write-tests: New file.
8289         * tests/test-write.c: New file.
8290
8291         Tests for module 'read'.
8292         * modules/read-tests: New file.
8293         * tests/test-read.c: New file.
8294
8295         pwrite tests: EBADF tests.
8296         * tests/test-pwrite.c (main): Add tests for EBADF.
8297
8298         pread tests: EBADF tests.
8299         * tests/test-pread.c (main): Add tests for EBADF.
8300
8301         lseek tests: EBADF tests.
8302         * tests/test-lseek.c (main): Add more tests for EBADF.
8303
8304         Tests for module 'ftruncate'.
8305         * modules/ftruncate-tests: New file.
8306         * tests/test-ftruncate.sh: New file.
8307         * tests/test-ftruncate.c: New file.
8308
8309         fsync tests: EBADF tests.
8310         * tests/test-fsync.c (main): Add more tests for EBADF.
8311
8312         fdatasync tests: EBADF tests.
8313         * tests/test-fdatasync.c (main): Add more tests for EBADF.
8314
8315         Tests for module 'fchown'.
8316         * modules/fchown-tests: New file.
8317         * tests/test-fchown.c: New file.
8318
8319         Tests for module 'fchmod'.
8320         * modules/fchmod-tests: New file.
8321         * tests/test-fchmod.c: New file.
8322
8323         fchdir tests: EBADF tests.
8324         * tests/test-fchdir.c (main): Add more tests for EBADF.
8325
8326         dup2 tests: EBADF tests.
8327         * tests/test-dup2.c (main): Add more tests for EBADF.
8328
8329         Tests for module 'dup'.
8330         * modules/dup-tests: New file.
8331         * tests/test-dup.c: New file.
8332
8333         Tests for module 'close'.
8334         * modules/close-tests: New file.
8335         * tests/test-close.c: New file.
8336
8337 2011-09-20  Bruno Haible  <bruno@clisp.org>
8338
8339         Tests for module 'shutdown'.
8340         * modules/shutdown-tests: New file.
8341         * tests/test-shutdown.c: New file.
8342
8343         Tests for module 'setsockopt'.
8344         * modules/setsockopt-tests: New file.
8345         * tests/test-setsockopt.c: New file.
8346
8347         Tests for module 'sendto'.
8348         * modules/sendto-tests: New file.
8349         * tests/test-sendto.c: New file.
8350
8351         Tests for module 'send'.
8352         * modules/send-tests: New file.
8353         * tests/test-send.c: New file.
8354
8355         Tests for module 'recvfrom'.
8356         * modules/recvfrom-tests: New file.
8357         * tests/test-recvfrom.c: New file.
8358
8359         Tests for module 'recv'.
8360         * modules/recv-tests: New file.
8361         * tests/test-recv.c: New file.
8362
8363         Tests for module 'listen'.
8364         * modules/listen-tests: New file.
8365         * tests/test-listen.c: New file.
8366
8367         Tests for module 'getsockopt'.
8368         * modules/getsockopt-tests: New file.
8369         * tests/test-getsockopt.c: New file.
8370
8371         Tests for module 'getsockname'.
8372         * modules/getsockname-tests: New file.
8373         * tests/test-getsockname.c: New file.
8374
8375         Tests for module 'getpeername'.
8376         * modules/getpeername-tests: New file.
8377         * tests/test-getpeername.c: New file.
8378
8379         Tests for module 'connect'.
8380         * modules/connect-tests: New file.
8381         * tests/test-connect.c: New file.
8382
8383         Tests for module 'bind'.
8384         * modules/bind-tests: New file.
8385         * tests/test-bind.c: New file.
8386
8387         accept4 tests: Fix for native Windows.
8388         * tests/test-accept4.c: Include sockets.h.
8389         (main): Invoke gl_sockets_startup.
8390         * modules/accept4-tests (Depends-on): Add sockets.
8391
8392         accept tests: Fix for native Windows.
8393         * tests/test-accept.c: Include sockets.h.
8394         (main): Invoke gl_sockets_startup.
8395         * modules/accept-tests (Depends-on): Add sockets.
8396
8397 2011-09-19  Bruno Haible  <bruno@clisp.org>
8398
8399         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
8400         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
8401         do...while(0).
8402         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
8403         Suggested by Paul Eggert.
8404
8405 2011-09-19  Bruno Haible  <bruno@clisp.org>
8406
8407         sched: Ensure pid_t is defined.
8408         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
8409         not define pid_t.
8410         * lib/sched.in.h: Include <sys/types.h>.
8411         * doc/posix-headers/sched.texi: Mention the pid_t problem.
8412         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8413
8414 2011-09-19  Bruno Haible  <bruno@clisp.org>
8415
8416         msvc-inval: Ensure the entire expansion is a single statement.
8417         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
8418         of braces.
8419
8420 2011-09-19  Jim Meyering  <meyering@redhat.com>
8421
8422         tests: use printf, not echo in init.sh's warn_ function
8423         * tests/init.sh (warn_): Use printf, not echo.  The latter would
8424         misbehave when given strings containing a backslash or starting
8425         with e.g., -n.  James Youngman suggested setting IFS.
8426
8427 2011-09-19  Eric Blake  <eblake@redhat.com>
8428
8429         futimens: enhance test
8430         * tests/test-futimens.h (test_futimens): Also check for EBADF on
8431         closed non-negative fd.
8432
8433         date: accept 'hence' as opposite of 'ago'
8434         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
8435         * tests/test-parse-datetime.c (main): Enhance test.
8436         Suggested by Jesse Wilson.
8437
8438 2011-09-19  Jim Meyering  <meyering@redhat.com>
8439
8440         getcwd: don't fail in a deep directory on a system without openat
8441         Before this change, getcwd would fail when called from a directory
8442         of depth PATH_MAX / 3 or greater.  That was due to the fact that
8443         the non-openat implementation used "..", "../..", "../../..", etc.
8444         to access ancestor directories.  With too many, that string would
8445         be longer than PATH_MAX.
8446         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
8447         using gnulib's openat replacement.
8448         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
8449         we're using the replacement function.
8450
8451 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
8452
8453         maint.mk: avoid warnings from perl about missing files
8454         * top/maint.mk (def_sym_regex): Ignore files listed in
8455         $(gl_other_headers_) that do not exist, say because a project
8456         does not use a corresponding module.
8457
8458 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
8459
8460         stat: use pathmax.h only if needed
8461         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
8462         This is better for Emacs, which does not have a mingw port and
8463         therefore can avoid the pathmax module.
8464
8465         utimens: remove dependency on dup2
8466         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
8467         to work around the Linux kernel bug.
8468         * modules/utimens (Depends-on): Remove dup2.
8469
8470 2011-09-18  Bruno Haible  <bruno@clisp.org>
8471
8472         inet_ntop, inet_pton: Look for it also in libresolv.
8473         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
8474         libnsl, search for it in libresolv.
8475         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
8476         Needed on Solaris 7.
8477
8478 2011-09-18  Bruno Haible  <bruno@clisp.org>
8479
8480         accept, accept4 tests: Avoid link error on Solaris.
8481         * modules/accept-tests (Makefile.am): Link test-accept against
8482         $(LIBSOCKET).
8483         * modules/accept4-tests (Makefile.am): Link test-accept4 against
8484         $(LIBSOCKET).
8485
8486         accept4: Avoid link error on Solaris.
8487         * modules/accept4 (Link): New section.
8488
8489         socket functions: Avoid link errors on Solaris.
8490         * modules/accept (Depends-on): Add socketlib.
8491         (Link): New section.
8492         * modules/bind (Depends-on): Add socketlib.
8493         (Link): New section.
8494         * modules/connect (Depends-on): Add socketlib.
8495         (Link): New section.
8496         * modules/getpeername (Depends-on): Add socketlib.
8497         (Link): New section.
8498         * modules/getsockname (Depends-on): Add socketlib.
8499         (Link): New section.
8500         * modules/getsockopt (Depends-on): Add socketlib.
8501         (Link): New section.
8502         * modules/listen (Depends-on): Add socketlib.
8503         (Link): New section.
8504         * modules/recv (Depends-on): Add socketlib.
8505         (Link): New section.
8506         * modules/recvfrom (Depends-on): Add socketlib.
8507         (Link): New section.
8508         * modules/send (Depends-on): Add socketlib.
8509         (Link): New section.
8510         * modules/sendto (Depends-on): Add socketlib.
8511         (Link): New section.
8512         * modules/setsockopt (Depends-on): Add socketlib.
8513         (Link): New section.
8514         * modules/shutdown (Depends-on): Add socketlib.
8515         (Link): New section.
8516         * modules/socket (Depends-on): Add socketlib.
8517         (Link): New section.
8518
8519 2011-09-18  Bruno Haible  <bruno@clisp.org>
8520
8521         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
8522         * tests/test-ptsname.c (main): Terminate the test if it takes longer
8523         than 5 seconds.
8524         * modules/ptsname-tests (configure.ac): Test for alarm.
8525
8526 2011-09-18  Bruno Haible  <bruno@clisp.org>
8527
8528         posix_spawn_file_actions_add*: Fix module dependencies.
8529         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
8530         posix_spawn_file_actions_init.
8531         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
8532         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
8533
8534 2011-09-18  Bruno Haible  <bruno@clisp.org>
8535
8536         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
8537         * tests/test-rename.h (test_rename): Allow error code EEXIST.
8538         * tests/test-renameat.c (main): Likewise.
8539
8540 2011-09-18  Bruno Haible  <bruno@clisp.org>
8541
8542         Tests for module 'accept4'.
8543         * modules/accept4-tests: New file.
8544         * tests/test-accept4.c: New file.
8545
8546 2011-09-18  Bruno Haible  <bruno@clisp.org>
8547
8548         Tests for module 'accept'.
8549         * modules/accept-tests: New file.
8550         * tests/test-accept.c: New file.
8551
8552 2011-09-18  Bruno Haible  <bruno@clisp.org>
8553
8554         dup2: Support for MSVC.
8555         * lib/dup2.c: Include msvc-inval.h.
8556         (rpl_dup2): Handle invalid parameter notifications during dup2 and
8557         _get_osfhandle calls.
8558         * modules/dup2 (Depends-on): Add msvc-inval.
8559         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
8560
8561         New module 'msvc-inval'.
8562         * lib/msvc-inval.h: New file.
8563         * lib/msvc-inval.c: New file.
8564         * m4/msvc-inval.m4: New file.
8565         * modules/msvc-inval: New file.
8566
8567 2011-09-17  Bruno Haible  <bruno@clisp.org>
8568
8569         Tests for module 'pclose'.
8570         * modules/pclose-tests: New file.
8571
8572         New module 'pclose'.
8573         * lib/stdio.in.h (pclose): New declaration.
8574         * lib/pclose.c: New file.
8575         * m4/pclose.m4: New file.
8576         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
8577         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
8578         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
8579         * modules/pclose: New file.
8580         * modules/popen-tests (Depends-on): Add pclose.
8581         * modules/popen-safer-tests (Depends-on): Likewise.
8582         * doc/posix-functions/pclose.texi: Mention the new module.
8583
8584 2011-09-17  Bruno Haible  <bruno@clisp.org>
8585
8586         popen: Support for MSVC.
8587         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
8588         * lib/popen.c (popen): Provide alternate definition for native Windows.
8589         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
8590         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
8591         * modules/popen (Depends-on, configure.ac): Update condition.
8592         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
8593         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
8594         fixed.
8595
8596 2011-09-17  Bruno Haible  <bruno@clisp.org>
8597
8598         isnanl, isnand, isnanf: Work around MSVC bug.
8599         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
8600
8601 2011-09-17  Bruno Haible  <bruno@clisp.org>
8602
8603         sys_socket tests: Fix recent mistake.
8604         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
8605
8606 2011-09-17  Bruno Haible  <bruno@clisp.org>
8607
8608         putenv: Support for MSVC.
8609         * modules/putenv (Depends-on): Add environ.
8610         * lib/putenv.c (environ): Disable declaration.
8611         * lib/unistd.in.h: Update comment.
8612
8613 2011-09-17  Bruno Haible  <bruno@clisp.org>
8614
8615         math: Avoid macro redefinition warnings on MSVC.
8616         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
8617         Undefine before redefining.
8618
8619 2011-09-17  Bruno Haible  <bruno@clisp.org>
8620
8621         doc: Mention functions which are declared as macros.
8622         * doc/posix-functions/*[fl].texi: Mention that some functions are
8623         defined as macros with arguments only.
8624
8625 2011-09-17  Bruno Haible  <bruno@clisp.org>
8626
8627         Add dependencies to new dirent related modules.
8628         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
8629         * modules/fts (Depends-on): Likewise.
8630         * modules/glob (Depends-on): Likewise.
8631         * modules/savedir (Depends-on): Likewise.
8632         * modules/scandir (Depends-on): Likewise.
8633         * modules/dirent-safer (Depends-on): Add opendir, closedir.
8634         * modules/fdopendir (Depends-on): Add opendir.
8635
8636 2011-09-17  Bruno Haible  <bruno@clisp.org>
8637
8638         inet_pton: Support for MSVC on Windows Vista or newer.
8639         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
8640         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
8641         HAVE_DECL_INET_PTON is defined.
8642         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
8643         On platforms with <winsock2.h>, test whether inet_pton is declared in
8644         <ws2tcpip.h>. If so, arrange to replace it.
8645         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
8646         REPLACE_INET_PTON.
8647         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
8648         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
8649         (Depends-on, configure.ac): Update condition.
8650         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
8651
8652 2011-09-17  Bruno Haible  <bruno@clisp.org>
8653
8654         inet_ntop: Support for MSVC on Windows Vista or newer.
8655         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
8656         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
8657         HAVE_DECL_INET_NTOP is defined.
8658         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
8659         On platforms with <winsock2.h>, test whether inet_ntop is declared in
8660         <ws2tcpip.h>. If so, arrange to replace it.
8661         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
8662         REPLACE_INET_NTOP.
8663         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
8664         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
8665         (Depends-on, configure.ac): Update condition.
8666         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
8667
8668 2011-09-16  Eric Blake  <eblake@redhat.com>
8669
8670         test-fsync: yet another enhancement
8671         * tests/test-fsync.c (main): Also test behavior on read-only text
8672         file.
8673
8674 2011-09-16  Bruno Haible  <bruno@clisp.org>
8675
8676         Enhance fsync, fdatasync tests.
8677         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
8678         * tests/test-fdatasync.c (main): Likewise.
8679
8680 2011-09-16  Bruno Haible  <bruno@clisp.org>
8681
8682         Support for MSVC compiler: Ensure mode_t gets defined.
8683         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
8684         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
8685         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
8686         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
8687         * tests/test-fcntl-h.c: Check that mode_t is defined.
8688         * tests/test-sys_stat.c: Likewise.
8689         * tests/test-sys_types.c: Likewise.
8690         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
8691         * doc/posix-headers/sys_stat.texi: Likewise.
8692         * doc/posix-headers/sys_types.texi: Likewise.
8693
8694 2011-09-16  Bruno Haible  <bruno@clisp.org>
8695
8696         sys_stat: Support for MSVC.
8697         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
8698         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
8699         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
8700         MSVC.
8701
8702 2011-09-16  Bruno Haible  <bruno@clisp.org>
8703
8704         Support for MSVC compiler: Ensure off_t gets defined.
8705         * lib/unistd.in.h: Include <sys/types.h>.
8706         * tests/test-fcntl-h.c: Check that off_t is defined.
8707         * tests/test-sys_stat.c: Likewise.
8708         * tests/test-sys_types.c: Likewise.
8709
8710 2011-09-16  Eric Blake  <eblake@redhat.com>
8711
8712         fdatasync: port to Solaris
8713         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
8714         * modules/fdatasync (Link): Document it.
8715         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
8716
8717         fdatasync: port to MacOS X 10.7
8718         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
8719         declared.
8720         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
8721         * modules/unistd (Makefile.am): Substitute it.
8722         * lib/unistd.in.h (fdatasync): Declare on MacOS.
8723         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
8724
8725         fdatasync: minor improvements
8726         * modules/fdatasync (Depends-on): Add condition for fsync.
8727         * lib/fdatasync.c (fdatasync): Add comment.
8728         * tests/test-unistd-c++.cc: Test fdatasync.
8729
8730         unistd: update refs to newer POSIX
8731         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
8732         Suggested by Bruno Haible.
8733
8734         fdatasync: new module
8735         * modules/fsync (Description): Document difference to fdatasync.
8736         * modules/fdatasync: New module.
8737         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
8738         * lib/fdatasync.c (fdatasync): Likewise.
8739         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
8740         defaults.
8741         * modules/unistd (Makefile.am): Set witnesses.
8742         * lib/unistd.in.h (fdatasync): Declare.
8743         * MODULES.html.sh: Document it.
8744         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
8745         * modules/fdatasync-tests: New test.
8746         * tests/test-fdatasync.c: Likewise.
8747
8748 2011-09-16  Eric Blake  <eblake@redhat.com>
8749
8750         test-fsync: enhance tests
8751         * modules/fsync-tests (Depends-on): Add errno, for mingw.
8752         * tests/test-fsync.c (main): Enhance test.
8753
8754 2011-09-15  Bruno Haible  <bruno@clisp.org>
8755
8756         Support for MSVC compiler: Ensure ssize_t gets defined.
8757         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
8758         * doc/posix-headers/stdio.texi: Likewise.
8759         * modules/stdio (Depends-on): Add ssize_t.
8760         * modules/sys_socket (Depends-on): Likewise.
8761         * modules/sys_types (Depends-on): Likewise.
8762         * modules/sys_uio (Depends-on): Likewise.
8763         * modules/unistd (Depends-on): Likewise.
8764         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
8765         * tests/test-sys_types.c: Check that ssize_t is defined.
8766
8767 2011-09-14  Bruno Haible  <bruno@clisp.org>
8768
8769         Avoid using #, the m4 comment starter character, near brackets.
8770         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
8771         delimiter character in sed expressions.
8772         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
8773         Suggested by Eric Blake.
8774
8775         Properly quote AC_CHECK_DECLS' 4th argument.
8776         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
8777         argument.
8778         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
8779         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
8780         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
8781         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
8782         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
8783         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
8784         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
8785         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
8786         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
8787         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
8788         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
8789         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
8790         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
8791         * m4/isinf.m4 (gl_ISINF): Likewise.
8792         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
8793         * m4/readutmp.m4 (gl_READUTMP): Likewise.
8794         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
8795         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
8796         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
8797         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
8798         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
8799         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
8800         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
8801         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
8802         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
8803         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
8804         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
8805         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
8806         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
8807         Reported by Eric Blake.
8808
8809         Properly quote AC_CHECK_DECL's 4th argument.
8810         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
8811         argument.
8812         * m4/argp.m4 (gl_ARGP): Likewise.
8813         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
8814         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
8815         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
8816         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
8817         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
8818         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
8819         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
8820         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
8821         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
8822         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
8823         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
8824         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
8825         Reported by Eric Blake.
8826
8827 2011-09-14  Eric Blake  <eblake@redhat.com>
8828
8829         opendir: avoid compile warning
8830         * lib/opendir.c (includes): Always include errno.h.
8831         Reported by Tatsuro MATSUOKA.
8832
8833 2011-09-14  Jim Meyering  <meyering@redhat.com>
8834
8835         maint.mk: sc_tight_scope: propagate failure from sub-make
8836         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
8837         Reported by Martin von Gagern.
8838
8839 2011-09-13  Bruno Haible  <bruno@clisp.org>
8840
8841         tempname: Support for MSVC.
8842         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
8843         MSVC.
8844         * modules/tempname (Depends-on): Add fcntl-h.
8845
8846 2011-09-13  Bruno Haible  <bruno@clisp.org>
8847
8848         sys_time: Support for MSVC.
8849         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
8850         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
8851         include <winsock2.h>.
8852         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
8853         function declarations that collide with POSIX.
8854         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
8855         (Makefile.am): Substitute HAVE_WINSOCK2_H.
8856
8857 2011-09-13  Bruno Haible  <bruno@clisp.org>
8858
8859         stat: Support for MSVC.
8860         * lib/stat.c: Include pathmax.h.
8861         * modules/stat (Depends-on): Add pathmax.
8862
8863         pathmax: Support for native Windows.
8864         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
8865
8866 2011-09-12  Bruno Haible  <bruno@clisp.org>
8867
8868         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
8869         * lib/dirent.in.h (struct dirent): New type.
8870         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
8871         DT_WHT): New macros.
8872         (DIR): New type.
8873         (opendir, closedir): Declare only if the module 'opendir' is enabled.
8874         (readdir, rewinddir): New declarations.
8875         * lib/dirent-private.h: New file.
8876         * lib/opendir.c: New file.
8877         * lib/readdir.c: New file.
8878         * lib/rewinddir.c: New file.
8879         * lib/closedir.c: New file.
8880         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
8881         * m4/opendir.m4: New file.
8882         * m4/readdir.m4: New file.
8883         * m4/rewinddir.m4: New file.
8884         * m4/closedir.m4: New file.
8885         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
8886         REPLACE_CLOSEDIR here.
8887         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
8888         readdir, rewinddir are declared.
8889         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
8890         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
8891         HAVE_REWINDDIR, HAVE_CLOSEDIR.
8892         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
8893         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
8894         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
8895         * modules/opendir: New file.
8896         * modules/readdir: New file.
8897         * modules/rewinddir: New file.
8898         * modules/closedir: New file.
8899         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
8900         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
8901         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
8902         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
8903         * NEWS: Mention the 'fchdir' change.
8904
8905 2011-09-11  Bruno Haible  <bruno@clisp.org>
8906
8907         asm-underscore.m4: Support for MSVC.
8908         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
8909         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
8910
8911 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
8912
8913         Doc about crypt functions.
8914         * doc/posix-functions/crypt.texi: Expand range of glibc versions
8915         needing for _GNU_SOURCE to get crypt.
8916         * doc/posix-functions/encrypt.texi: Likewise.
8917         * doc/posix-functions/setkey.texi: Likewise.
8918
8919 2011-09-11  Bruno Haible  <bruno@clisp.org>
8920
8921         doc: Update regarding MSVC 9.
8922         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
8923         tested".
8924         * doc/posix-functions/*.texi: Update with info about MSVC 9.
8925         * doc/posix-headers/*.texi: Likewise.
8926         * doc/pastposix-functions/*.texi: Likewise.
8927         * doc/glibc-functions/*.texi: Likewise.
8928         * doc/glibc-headers/*.texi: Likewise.
8929
8930 2011-09-11  Bruno Haible  <bruno@clisp.org>
8931
8932         unistd et al.: Don't assume <unistd.h> exists.
8933         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
8934         does not exist.
8935         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
8936         exist. But include <stdlib.h>.
8937         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
8938         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
8939         symlink() does not exist.
8940         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
8941         include <io.h> instead.
8942         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
8943         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
8944         include <direct.h> instead.
8945         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
8946         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
8947         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
8948         <io.h> instead.
8949         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
8950         correctly if the system does not have hard links.
8951         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
8952         <direct.h> instead.
8953         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
8954         it when looking for function declarations.
8955         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
8956         <direct.h> and <io.h> instead.
8957         * doc/posix-headers/unistd.texi: More details about MSVC problem.
8958
8959 2011-09-11  Bruno Haible  <bruno@clisp.org>
8960
8961         strcase: Support for MSVC.
8962         * modules/strcase (Status, Notice): Remove obsoletion mark.
8963         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
8964         * doc/posix-functions/strncasecmp.texi: Likewise.
8965
8966         strings: Don't assume <strings.h> exists.
8967         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
8968         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
8969         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
8970         * doc/posix-headers/strings.texi: Mention the MSVC problem.
8971
8972 2011-09-11  Bruno Haible  <bruno@clisp.org>
8973
8974         dirent: Don't assume <dirent.h> exists.
8975         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
8976         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
8977         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
8978         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
8979
8980 2011-09-11  Bruno Haible  <bruno@clisp.org>
8981
8982         Fix wint_t on MSVC.
8983         * lib/wchar.in.h (wint_t): On MSVC, override it.
8984         * lib/wctype.in.h (wint_t): Likewise.
8985         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
8986         MSVC.
8987         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
8988         * doc/posix-headers/wctype.texi: Likewise.
8989
8990 2011-09-11  Bruno Haible  <bruno@clisp.org>
8991
8992         sys_types: Fix typo.
8993         * lib/sys_types.in.h: Fix typo in comment.
8994         Reported by Paul Eggert.
8995
8996         Support for MSVC compiler: Ensure size_t gets defined.
8997         * modules/strings (Depends-on): Add 'sys_types'.
8998         * modules/sys_uio (Depends-on): Likewise.
8999         * lib/sys_uio.in.h: Update comment.
9000
9001         C++ tests for module 'sys_types'.
9002         * modules/sys_types-c++-tests: New file.
9003         * tests/test-sys_types-c++.cc: New file.
9004
9005         Tests for module 'sys_types'.
9006         * modules/sys_types-tests: New file.
9007         * tests/test-sys_types.c: New file.
9008
9009         New module 'sys_types'.
9010         * lib/sys_types.in.h: New file.
9011         * m4/sys_types_h.m4: New file.
9012         * modules/sys_types: New file.
9013         * doc/posix-headers/sys_types.texi: Mention the new module and the
9014         size_t problem on MSVC 9.
9015
9016 2011-09-11  Bruno Haible  <bruno@clisp.org>
9017
9018         Support for MSVC compiler: Avoid division by a literal 0.
9019         * lib/math.in.h (NAN): Define through a function call also on MSVC.
9020         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
9021         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
9022         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
9023         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
9024         * tests/infinity.h: New file.
9025         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
9026         on MSVC.
9027         * tests/test-ceilf1.c: Include infinity.h.
9028         (main): Use Infinityf.
9029         * tests/test-ceil1.c: Include infinity.h.
9030         (main): Use Infinityd.
9031         * tests/test-ceill.c: Include infinity.h.
9032         (main): Use Infinityl.
9033         * tests/test-dprintf-posix.c: Include infinity.h.
9034         (test_function): Use Infinityd.
9035         * tests/test-floorf1.c: Include infinity.h.
9036         (main): Use Infinityf.
9037         * tests/test-floor1.c: Include infinity.h.
9038         (main): Use Infinityd.
9039         * tests/test-floorl.c: Include infinity.h.
9040         (main): Use Infinityl.
9041         * tests/test-fprintf-posix.c: Include infinity.h.
9042         (test_function): Use Infinityd.
9043         * tests/test-frexp.c: Include infinity.h.
9044         (main): Use Infinityd.
9045         * tests/test-frexpl.c: Include infinity.h.
9046         (main): Use Infinityl.
9047         * tests/test-isfinite.c: Include infinity.h.
9048         (test_isfinitef): Use Infinityf.
9049         (test_isfinited): Use Infinityd.
9050         (test_isfinitel): Use Infinityl.
9051         * tests/test-isinf.c: Include infinity.h.
9052         (test_isinff): Use Infinityf.
9053         (test_isinfd): Use Infinityd.
9054         (test_isinfl): Use Infinityl.
9055         * tests/test-isnan.c: Include infinity.h.
9056         (test_float): Use Infinityf.
9057         (test_double): Use Infinityd.
9058         (test_long_double): Use Infinityl.
9059         * tests/test-isnanf.h: Include infinity.h.
9060         (main): Use Infinityf.
9061         * tests/test-isnand.h: Include infinity.h.
9062         (main): Use Infinityd.
9063         * tests/test-isnanl.h: Include infinity.h.
9064         (main): Use Infinityl.
9065         * tests/test-ldexpl.c: Include infinity.h.
9066         (main): Use Infinityl.
9067         * tests/test-printf-posix.h: Include infinity.h.
9068         (test_function): Use Infinityd.
9069         * tests/test-roundf1.c: Include infinity.h.
9070         (main): Use Infinityf.
9071         * tests/test-round1.c: Include infinity.h.
9072         (main): Use Infinityd.
9073         * tests/test-roundl.c: Include infinity.h.
9074         (main): Use Infinityl.
9075         * tests/test-signbit.c: Include infinity.h.
9076         (test_signbitf): Use Infinityf.
9077         (test_signbitd): Use Infinityd.
9078         (test_signbitl): Use Infinityl.
9079         * tests/test-snprintf-posix.h: Include infinity.h.
9080         (test_function): Use Infinityd, Infinityl.
9081         * tests/test-sprintf-posix.h: Include infinity.h.
9082         (test_function): Use Infinityd, Infinityl.
9083         * tests/test-truncf1.c: Include infinity.h.
9084         (main): Use Infinityf.
9085         * tests/test-trunc1.c: Include infinity.h.
9086         (main): Use Infinityd.
9087         * tests/test-truncl.c: Include infinity.h.
9088         (main): Use Infinityl.
9089         * tests/test-vasnprintf-posix.c: Include infinity.h.
9090         (test_function): Use Infinityd, Infinityl.
9091         * tests/test-vasprintf-posix.c: Include infinity.h.
9092         (test_function): Use Infinityd, Infinityl.
9093         * modules/ceilf-tests (Files): Add tests/infinity.h.
9094         * modules/ceil-tests (Files): Likewise.
9095         * modules/ceill-tests (Files): Likewise.
9096         * modules/dprintf-posix-tests (Files): Likewise.
9097         * modules/floorf-tests (Files): Likewise.
9098         * modules/floor-tests (Files): Likewise.
9099         * modules/floorl-tests (Files): Likewise.
9100         * modules/fprintf-posix-tests (Files): Likewise.
9101         * modules/frexp-tests (Files): Likewise.
9102         * modules/frexp-nolibm-tests (Files): Likewise.
9103         * modules/frexpl-tests (Files): Likewise.
9104         * modules/frexpl-nolibm-tests (Files): Likewise.
9105         * modules/isfinite-tests (Files): Likewise.
9106         * modules/isinf-tests (Files): Likewise.
9107         * modules/isnan-tests (Files): Likewise.
9108         * modules/isnanf-tests (Files): Likewise.
9109         * modules/isnanf-nolibm-tests (Files): Likewise.
9110         * modules/isnand-tests (Files): Likewise.
9111         * modules/isnand-nolibm-tests (Files): Likewise.
9112         * modules/isnanl-tests (Files): Likewise.
9113         * modules/isnanl-nolibm-tests (Files): Likewise.
9114         * modules/ldexpl-tests (Files): Likewise.
9115         * modules/printf-posix-tests (Files): Likewise.
9116         * modules/roundf-tests (Files): Likewise.
9117         * modules/round-tests (Files): Likewise.
9118         * modules/roundl-tests (Files): Likewise.
9119         * modules/signbit-tests (Files): Likewise.
9120         * modules/snprintf-posix-tests (Files): Likewise.
9121         * modules/sprintf-posix-tests (Files): Likewise.
9122         * modules/truncf-tests (Files): Likewise.
9123         * modules/trunc-tests (Files): Likewise.
9124         * modules/truncl-tests (Files): Likewise.
9125         * modules/vasnprintf-posix-tests (Files): Likewise.
9126         * modules/vasprintf-posix-tests (Files): Likewise.
9127         * modules/vdprintf-posix-tests (Files): Likewise.
9128         * modules/vfprintf-posix-tests (Files): Likewise.
9129         * modules/vprintf-posix-tests (Files): Likewise.
9130         * modules/vsnprintf-posix-tests (Files): Likewise.
9131         * modules/vsprintf-posix-tests (Files): Likewise.
9132         * modules/xprintf-posix-tests (Files): Likewise.
9133
9134 2011-09-11  Bruno Haible  <bruno@clisp.org>
9135
9136         Ensure pid_t gets defined.
9137         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
9138         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
9139         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
9140         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
9141         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
9142         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
9143         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
9144         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
9145         * tests/test-fcntl-h.c: Check that pid_t is defined.
9146         * tests/test-sched.c: Likewise.
9147         * tests/test-termios.c: Likewise.
9148         * tests/test-time.c: Likewise.
9149         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
9150         * doc/posix-headers/signal.texi: Likewise.
9151         * doc/posix-headers/sys_types.texi: Likewise.
9152         * doc/posix-headers/time.texi: Likewise.
9153
9154 2011-09-11  Bruno Haible  <bruno@clisp.org>
9155
9156         acl: Fix compilation on Solaris 10 (older version).
9157         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
9158         of ACE_EVERYONE.
9159         * lib/set-mode-acl.c (qset_acl): Likewise.
9160         Reported by Christian Jullien <eligis@orange.fr>.
9161
9162 2011-09-10  Bruno Haible  <bruno@clisp.org>
9163
9164         iconv, unsetenv: Add support for MSVC compiler.
9165         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
9166         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
9167
9168 2011-09-10  Bruno Haible  <bruno@clisp.org>
9169
9170         *printf: Add support for MSVC compiler.
9171         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
9172         handles the exception caused by the %n directive. When cross-compiling,
9173         guess no on native Windows.
9174         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
9175         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
9176         emulate it through vsnprintf.
9177         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
9178         * doc/posix-functions/dprintf.texi: Update documentation regarding
9179         MSVC 9.
9180         * doc/posix-functions/fprintf.texi: Likewise.
9181         * doc/posix-functions/printf.texi: Likewise.
9182         * doc/posix-functions/snprintf.texi: Likewise.
9183         * doc/posix-functions/sprintf.texi: Likewise.
9184         * doc/posix-functions/swprintf.texi: Likewise.
9185         * doc/posix-functions/vdprintf.texi: Likewise.
9186         * doc/posix-functions/vfprintf.texi: Likewise.
9187         * doc/posix-functions/vprintf.texi: Likewise.
9188         * doc/posix-functions/vsnprintf.texi: Likewise.
9189         * doc/posix-functions/vsprintf.texi: Likewise.
9190         * doc/glibc-functions/asprintf.texi: Likewise.
9191         * doc/glibc-functions/obstack_printf.texi: Likewise.
9192         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
9193         * doc/glibc-functions/vasprintf.texi: Likewise.
9194
9195 2011-09-10  Bruno Haible  <bruno@clisp.org>
9196
9197         nocrash: Add support for native Windows.
9198         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
9199
9200 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
9201             Bruno Haible  <bruno@clisp.org>
9202
9203         absolute-header, include-next: Add support for MSVC compiler.
9204         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
9205         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
9206         directory separator in #line directives.
9207         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
9208         recognize also backslash as directory separator in #line directives.
9209
9210 2011-09-08  Jim Meyering  <meyering@redhat.com>
9211
9212         maint.mk: mark the post-release commit log with "maint: " prefix
9213         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
9214         one-line commit-log summary.
9215
9216 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
9217             Bruno Haible  <bruno@clisp.org>
9218
9219         Doc about crypt functions.
9220         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
9221         systems.
9222         * doc/posix-functions/encrypt.texi: Likewise.
9223         * doc/posix-functions/setkey.texi: Likewise.
9224
9225 2011-09-08  Simon Josefsson  <simon@josefsson.org>
9226
9227         * lib/gc.h: Fix copyright header.
9228
9229 2011-09-07  Bruno Haible  <bruno@clisp.org>
9230
9231         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
9232         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
9233         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
9234
9235 2011-09-07  Bruno Haible  <bruno@clisp.org>
9236
9237         openat: Work around compilation error with OSF/1 5.1 DTK cc.
9238         * lib/fopen.c: Use different syntax for include of <stdio.h>.
9239         * lib/freopen.c: Likewise.
9240         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
9241         * lib/lstat.c: Likewise.
9242         * lib/stat.c: Likewise.
9243         * lib/open.c: Use different syntax for include of <fcntl.h>.
9244         * lib/openat.c: Include fcntl.h again, explicitly.
9245
9246 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
9247
9248         parse-datetime: document the newly accepted format
9249         * doc/parse-datetime.texi (Combined date and time of day items):
9250         New section.
9251
9252 2011-09-06  Bruno Haible  <bruno@clisp.org>
9253
9254         acl: Fix a test failure on newer Solaris 10 with ZFS.
9255         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
9256         ENOSYS as no ACL.
9257         Reported by Jim Meyering.
9258
9259 2011-09-06  Bruno Haible  <bruno@clisp.org>
9260
9261         acl: Update for AIX >= 5.3 with NFS.
9262         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
9263         ENOSYS as no ACL.
9264
9265         acl: Fix a test failure on AIX >= 5.3 with NFS.
9266         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
9267         as no ACL.
9268
9269 2011-09-06  Bruno Haible  <bruno@clisp.org>
9270
9271         acl: Fix a test failure on IRIX 6.5 with NFS.
9272         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
9273         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
9274         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
9275         * lib/copy-acl.c (qcopy_acl): Likewise.
9276
9277 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
9278
9279         openat: port to AIX 7.1 with large files
9280         AIX 7.1 does a "#define openat open64at" if large files are in use,
9281         so we can't simply #undef openat.  Use the orig_openat trick (similar
9282         to orig_open in lib/open.c) to work around the problem.  Problem
9283         reported by Kevin Brott for GNU tar, in the thread containing
9284         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
9285         * lib/openat.c (__need_system_fcntl_h): Define first.
9286         Include <fcntl.h> and <sys/types.h> before undefining.
9287         (orig_openat) [HAVE_OPENAT]: New inline function.
9288         (openat) [HAVE_OPENAT]: Do not undef.
9289         (rpl_openat): Use orig_openat, not openat.
9290
9291 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
9292             Bruno Haible  <bruno@clisp.org>
9293
9294         acl: Avoid errors on NonStop Kernel.
9295         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
9296         ENOTSUP errors.
9297
9298 2011-09-05  Bruno Haible  <bruno@clisp.org>
9299
9300         acl: Clean up Solaris code.
9301         * lib/acl-internal.h: Remove no-op #if.
9302         * lib/file-has-acl.c: Likewise.
9303         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
9304         * lib/copy-acl.c (qcopy_acl): Likewise.
9305
9306 2011-09-05  Bruno Haible  <bruno@clisp.org>
9307
9308         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
9309         binaries built on the original Solaris 10.
9310         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
9311         trivial.
9312
9313 2011-09-05  Bruno Haible  <bruno@clisp.org>
9314
9315         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
9316         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
9317         10.
9318         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
9319         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
9320         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
9321         instead of acl_get, facl_get, acl_set, facl_set.
9322
9323 2011-09-05  Bruno Haible  <bruno@clisp.org>
9324
9325         copy-file: Try unit tests on more file systems.
9326         * tests/test-copy-file-1.sh: New file.
9327         * tests/test-copy-file-2.sh: New file.
9328         * modules/copy-file-tests (Files): Add them.
9329         (Makefile.am): Add them to TESTS.
9330
9331         acl: Try unit tests on more file systems.
9332         * tests/test-file-has-acl-1.sh: New file.
9333         * tests/test-file-has-acl-2.sh: New file.
9334         * tests/test-set-mode-acl-1.sh: New file.
9335         * tests/test-set-mode-acl-2.sh: New file.
9336         * tests/test-copy-acl-1.sh: New file.
9337         * tests/test-copy-acl-2.sh: New file.
9338         * modules/acl-tests (Files): Add them.
9339         (Makefile.am): Add them to TESTS.
9340
9341 2011-09-04  Bruno Haible  <bruno@clisp.org>
9342
9343         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
9344         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
9345         10.
9346         (OLD_ALLOW, OLD_DENY): New macros.
9347         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
9348         ACE_ACCESS_ALLOWED_ACE_TYPE.
9349         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
9350         ACE_ACCESS_DENIED_ACE_TYPE.
9351         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
9352         (NEW_ACE_EXECUTE): Fix value.
9353         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
9354         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
9355         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
9356         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
9357         NEW_ACE_SYNCHRONIZE): New macros.
9358         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
9359         instead of acl_fromtext, acl_set, facl_set.
9360         Fixes a coreutils/tests/cp/perm failure.
9361
9362 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
9363
9364         openat: test for fstatat (..., 0) bug
9365         Further testing with tar suggests that fstatat (..., 0)
9366         does not work in general, on AIX 7.1; see
9367         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
9368         So, give up entirely on AIX 7.1's fstatat, and fall back on our
9369         replacement fstatat (which is what older AIX releases were using
9370         anyway).
9371         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
9372         use is now changed to orig_fstatat.  This was probably the right
9373         thing to do anyway.
9374         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
9375         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
9376         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
9377         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
9378         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
9379         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
9380         if the bug is found.
9381
9382         openat: test for fstatat (AT_FDCWD, ..., 0) bug
9383         This tests for another fstatat bug on AIX 7.1:
9384         fstatat (AT_FDCWD, ..., 0) does not work.  See
9385         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
9386         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
9387         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
9388         (rpl_fstatat): Adjust so that it works around either (or both)
9389         bugs if present.
9390         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
9391
9392 2011-09-03  Karl Berry  <karl@gnu.org>
9393
9394         * doc/regex.texi (Character Class Operators): Avoid literal ":"
9395         in index entries.
9396
9397 2011-09-02  Bruno Haible  <bruno@clisp.org>
9398
9399         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
9400         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
9401         values of AR, ARFLAGS, RANLIB.
9402         Reported by John W. Eaton <jwe@gnu.org> for Octave.
9403
9404 2011-09-02  Bruno Haible  <bruno@clisp.org>
9405
9406         Find 'ar' program that fits with --host argument.
9407         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
9408
9409 2011-09-02  Bruno Haible  <bruno@clisp.org>
9410
9411         tests: init.sh: Support any non-GNU diff.
9412         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
9413         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
9414         Solaris 8.
9415
9416 2011-09-02  Bruno Haible  <bruno@clisp.org>
9417
9418         tests: init.sh: work also with any non-GNU diff that supports -u
9419         * tests/init.sh: Relax check for diff -u support.
9420         Rather than checking for GNU diff via --version, simply check
9421         for support for -u itself.  Useful at least on OpenBSD 4.9,
9422         AIX 7.1, IRIX 6.5, and Solaris 10.
9423
9424 2011-09-01  Bruno Haible  <bruno@clisp.org>
9425
9426         strtoimax, strtoumax: Document problem on HP-UX 11.
9427         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
9428         * doc/posix-functions/strtoumax.texi: Likewise.
9429
9430 2011-09-01  Bruno Haible  <bruno@clisp.org>
9431
9432         strtoumax: Avoid link error on OSF/1 with DTK cc.
9433         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
9434         defined as a function.
9435         * modules/strtoumax (Depends-on, configure.ac): Test only whether
9436         strtoumax is defined, not whether it is declared.
9437
9438 2011-09-01  Bruno Haible  <bruno@clisp.org>
9439
9440         strtoimax: Avoid link error on OSF/1 with DTK cc.
9441         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
9442         defined as a function.
9443         * modules/strtoimax (Depends-on, configure.ac): Test only whether
9444         strtoimax is defined, not whether it is declared.
9445
9446 2011-09-01  Bruno Haible  <bruno@clisp.org>
9447
9448         imaxdiv: Avoid link error on OSF/1 with DTK cc.
9449         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
9450         as a function.
9451         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
9452         whether it is declared.
9453
9454 2011-09-01  Bruno Haible  <bruno@clisp.org>
9455
9456         imaxabs: Avoid link error on OSF/1 with DTK cc.
9457         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
9458         as a function.
9459         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
9460         whether it is declared.
9461
9462 2011-09-01  Bruno Haible  <bruno@clisp.org>
9463
9464         Tests for module 'strtoumax'.
9465         * modules/strtoumax-tests: New file.
9466         * tests/test-strtoumax.c: New file.
9467
9468         Tests for module 'strtoimax'.
9469         * modules/strtoimax-tests: New file.
9470         * tests/test-strtoimax.c: New file.
9471
9472         Tests for module 'imaxdiv'.
9473         * modules/imaxdiv-tests: New file.
9474         * tests/test-imaxdiv.c: New file.
9475
9476         Tests for module 'imaxabs'.
9477         * modules/imaxabs-tests: New file.
9478         * tests/test-imaxabs.c: New file.
9479
9480 2011-09-01  Bruno Haible  <bruno@clisp.org>
9481
9482         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
9483         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
9484         pthread_create.
9485
9486 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
9487
9488         openat: work around AIX 7.1 fstatat issue
9489         This should fix the problem that was not properly fixed
9490         in the previous change, dated 2011-08-30.
9491         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
9492         __need_system_stat_h defined.
9493         (orig_fstatat) [HAVE_FSTATAT]: New function.
9494         (rpl_fstatat): Go back to the old way of doing things,
9495         except call orig_fstatat instead of fstatat.
9496         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
9497         Remove unnecessary check whether fstatat fills in st_size etc.
9498
9499 2011-09-01  Bruno Haible  <bruno@clisp.org>
9500
9501         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
9502         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
9503         just include the system's header.
9504
9505 2011-08-31  Jim Meyering  <meyering@redhat.com>
9506
9507         tests: avoid spurious assertion failure in test-float.c on ppc64
9508         * tests/test-float.c (test_long_double): Comment out an assertion,
9509         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
9510         with gcc-4.4.4.
9511
9512         maint: indent with spaces, not TABs
9513         I need to get in the habit of running gnulib's "make check".
9514         Both of these would have been caught.
9515         * m4/largefile.m4: Indent with spaces, not TABs.
9516         * lib/parse-datetime.y (iso_8601_time): Likewise.
9517         Spotted by Pádraig Brady.
9518
9519         test-parse-datetime.c: accommodate a relatively strict gcc warning
9520         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
9521         to avoid a warning from gcc's -Werror=missing-declarations.
9522         Insert a few spaces-before-funcall-parenthesis.
9523
9524 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
9525
9526         parse-datetime: accept ISO 8601 date and time rep with "T" separator
9527         The parser now accepts ISO 8601 date-time strings with "T" as the
9528         separator.  It has long parsed dates like "2004-02-29 16:21:42"
9529         with a space between the date and time strings.  Now it also parses
9530         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
9531         variants like "2004-02-29T16:21:42.333-07:00"
9532         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
9533         of day representation using the 'T' separator character.
9534         * doc/parse-datetime.texi (General date syntax): replace use of
9535         deprecated --iso-8601 option with --rfc-3339 in example of date
9536         command output formats that can be parsed.
9537         * tests/test-parse-datetime.c (tm_diff): New function, taken from
9538         lib/parse-datetime.y.
9539         (gmt_offset): New function.
9540         (main): Add additional test cases to validate ISO8601 extended
9541         date and time of day parsing.
9542
9543 2011-08-31  Bruno Haible  <bruno@clisp.org>
9544
9545         freopen: Documentation.
9546         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
9547         name.
9548         Reported by Claudio Bley <claudio.bley@gmail.com>.
9549
9550 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
9551
9552         freopen: Don't crash if the filename argument is NULL.
9553         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
9554         NULL.
9555
9556 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
9557
9558         openat: work around AIX 7.1 fstatat bug
9559         Problem reported by Kevin Brott for GNU tar, in the thread containing
9560         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
9561         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
9562         FSTATAT_ST_SIZE_ETC_BROKEN.
9563         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
9564         rpl_fstatat.
9565         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
9566         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
9567         AC_CHECK_FUNCS_ONCE for fstatat.
9568         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
9569         fchmodat, mkdirat, openat and unlinkat.
9570
9571 2011-08-30  Bruno Haible  <bruno@clisp.org>
9572
9573         Avoid endless recursions if config.h includes some header files.
9574         * lib/fopen.c (__need_FILE): Define already before including config.h.
9575         * lib/freopen.c (__need_FILE): Likewise.
9576         * lib/open.c (__need_system_fcntl_h): Likewise.
9577         * lib/stat.c (__need_system_sys_stat_h): Likewise.
9578         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
9579         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
9580
9581 2011-08-25  Karl Berry  <karl@gnu.org>
9582
9583         * config/srclist.txt (ylwrap): new try.
9584         * build-aux/ylwrap: new file.
9585
9586 2011-08-23  Bruno Haible  <bruno@clisp.org>
9587
9588         tmpdir: Use a good default directory on native Windows.
9589         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
9590         (P_tmpdir): Default to _P_tmpdir on native Windows.
9591         (path_search): On native Windows, try the value returned by GetTempPath
9592         before trying P_tmpdir.
9593         * modules/tmpdir (Depends-on): Add pathmax.
9594         Suggested by John Darrington <john@darrington.wattle.id.au>.
9595
9596 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
9597
9598         doc: fix typo in README-release
9599         * top/README-release: Capitalize first word of a sentence.
9600
9601 2011-08-19  Jim Meyering  <meyering@redhat.com>
9602
9603         fts: do not exhaust memory when processing million-entry directories
9604         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
9605         directory would require about 256*N bytes of memory.  Thus, it was
9606         easy to construct a directory too large to be processed by any of
9607         those tools.  With this change, fts' maximum memory utilization is
9608         now limited to around 30MB.
9609         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
9610         (fts_read): When we've processed the final entry (i.e., when
9611         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
9612         using the parent entry to read any remaining entries.  Dispatch
9613         depending on what fts_build returns:
9614         - NULL+stop, aka failure: stop
9615         - NULL otherwise: move up in the dir hierarchy
9616         - non-NULL: handle this new entry
9617         (fts_build): Declare and use new local, continue_readdir.
9618         Prepare to be called from fts_read, when the entries
9619         from a partially-read directory have just been exhausted.
9620         In that case, we'll skip the opendir and instead use the parent's
9621         fts_dirp and derive dir_fd from that.
9622         Finally, in the readdir loop, if we read max_entries entries,
9623         exit the loop ensuring *not* to call closedir.  This is required
9624         so that fts_dirp can be reused on a subsequent call.
9625         Prompted by Ben England's report of memory exhaustion in find
9626         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
9627
9628         maint: fts: move decl of `dp' down into while loop; split a long line
9629         * lib/fts.c (fts_build): No semantic change.
9630
9631         fts: add/use new struct member, fts_dirp
9632         We are about to use this to manage any directory with
9633         too many entries to read all of them into memory at once.
9634         To do that, we'll need to save the DIR* pointer in each
9635         affected FTSENT struct.
9636         * lib/fts_.h: Include <dirent.h>.
9637         (struct FTSENT) [fts_dirp]: New member.
9638         * lib/fts.c (closedir_and_clear): Define.
9639         Use it in place of closedir so that we are sure to
9640         clear the new fts_dirp member when done with it.
9641         (fts_alloc): Initialize the new member.
9642         (fts_lfree): Free, if needed.
9643
9644         maint: fts: give __opendir2 a new parameter and rename
9645         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
9646         than surreptitiously using sole caller's "dir_fd".
9647         (fts_opendir): Rename from __opendir2.
9648
9649         maint: fts.c: remove __opendir2's now-unused parameter, oflag
9650         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
9651
9652         maint: fts.c: correct off-by-one indentation
9653         * lib/fts.c (fts_build): Correct indentation, change style
9654         of a couple of block comments, and bracing style.
9655
9656         maint: fts.c: move __opendir2 #define "up" out of function body
9657         * lib/fts.c (__opendir2): Move "up".  No semantic change.
9658
9659         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
9660         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
9661         out for a long time and besides was useful only on BSD systems.
9662
9663 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
9664
9665         regex: port to Stratus OpenVOS
9666         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
9667         define to empty, rather than attempting nonportable optimizations.
9668         Problem reported by Paul Green in:
9669         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
9670         and fix suggested by Eric Blake in:
9671         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
9672
9673 2011-08-17  Eric Blake  <eblake@redhat.com>
9674
9675         getcwd: fix test failures on mingw
9676         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
9677         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
9678         test if long directory cannot be created, and allow mingw errno.
9679
9680         getcwd-lgpl: fix m4 to match relaxed test for BSD
9681         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
9682         (gl_FUNC_GETCWD_SIGNATURE): New macro.
9683         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
9684         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
9685         signature problem.
9686
9687         getcwd: fix compilation on mingw64
9688         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
9689         getcwd.
9690         Reported by Marc-André Lureau.
9691
9692         pipe2: silence compiler warning
9693         * lib/pipe2.c (pipe2): Hide label if it is not used.
9694
9695 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
9696
9697         relocatable-prog: fix link error
9698         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
9699         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
9700         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
9701         into modules/relocatable-lib without noticing that
9702         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
9703         also needs to build relocatable.c.
9704
9705 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
9706
9707         getaddrinfo: fix sh typo in gai_strerrorA decl checking
9708         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
9709         shell code: it contained a 'break' that was not in a loop.
9710         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
9711         via a shell-language loop; this may have been true in old Autoconf
9712         versions, but it's not true in Autoconf 2.68.  I found this bug
9713         when testing coreutils git on Solaris 8, whose shell complains
9714         about the syntax error.
9715
9716 2011-08-12  Simon Josefsson  <simon@josefsson.org>
9717
9718         * lib/base64.c: Fix comment to reference RFC 4648.
9719         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
9720         <gvtulder@gmail.com>.
9721
9722 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
9723
9724         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
9725
9726         po/Makefile.in.in: fix make -q problem
9727         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
9728         rule, since there's no file named 'check-macro-version' and its
9729         use as a file breaks make -q.
9730         (all): Don't depend on check-macro-version.
9731         (CHECK_MACRO_VERSION): New macro.
9732         (stamp-po): Use it.
9733
9734         configmake: fix make -q problem
9735         * modules/configmake (configmake.h): Update configmake.h's time stamp
9736         even if the file does not change.  Otherwise, 'make -q' fails.
9737         Problem reported by Simon Josefsson in
9738         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
9739
9740 2011-08-11  Jim Meyering  <meyering@redhat.com>
9741
9742         git-version-gen: correct the advice in a comment
9743         * build-aux/git-version-gen: Correct comment.
9744         Don't recommend to list .tarball-version in .gitignore.
9745
9746 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
9747
9748         base64: fix off-by-one buffer size bug
9749         Problem and (trivial) fix reported by Gijs van Tulder in
9750         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
9751         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
9752         * tests/test-base64.c (main): Catch the bug.
9753
9754 2011-08-10  Eric Blake  <eblake@redhat.com>
9755
9756         closein: correct comments
9757         * lib/closein.c (close_stdin): Improve comments.
9758
9759 2011-08-09  Bruno Haible  <bruno@clisp.org>
9760
9761         More tests for 'fseeko'.
9762         * tests/test-fseeko3.c: New file, from Eric Blake.
9763         * tests/test-fseeko3.sh: New file.
9764         * modules/fseeko-tests (Files): Add them.
9765         (TESTS): Add test-fseeko3.sh.
9766         (check_PROGRAMS): Add test-fseeko3.
9767
9768 2011-08-09  Eric Blake  <eblake@redhat.com>
9769
9770         fseeko: remove unneeded hack
9771         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
9772
9773         fseeko: fix bug on glibc
9774         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
9775         Reported by John W. Eaton.
9776
9777 2011-08-08  Bruno Haible  <bruno@clisp.org>
9778
9779         unictype/base: Fix interoperability with preinstalled libunistring.
9780         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
9781         Reported by Simon Josefsson.
9782
9783 2011-08-08  Bruno Haible  <bruno@clisp.org>
9784
9785         iswblank: Detect declaration correctly.
9786         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
9787         AC_CHECK_DECLS invocation.
9788
9789 2011-08-08  Bruno Haible  <bruno@clisp.org>
9790
9791         tcgetsid: Detect declaration correctly.
9792         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
9793         AC_CHECK_DECLS invocation.
9794         Reported by Simon Josefsson.
9795
9796 2011-08-08  Eric Blake  <eblake@redhat.com>
9797
9798         largefile: fix typo that regressed large file support
9799         * modules/largefile (configure.ac-early): Fix section name.
9800
9801 2011-08-06  Karl Berry  <karl@gnu.org>
9802
9803         * MODULES.html.sh (func_all_files): _Noreturn is no longer
9804         a separate module.
9805
9806 2011-08-05  Simon Josefsson  <simon@josefsson.org>
9807
9808         openat: Fix warnings and commens when building unlinkat.c on Hurd.
9809         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
9810         get prototype for free.
9811
9812 2011-08-04  Bruno Haible  <bruno@clisp.org>
9813
9814         Tests for module 'pathmax'.
9815         * modules/pathmax-tests: New file.
9816         * tests/test-pathmax.c: New file.
9817
9818         canonicalize-lgpl: Support larger filenames on the Hurd.
9819         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
9820         Reported by Paul Eggert.
9821
9822         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
9823         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
9824         * lib/chdir-long.h: Include pathmax.h.
9825         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
9826         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
9827         (PATH_MAX): Remove code that is done by pathmax.h.
9828         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
9829         * lib/tmpfile.c: Add a comment.
9830         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
9831         * modules/chdir-long (Depends-on): Add pathmax.
9832         * modules/getcwd (Depends-on): Add pathmax.
9833         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
9834         is not defined.
9835         * doc/posix-headers/limits.texi: Mention the pathmax module.
9836         * NEWS: Mention the change.
9837
9838 2011-08-02  Bruno Haible  <bruno@clisp.org>
9839
9840         pthread_sigmask: Actually use results of gl_THREADLIB.
9841         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
9842         gl_THREADLIB, not gl_[]THREADLIB.
9843         Reported by Eric Blake.
9844
9845 2011-08-02  Jim Meyering  <meyering@redhat.com>
9846
9847         maint.mk: relax the default _gl_TS_function_match regexp
9848         * top/maint.mk (_gl_TS_function_match): Don't require at least one
9849         space between function name and "(" in an "extern" declaration.
9850         That would fail to match a decl with no space there: extern void foo();
9851
9852 2011-07-31  Iain Nicol  <iain@thenicols.net>
9853
9854         git-version-gen: document that EXTRA_DIST must include .version
9855         * build-aux/git-version-gen: In the how-to-use comment, document
9856         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
9857         will fail when run from an unpacked distribution tarball.
9858
9859 2011-08-01  Bruno Haible  <bruno@clisp.org>
9860
9861         wctype-h: Fix last change.
9862         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
9863         REPLACE_TOWLOWER to 0.
9864         Reported by Sam Steingold <sds@gnu.org>.
9865
9866 2011-07-31  Bruno Haible  <bruno@clisp.org>
9867
9868         frexpl: Update autoconf test.
9869         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
9870         according to changes of 2011-06-20.
9871
9872 2011-07-31  Bruno Haible  <bruno@clisp.org>
9873
9874         sys_utsname: Add support for Minix.
9875         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
9876         <sys/utsname.h>.
9877         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
9878         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
9879
9880 2011-07-31  Bruno Haible  <bruno@clisp.org>
9881
9882         strings: Add support for Minix.
9883         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
9884         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
9885         * doc/posix-headers/strings.texi: Document the Minix problem.
9886
9887 2011-07-31  Bruno Haible  <bruno@clisp.org>
9888
9889         wctype-h: Add support for Minix.
9890         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
9891         REPLACE_TOWLOWER.
9892         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
9893         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
9894         REPLACE_ISWCNTRL.
9895
9896 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
9897
9898         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
9899         This is a performance improvement for 64-bit hosts: it causes the
9900         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
9901
9902 2011-07-31  Bruno Haible  <bruno@clisp.org>
9903
9904         stdioext: Add support for Minix.
9905         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
9906         * lib/fpurge.c (fpurge): Likewise.
9907         * lib/freadahead.c (freadahead): Likewise.
9908         * lib/freadable.c (freadable): Likewise.
9909         * lib/freading.c (freading): Likewise.
9910         * lib/freadptr.c (freadptr): Likewise.
9911         * lib/freadseek.c (freadptrinc): Likewise.
9912         * lib/fseeko.c (rpl_fseeko): Likewise.
9913         * lib/fseterr.c (fseterr): Likewise.
9914         * lib/fwritable.c (fwritable): Likewise.
9915         * lib/fwriting.c (fwriting): Likewise.
9916         * lib/fflush.c (clear_ungetc_buffer): Update comment.
9917         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
9918
9919 2011-07-31  Bruno Haible  <bruno@clisp.org>
9920
9921         errno: Port to Minix.
9922         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
9923         ECONNABORTED are defined.
9924         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
9925         GNULIB_defined_ECONNABORTED): New macros.
9926         * lib/strerror-override.h (strerror_override): Test also
9927         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
9928         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
9929         ECONNABORTED.
9930         * doc/posix-headers/errno.texi: Mention the Minix problem.
9931
9932 2011-07-31  Bruno Haible  <bruno@clisp.org>
9933
9934         Work around declaration collisions on Minix.
9935         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
9936         defined, set REPLACE_MBSINIT.
9937         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
9938         defined, set REPLACE_MBRTOWC.
9939         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
9940         set REPLACE_MBRLEN.
9941         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
9942         defined, set REPLACE_MBSRTOWCS.
9943         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
9944         defined, set REPLACE_WCRTOMB.
9945         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
9946         defined, set REPLACE_WCSRTOMBS.
9947
9948 2011-07-31  Bruno Haible  <bruno@clisp.org>
9949
9950         Add support for Minix with ACK compiler.
9951         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
9952         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
9953         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
9954
9955 2011-07-31  Bruno Haible  <bruno@clisp.org>
9956
9957         Documentation about Minix.
9958         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
9959         * doc/glibc-headers/*.texi: Likewise.
9960         * doc/posix-functions/*.texi: Likewise.
9961         * doc/glibc-functions/*.texi: Likewise.
9962
9963 2011-07-31  Bruno Haible  <bruno@clisp.org>
9964
9965         snippet/warn-on-use: Fix indentation.
9966         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
9967
9968 2011-07-25  Jim Meyering  <meyering@redhat.com>
9969
9970         tests: test-update-copyright.sh: remove unnecessary "rm" commands
9971         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
9972         commands.
9973
9974 2011-07-27  Jim Meyering  <meyering@redhat.com>
9975
9976         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
9977         * top/maint.mk (gl_extract_significant_defines_): Now that
9978         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
9979         gnulib/lib/signal.in.h, and now that we recommend to
9980         define-if-undefined those two symbols in application code,
9981         we must filter them out of the "significant" list.
9982         This avoids a "make syntax-check" failure in coreutils.
9983
9984 2011-07-26  Eric Blake  <eblake@redhat.com>
9985
9986         warnings: add comments about previous patch
9987         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
9988         * m4/include_next.m4: Likewise.
9989         * m4/warn-on-use.m4: Likewise.
9990         * m4/warnings.m4: Likewise, and simplify use.
9991         Suggested by Stefano Lattarini.
9992
9993         include-next, warnings: support older autoconf
9994         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
9995         AS_VAR_PUSHDEF in a way that works with older autoconf.
9996         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
9997         Reported by Daniel P. Berrange.
9998
9999 2011-07-25  Bruno Haible  <bruno@clisp.org>
10000
10001         fseek, ftell: Fix doc.
10002         * doc/posix-functions/fseek.texi: Reword statement about
10003         AC_SYS_LARGEFILE.
10004         * doc/posix-functions/ftell.texi: Likewise.
10005
10006 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
10007             Bruno Haible  <bruno@clisp.org>
10008
10009         Add dependencies to the 'largefile' module.
10010         * modules/fopen (Depends-on): Add 'largefile'.
10011         * modules/freopen (Depends-on): Likewise.
10012         * modules/fseeko (Depends-on): Likewise.
10013         * modules/ftello (Depends-on): Likewise.
10014         * modules/glob (Depends-on): Likewise.
10015         * modules/lseek (Depends-on): Likewise.
10016         * modules/lstat (Depends-on): Likewise.
10017         * modules/mkostemp (Depends-on): Likewise.
10018         * modules/mkostemps (Depends-on): Likewise.
10019         * modules/mkstemp (Depends-on): Likewise.
10020         * modules/mkstemps (Depends-on): Likewise.
10021         * modules/open (Depends-on): Likewise.
10022         * modules/openat (Depends-on): Likewise.
10023         * modules/pread (Depends-on): Likewise.
10024         * modules/pwrite (Depends-on): Likewise.
10025         * modules/scandir (Depends-on): Likewise.
10026         * modules/stat (Depends-on): Likewise.
10027         * modules/tmpfile (Depends-on): Likewise.
10028         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
10029         since the containing module now depends on the largefile module.
10030         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
10031         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
10032         off_t is fixed by gnulib.
10033         * doc/posix-functions/freopen.texi: Likewise.
10034         * doc/posix-functions/fseeko.texi: Likewise.
10035         * doc/posix-functions/fstatat.texi: Likewise.
10036         * doc/posix-functions/ftello.texi: Likewise.
10037         * doc/posix-functions/glob.texi: Likewise.
10038         * doc/posix-functions/lseek.texi: Likewise.
10039         * doc/posix-functions/lstat.texi: Likewise.
10040         * doc/posix-functions/mkstemp.texi: Likewise.
10041         * doc/posix-functions/open.texi: Likewise.
10042         * doc/posix-functions/openat.texi: Likewise.
10043         * doc/posix-functions/pread.texi: Likewise.
10044         * doc/posix-functions/pwrite.texi: Likewise.
10045         * doc/posix-functions/scandir.texi: Likewise.
10046         * doc/posix-functions/stat.texi: Likewise.
10047         * doc/posix-functions/tmpfile.texi: Likewise.
10048         * doc/glibc-functions/mkostemp.texi: Likewise.
10049         * doc/glibc-functions/mkostemps.texi: Likewise.
10050         * doc/glibc-functions/mkstemps.texi: Likewise.
10051
10052 2011-07-25  Bruno Haible  <bruno@clisp.org>
10053
10054         fcntl: Move AC_LIBOBJ invocation to module description.
10055         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
10056         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
10057
10058         fcntl: Remove call-in from fchdir.m4.
10059         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
10060         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
10061
10062         dup3: Remove potential call-in from fchdir.m4.
10063         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
10064         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
10065
10066         dup2: Move AC_LIBOBJ invocation to module description.
10067         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
10068         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
10069         Don't invoke AC_LIBOBJ.
10070         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
10071
10072         dup2: Remove call-in from fchdir.m4.
10073         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
10074         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
10075
10076         fclose: Move AC_LIBOBJ invocation to module description.
10077         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
10078         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
10079         to 1.
10080         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
10081
10082         fclose: Remove call-in from close.m4.
10083         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
10084         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
10085
10086         close: Move AC_LIBOBJ invocation to module description.
10087         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
10088         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
10089         1.
10090         * modules/close (configure.ac): Invoke AC_LIBOBJ.
10091
10092         close: Remove call-in from fchdir.m4.
10093         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
10094         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
10095
10096         open: Move AC_LIBOBJ invocation to module description.
10097         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
10098         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
10099         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
10100
10101         open: Remove call-in from fchdir.m4.
10102         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
10103         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
10104
10105         fchdir: Start to remove gl_REPLACE_* idiom.
10106         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
10107         (gl_FUNC_FCHDIR): Invoke it.
10108
10109 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
10110
10111         * lib/ftell.c (ftell): Comment out cast.
10112
10113         close: use gl_REPLACE_FCLOSE only if defined
10114         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
10115         is defined.  The close module doesn't depend on the fclose module
10116         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
10117         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
10118         I reproduced the problem with "./gnulib-tool --test close sys_socket".
10119
10120 2011-07-24  Jim Meyering  <meyering@redhat.com>
10121
10122         test-select.h: avoid warning when using gcc's -Wmissing-declarations
10123         * tests/test-select.h (test_function): Declare as "static".
10124
10125 2011-07-24  Bruno Haible  <bruno@clisp.org>
10126
10127         doc: Mention the effects of AC_SYS_LARGEFILE.
10128         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
10129         on this function.
10130         * doc/posix-functions/aio_error.texi: Likewise.
10131         * doc/posix-functions/aio_fsync.texi: Likewise.
10132         * doc/posix-functions/aio_read.texi: Likewise.
10133         * doc/posix-functions/aio_return.texi: Likewise.
10134         * doc/posix-functions/aio_suspend.texi: Likewise.
10135         * doc/posix-functions/aio_write.texi: Likewise.
10136         * doc/posix-functions/fgetpos.texi: Likewise.
10137         * doc/posix-functions/fopen.texi: Likewise.
10138         * doc/posix-functions/freopen.texi: Likewise.
10139         * doc/posix-functions/fsetpos.texi: Likewise.
10140         * doc/posix-functions/fstatvfs.texi: Likewise.
10141         * doc/posix-functions/ftruncate.texi: Likewise.
10142         * doc/posix-functions/ftw.texi: Likewise.
10143         * doc/posix-functions/getrlimit.texi: Likewise.
10144         * doc/posix-functions/glob.texi: Likewise.
10145         * doc/posix-functions/lio_listio.texi: Likewise.
10146         * doc/posix-functions/lockf.texi: Likewise.
10147         * doc/posix-functions/mkstemp.texi: Likewise.
10148         * doc/posix-functions/mmap.texi: Likewise.
10149         * doc/posix-functions/nftw.texi: Likewise.
10150         * doc/posix-functions/openat.texi: Likewise.
10151         * doc/posix-functions/opendir.texi: Likewise.
10152         * doc/posix-functions/posix_fadvise.texi: Likewise.
10153         * doc/posix-functions/posix_fallocate.texi: Likewise.
10154         * doc/posix-functions/pread.texi: Likewise.
10155         * doc/posix-functions/pwrite.texi: Likewise.
10156         * doc/posix-functions/readdir.texi: Likewise.
10157         * doc/posix-functions/readdir_r.texi: Likewise.
10158         * doc/posix-functions/rewinddir.texi: Likewise.
10159         * doc/posix-functions/scandir.texi: Likewise.
10160         * doc/posix-functions/seekdir.texi: Likewise.
10161         * doc/posix-functions/setrlimit.texi: Likewise.
10162         * doc/posix-functions/statvfs.texi: Likewise.
10163         * doc/posix-functions/telldir.texi: Likewise.
10164         * doc/posix-functions/tmpfile.texi: Likewise.
10165         * doc/posix-functions/truncate.texi: Likewise.
10166         * doc/glibc-functions/fallocate.texi: Likewise.
10167         * doc/glibc-functions/fstatfs.texi: Likewise.
10168         * doc/glibc-functions/fts_children.texi: Likewise.
10169         * doc/glibc-functions/fts_read.texi: Likewise.
10170         * doc/glibc-functions/getdirentries.texi: Likewise.
10171         * doc/glibc-functions/mkostemp.texi: Likewise.
10172         * doc/glibc-functions/mkostemps.texi: Likewise.
10173         * doc/glibc-functions/mkstemps.texi: Likewise.
10174         * doc/glibc-functions/preadv.texi: Likewise.
10175         * doc/glibc-functions/pwritev.texi: Likewise.
10176         * doc/glibc-functions/sendfile.texi: Likewise.
10177         * doc/glibc-functions/statfs.texi: Likewise.
10178
10179 2011-07-24  Bruno Haible  <bruno@clisp.org>
10180
10181         doc: Fix typo.
10182         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
10183
10184 2011-07-24  Bruno Haible  <bruno@clisp.org>
10185
10186         doc: Mention fsusage.
10187         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
10188
10189 2011-07-24  Bruno Haible  <bruno@clisp.org>
10190
10191         doc: Mention new glibc headers and functions.
10192         * doc/glibc-headers/gshadow.texi: New file.
10193         * doc/glibc-functions/endsgent.texi: New file.
10194         * doc/glibc-functions/fgetsgent.texi: New file.
10195         * doc/glibc-functions/fgetsgent_r.texi: New file.
10196         * doc/glibc-functions/getsgent.texi: New file.
10197         * doc/glibc-functions/getsgent_r.texi: New file.
10198         * doc/glibc-functions/getsgnam.texi: New file.
10199         * doc/glibc-functions/getsgnam_r.texi: New file.
10200         * doc/glibc-functions/putsgent.texi: New file.
10201         * doc/glibc-functions/setsgent.texi: New file.
10202         * doc/glibc-functions/sgetsgent.texi: New file.
10203         * doc/glibc-functions/sgetsgent_r.texi: New file.
10204         * doc/glibc-functions/malloc_info.texi: New file.
10205         * doc/glibc-functions/preadv.texi: New file.
10206         * doc/glibc-functions/pwritev.texi: New file.
10207         * doc/glibc-functions/register_printf_modifier.texi: New file.
10208         * doc/glibc-functions/register_printf_specifier.texi: New file.
10209         * doc/glibc-functions/register_printf_type.texi: New file.
10210         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
10211         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
10212         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
10213         * doc/glibc-functions/pthread_getname_np.texi: New file.
10214         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
10215         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
10216         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
10217         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
10218         * doc/glibc-functions/pthread_setname_np.texi: New file.
10219         * doc/glibc-functions/pthread_sigqueue.texi: New file.
10220         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
10221         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
10222         * doc/glibc-functions/qsort_r.texi: New file.
10223         * doc/glibc-functions/quick_exit.texi: New file.
10224         * doc/glibc-functions/syncfs.texi: New file.
10225         * doc/gnulib.texi: Include them.
10226         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
10227         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
10228         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
10229         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
10230         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
10231         * doc/glibc-functions/execvpe.texi: Likewise.
10232
10233 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
10234
10235         ftell: don't include <unistd.h>
10236         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
10237         guaranteed to define off_t, and the ftell module depends on the
10238         stdio module.
10239
10240         ftell: do not assume wraparound signed arithmetic
10241         * lib/ftell.c: Include <limits.h>.
10242         (ftell): Don't assume wraparound signed arithmetic.
10243
10244 2011-07-24  Bruno Haible  <bruno@clisp.org>
10245
10246         close: No longer depend on module 'fclose'.
10247         * modules/close (Depends-on): Remove fclose.
10248         * NEWS: Mention the change.
10249         Suggested by Sam Steingold <sds@gnu.org>.
10250
10251 2011-07-24  Bruno Haible  <bruno@clisp.org>
10252
10253         fsusage: Enable large volume support on AIX >= 5.2.
10254         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
10255         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
10256         instead of STAT_STATVFS.
10257         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
10258
10259         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
10260         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
10261         f_blocks field only on MacOS X.
10262
10263         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
10264         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
10265         * modules/fsusage (Depends-on): Add largefile.
10266
10267 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
10268
10269         * README: Modernize discussion of signed integers.
10270         Assuming overflow wraparound is no longer safe.
10271         Mention ones' complement and signed magnitude.
10272
10273 2011-07-22  Bruno Haible  <bruno@clisp.org>
10274
10275         select tests, pselect tests: Refactor.
10276         * tests/test-select.h: New file, extracted from tests/test-select.c.
10277         (select_fn): New type.
10278         (test, do_select, do_select_nowait, do_select_wait, test_tty,
10279         test_connect_first, test_accept_first, test_pair, test_socket_pair,
10280         test_pipe): Add my_select argument.
10281         (test_function): Renamed from main. Add my_select argument.
10282         * tests/test-select.c: Move most code to tests/test-select.h. Include
10283         test-select.h.
10284         * modules/select-tests (Files): Add tests/test-select.h.
10285         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
10286         (my_select, main): New functions.
10287         * modules/pselect-tests (Files): Add tests/test-select.h,
10288         tests/macros.h, tests/signature.h.
10289         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
10290         (configure.ac): Check for <sys/wait.h>.
10291
10292 2011-07-22  Bruno Haible  <bruno@clisp.org>
10293
10294         sys_select tests: Check the signature of FD_*.
10295         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
10296         signature tests from here...
10297         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
10298         here.
10299         * modules/sys_select-tests (Files): Add tests/signature.h.
10300
10301 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
10302
10303         largefile: new module, replacing large-inode
10304         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
10305         * MODULES.html.sh: Add largefile, remove large-inode.
10306         * modules/largefile, m4/largefile.m4: New files.
10307         * modules/large-inode, m4/large-inode.m4: Remove.
10308
10309         fsusage: port to MacOS X 10.7 with 4 TiB file systems
10310         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
10311         implementations that use only 32 bits to count blocks.
10312         On typical hosts with 1024-byte blocks, this fails with file
10313         systems as small as 4 TiB.  Problem reported by Herb Wartens
10314         <http://debbugs.gnu.org/9140> and this should also fix a similar
10315         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
10316
10317         large-inode: New module
10318         * MODULES.html.sh: Add it.
10319         * modules/large-inode, m4/large-inode.m4: New files.
10320
10321         extensions: Enable extensions on MacOS X 10.5 and later.
10322         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
10323
10324 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
10325
10326         file-has-acl: use acl_extended_file_nofollow if available
10327         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
10328         (acl_extended_file): New macro.
10329         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
10330         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
10331
10332 2011-07-21  Bruno Haible  <bruno@clisp.org>
10333
10334         Declare system functions in a way that works with C++.
10335         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
10336         declare fdopendir as extern "C".
10337         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
10338         declare frexpl as extern "C".
10339         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
10340         declare gai_strerror as extern "C".
10341         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
10342         programs, declare gai_strerror as extern "C".
10343         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
10344         declare getlogin_r as extern "C".
10345         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
10346         as extern "C".
10347         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
10348         declare ldexpl as extern "C".
10349         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
10350         as extern "C".
10351         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
10352         program, declare getmntinfo as extern "C".
10353         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
10354         stpncpy as extern "C".
10355         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
10356         program, declare __xpg_strerror_r as extern "C".
10357         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
10358         strndup as extern "C".
10359         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
10360         declare memset and bzero as extern "C".
10361         Reported by Sam Steingold <sds@gnu.org>.
10362
10363 2011-07-12  Jim Meyering  <meyering@redhat.com>
10364
10365         maint.mk: prohibit inclusion of "verify.h" without use
10366         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
10367
10368 2011-07-19  Pádraig Brady  <P@draigBrady.com>
10369
10370         timer-time: A new module to check for timer_settime()
10371         * m4/timer_time.m4: Check for the posix function.
10372         * modules/timer-time: Add the new module.
10373         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
10374         Mention it.
10375
10376 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
10377             Bruno Haible  <bruno@clisp.org>
10378
10379         pthread_sigmask: assume POSIX threads if --avoid=threadlib
10380         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
10381         not defined, assume POSIX threads and look for pthread_sigmask in
10382         $LIBS, without changing $CPPFLAGS.
10383
10384 2011-07-19  Bruno Haible  <bruno@clisp.org>
10385
10386         strstr: Update cross-compilation guess.
10387         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
10388         CPUs, guess no, in view of glibc
10389         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
10390         Suggested by Eric Blake. Reported by Reuben Thomas.
10391
10392 2011-07-19  Pádraig Brady  <P@draigBrady.com>
10393
10394         getopt-gnu: suppress core dumps from detection code
10395         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
10396         to suppress core dumps that may well occur on glibc systems.
10397         * modules/getopt-gnu: Depend on nocrash.
10398
10399 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
10400
10401         pthread_sigmask: ensure usleep is declared
10402         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
10403         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
10404
10405 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
10406
10407         doc: Document NonStop portability issues.
10408         * doc/posix-functions/sigaction.texi (sigaction):
10409         * doc/posix-headers/signal.texi (signal.h):
10410         Document NonStop.  See Joachim Schmitz in
10411         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
10412
10413 2011-07-15  Bruno Haible  <bruno@clisp.org>
10414
10415         ffsl, ffsll: Avoid unportable behaviour.
10416         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
10417
10418 2011-07-15  Bruno Haible  <bruno@clisp.org>
10419
10420         ffs: More tests.
10421         * tests/test-ffs.c (NBITS): New macro.
10422         (main): Add more tests.
10423         * tests/test-ffsl.c (NBITS): New macro.
10424         (main): Add more tests.
10425         * tests/test-ffsll.c (NBITS): New macro.
10426         (main): Add more tests.
10427
10428 2011-07-15  Eric Blake  <eblake@redhat.com>
10429
10430         ffsl, ffsll: new modules
10431         * modules/ffsl: New file.
10432         * modules/ffsll: Likewise.
10433         * m4/ffsl.m4: Likewise.
10434         * m4/ffsll.m4: Likewise.
10435         * lib/ffsl.c: Likewise.
10436         * lib/ffsl.h: Likewise.
10437         * lib/ffsll.c: Likewise.
10438         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
10439         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
10440         * modules/string (Makefile.am): Substitute witnesses.
10441         * lib/strings.in.h (ffsl, ffsll): Declare.
10442         * modules/ffsl-tests: New test file.
10443         * modules/ffsll-tests: Likewise.
10444         * tests/test-ffsl.c: Likewise.
10445         * tests/test-ffsll.c: Likewise.
10446         * MODULES.html.sh (Integer arithmetic functions): Mention it.
10447         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
10448         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
10449
10450         ffs: fix m4 prerequisite
10451         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
10452
10453         ffs: avoid undefined behavior
10454         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
10455         * tests/test-ffs.c (naive, main): Avoid signed shifts.
10456         Reported by Bruno Haible.
10457
10458 2011-07-12  Bruno Haible  <bruno@clisp.org>
10459
10460         pthread_sigmask: Rely on module 'threadlib'.
10461         * modules/pthread_sigmask (Depends-on): Add threadlib.
10462         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
10463         is defined.
10464
10465 2011-07-12  Bruno Haible  <bruno@clisp.org>
10466
10467         regex: Depend on module 'strcase'.
10468         * modules/regex (Depends-on): Add strcase, for strcasecmp().
10469
10470 2011-07-12  Jim Meyering  <meyering@redhat.com>
10471
10472         warn-on-use: fix typo in file name
10473         * modules/snippet/warn-on-use (Files): Correct file name:
10474         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
10475
10476 2011-07-12  Bruno Haible  <bruno@clisp.org>
10477
10478         strings: Document module.
10479         * doc/posix-headers/strings.texi: Mention module 'strings'.
10480
10481 2011-07-12  Bruno Haible  <bruno@clisp.org>
10482
10483         Rename module '_Noreturn' to 'snippet/_Noreturn'.
10484         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
10485         (Files, Makefile.am): Update.
10486         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
10487         * modules/stdlib (Depends-on): Update.
10488
10489 2011-07-12  Bruno Haible  <bruno@clisp.org>
10490
10491         * NEWS: Mention the changes.
10492
10493         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
10494         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
10495         (Files, Makefile.am): Update.
10496         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
10497         * modules/arpa_inet (Depends-on): Update.
10498         * modules/ctype (Depends-on): Update.
10499         * modules/dirent (Depends-on): Update.
10500         * modules/fcntl-h (Depends-on): Update.
10501         * modules/glob (Depends-on): Update.
10502         * modules/iconv-h (Depends-on): Update.
10503         * modules/inttypes-incomplete (Depends-on): Update.
10504         * modules/langinfo (Depends-on): Update.
10505         * modules/locale (Depends-on): Update.
10506         * modules/math (Depends-on): Update.
10507         * modules/netdb (Depends-on): Update.
10508         * modules/poll-h (Depends-on): Update.
10509         * modules/pty (Depends-on): Update.
10510         * modules/search (Depends-on): Update.
10511         * modules/signal (Depends-on): Update.
10512         * modules/spawn (Depends-on): Update.
10513         * modules/stdio (Depends-on): Update.
10514         * modules/stdlib (Depends-on): Update.
10515         * modules/string (Depends-on): Update.
10516         * modules/strings (Depends-on): Update.
10517         * modules/sys_file (Depends-on): Update.
10518         * modules/sys_ioctl (Depends-on): Update.
10519         * modules/sys_select (Depends-on): Update.
10520         * modules/sys_socket (Depends-on): Update.
10521         * modules/sys_stat (Depends-on): Update.
10522         * modules/sys_time (Depends-on): Update.
10523         * modules/sys_times (Depends-on): Update.
10524         * modules/sys_utsname (Depends-on): Update.
10525         * modules/sys_wait (Depends-on): Update.
10526         * modules/termios (Depends-on): Update.
10527         * modules/time (Depends-on): Update.
10528         * modules/unistd (Depends-on): Update.
10529         * modules/wchar (Depends-on): Update.
10530         * modules/wctype-h (Depends-on): Update.
10531         * MODULES.html.sh (Support for building libraries and executables):
10532         Update.
10533
10534         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
10535         * modules/snippet/unused-parameter: Renamed from
10536         modules/unused-parameter.
10537         (Files, Makefile.am): Update.
10538         * build-aux/snippet/unused-parameter.h: Renamed from
10539         build-aux/unused-parameter.h.
10540         * modules/selinux-h (Depends-on): Update.
10541         * modules/unistr/base (Depends-on): Update.
10542         * MODULES.html.sh (Core language properties): Update.
10543
10544         Rename module 'link-warning' to 'snippet/link-warning'.
10545         * modules/snippet/link-warning: Renamed from modules/link-warning.
10546         (Files, Makefile.am): Update.
10547         * build-aux/snippet/link-warning.h: Renamed from
10548         build-aux/link-warning.h.
10549         * MODULES.html.sh (Support for building libraries and executables):
10550         Update.
10551
10552         Rename module 'c++defs' to 'snippet/c++defs'.
10553         * modules/snippet/c++defs: Renamed from modules/c++defs.
10554         (Files, Makefile.am): Update.
10555         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
10556         * modules/arpa_inet (Depends-on): Update.
10557         * modules/ctype (Depends-on): Update.
10558         * modules/dirent (Depends-on): Update.
10559         * modules/fcntl-h (Depends-on): Update.
10560         * modules/glob (Depends-on): Update.
10561         * modules/iconv-h (Depends-on): Update.
10562         * modules/langinfo (Depends-on): Update.
10563         * modules/locale (Depends-on): Update.
10564         * modules/math (Depends-on): Update.
10565         * modules/netdb (Depends-on): Update.
10566         * modules/poll-h (Depends-on): Update.
10567         * modules/pty (Depends-on): Update.
10568         * modules/search (Depends-on): Update.
10569         * modules/signal (Depends-on): Update.
10570         * modules/spawn (Depends-on): Update.
10571         * modules/stdio (Depends-on): Update.
10572         * modules/stdlib (Depends-on): Update.
10573         * modules/string (Depends-on): Update.
10574         * modules/strings (Depends-on): Update.
10575         * modules/sys_ioctl (Depends-on): Update.
10576         * modules/sys_select (Depends-on): Update.
10577         * modules/sys_socket (Depends-on): Update.
10578         * modules/sys_stat (Depends-on): Update.
10579         * modules/sys_time (Depends-on): Update.
10580         * modules/sys_wait (Depends-on): Update.
10581         * modules/termios (Depends-on): Update.
10582         * modules/time (Depends-on): Update.
10583         * modules/unistd (Depends-on): Update.
10584         * modules/wchar (Depends-on): Update.
10585         * modules/wctype-h (Depends-on): Update.
10586
10587         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
10588         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
10589         (Files, Makefile.am): Update.
10590         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
10591         * modules/argv-iter (Depends-on): Update.
10592         * modules/arpa_inet (Depends-on): Update.
10593         * modules/dirent (Depends-on): Update.
10594         * modules/fcntl-h (Depends-on): Update.
10595         * modules/fnmatch (Depends-on): Update.
10596         * modules/getopt-posix (Depends-on): Update.
10597         * modules/glob (Depends-on): Update.
10598         * modules/iconv-h (Depends-on): Update.
10599         * modules/inttypes-incomplete (Depends-on): Update.
10600         * modules/locale (Depends-on): Update.
10601         * modules/math (Depends-on): Update.
10602         * modules/netdb (Depends-on): Update.
10603         * modules/search (Depends-on): Update.
10604         * modules/signal (Depends-on): Update.
10605         * modules/spawn (Depends-on): Update.
10606         * modules/stdio (Depends-on): Update.
10607         * modules/stdlib (Depends-on): Update.
10608         * modules/string (Depends-on): Update.
10609         * modules/strings (Depends-on): Update.
10610         * modules/sys_socket (Depends-on): Update.
10611         * modules/sys_stat (Depends-on): Update.
10612         * modules/sys_time (Depends-on): Update.
10613         * modules/sys_times (Depends-on): Update.
10614         * modules/sys_utsname (Depends-on): Update.
10615         * modules/time (Depends-on): Update.
10616         * modules/unistd (Depends-on): Update.
10617         * modules/wchar (Depends-on): Update.
10618         * MODULES.html.sh (Support for building libraries and executables):
10619         Update.
10620
10621 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
10622
10623         Improvements on _Noreturn and related modules.
10624
10625         modules/_Exit-tests: test _Noreturn too
10626         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
10627         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
10628         (main): Use them.
10629
10630         stdnoreturn, stdnoreturn-tests: remove modules
10631         They're not needed here and a bit premature for use elsewhere.  See
10632         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
10633         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
10634         * tests/test-stdnoreturn.c: Remove files.
10635         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
10636         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
10637         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
10638         and using noreturn.
10639         * modules/openat, modules/sigpipe-die, modules/xalloc:
10640         * modules/xmemdup0, modules/xstrtol:
10641         Remove dependency on stdnoreturn.
10642
10643         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
10644         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
10645         Reparenthesize to avoid GCC warning.
10646         Support Microsoft's syntax.
10647         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
10648
10649         _Noreturn-tests: remove module
10650         * modules/_Noreturn-tests: Remove.
10651         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
10652         * tests/test-_Noreturn.c: Remove.
10653         * tests/test-stdnoreturn.c: Merge from the old
10654         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
10655
10656 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
10657
10658         _Noreturn, stdnoreturn, and related modules.
10659
10660         * top/maint.mk: Adjust to new noreturn support.
10661         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
10662         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
10663
10664         xalloc: use stdnoreturn.h
10665         * lib/xalloc.h: Include <stdnoreturn.h>.
10666         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10667         * modules/xalloc (Depends-on): Add stdnoreturn.
10668
10669         xstrtol: use stdnoreturn.h
10670         * lib/xstrtol.h: Include <stdnoreturn.h>.
10671         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10672         * modules/xstrtol (Depends-on): Add stdnoreturn.
10673
10674         xmemdup0: use stdnoreturn.h
10675         * lib/xmemdup0.h: Include <stdnoreturn.h>.
10676         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10677         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
10678
10679         sigpipe-die: use stdnoreturn.h
10680         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
10681         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10682         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
10683
10684         openat: use stdnoreturn.h
10685         * lib/openat.h: Include <stdnoreturn.h>.
10686         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
10687         * modules/openat (Depends-on): Add stdnoreturn.
10688
10689         * lib/openat-die.c (openat_save_fail): Modernize comment.
10690
10691         * lib/xalloc-die.c (xalloc_die): Modernize comment.
10692
10693         * lib/glthread/thread.h: Modernize comment.
10694
10695         obstack: use _Noreturn
10696         * lib/obstack.c (__attribute__): Remove macro.
10697         (print_and_abort): Use _Noreturn.
10698
10699         c-stack: use _Noreturn
10700         * lib/c-stack.c (die, overflow_handler, segv_handler):
10701         Use _Noreturn rather than __attribute__((noreturn)).
10702
10703         argmatch-tests, exclude_tests: use _Noreturn
10704         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
10705         Remove.
10706         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
10707
10708         stdlib: use _Noreturn
10709         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
10710         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
10711         * modules/stdlib (Depends-on): Add _Noreturn.
10712         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
10713
10714         stdnoreturn-tests: new module
10715         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
10716
10717         stdnoreturn: new module
10718         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
10719         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
10720
10721         _Noreturn-tests: new module
10722         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
10723
10724         _Noreturn: new module
10725         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
10726         New section, mentioning it.
10727         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
10728
10729         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
10730
10731 2011-07-11  Eric Blake  <eblake@redhat.com>
10732
10733         ffs: new module
10734         * modules/ffs: New file.
10735         * m4/ffs.m4: Likewise.
10736         * lib/ffs.c: Likewise.
10737         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
10738         * modules/strings (Makefile.am): Substitute witness.
10739         (Depends-on): Add c++defs.
10740         * lib/strings.in.h (ffs): Declare.
10741         * modules/ffs-tests: New test file.
10742         * tests/test-ffs.c: Test new module.
10743         * MODULES.html.sh (Integer arithmetic functions): Mention it.
10744         * doc/posix-functions/ffs.texi (ffs): Likewise.
10745
10746         regex: avoid compiler warning
10747         * lib/regex.c (includes): Include <strings.h>, for use of
10748         strcasecmp in regcomp.c.
10749         Reported by Joachim Schmitz.
10750
10751 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
10752
10753         stdint: respect system's intmax_t if INTMAX_MAX
10754         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
10755         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
10756         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
10757         long but int64_t is long long, and where we will clash with the
10758         system intmax_t if we override it.  See
10759         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
10760         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
10761         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
10762         similarly for UINTMAX_C.
10763
10764 2011-07-08  Bruno Haible  <bruno@clisp.org>
10765
10766         pthread_sigmask tests: Avoid a compiler warning.
10767         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
10768         non-zero.
10769
10770         sigprocmask tests: A better way to avoid a compiler warning.
10771         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
10772         (main): Complain if system() returns non-zero.
10773         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
10774
10775 2011-07-08  Bruno Haible  <bruno@clisp.org>
10776
10777         pthread_sigmask: Work around IRIX bug.
10778         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
10779         bug.
10780         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
10781         there may be unblocked pending signals.
10782         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
10783
10784 2011-07-08  Bruno Haible  <bruno@clisp.org>
10785
10786         pthread_sigmask: Work around Cygwin bug.
10787         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
10788         bug.
10789         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
10790         the system's pthread_sigmask function.
10791         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
10792
10793 2011-07-08  Bruno Haible  <bruno@clisp.org>
10794
10795         pthread_sigmask: Work around bug in single-threaded implementation.
10796         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
10797         FreeBSD, HP-UX, Solaris bug.
10798         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
10799         * lib/pthread_sigmask.c: Include <stddef.h>.
10800         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
10801         the system's pthread_sigmask function.
10802         * modules/pthread_sigmask (configure.ac): Invoke
10803         gl_PREREQ_PTHREAD_SIGMASK.
10804         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
10805         HP-UX, Solaris.
10806
10807 2011-07-08  Eric Blake  <eblake@redhat.com>
10808
10809         test-sigprocmask: avoid compiler warning
10810         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
10811         * tests/test-sigprocmask.c (main): Use it to silence warning.
10812         Reported by Jim Meyering.
10813
10814         test-snprintf: avoid compiler warning
10815         * tests/test-snprintf.c (main): Avoid shadowed declaration.
10816         * tests/test-vsnprintf.c (main): Likewise.
10817         Reported by Jim Meyering.
10818
10819 2011-07-08  Bruno Haible  <bruno@clisp.org>
10820
10821         Tests for module 'pthread_sigmask'.
10822         * modules/pthread_sigmask-tests: New file.
10823         * tests/test-pthread_sigmask1.c: New file, based on
10824         tests/test-sigprocmask.c.
10825         * tests/test-pthread_sigmask2.c: New file.
10826
10827 2011-07-08  Jim Meyering  <meyering@redhat.com>
10828
10829         test-getopt.h: avoid warning about an unused variable
10830         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
10831
10832 2011-07-07  Jim Meyering  <meyering@redhat.com>
10833
10834         maint: reduce list of files exempt from sc_prohibit_leading_TABs
10835         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
10836         now that it no longer contains leading TABs.
10837         Remove unused "url=FIXME" statement.
10838
10839 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
10840
10841         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
10842         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
10843         When gl_THREADLIB is not in use, assume that the POSIX sematics
10844         are desired.  This is better for Emacs, which uses POSIX semantics
10845         on GNUish and/or POSIXish platforms, and does not use threads at
10846         all otherwise.
10847
10848         pthread_sigmask: fix typo when testing for libraries
10849         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
10850         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
10851
10852 2011-07-08  Eric Blake  <eblake@redhat.com>
10853
10854         fts: introduce FTS_NOATIME
10855         * lib/fts_.h (FTS_NOATIME): New bit flag.
10856         (FTS_OPTIONMASK): Adjust.
10857         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
10858         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
10859
10860 2011-07-08  Bruno Haible  <bruno@clisp.org>
10861
10862         Tests for module 'thread'.
10863         * modules/thread-tests: New file.
10864         * tests/test-thread_self.c: New file.
10865         * tests/test-thread_create.cc: New file.
10866
10867 2011-07-08  Bruno Haible  <bruno@clisp.org>
10868
10869         thread: Avoid gcc warnings when using gl_thread_self().
10870         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
10871         'void *'.
10872         (gl_thread_self_pointer): Update.
10873
10874 2011-07-07  Bruno Haible  <bruno@clisp.org>
10875
10876         signal-c++-tests: Check declaration of pthread_sigmask.
10877         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
10878         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
10879         $(LIB_PTHREAD_SIGMASK).
10880
10881 2011-07-07  Bruno Haible  <bruno@clisp.org>
10882
10883         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
10884         * lib/signal.in.h (pthread_sigmask): Override if
10885         REPLACE_PTHREAD_SIGMASK is 1.
10886         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
10887         REPLACE_PTHREAD_SIGMASK.
10888         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
10889         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
10890         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
10891         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
10892         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
10893
10894 2011-07-07  Bruno Haible  <bruno@clisp.org>
10895
10896         pthread_sigmask: Ensure declaration in <signal.h>.
10897         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
10898         include <pthread.h>.
10899         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
10900         problem.
10901
10902 2011-07-07  Bruno Haible  <bruno@clisp.org>
10903
10904         pthread_sigmask: Document the module.
10905         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
10906
10907 2011-07-07  Bruno Haible  <bruno@clisp.org>
10908
10909         pthread_sigmask: Follow gnulib conventions.
10910         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
10911         gl_PTHREAD_SIGMASK.
10912         * modules/pthread_sigmask (configure.ac): Update.
10913
10914 2011-07-07  Bruno Haible  <bruno@clisp.org>
10915
10916         pthread_sigmask: Make declaration C++ safe.
10917         * lib/signal.in.h: In two special conditions, just do an #include_next.
10918         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
10919         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
10920         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
10921         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
10922         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
10923         not REPLACE_PTHREAD_MASK.
10924         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
10925         not REPLACE_PTHREAD_MASK.
10926         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
10927
10928 2011-07-07  Bruno Haible  <bruno@clisp.org>
10929
10930         pthread_sigmask: Fix return value.
10931         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
10932         * lib/pthread_sigmask.c: New file.
10933         * modules/pthread_sigmask (Files): Add it.
10934         (configure.ac): Invoke AC_LIBOBJ.
10935
10936 2011-07-07  Eric Blake  <eblake@redhat.com>
10937
10938         getopt: more portable argv creation
10939         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
10940         const, use char arrays rather than strings.
10941         Suggested by Paul Eggert.
10942
10943 2011-07-07  Bruno Haible  <bruno@clisp.org>
10944
10945         Tests for module 'sigprocmask'.
10946         * modules/sigprocmask-tests: New file.
10947         * tests/test-sigprocmask.c: New file.
10948
10949 2011-07-07  Bruno Haible  <bruno@clisp.org>
10950
10951         float tests: Tweak.
10952         * tests/test-float.c (main): Tweak skip message.
10953
10954 2011-07-07  Eric Blake  <eblake@redhat.com>
10955
10956         getopt: avoid compiler warning during configure
10957         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
10958         assigning string literals to non-const pointer.
10959
10960         getopt-gnu: avoid crash in glibc getopt
10961         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
10962         * tests/test-getopt.h (test_getopt): Enhance test.
10963         * tests/test-getopt_long.h (test_getopt_long): Likewise.
10964         * doc/posix-functions/getopt.texi (getopt): Document it.
10965         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
10966         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
10967         Likewise.
10968
10969 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
10970
10971         getopt: handle W; without long options in getopt [BZ #12922]
10972         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
10973         but no long options are defined, just return 'W'.
10974
10975 2011-07-07  Bruno Haible  <bruno@clisp.org>
10976
10977         Avoid literal tabs.
10978         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
10979         variable containing a tab instead of a literal tab.
10980         Reported by Jim Meyering.
10981
10982 2011-07-07  Bruno Haible  <bruno@clisp.org>
10983
10984         Comments.
10985         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
10986
10987 2011-07-06  Bruno Haible  <bruno@clisp.org>
10988
10989         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
10990         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
10991         <winsock2.h>.
10992         (rpl_fd_isset, FD_ISSET): New definitions, copied from
10993         lib/sys_socket.in.h.
10994         (close, gethostname): Hide declarations from <winsock2.h>.
10995         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
10996         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
10997         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
10998         (select): Don't override if gnulib's <sys/select.h> was already
10999         included.
11000         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
11001         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
11002         setsockopt, shutdown, select): Tweak indentation.
11003
11004 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11005
11006         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
11007         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
11008         in an application that does not use the sys_select module.
11009
11010 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
11011
11012         poll: do not return 0 on timeout=-1
11013         * lib/poll.c: Loop with yield if no events occured
11014
11015 2011-07-06  Eric Blake  <eblake@redhat.com>
11016
11017         pthread_sigmask: always replace when not using pthread
11018         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
11019         replacement when using some threading other than pthread.  Fix
11020         logic bug.
11021
11022 2011-07-06  Bruno Haible  <bruno@clisp.org>
11023
11024         Comments.
11025         * m4/printf.m4: Update comments about mingw.
11026
11027 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11028
11029         sys_select: define sigset_t more portably
11030         * lib/sys_select.in.h: Always include <sys/types.h>, since
11031         we now need sigset_t and mingw defines it there.
11032         Include <signal.h> before split inclusion guard, to avoid
11033         mishaps on Solaris, whose <signal.h> eventually includes us.
11034         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
11035         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
11036         which come from ...
11037         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
11038         gl_CHECK_TYPE_SIGSET_T.
11039         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
11040         does the real work.
11041         * modules/sys_select (Depends-on): Add 'signal'.
11042
11043         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
11044         Suggested by Bruno Haible.
11045
11046         pselect: Use pthread_sigmask, not sigprocmask.
11047         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
11048         multithreaded apps better than sigprocmask does.
11049         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
11050         sigprocmask directly.
11051
11052 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
11053
11054         * lib/pselect.c (pselect): Use plain name, without "rpl_".
11055         Don't #undef,  since we don't need any underlying pselect.
11056         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
11057         (Depends-on): Add select.
11058         (Link): Add $(LIBSOCKET).
11059         These changes suggested by Bruno Haible.
11060
11061         pselect: document better
11062         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
11063         * doc/posix-functions/pselect.texi (pselect): Document new module.
11064
11065         pthread_sigmask: new module
11066         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
11067         * doc/posix-functions/pthread_sigmask.texi: Document new module.
11068         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
11069         This is done only as a macro; I don't know how well that'll
11070         work for C++.  Move <sys/types.h> include before the include_next,
11071         to avoid mishap on Solaris.
11072         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
11073         * modules/signal (Makefile.am): Substitute the check's results.
11074         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
11075
11076         test-pselect: new module
11077         * modules/pselect-tests, tests/test-pselect.c: New files.
11078         * tests/test-select.c, tests/test-sys_select-c++.cc:
11079         If TEST_PSELECT is defined, test pselect instead of testing select.
11080
11081         * tests/test-sys_select.c (sigset_t): Test for it, too.
11082         Suggested by Bruno Haible.
11083
11084 2011-07-05  Eric Blake  <eblake@redhat.com>
11085
11086         snprintf: guarantee %1$d, for libintl
11087         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
11088         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
11089         * doc/posix-functions/snprintf.texi (snprintf): Update.
11090         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
11091         * tests/test-snprintf.c (main): Enhance test.
11092         * tests/test-vsnprintf.c (main): Likewise.
11093
11094 2011-07-05  Jim Meyering  <meyering@redhat.com>
11095
11096         maint: exempt stdio-read.c and stdio-write.c from the cppi check
11097         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
11098         per Bruno's request, to accommodate this idiom (no space after "#")
11099         even when the function is inside an #if block:
11100         char *
11101         gets (char *s)
11102         #undef gets
11103         {
11104           ...
11105         }
11106
11107 2011-07-04  Jim Meyering  <meyering@redhat.com>
11108
11109         maint: indent with spaces, not TABs, and add a rule to check this
11110         * tests/test-userspec.c: Indent with spaces, not TABs.
11111         * tests/test-argp.c: Likewise.
11112         * tests/test-c-stack2.sh: Likewise.
11113         * tests/test-parse-duration.sh: Likewise
11114         * m4/strtod.m4: Likewise.
11115         * m4/alloca.m4: Likewise.
11116         * m4/pselect.m4: Likewise.
11117         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
11118
11119 2011-07-03  Jim Meyering  <meyering@redhat.com>
11120
11121         maint.mk: correct omissions in prohibit_argmatch_without_use check
11122         This rule would mistakenly report that argmatch.h is included without
11123         use even when both the argmatch and invalid_arg macro were used.
11124         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
11125         of argmatch and invalid_arg.
11126
11127 2011-07-03  Bruno Haible  <bruno@clisp.org>
11128
11129         Comments about EINTR.
11130         * lib/safe-read.h: Explain the purpose of this module.
11131         * lib/safe-write.h: Likewise.
11132         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
11133         module.
11134         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
11135         module.
11136         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
11137
11138 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
11139
11140         xnanosleep: Rewrite to use new dtotimespec module.
11141         It has the conversion code that used to be in xnanosleep.
11142         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
11143         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
11144         (TIME_T_MAX): Remove.
11145         (xnanosleep): Rewrite in terms of dtotimespec.
11146         * modules/xnanosleep (Depends-on): Add dtotimespec.
11147         Remove intprops, stdbool.
11148
11149         timespec-add, timespec-sub: new modules
11150         * lib/timespec.h (timespec_add, timespec_sub): New decls.
11151         * lib/timespec-add.c, lib/timespec-sub.c:
11152         * modules/timespec-add, modules/timespec-sub: New files.
11153
11154         dtotimespec: new module
11155         * lib/timespec.h (dtotimespec): New decl.
11156         * lib/dtotimespec.c, modules/dtotimespec: New files.
11157
11158         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
11159
11160         pselect: new module
11161         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
11162         (pselect): New decls.
11163         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
11164         since the standard pselect decl uses 'restrict'.
11165         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
11166         HAVE_PSELECT, REPLACE_PSELECT.
11167         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
11168         HAVE_PSELECT, REPLACE_PSELECT.
11169         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
11170
11171         sys_select: don't depend on sys_socket
11172         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
11173         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
11174         This fix works on GNU and GNU-like platforms, but has not been tested
11175         on native Windows.
11176         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
11177         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
11178         gl_HEADER_SYS_SOCKET.
11179         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
11180         gl_PREREQ_SYS_H_WINSOCK2.
11181
11182 2011-06-29  Eric Blake  <eblake@redhat.com>
11183
11184         pipe2: fix C89 compile problem
11185         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
11186         Reported by Bruno Haible.
11187
11188         pipe, pipe2: don't corrupt fd on error
11189         * lib/pipe.c (pipe): Leave fd unchanged on error.
11190         * lib/pipe2.c (pipe2): Likewise.
11191         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
11192         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
11193
11194 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
11195
11196         mmap-anon: do not use regular expressions inadvertently
11197         * m4/mmap-anon.m4: Remove trailing period from strings sought
11198         in the output.
11199
11200 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
11201
11202         nanosleep: fix integer overflow problem
11203         * lib/nanosleep.c (my_usleep): Don't assume signed integer
11204         arithmetic wraps around on overflow.
11205
11206         nanosleep: simplify carrying
11207         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
11208         first call to the underyling nanosleep, not for the last one.
11209         This doesn't fix any bugs, but it simplifies the computation of
11210         the remaining delay.  Found while auditing integer overflow issues.
11211
11212         dup2: remove test for existence of fcntl
11213         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
11214         "#if HAVE_FCNTL", in the configure-time test program.
11215         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
11216         and therefore speeds up "configure" a bit.  Found while
11217         adding the dup2 module to Emacs.
11218
11219 2011-06-24  Eric Blake  <eblake@redhat.com>
11220
11221         maint.mk: enhance useless header checks
11222         * top/maint.mk (_sc_header_without_use): Check both include
11223         styles.
11224         (sc_prohibit_assert_without_use)
11225         (sc_prohibit_close_stream_without_use)
11226         (sc_prohibit_getopt_without_use)
11227         (sc_prohibit_quotearg_without_use)
11228         (sc_prohibit_quote_without_use)
11229         (sc_prohibit_long_options_without_use)
11230         (sc_prohibit_inttostr_without_use)
11231         (sc_prohibit_ignore_value_without_use)
11232         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
11233         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
11234         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
11235         (sc_prohibit_hash_pjw_without_use)
11236         (sc_prohibit_safe_read_without_use)
11237         (sc_prohibit_argmatch_without_use)
11238         (sc_prohibit_canonicalize_without_use)
11239         (sc_prohibit_root_dev_ino_without_use)
11240         (sc_prohibit_openat_without_use)
11241         (sc_prohibit_c_ctype_without_use)
11242         (sc_prohibit_signal_without_use)
11243         (sc_prohibit_stdio--_without_use)
11244         (sc_prohibit_stdio-safer_without_use)
11245         (sc_prohibit_strings_without_use)
11246         (sc_prohibit_intprops_without_use)
11247         (sc_prohibit_stddef_without_use)
11248         (sc_prohibit_xfreopen_without_use): Update clients.
11249
11250 2011-06-24  Jim Meyering  <meyering@redhat.com>
11251
11252         syntax-check: keep one maint.mk rule in sync with its header
11253         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
11254         of the bug Eric has just fixed, with today's commit 25e4c2ec.
11255         I prefer to avoid temporary files here, so use <(...), but that
11256         is not supported by /bin/sh, so...
11257         (SHELL): Define to /bin/bash.
11258
11259 2011-06-24  Eric Blake  <eblake@redhat.com>
11260
11261         maint.mk: update sc_prohibit_intprops_without_use
11262         * top/maint.mk (_intprops_names): Match recent changes.
11263
11264 2011-06-24  Bruno Haible  <bruno@clisp.org>
11265
11266         strerror-override: No-op tweak.
11267         * lib/strerror-override.h (strerror_override): Reorder conditions,
11268         for consistency with lib/strerror-override.c.
11269
11270 2011-06-23  Eric Blake  <eblake@redhat.com>
11271
11272         maint.mk: test further PATH_MAX issues
11273         * top/maint.mk (sc_prohibit_path_max_array): Rename...
11274         (sc_prohibit_path_max_allocation): ...and also test alloca.
11275         Suggested by Jim Meyering.
11276
11277 2011-06-22  Eric Blake  <eblake@redhat.com>
11278
11279         maint.mk: add syntax-check to avoid char[PATH_MAX]
11280         * top/maint.mk (sc_prohibit_path_max_array): New rule.
11281
11282         stat: be robust to PATH_MAX definition
11283         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
11284         * modules/stat (Depends-on): Add verify.
11285
11286         link: work around IRIX bug
11287         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
11288         * lib/link.c (rpl_link): Work around it.
11289         * tests/test-link.h (test_link): Enhance test.
11290         * doc/posix-functions/link.texi (link): Document the bug.
11291
11292         getopt: silence clang warning
11293         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
11294         dereference.
11295         Reported by Gustavo Martin Domato.
11296
11297 2011-06-22  Jim Meyering  <meyering@redhat.com>
11298
11299         bootstrap: do not insert a blank line into each .gitignore file
11300         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
11301
11302 2011-06-21  Eric Blake  <eblake@redhat.com>
11303
11304         perror: test for output mismatch
11305         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
11306         perror on IRIX.
11307
11308         strerror_r: fix OpenBSD behavior on out-of-range
11309         * lib/strerror_r.c (strerror_r): Always use maximal string.
11310         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
11311
11312         strerror_r: fix OpenBSD behavior on 0
11313         * lib/strerror-override.c (strerror_override): Also override 0
11314         when needed.
11315         * lib/strerror-override.h (strerror_override): Likewise.
11316         * lib/strerror.c (strerror): Simplify, now that 0 override is done
11317         earlier.
11318         * lib/strerror_r.c (strerror_r): Likewise.
11319         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
11320         behavior...
11321         (gl_FUNC_STRERROR_0): ...into new macro.
11322         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
11323         is overridden.
11324         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
11325         * modules/strerror-override (Files): Add strerror.m4.
11326         (configure.ac): Also provide override for 0 when needed.
11327         * doc/posix-functions/strerror.texi (strerror): Document this.
11328         * doc/posix-functions/perror.texi (perror): Likewise.
11329
11330         perror: adjust array size
11331         * modules/perror (Depends-on): Add strerror-override.
11332         * lib/perror.c (perror): Use it to avoid magic number.
11333
11334         strerror-override: reduce size
11335         * lib/strerror-override.c (strerror_override): Use fewer lines.
11336
11337 2011-06-20  Bruno Haible  <bruno@clisp.org>
11338
11339         pathmax: Ensure correct value for PATH_MAX on HP-UX.
11340         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
11341
11342 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
11343
11344         alloca: port to compilers that can optimize like GCC 4.6.0
11345         * lib/alloca.c (find_stack_direction): New signature, taken from
11346         Autoconf git.  This works with GCC 4.6.0.  This code should never
11347         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
11348         be used with other compilers that optimize as well as GCC 4.6.0 does.
11349         (alloca): Adjust to new signature.
11350         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
11351         New macro, which patches Autoconf in a similar way.
11352
11353         c-stack: stop worrying about stack direction
11354         * lib/c-stack.c (find_stack_direction): Remove.
11355         (segv_handler): Don't worry about stack direction growth, as it's
11356         too much of a pain to configure this correctly, given how compilers
11357         are optimizing-away our stack-growth detection code.  Instead, assume
11358         that any access to just before or just after the stack is OK.
11359         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
11360         Don't require AC_FUNC_ALLOCA; no longer needed.
11361
11362 2011-06-20  Eric Blake  <eblake@redhat.com>
11363
11364         test-stat: don't allocate PATH_MAX bytes
11365         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
11366         PATH_MAX-sized buffer.
11367         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
11368         * modules/stat-tests (Depends-on): Likewise.
11369         * tests/test-fstatat.c (includes): Drop pathmax.h.
11370         * tests/test-stat.c (includes): Likewise.
11371         Reported by Bruno Haible.
11372
11373 2011-06-20  Bruno Haible  <bruno@clisp.org>
11374
11375         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
11376         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
11377         * lib/float.c: New file.
11378         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
11379         REPLACE_FLOAT_LDBL.
11380         * modules/float (Files): Add lib/float.c.
11381         (configure.ac): Invoke AC_LIBOBJ.
11382         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
11383
11384 2011-06-20  Bruno Haible  <bruno@clisp.org>
11385
11386         Tests for module 'float'.
11387         * modules/float-tests: New file.
11388         * tests/test-float.c: New file.
11389
11390 2011-06-19  Bruno Haible  <bruno@clisp.org>
11391
11392         isinf: Coding style.
11393         * lib/isinf.c: Use GNU coding style.
11394
11395 2011-06-19  Bruno Haible  <bruno@clisp.org>
11396
11397         linkat test: Avoid test failure on AIX 7.1.
11398         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
11399         * tests/test-link.h (test_link): Likewise.
11400
11401 2011-06-19  Bruno Haible  <bruno@clisp.org>
11402
11403         pread test: Avoid test failure on OpenBSD 4.9.
11404         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
11405
11406 2011-06-19  Bruno Haible  <bruno@clisp.org>
11407
11408         sprintf-posix: Fix test failure on AIX 7.1.
11409         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
11410         * doc/posix-functions/dprintf.texi: Mention limited precision problem
11411         on AIX.
11412         * doc/posix-functions/fprintf.texi: Likewise.
11413         * doc/posix-functions/printf.texi: Likewise.
11414         * doc/posix-functions/snprintf.texi: Likewise.
11415         * doc/posix-functions/sprintf.texi: Likewise.
11416         * doc/posix-functions/vdprintf.texi: Likewise.
11417         * doc/posix-functions/vfprintf.texi: Likewise.
11418         * doc/posix-functions/vprintf.texi: Likewise.
11419         * doc/posix-functions/vsnprintf.texi: Likewise.
11420         * doc/posix-functions/vsprintf.texi: Likewise.
11421
11422 2011-06-19  Bruno Haible  <bruno@clisp.org>
11423
11424         roundl-ieee: Fix test failure on AIX 7.1.
11425         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
11426         * doc/posix-functions/roundl.texi: Mention problem with negative
11427         arguments.
11428
11429 2011-06-19  Bruno Haible  <bruno@clisp.org>
11430
11431         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
11432         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
11433         * doc/posix-functions/round.texi: Mention problem with negative
11434         arguments.
11435         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
11436
11437 2011-06-19  Bruno Haible  <bruno@clisp.org>
11438
11439         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
11440         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
11441         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
11442         * doc/posix-functions/roundf.texi: Mention problem with negative
11443         arguments.
11444         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
11445
11446 2011-06-19  Bruno Haible  <bruno@clisp.org>
11447
11448         ceilf-ieee: Work around bug on MacOS X 10.5.
11449         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
11450
11451         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
11452         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
11453         IEEE compliant, avoid compiler optimizations.
11454         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
11455         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
11456         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
11457         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
11458         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
11459         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
11460         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11461         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
11462         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
11463         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
11464
11465 2011-06-19  Bruno Haible  <bruno@clisp.org>
11466
11467         ceilf-ieee: Work around bug on AIX 7.1.
11468         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
11469         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
11470
11471 2011-06-19  Bruno Haible  <bruno@clisp.org>
11472
11473         ceil-ieee: Work around bug on AIX 7.1.
11474         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
11475         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
11476
11477 2011-06-18  Bruno Haible  <bruno@clisp.org>
11478
11479         fsync test: Avoid test failure on MacOS X and AIX.
11480         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
11481         EINVAL.
11482
11483 2011-06-18  Bruno Haible  <bruno@clisp.org>
11484
11485         openat, fdopendir tests: Fix link errors.
11486         * modules/openat-tests (Depends-on): Add progname.
11487         * modules/fdopendir-tests (Depends-on): Likewise.
11488         * tests/test-fchownat.c: Include progname.h.
11489         (main): Call set_program_name.
11490         * tests/test-fstatat.c: Include progname.h.
11491         (main): Call set_program_name.
11492         * tests/test-mkdirat.c: Include progname.h.
11493         (main): Call set_program_name.
11494         * tests/test-openat.c: Include progname.h.
11495         (main): Call set_program_name.
11496         * tests/test-unlinkat.c: Include progname.h.
11497         (main): Call set_program_name.
11498         * tests/test-fdopendir.c: Include progname.h.
11499         (main): Call set_program_name.
11500
11501 2011-06-18  Bruno Haible  <bruno@clisp.org>
11502
11503         Doc update.
11504         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
11505         HP-UX.
11506         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
11507
11508 2011-06-18  Bruno Haible  <bruno@clisp.org>
11509
11510         getcwd tests: Avoid compilation error on HP-UX 11.31.
11511         * modules/getcwd-tests (Depends-on): Add pathmax.
11512         * tests/test-getcwd.c: Include pathmax.h.
11513
11514 2011-06-18  Bruno Haible  <bruno@clisp.org>
11515
11516         isfinite, isinf: Fix link error on AIX 6 and 7.
11517         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
11518         needed, also test the macro with a 'float' argument.
11519         * m4/isinf.m4 (gl_ISINF): Likewise.
11520
11521 2011-06-18  Bruno Haible  <bruno@clisp.org>
11522
11523         getloadavg: Don't clobber LIBS. Regression from previous commit.
11524         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
11525         AC_CHECK_LIB from here...
11526         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
11527         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
11528         gl_func_getloadavg_done.
11529         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11530
11531 2011-06-18  Bruno Haible  <bruno@clisp.org>
11532
11533         clean-temp: Improve documentation.
11534         * lib/clean-temp.h: Explain better how to use this module.
11535         Reported by John Darrington <john@darrington.wattle.id.au>.
11536
11537 2011-06-17  Bruno Haible  <bruno@clisp.org>
11538
11539         pread, pwrite: Avoid cc warning on AIX.
11540         * lib/unistd.in.h (pread): Undefine before defining as a macro.
11541         (pwrite): Likewise.
11542
11543 2011-06-17  Bruno Haible  <bruno@clisp.org>
11544
11545         spawn-pipe tests: Fix link error.
11546         * tests/test-spawn-pipe-child.c: Undefine fprintf.
11547         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11548
11549 2011-06-17  Bruno Haible  <bruno@clisp.org>
11550
11551         Tests: Remove unnecessary dependency.
11552         * modules/canonicalize-tests (Depends-on): Remove progname.
11553         * modules/chown-tests (Depends-on): Likewise.
11554         * modules/dirname-tests (Depends-on): Likewise.
11555         * modules/fdopendir-tests (Depends-on): Likewise.
11556         * modules/fdutimensat-tests (Depends-on): Likewise.
11557         * modules/hash-tests (Depends-on): Likewise.
11558         * modules/lchown-tests (Depends-on): Likewise.
11559         * modules/linkat-tests (Depends-on): Likewise.
11560         * modules/renameat-tests (Depends-on): Likewise.
11561         * modules/spawn-pipe-tests (Depends-on): Likewise.
11562         * modules/utimensat-tests (Depends-on): Likewise.
11563
11564 2011-06-17  Bruno Haible  <bruno@clisp.org>
11565
11566         spawn-pipe tests: Fix link error.
11567         * tests/test-spawn-pipe-child.c: Undefine fflush.
11568
11569 2011-06-17  Bruno Haible  <bruno@clisp.org>
11570
11571         Fix tests link errors.
11572         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
11573         * modules/chown-tests (Makefile.am): Don't link test-chown with
11574         LIBINTL.
11575         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
11576         LIBINTL.
11577         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
11578         LIBINTL.
11579         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
11580         LIBINTL.
11581
11582 2011-06-16  Bruno Haible  <bruno@clisp.org>
11583
11584         crypto/gc-sha1: Fix recent regression.
11585         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
11586         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
11587
11588         crypto/gc-md5: Fix recent regression.
11589         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
11590
11591         crypto/gc-md4: Fix recent regression.
11592         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
11593         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
11594
11595         crypto/gc-arctwo: Fix recent regression.
11596         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
11597         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
11598
11599         crypto/gc-rijndael: Fix recent regression.
11600         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
11601         (configure.ac): Invoke AC_LIBOBJ here.
11602         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
11603         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11604
11605         crypto/gc-hmac-sha1: Fix recent regression.
11606         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
11607         (configure.ac): Invoke AC_LIBOBJ here.
11608         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
11609         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11610
11611         crypto/gc-hmac-md5: Fix recent regression.
11612         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
11613         (configure.ac): Invoke AC_LIBOBJ here.
11614         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
11615         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11616
11617         crypto/gc-des: Fix recent regression.
11618         * modules/crypto/gc-des (Files): Remove m4/des.m4.
11619         (configure.ac): Invoke AC_LIBOBJ here.
11620         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
11621         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11622
11623         crypto/gc-arcfour: Fix recent regression.
11624         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
11625         (configure.ac): Invoke AC_LIBOBJ here.
11626         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
11627         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11628
11629 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
11630
11631         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
11632         After the 2011-05-21 change, this macro requires
11633         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
11634         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
11635
11636 2011-06-16  Bruno Haible  <bruno@clisp.org>
11637
11638         fprintftime: Move AC_LIBOBJ invocations to module description.
11639         * m4/fprintftime.m4: Remove file.
11640         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
11641         (configure.ac): Remove gl_FPRINTFTIME call.
11642         (Makefile.am): Augment lib_SOURCES.
11643         Reported by Jim Meyering.
11644
11645 2011-06-16  Bruno Haible  <bruno@clisp.org>
11646
11647         tmpfile-safer: Finish 2011-05-23 commit.
11648         * m4/stdio-safer.m4: Really remove file.
11649         Reported by Jim Meyering.
11650
11651 2011-06-16  Bruno Haible  <bruno@clisp.org>
11652
11653         syntax-check: Fix typo.
11654         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
11655         printf-posix.m4.
11656         Reported by Jim Meyering.
11657
11658 2011-06-13  Jim Meyering  <meyering@redhat.com>
11659
11660         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
11661         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
11662
11663 2011-05-23  Bruno Haible  <bruno@clisp.org>
11664
11665         yesno: Move AC_LIBOBJ invocations to module description.
11666         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
11667         * modules/yesno (Makefile.am): Augment lib_SOURCES.
11668
11669 2011-05-23  Bruno Haible  <bruno@clisp.org>
11670
11671         xstrtol: Move AC_LIBOBJ invocations to module description.
11672         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
11673         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
11674
11675 2011-05-23  Bruno Haible  <bruno@clisp.org>
11676
11677         xstrtold: Move AC_LIBOBJ invocations to module description.
11678         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
11679         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
11680
11681 2011-05-23  Bruno Haible  <bruno@clisp.org>
11682
11683         xstrtod: Move AC_LIBOBJ invocations to module description.
11684         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
11685         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
11686
11687 2011-05-23  Bruno Haible  <bruno@clisp.org>
11688
11689         xnanosleep: Move AC_LIBOBJ invocations to module description.
11690         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
11691         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
11692
11693 2011-05-23  Bruno Haible  <bruno@clisp.org>
11694
11695         xgetcwd: Move AC_LIBOBJ invocations to module description.
11696         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
11697         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
11698
11699 2011-05-23  Bruno Haible  <bruno@clisp.org>
11700
11701         xalloc: Move AC_LIBOBJ invocations to module description.
11702         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
11703         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
11704
11705 2011-05-23  Bruno Haible  <bruno@clisp.org>
11706
11707         write-any-file: Move AC_LIBOBJ invocations to module description.
11708         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
11709         invocation.
11710         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
11711
11712 2011-05-23  Bruno Haible  <bruno@clisp.org>
11713
11714         utimens: Move AC_LIBOBJ invocations to module description.
11715         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
11716         * modules/utimens (Makefile.am): Augment lib_SOURCES.
11717
11718 2011-05-23  Bruno Haible  <bruno@clisp.org>
11719
11720         utimecmp: Move AC_LIBOBJ invocations to module description.
11721         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
11722         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
11723
11724 2011-05-23  Bruno Haible  <bruno@clisp.org>
11725
11726         userspec: Move AC_LIBOBJ invocations to module description.
11727         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
11728         * modules/userspec (Makefile.am): Augment lib_SOURCES.
11729
11730 2011-05-23  Bruno Haible  <bruno@clisp.org>
11731
11732         unlinkdir: Move AC_LIBOBJ invocations to module description.
11733         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
11734         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
11735
11736 2011-05-23  Bruno Haible  <bruno@clisp.org>
11737
11738         unistd-safer: Move AC_LIBOBJ invocations to module description.
11739         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
11740         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
11741
11742 2011-05-23  Bruno Haible  <bruno@clisp.org>
11743
11744         tempname: Move AC_LIBOBJ invocations to module description.
11745         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
11746         * modules/tempname (Makefile.am): Augment lib_SOURCES.
11747
11748 2011-05-23  Bruno Haible  <bruno@clisp.org>
11749
11750         strftime: Move AC_LIBOBJ invocations to module description.
11751         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
11752         * modules/strftime (Makefile.am): Augment lib_SOURCES.
11753
11754 2011-05-23  Bruno Haible  <bruno@clisp.org>
11755
11756         stdlib-safer: Move AC_LIBOBJ invocations to module description.
11757         * m4/stdlib-safer.m4: Remove file.
11758         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
11759         (configure.ac): Remove gl_STDLIB_SAFER call.
11760         (Makefile.am): Augment lib_SOURCES.
11761
11762 2011-05-23  Bruno Haible  <bruno@clisp.org>
11763
11764         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
11765         * m4/stdio-safer.m4: Remove file.
11766         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
11767         (configure.ac): Remove gl_TMPFILE_SAFER call.
11768         (Makefile.am): Augment lib_SOURCES.
11769
11770 2011-05-23  Bruno Haible  <bruno@clisp.org>
11771
11772         popen-safer: Move AC_LIBOBJ invocations to module description.
11773         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
11774         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
11775         (configure.ac): Remove gl_POPEN_SAFER call.
11776         (Makefile.am): Augment lib_SOURCES.
11777
11778 2011-05-23  Bruno Haible  <bruno@clisp.org>
11779
11780         freopen-safer: Move AC_LIBOBJ invocations to module description.
11781         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
11782         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
11783         (configure.ac): Remove gl_FREOPEN_SAFER call.
11784         (Makefile.am): Augment lib_SOURCES.
11785
11786 2011-05-23  Bruno Haible  <bruno@clisp.org>
11787
11788         fopen-safer: Move AC_LIBOBJ invocations to module description.
11789         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
11790         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
11791         (configure.ac): Remove gl_FOPEN_SAFER call.
11792         (Makefile.am): Augment lib_SOURCES.
11793
11794 2011-05-23  Bruno Haible  <bruno@clisp.org>
11795
11796         crypto/sha512: Move AC_LIBOBJ invocations to module description.
11797         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
11798         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
11799
11800 2011-05-23  Bruno Haible  <bruno@clisp.org>
11801
11802         crypto/sha256: Move AC_LIBOBJ invocations to module description.
11803         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
11804         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
11805
11806 2011-05-23  Bruno Haible  <bruno@clisp.org>
11807
11808         crypto/sha1: Move AC_LIBOBJ invocations to module description.
11809         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
11810         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
11811
11812 2011-05-23  Bruno Haible  <bruno@clisp.org>
11813
11814         settime: Move AC_LIBOBJ invocations to module description.
11815         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
11816         * modules/settime (Makefile.am): Augment lib_SOURCES.
11817
11818 2011-05-23  Bruno Haible  <bruno@clisp.org>
11819
11820         savedir: Move AC_LIBOBJ invocations to module description.
11821         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
11822         * modules/savedir (Makefile.am): Augment lib_SOURCES.
11823
11824 2011-05-23  Bruno Haible  <bruno@clisp.org>
11825
11826         save-cwd: Move AC_LIBOBJ invocations to module description.
11827         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
11828         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
11829
11830 2011-05-23  Bruno Haible  <bruno@clisp.org>
11831
11832         same: Move AC_LIBOBJ invocations to module description.
11833         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
11834         * modules/same (Makefile.am): Augment lib_SOURCES.
11835
11836 2011-05-23  Bruno Haible  <bruno@clisp.org>
11837
11838         safe-write: Move AC_LIBOBJ invocations to module description.
11839         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
11840         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
11841         instead of gl_SAFE_WRITE.
11842         (Makefile.am): Augment lib_SOURCES.
11843
11844 2011-05-23  Bruno Haible  <bruno@clisp.org>
11845
11846         safe-read: Move AC_LIBOBJ invocations to module description.
11847         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
11848         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
11849         of gl_SAFE_READ.
11850         (Makefile.am): Augment lib_SOURCES.
11851
11852 2011-05-23  Bruno Haible  <bruno@clisp.org>
11853
11854         safe-alloc: Move AC_LIBOBJ invocations to module description.
11855         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
11856         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
11857
11858 2011-05-23  Bruno Haible  <bruno@clisp.org>
11859
11860         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
11861         * m4/rijndael.m4: Remove file.
11862         * modules/crypto/rijndael (Files): Remove it.
11863         (configure.ac): Remove gl_RIJNDAEL call.
11864         (Makefile.am): Augment lib_SOURCES.
11865
11866 2011-05-23  Bruno Haible  <bruno@clisp.org>
11867
11868         readtokens: Move AC_LIBOBJ invocations to module description.
11869         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
11870         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
11871
11872 2011-05-23  Bruno Haible  <bruno@clisp.org>
11873
11874         read-file: Move AC_LIBOBJ invocations to module description.
11875         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
11876         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
11877         of gl_FUNC_READ_FILE.
11878         (Makefile.am): Augment lib_SOURCES.
11879
11880 2011-05-23  Bruno Haible  <bruno@clisp.org>
11881
11882         quotearg: Move AC_LIBOBJ invocations to module description.
11883         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
11884         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
11885
11886 2011-05-23  Bruno Haible  <bruno@clisp.org>
11887
11888         quote: Move AC_LIBOBJ invocations to module description.
11889         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
11890         * modules/quote (Makefile.am): Augment lib_SOURCES.
11891
11892 2011-05-23  Bruno Haible  <bruno@clisp.org>
11893
11894         posixver: Move AC_LIBOBJ invocations to module description.
11895         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
11896         * modules/posixver (Makefile.am): Augment lib_SOURCES.
11897
11898 2011-05-23  Bruno Haible  <bruno@clisp.org>
11899
11900         posixtm: Move AC_LIBOBJ invocations to module description.
11901         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
11902         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
11903
11904 2011-05-23  Bruno Haible  <bruno@clisp.org>
11905
11906         physmem: Move AC_LIBOBJ invocations to module description.
11907         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
11908         * modules/physmem (Makefile.am): Augment lib_SOURCES.
11909
11910 2011-05-23  Bruno Haible  <bruno@clisp.org>
11911
11912         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
11913         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
11914         invocation.
11915         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
11916
11917 2011-05-23  Bruno Haible  <bruno@clisp.org>
11918
11919         mpsort: Move AC_LIBOBJ invocations to module description.
11920         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
11921         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
11922
11923 2011-05-23  Bruno Haible  <bruno@clisp.org>
11924
11925         modechange: Move AC_LIBOBJ invocations to module description.
11926         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
11927         * modules/modechange (Makefile.am): Augment lib_SOURCES.
11928
11929 2011-05-23  Bruno Haible  <bruno@clisp.org>
11930
11931         mkdir-p: Move AC_LIBOBJ invocations to module description.
11932         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
11933         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
11934
11935 2011-05-23  Bruno Haible  <bruno@clisp.org>
11936
11937         mkancesdirs: Move AC_LIBOBJ invocations to module description.
11938         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
11939         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
11940
11941 2011-05-23  Bruno Haible  <bruno@clisp.org>
11942
11943         mgetgroups: Move AC_LIBOBJ invocations to module description.
11944         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
11945         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
11946
11947 2011-05-23  Bruno Haible  <bruno@clisp.org>
11948
11949         memxor: Move AC_LIBOBJ invocations to module description.
11950         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
11951         * modules/memxor (Makefile.am): Augment lib_SOURCES.
11952
11953 2011-05-23  Bruno Haible  <bruno@clisp.org>
11954
11955         memcoll: Move AC_LIBOBJ invocations to module description.
11956         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
11957         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
11958
11959 2011-05-23  Bruno Haible  <bruno@clisp.org>
11960
11961         memcasecmp: Move AC_LIBOBJ invocations to module description.
11962         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
11963         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
11964
11965 2011-05-23  Bruno Haible  <bruno@clisp.org>
11966
11967         crypto/md5: Move AC_LIBOBJ invocations to module description.
11968         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
11969         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
11970
11971 2011-05-23  Bruno Haible  <bruno@clisp.org>
11972
11973         crypto/md4: Move AC_LIBOBJ invocations to module description.
11974         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
11975         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
11976
11977 2011-05-23  Bruno Haible  <bruno@clisp.org>
11978
11979         crypto/md2: Move AC_LIBOBJ invocations to module description.
11980         * m4/md2.m4: Remove file.
11981         * modules/crypto/md2 (Files): Remove it.
11982         (configure.ac): Remove gl_MD2 call.
11983         (Makefile.am): Augment lib_SOURCES.
11984
11985 2011-05-23  Bruno Haible  <bruno@clisp.org>
11986
11987         long-options: Move AC_LIBOBJ invocations to module description.
11988         * m4/long-options.m4: Remove file.
11989         * modules/long-options (Files): Remove it.
11990         (configure.ac): Remove gl_LONG_OPTIONS call.
11991         (Makefile.am): Augment lib_SOURCES.
11992
11993 2011-05-23  Bruno Haible  <bruno@clisp.org>
11994
11995         i-ring: Move AC_LIBOBJ invocations to module description.
11996         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
11997         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
11998
11999 2011-05-23  Bruno Haible  <bruno@clisp.org>
12000
12001         idcache: Move AC_LIBOBJ invocations to module description.
12002         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
12003         * modules/idcache (Makefile.am): Augment lib_SOURCES.
12004
12005 2011-05-23  Bruno Haible  <bruno@clisp.org>
12006
12007         human: Move AC_LIBOBJ invocations to module description.
12008         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
12009         * modules/human (Makefile.am): Augment lib_SOURCES.
12010
12011 2011-05-23  Bruno Haible  <bruno@clisp.org>
12012
12013         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
12014         * m4/hmac-sha1.m4: Remove file.
12015         * modules/crypto/hmac-sha1 (Files): Remove it.
12016         (configure.ac): Remove gl_HMAC_SHA1 call.
12017         (Makefile.am): Augment lib_SOURCES.
12018
12019 2011-05-23  Bruno Haible  <bruno@clisp.org>
12020
12021         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
12022         * m4/hmac-md5.m4: Remove file.
12023         * modules/crypto/hmac-md5 (Files): Remove it.
12024         (configure.ac): Remove gl_HMAC_MD5 call.
12025         (Makefile.am): Augment lib_SOURCES.
12026
12027 2011-05-23  Bruno Haible  <bruno@clisp.org>
12028
12029         hash: Move AC_LIBOBJ invocations to module description.
12030         * m4/hash.m4: Remove file.
12031         * modules/hash (Files): Remove it.
12032         (configure.ac): Remove gl_HASH call.
12033         (Makefile.am): Augment lib_SOURCES.
12034
12035 2011-05-23  Bruno Haible  <bruno@clisp.org>
12036
12037         hard-locale: Move AC_LIBOBJ invocations to module description.
12038         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
12039         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
12040
12041 2011-05-23  Bruno Haible  <bruno@clisp.org>
12042
12043         getugroups: Move AC_LIBOBJ invocations to module description.
12044         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
12045         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
12046
12047 2011-05-23  Bruno Haible  <bruno@clisp.org>
12048
12049         gettime: Move AC_LIBOBJ invocations to module description.
12050         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
12051         * modules/gettime (Makefile.am): Augment lib_SOURCES.
12052
12053 2011-05-23  Bruno Haible  <bruno@clisp.org>
12054
12055         getndelim2: Move AC_LIBOBJ invocations to module description.
12056         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
12057         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
12058
12059 2011-05-23  Bruno Haible  <bruno@clisp.org>
12060
12061         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
12062         * m4/gc-pbkdf2-sha1.m4: Remove file.
12063         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
12064         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
12065         (Makefile.am): Augment lib_SOURCES.
12066
12067 2011-05-23  Bruno Haible  <bruno@clisp.org>
12068
12069         fts: Move AC_LIBOBJ invocations to module description.
12070         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
12071         * modules/fts (configure.ac): ... to here.
12072
12073 2011-05-23  Bruno Haible  <bruno@clisp.org>
12074
12075         file-type: Move AC_LIBOBJ invocations to module description.
12076         * m4/file-type.m4: Remove file.
12077         * modules/file-type (Files): Remove it.
12078         (configure.ac): Remove gl_FILE_TYPE call.
12079         (Makefile.am): Augment lib_SOURCES.
12080
12081 2011-05-23  Bruno Haible  <bruno@clisp.org>
12082
12083         filenamecat*: Respect rules for use of AC_LIBOBJ.
12084         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
12085         Remove AC_LIBOBJ invocation.
12086         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
12087         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
12088
12089 2011-05-23  Bruno Haible  <bruno@clisp.org>
12090
12091         filemode: Move AC_LIBOBJ invocations to module description.
12092         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
12093         * modules/filemode (Makefile.am): Augment lib_SOURCES.
12094
12095 2011-05-23  Bruno Haible  <bruno@clisp.org>
12096
12097         openat-safer: Move AC_LIBOBJ invocations to module description.
12098         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
12099         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
12100
12101 2011-05-23  Bruno Haible  <bruno@clisp.org>
12102
12103         fcntl-safer: Move AC_LIBOBJ invocations to module description.
12104         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
12105         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
12106
12107 2011-05-23  Bruno Haible  <bruno@clisp.org>
12108
12109         exclude: Move AC_LIBOBJ invocations to module description.
12110         * m4/exclude.m4: Remove file.
12111         * modules/exclude (Files): Remove it.
12112         (configure.ac): Remove gl_EXCLUDE call.
12113         (Makefile.am): Augment lib_SOURCES.
12114
12115 2011-05-23  Bruno Haible  <bruno@clisp.org>
12116
12117         dirname*: Respect rules for use of AC_LIBOBJ.
12118         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
12119         invocations.
12120         * modules/dirname (Makefile.am): Augment lib_SOURCES.
12121         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
12122
12123 2011-05-23  Bruno Haible  <bruno@clisp.org>
12124
12125         dirent-safer: Move AC_LIBOBJ invocations to module description.
12126         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
12127         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
12128
12129 2011-05-23  Bruno Haible  <bruno@clisp.org>
12130
12131         crypto/des: Move AC_LIBOBJ invocations to module description.
12132         * m4/des.m4: Remove file.
12133         * modules/crypto/des (Files): Remove it.
12134         (configure.ac): Remove gl_DES call.
12135         (Makefile.am): Augment lib_SOURCES.
12136
12137 2011-05-23  Bruno Haible  <bruno@clisp.org>
12138
12139         cycle-check: Move AC_LIBOBJ invocations to module description.
12140         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
12141         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
12142
12143 2011-05-23  Bruno Haible  <bruno@clisp.org>
12144
12145         c-strtold: Move AC_LIBOBJ invocations to module description.
12146         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
12147         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
12148
12149 2011-05-23  Bruno Haible  <bruno@clisp.org>
12150
12151         c-strtod: Move AC_LIBOBJ invocations to module description.
12152         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
12153         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
12154
12155 2011-05-23  Bruno Haible  <bruno@clisp.org>
12156
12157         crc: Move AC_LIBOBJ invocations to module description.
12158         * m4/crc.m4: Remove file.
12159         * modules/crc (Files): Remove it.
12160         (configure.ac): Remove gl_CRC call.
12161         (Makefile.am): Augment lib_SOURCES.
12162
12163 2011-05-23  Bruno Haible  <bruno@clisp.org>
12164
12165         close-stream: Move AC_LIBOBJ invocations to module description.
12166         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
12167         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
12168
12169 2011-05-23  Bruno Haible  <bruno@clisp.org>
12170
12171         closeout: Move AC_LIBOBJ invocations to module description.
12172         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
12173         * modules/closeout (Makefile.am): Augment lib_SOURCES.
12174
12175 2011-05-23  Bruno Haible  <bruno@clisp.org>
12176
12177         closein: Move AC_LIBOBJ invocations to module description.
12178         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
12179         * modules/closein (Makefile.am): Augment lib_SOURCES.
12180
12181 2011-05-23  Bruno Haible  <bruno@clisp.org>
12182
12183         cloexec: Move AC_LIBOBJ invocations to module description.
12184         * m4/cloexec.m4: Remove file.
12185         * modules/cloexec (Files): Remove it.
12186         (configure.ac): Remove gl_CLOEXEC call.
12187         (Makefile.am): Augment lib_SOURCES.
12188
12189 2011-05-23  Bruno Haible  <bruno@clisp.org>
12190
12191         check-version: Move AC_LIBOBJ invocations to module description.
12192         * m4/check-version.m4: Remove file.
12193         * modules/check-version (Files): Remove it.
12194         (configure.ac): Remove gl_CHECK_VERSION call.
12195         (Makefile.am): Augment lib_SOURCES.
12196
12197 2011-05-23  Bruno Haible  <bruno@clisp.org>
12198
12199         chdir-safer: Move AC_LIBOBJ invocations to module description.
12200         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
12201         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
12202
12203 2011-05-23  Bruno Haible  <bruno@clisp.org>
12204
12205         canonicalize: Move AC_LIBOBJ invocations to module description.
12206         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
12207         AC_LIBOBJ invocation.
12208         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
12209
12210 2011-05-23  Bruno Haible  <bruno@clisp.org>
12211
12212         canon-host: Move AC_LIBOBJ invocations to module description.
12213         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
12214         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
12215         instead of gl_CANON_HOST.
12216         (Makefile.am): Augment lib_SOURCES.
12217
12218 2011-05-23  Bruno Haible  <bruno@clisp.org>
12219
12220         backupfile: Move AC_LIBOBJ invocations to module description.
12221         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
12222         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
12223
12224 2011-05-23  Bruno Haible  <bruno@clisp.org>
12225
12226         argmatch: Move AC_LIBOBJ invocations to module description.
12227         * m4/argmatch.m4: Remove file.
12228         * modules/argmatch (Files): Remove it.
12229         (configure.ac): Remove gl_ARGMATCH call.
12230         (Makefile.am): Augment lib_SOURCES.
12231
12232 2011-05-23  Bruno Haible  <bruno@clisp.org>
12233
12234         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
12235         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
12236         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
12237
12238 2011-05-23  Bruno Haible  <bruno@clisp.org>
12239
12240         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
12241         * m4/arcfour.m4: Remove file.
12242         * modules/crypto/arcfour (Files): Remove it.
12243         (configure.ac): Remove gl_ARCFOUR call.
12244         (Makefile.am): Augment lib_SOURCES.
12245
12246 2011-05-22  Bruno Haible  <bruno@clisp.org>
12247
12248         write: Move AC_LIBOBJ invocations to module description.
12249         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
12250         * modules/write (configure.ac): ... to here.
12251
12252 2011-05-22  Bruno Haible  <bruno@clisp.org>
12253
12254         wmemset: Move AC_LIBOBJ invocations to module description.
12255         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
12256         here...
12257         * modules/wmemset (configure.ac): ... to here.
12258
12259 2011-05-22  Bruno Haible  <bruno@clisp.org>
12260
12261         wmemmove: Move AC_LIBOBJ invocations to module description.
12262         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
12263         here...
12264         * modules/wmemmove (configure.ac): ... to here.
12265
12266 2011-05-22  Bruno Haible  <bruno@clisp.org>
12267
12268         wmemcpy: Move AC_LIBOBJ invocations to module description.
12269         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
12270         here...
12271         * modules/wmemcpy (configure.ac): ... to here.
12272
12273 2011-05-22  Bruno Haible  <bruno@clisp.org>
12274
12275         wmemcmp: Move AC_LIBOBJ invocations to module description.
12276         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
12277         here...
12278         * modules/wmemcmp (configure.ac): ... to here.
12279
12280 2011-05-22  Bruno Haible  <bruno@clisp.org>
12281
12282         wmemchr: Move AC_LIBOBJ invocations to module description.
12283         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
12284         here...
12285         * modules/wmemchr (configure.ac): ... to here.
12286
12287 2011-05-22  Bruno Haible  <bruno@clisp.org>
12288
12289         wcswidth: Move AC_LIBOBJ invocations to module description.
12290         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
12291         here...
12292         * modules/wcswidth (configure.ac): ... to here.
12293
12294 2011-05-22  Bruno Haible  <bruno@clisp.org>
12295
12296         wcwidth: Respect rules for use of AC_LIBOBJ.
12297         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
12298         invocation from here...
12299         * modules/wcwidth (configure.ac): ... to here.
12300         (Depends-on): Update conditions.
12301
12302 2011-05-22  Bruno Haible  <bruno@clisp.org>
12303
12304         wctype: Move AC_LIBOBJ invocations to module description.
12305         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
12306         invocation from here...
12307         * modules/wctype (configure.ac): ... to here.
12308         (Depends-on): Update conditions.
12309
12310 2011-05-22  Bruno Haible  <bruno@clisp.org>
12311
12312         wctrans: Move AC_LIBOBJ invocations to module description.
12313         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
12314         invocation from here...
12315         * modules/wctrans (configure.ac): ... to here.
12316
12317 2011-05-22  Bruno Haible  <bruno@clisp.org>
12318
12319         wctomb: Move AC_LIBOBJ invocations to module description.
12320         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
12321         invocations from here...
12322         * modules/wctomb (configure.ac): ... to here.
12323
12324 2011-05-22  Bruno Haible  <bruno@clisp.org>
12325
12326         wctob: Move AC_LIBOBJ invocations to module description.
12327         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
12328         gl_PREREQ_WCTOB invocations from here...
12329         * modules/wctob (configure.ac): ... to here.
12330         (Depends-on): Update conditions.
12331
12332 2011-05-22  Bruno Haible  <bruno@clisp.org>
12333
12334         wcsxfrm: Move AC_LIBOBJ invocations to module description.
12335         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
12336         here...
12337         * modules/wcsxfrm (configure.ac): ... to here.
12338
12339 2011-05-22  Bruno Haible  <bruno@clisp.org>
12340
12341         wcstok: Move AC_LIBOBJ invocations to module description.
12342         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
12343         * modules/wcstok (configure.ac): ... to here.
12344
12345 2011-05-22  Bruno Haible  <bruno@clisp.org>
12346
12347         wcsstr: Move AC_LIBOBJ invocations to module description.
12348         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
12349         * modules/wcsstr (configure.ac): ... to here.
12350
12351 2011-05-22  Bruno Haible  <bruno@clisp.org>
12352
12353         wcsspn: Move AC_LIBOBJ invocations to module description.
12354         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
12355         * modules/wcsspn (configure.ac): ... to here.
12356
12357 2011-05-22  Bruno Haible  <bruno@clisp.org>
12358
12359         wcsrtombs: Move AC_LIBOBJ invocations to module description.
12360         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
12361         gl_PREREQ_WCSRTOMBS invocations from here...
12362         * modules/wcsrtombs (configure.ac): ... to here.
12363
12364 2011-05-22  Bruno Haible  <bruno@clisp.org>
12365
12366         wcsrchr: Move AC_LIBOBJ invocations to module description.
12367         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
12368         here...
12369         * modules/wcsrchr (configure.ac): ... to here.
12370
12371 2011-05-22  Bruno Haible  <bruno@clisp.org>
12372
12373         wcspbrk: Move AC_LIBOBJ invocations to module description.
12374         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
12375         here...
12376         * modules/wcspbrk (configure.ac): ... to here.
12377
12378 2011-05-22  Bruno Haible  <bruno@clisp.org>
12379
12380         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
12381         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
12382         gl_PREREQ_WCSNRTOMBS invocations from here...
12383         * modules/wcsnrtombs (configure.ac): ... to here.
12384
12385 2011-05-22  Bruno Haible  <bruno@clisp.org>
12386
12387         wcsnlen: Move AC_LIBOBJ invocations to module description.
12388         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
12389         here...
12390         * modules/wcsnlen (configure.ac): ... to here.
12391
12392 2011-05-22  Bruno Haible  <bruno@clisp.org>
12393
12394         wcsncpy: Move AC_LIBOBJ invocations to module description.
12395         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
12396         here...
12397         * modules/wcsncpy (configure.ac): ... to here.
12398
12399 2011-05-22  Bruno Haible  <bruno@clisp.org>
12400
12401         wcsncmp: Move AC_LIBOBJ invocations to module description.
12402         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
12403         here...
12404         * modules/wcsncmp (configure.ac): ... to here.
12405
12406 2011-05-22  Bruno Haible  <bruno@clisp.org>
12407
12408         wcsncat: Move AC_LIBOBJ invocations to module description.
12409         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
12410         here...
12411         * modules/wcsncat (configure.ac): ... to here.
12412
12413 2011-05-22  Bruno Haible  <bruno@clisp.org>
12414
12415         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
12416         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
12417         from here...
12418         * modules/wcsncasecmp (configure.ac): ... to here.
12419
12420 2011-05-22  Bruno Haible  <bruno@clisp.org>
12421
12422         wcslen: Move AC_LIBOBJ invocations to module description.
12423         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
12424         * modules/wcslen (configure.ac): ... to here.
12425
12426 2011-05-22  Bruno Haible  <bruno@clisp.org>
12427
12428         wcsdup: Move AC_LIBOBJ invocations to module description.
12429         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
12430         * modules/wcsdup (configure.ac): ... to here.
12431
12432 2011-05-22  Bruno Haible  <bruno@clisp.org>
12433
12434         wcscspn: Move AC_LIBOBJ invocations to module description.
12435         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
12436         here...
12437         * modules/wcscspn (configure.ac): ... to here.
12438
12439 2011-05-22  Bruno Haible  <bruno@clisp.org>
12440
12441         wcscpy: Move AC_LIBOBJ invocations to module description.
12442         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
12443         * modules/wcscpy (configure.ac): ... to here.
12444
12445 2011-05-22  Bruno Haible  <bruno@clisp.org>
12446
12447         wcscoll: Move AC_LIBOBJ invocations to module description.
12448         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
12449         here...
12450         * modules/wcscoll (configure.ac): ... to here.
12451
12452 2011-05-22  Bruno Haible  <bruno@clisp.org>
12453
12454         wcscmp: Move AC_LIBOBJ invocations to module description.
12455         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
12456         * modules/wcscmp (configure.ac): ... to here.
12457
12458 2011-05-22  Bruno Haible  <bruno@clisp.org>
12459
12460         wcschr: Move AC_LIBOBJ invocations to module description.
12461         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
12462         * modules/wcschr (configure.ac): ... to here.
12463
12464 2011-05-22  Bruno Haible  <bruno@clisp.org>
12465
12466         wcscat: Move AC_LIBOBJ invocations to module description.
12467         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
12468         * modules/wcscat (configure.ac): ... to here.
12469
12470 2011-05-22  Bruno Haible  <bruno@clisp.org>
12471
12472         wcscasecmp: Move AC_LIBOBJ invocations to module description.
12473         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
12474         here...
12475         * modules/wcscasecmp (configure.ac): ... to here.
12476
12477 2011-05-22  Bruno Haible  <bruno@clisp.org>
12478
12479         wcrtomb: Move AC_LIBOBJ invocations to module description.
12480         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
12481         invocations from here...
12482         * modules/wcrtomb (configure.ac): ... to here.
12483
12484 2011-05-22  Bruno Haible  <bruno@clisp.org>
12485
12486         wcpncpy: Move AC_LIBOBJ invocations to module description.
12487         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
12488         here...
12489         * modules/wcpncpy (configure.ac): ... to here.
12490
12491 2011-05-22  Bruno Haible  <bruno@clisp.org>
12492
12493         wcpcpy: Move AC_LIBOBJ invocations to module description.
12494         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
12495         * modules/wcpcpy (configure.ac): ... to here.
12496
12497 2011-05-22  Bruno Haible  <bruno@clisp.org>
12498
12499         waitpid: Move AC_LIBOBJ invocations to module description.
12500         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
12501         invocation from here...
12502         * modules/waitpid (configure.ac): ... to here.
12503
12504 2011-05-22  Bruno Haible  <bruno@clisp.org>
12505
12506         utimensat: Move AC_LIBOBJ invocations to module description.
12507         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
12508         here...
12509         * modules/utimensat (configure.ac): ... to here.
12510
12511 2011-05-22  Bruno Haible  <bruno@clisp.org>
12512
12513         usleep: Move AC_LIBOBJ invocations to module description.
12514         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
12515         here...
12516         * modules/usleep (configure.ac): ... to here.
12517
12518 2011-05-22  Bruno Haible  <bruno@clisp.org>
12519
12520         unlockpt: Move AC_LIBOBJ invocations to module description.
12521         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
12522         gl_PREREQ_UNLOCKPT invocations from here...
12523         * modules/unlockpt (configure.ac): ... to here.
12524
12525 2011-05-22  Bruno Haible  <bruno@clisp.org>
12526
12527         unlink: Respect rules for use of AC_LIBOBJ.
12528         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
12529         * modules/unlink (configure.ac): ... to here.
12530
12531 2011-05-22  Bruno Haible  <bruno@clisp.org>
12532
12533         uname: Move AC_LIBOBJ invocations to module description.
12534         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
12535         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
12536         here...
12537         * modules/uname (configure.ac): ... to here.
12538
12539 2011-05-22  Bruno Haible  <bruno@clisp.org>
12540
12541         ttyname_r: Move AC_LIBOBJ invocations to module description.
12542         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
12543         gl_PREREQ_TTYNAME_R invocations from here...
12544         * modules/ttyname_r (configure.ac): ... to here.
12545
12546 2011-05-22  Bruno Haible  <bruno@clisp.org>
12547
12548         tsearch: Move AC_LIBOBJ invocations to module description.
12549         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
12550         invocations from here...
12551         * modules/tsearch (configure.ac): ... to here.
12552
12553 2011-05-22  Bruno Haible  <bruno@clisp.org>
12554
12555         towctrans: Move AC_LIBOBJ invocations to module description.
12556         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
12557         AC_LIBOBJ invocation from here...
12558         * modules/towctrans (configure.ac): ... to here.
12559
12560 2011-05-22  Bruno Haible  <bruno@clisp.org>
12561
12562         tmpfile: Move AC_LIBOBJ invocations to module description.
12563         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
12564         invocations from here...
12565         * modules/tmpfile (configure.ac): ... to here.
12566
12567 2011-05-22  Bruno Haible  <bruno@clisp.org>
12568
12569         times: Move AC_LIBOBJ invocations to module description.
12570         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
12571         * modules/times (configure.ac): ... to here.
12572
12573 2011-05-22  Bruno Haible  <bruno@clisp.org>
12574
12575         time_r: Move AC_LIBOBJ invocations to module description.
12576         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
12577         invocations from here...
12578         * modules/time_r (configure.ac): ... to here.
12579
12580 2011-05-22  Bruno Haible  <bruno@clisp.org>
12581
12582         timegm: Move AC_LIBOBJ invocations to module description.
12583         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
12584         invocations from here...
12585         * modules/timegm (configure.ac): ... to here.
12586
12587 2011-05-22  Bruno Haible  <bruno@clisp.org>
12588
12589         tcgetsid: Move AC_LIBOBJ invocations to module description.
12590         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
12591         and gl_PREREQ_TCGETSID invocations from here...
12592         * modules/tcgetsid (configure.ac): ... to here.
12593         (Depends-on): Update conditions.
12594
12595 2011-05-22  Bruno Haible  <bruno@clisp.org>
12596
12597         symlinkat: Move AC_LIBOBJ invocations to module description.
12598         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
12599         here...
12600         * modules/symlinkat (configure.ac): ... to here.
12601
12602 2011-05-22  Bruno Haible  <bruno@clisp.org>
12603
12604         symlink: Move AC_LIBOBJ invocations to module description.
12605         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
12606         here...
12607         * modules/symlink (configure.ac): ... to here.
12608
12609 2011-05-22  Bruno Haible  <bruno@clisp.org>
12610
12611         strverscmp: Move AC_LIBOBJ invocations to module description.
12612         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
12613         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
12614         from here...
12615         * modules/strverscmp (configure.ac): ... to here.
12616
12617 2011-05-22  Bruno Haible  <bruno@clisp.org>
12618
12619         strtok_r: Move AC_LIBOBJ invocations to module description.
12620         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
12621         and gl_PREREQ_STRTOK_R invocations from here...
12622         * modules/strtok_r (configure.ac): ... to here.
12623         (Depends-on): Update conditions.
12624
12625 2011-05-22  Bruno Haible  <bruno@clisp.org>
12626
12627         strtoumax: Move AC_LIBOBJ invocations to module description.
12628         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
12629         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
12630         from here...
12631         * modules/strtoumax (configure.ac): ... to here.
12632
12633 2011-05-22  Bruno Haible  <bruno@clisp.org>
12634
12635         strtoimax: Move AC_LIBOBJ invocations to module description.
12636         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
12637         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
12638         from here...
12639         * modules/strtoimax (configure.ac): ... to here.
12640
12641 2011-05-22  Bruno Haible  <bruno@clisp.org>
12642
12643         strtoull: Move AC_LIBOBJ invocations to module description.
12644         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
12645         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
12646         from here...
12647         * modules/strtoull (configure.ac): ... to here.
12648
12649 2011-05-22  Bruno Haible  <bruno@clisp.org>
12650
12651         strtoll: Move AC_LIBOBJ invocations to module description.
12652         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
12653         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
12654         here...
12655         * modules/strtoll (configure.ac): ... to here.
12656
12657 2011-05-22  Bruno Haible  <bruno@clisp.org>
12658
12659         strtoul: Move AC_LIBOBJ invocations to module description.
12660         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
12661         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
12662         * modules/strtoul (configure.ac): ... to here.
12663
12664 2011-05-22  Bruno Haible  <bruno@clisp.org>
12665
12666         strtol: Move AC_LIBOBJ invocations to module description.
12667         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
12668         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
12669         * modules/strtol (configure.ac): ... to here.
12670
12671 2011-05-22  Bruno Haible  <bruno@clisp.org>
12672
12673         strtod: Move AC_LIBOBJ invocations to module description.
12674         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
12675         invocations from here...
12676         * modules/strtod (configure.ac): ... to here.
12677
12678 2011-05-22  Bruno Haible  <bruno@clisp.org>
12679
12680         strstr*: Move AC_LIBOBJ invocations to module description.
12681         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
12682         invocations from here...
12683         * modules/strstr-simple (configure.ac): ... to here.
12684         * modules/strstr (configure.ac): ... and here.
12685
12686 2011-05-22  Bruno Haible  <bruno@clisp.org>
12687
12688         strsignal: Move AC_LIBOBJ invocations to module description.
12689         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
12690         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
12691         * modules/strsignal (configure.ac): ... to here.
12692         (Depends-on): Update conditions.
12693
12694 2011-05-22  Bruno Haible  <bruno@clisp.org>
12695
12696         strsep: Move AC_LIBOBJ invocations to module description.
12697         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
12698         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
12699         here...
12700         * modules/strsep (configure.ac): ... to here.
12701
12702 2011-05-22  Bruno Haible  <bruno@clisp.org>
12703
12704         strptime: Move AC_LIBOBJ invocations to module description.
12705         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
12706         gl_PREREQ_STRPTIME invocations from here...
12707         * modules/strptime (configure.ac): ... to here.
12708
12709 2011-05-22  Bruno Haible  <bruno@clisp.org>
12710
12711         strpbrk: Move AC_LIBOBJ invocations to module description.
12712         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
12713         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
12714         here...
12715         * modules/strpbrk (configure.ac): ... to here.
12716
12717 2011-05-22  Bruno Haible  <bruno@clisp.org>
12718
12719         strnlen: Move AC_LIBOBJ invocations to module description.
12720         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
12721         invocations from here...
12722         * modules/strnlen (configure.ac): ... to here.
12723
12724 2011-05-22  Bruno Haible  <bruno@clisp.org>
12725
12726         strndup: Move AC_LIBOBJ invocations to module description.
12727         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
12728         invocations from here...
12729         * modules/strndup (configure.ac): ... to here.
12730         (Depends-on): Update conditions.
12731
12732 2011-05-22  Bruno Haible  <bruno@clisp.org>
12733
12734         strncat: Move AC_LIBOBJ invocations to module description.
12735         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
12736         invocations from here...
12737         * modules/strncat (configure.ac): ... to here.
12738
12739 2011-05-22  Bruno Haible  <bruno@clisp.org>
12740
12741         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
12742         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
12743         invocations from here...
12744         * modules/strdup (configure.ac): ... to here.
12745         * modules/strdup-posix (configure.ac): ... and here.
12746
12747 2011-05-22  Bruno Haible  <bruno@clisp.org>
12748
12749         strcspn: Move AC_LIBOBJ invocations to module description.
12750         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
12751         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
12752         here...
12753         * modules/strcspn (configure.ac): ... to here.
12754
12755 2011-05-22  Bruno Haible  <bruno@clisp.org>
12756
12757         strchrnul: Move AC_LIBOBJ invocations to module description.
12758         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
12759         gl_PREREQ_STRCHRNUL invocations from here...
12760         * modules/strchrnul (configure.ac): ... to here.
12761
12762 2011-05-22  Bruno Haible  <bruno@clisp.org>
12763
12764         strcasestr*: Move AC_LIBOBJ invocations to module description.
12765         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
12766         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
12767         * modules/strcasestr-simple (configure.ac): ... to here.
12768         * modules/strcasestr (configure.ac): ... and here.
12769
12770 2011-05-22  Bruno Haible  <bruno@clisp.org>
12771
12772         strcase: Move AC_LIBOBJ invocations to module description.
12773         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
12774         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
12775         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
12776         gl_PREREQ_STRNCASECMP invocations from here...
12777         * modules/strcase (configure.ac): ... to here.
12778
12779 2011-05-22  Bruno Haible  <bruno@clisp.org>
12780
12781         stpncpy: Move AC_LIBOBJ invocations to module description.
12782         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
12783         here...
12784         * modules/stpncpy (configure.ac): ... to here.
12785
12786 2011-05-22  Bruno Haible  <bruno@clisp.org>
12787
12788         stpcpy: Move AC_LIBOBJ invocations to module description.
12789         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
12790         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
12791         here...
12792         * modules/stpcpy (configure.ac): ... to here.
12793
12794 2011-05-21  Bruno Haible  <bruno@clisp.org>
12795
12796         stat: Move AC_LIBOBJ invocations to module description.
12797         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
12798         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
12799         here...
12800         * modules/stat (configure.ac): ... to here.
12801
12802 2011-05-21  Bruno Haible  <bruno@clisp.org>
12803
12804         sleep: Move AC_LIBOBJ invocations to module description.
12805         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
12806         * modules/sleep (configure.ac): ... to here.
12807
12808 2011-05-21  Bruno Haible  <bruno@clisp.org>
12809
12810         signbit: Move AC_LIBOBJ invocations to module description.
12811         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
12812         * modules/signbit (configure.ac): ... to here.
12813
12814 2011-05-21  Bruno Haible  <bruno@clisp.org>
12815
12816         sigprocmask: Move AC_LIBOBJ invocations to module description.
12817         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
12818         gl_PREREQ_SIGPROMASK invocations from here...
12819         * modules/sigprocmask (configure.ac): ... to here.
12820
12821 2011-05-21  Bruno Haible  <bruno@clisp.org>
12822
12823         sigaction: Move AC_LIBOBJ invocations to module description.
12824         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
12825         gl_PREREQ_SIGACTION invocations from here...
12826         * modules/sigaction (configure.ac): ... to here.
12827
12828 2011-05-21  Bruno Haible  <bruno@clisp.org>
12829
12830         sig2str: Move AC_LIBOBJ invocations to module description.
12831         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
12832         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
12833         here...
12834         * modules/sig2str (configure.ac): ... to here.
12835
12836 2011-05-21  Bruno Haible  <bruno@clisp.org>
12837
12838         setlocale: Move AC_LIBOBJ invocations to module description.
12839         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
12840         gl_PREREQ_SETLOCALE invocations from here...
12841         * modules/setlocale (configure.ac): ... to here.
12842
12843 2011-05-21  Bruno Haible  <bruno@clisp.org>
12844
12845         unsetenv: Move AC_LIBOBJ invocations to module description.
12846         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
12847         and gl_PREREQ_UNSETENV invocations from here...
12848         * modules/unsetenv (configure.ac): ... to here.
12849         (Depends-on): Update.
12850
12851 2011-05-21  Bruno Haible  <bruno@clisp.org>
12852
12853         setenv: Move AC_LIBOBJ invocations to module description.
12854         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
12855         here...
12856         * modules/setenv (configure.ac): ... to here.
12857
12858 2011-05-21  Bruno Haible  <bruno@clisp.org>
12859
12860         selinux-h: Move AC_LIBOBJ invocations to module description.
12861         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
12862         AC_LIBOBJ invocation from here...
12863         * modules/selinux-h (configure.ac): ... to here.
12864
12865 2011-05-21  Bruno Haible  <bruno@clisp.org>
12866
12867         select: Respect rules for use of AC_LIBOBJ.
12868         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
12869         here...
12870         * modules/select (configure.ac): ... to here.
12871
12872 2011-05-21  Bruno Haible  <bruno@clisp.org>
12873
12874         scandir: Move AC_LIBOBJ invocations to module description.
12875         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
12876         invocations from here...
12877         * modules/scandir (configure.ac): ... to here.
12878
12879 2011-05-21  Bruno Haible  <bruno@clisp.org>
12880
12881         rpmatch: Move AC_LIBOBJ invocations to module description.
12882         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
12883         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
12884         here...
12885         * modules/rpmatch (configure.ac): ... to here.
12886
12887 2011-05-21  Bruno Haible  <bruno@clisp.org>
12888
12889         rmdir: Respect rules for use of AC_LIBOBJ.
12890         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
12891         * modules/rmdir (configure.ac): ... to here.
12892
12893 2011-05-21  Bruno Haible  <bruno@clisp.org>
12894
12895         renameat: Move AC_LIBOBJ invocations to module description.
12896         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
12897         here...
12898         * modules/renameat (configure.ac): ... to here.
12899
12900 2011-05-21  Bruno Haible  <bruno@clisp.org>
12901
12902         rename: Respect rules for use of AC_LIBOBJ.
12903         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
12904         here...
12905         * modules/rename (configure.ac): ... to here.
12906
12907 2011-05-21  Bruno Haible  <bruno@clisp.org>
12908
12909         remove: Move AC_LIBOBJ invocations to module description.
12910         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
12911         here...
12912         * modules/remove (configure.ac): ... to here.
12913
12914 2011-05-21  Bruno Haible  <bruno@clisp.org>
12915
12916         relocatable-lib: Move AC_LIBOBJ invocations to module description.
12917         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
12918         macro.
12919         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
12920         * modules/relocatable-lib (configure.ac): ... to here.
12921         * modules/relocatable-prog-wrapper (configure.ac): Invoke
12922         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
12923
12924 2011-05-21  Bruno Haible  <bruno@clisp.org>
12925
12926         relocatable-prog: Move AC_LIBOBJ invocations to module description.
12927         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
12928         here...
12929         * modules/relocatable-prog (configure.ac): ... to here.
12930
12931 2011-05-21  Bruno Haible  <bruno@clisp.org>
12932
12933         regex: Move AC_LIBOBJ invocations to module description.
12934         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
12935         invocations from here...
12936         * modules/regex (configure.ac): ... to here.
12937
12938 2011-05-21  Bruno Haible  <bruno@clisp.org>
12939
12940         realloc-*: Move AC_LIBOBJ invocations to module description.
12941         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
12942         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
12943         AC_LIBOBJ invocations from here...
12944         * modules/realloc-gnu (configure.ac): ... to here.
12945         * modules/realloc-posix (configure.ac): ... and here.
12946
12947 2011-05-21  Bruno Haible  <bruno@clisp.org>
12948
12949         readutmp: Move AC_LIBOBJ invocations to module description.
12950         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
12951         * modules/readutmp (configure.ac): ... to here.
12952
12953 2011-05-21  Bruno Haible  <bruno@clisp.org>
12954
12955         readlinkat: Move AC_LIBOBJ invocations to module description.
12956         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
12957         here...
12958         * modules/readlinkat (configure.ac): ... to here.
12959
12960 2011-05-21  Bruno Haible  <bruno@clisp.org>
12961
12962         readlink: Move AC_LIBOBJ invocations to module description.
12963         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
12964         gl_PREREQ_READLINK invocations from here...
12965         * modules/readlink (configure.ac): ... to here.
12966
12967 2011-05-21  Bruno Haible  <bruno@clisp.org>
12968
12969         readline: Move AC_LIBOBJ invocations to module description.
12970         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
12971         gl_PREREQ_READLINE invocations from here...
12972         * modules/readline (configure.ac): ... to here.
12973
12974 2011-05-21  Bruno Haible  <bruno@clisp.org>
12975
12976         read: Move AC_LIBOBJ invocations to module description.
12977         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
12978         * modules/read (configure.ac): ... to here.
12979
12980 2011-05-21  Bruno Haible  <bruno@clisp.org>
12981
12982         rawmemchr: Move AC_LIBOBJ invocations to module description.
12983         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
12984         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
12985         from here...
12986         * modules/rawmemchr (configure.ac): ... to here.
12987
12988 2011-05-21  Bruno Haible  <bruno@clisp.org>
12989
12990         random_r: Move AC_LIBOBJ invocations to module description.
12991         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
12992         gl_PREREQ_RANDOM_R invocations from here...
12993         * modules/random_r (configure.ac): ... to here.
12994
12995 2011-05-21  Bruno Haible  <bruno@clisp.org>
12996
12997         pwrite: Move AC_LIBOBJ invocations to module description.
12998         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
12999         * modules/pwrite (configure.ac): ... to here.
13000
13001 2011-05-21  Bruno Haible  <bruno@clisp.org>
13002
13003         putenv: Move AC_LIBOBJ invocations to module description.
13004         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
13005         * modules/putenv (configure.ac): ... to here.
13006
13007 2011-05-21  Bruno Haible  <bruno@clisp.org>
13008
13009         login_tty: Move AC_LIBOBJ invocations to module description.
13010         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
13011         * modules/login_tty (configure.ac): ... to here.
13012
13013 2011-05-21  Bruno Haible  <bruno@clisp.org>
13014
13015         openpty: Move AC_LIBOBJ invocations to module description.
13016         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
13017         * modules/openpty (configure.ac): ... to here.
13018
13019 2011-05-21  Bruno Haible  <bruno@clisp.org>
13020
13021         forkpty: Move AC_LIBOBJ invocations to module description.
13022         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
13023         * modules/forkpty (configure.ac): ... to here.
13024
13025 2011-05-21  Bruno Haible  <bruno@clisp.org>
13026
13027         ptsname: Move AC_LIBOBJ invocations to module description.
13028         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
13029         invocations from here...
13030         * modules/ptsname (configure.ac): ... to here.
13031
13032 2011-05-21  Bruno Haible  <bruno@clisp.org>
13033
13034         pread: Move AC_LIBOBJ invocations to module description.
13035         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
13036         * modules/pread (configure.ac): ... to here.
13037
13038 2011-05-21  Bruno Haible  <bruno@clisp.org>
13039
13040         posix_spawn*: Move AC_LIBOBJ invocations to module description.
13041         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
13042         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
13043         * modules/posix_spawn (configure.ac): ... to here.
13044         * modules/posix_spawnp (configure.ac): ... and here.
13045
13046 2011-05-21  Bruno Haible  <bruno@clisp.org>
13047
13048         popen: Move AC_LIBOBJ invocations to module description.
13049         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
13050         invocations from here...
13051         * modules/popen (configure.ac): ... to here.
13052
13053 2011-05-21  Bruno Haible  <bruno@clisp.org>
13054
13055         poll: Move AC_LIBOBJ invocations to module description.
13056         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
13057         invocations from here...
13058         * modules/poll (configure.ac): ... to here.
13059
13060 2011-05-21  Bruno Haible  <bruno@clisp.org>
13061
13062         pipe-posix: Move AC_LIBOBJ invocations to module description.
13063         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
13064         * modules/pipe-posix (configure.ac): ... to here.
13065
13066 2011-05-21  Bruno Haible  <bruno@clisp.org>
13067
13068         openat: Respect rules for use of AC_LIBOBJ.
13069         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
13070         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
13071         * modules/openat (configure.ac): ... to here.
13072
13073 2011-05-21  Bruno Haible  <bruno@clisp.org>
13074
13075         obstack-printf*: Move AC_LIBOBJ invocations to module description.
13076         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
13077         invocation from here...
13078         * modules/obstack-printf (configure.ac): ... to here.
13079         * modules/obstack-printf-posix (configure.ac): ... and here.
13080
13081 2011-05-21  Bruno Haible  <bruno@clisp.org>
13082
13083         nl_langinfo: Move AC_LIBOBJ invocations to module description.
13084         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
13085         from here...
13086         * modules/nl_langinfo (configure.ac): ... to here.
13087
13088 2011-05-21  Bruno Haible  <bruno@clisp.org>
13089
13090         nanosleep: Move AC_LIBOBJ invocations to module description.
13091         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
13092         gl_PREREQ_NANOSLEEP invocations from here...
13093         * modules/nanosleep (configure.ac): ... to here.
13094
13095 2011-05-21  Bruno Haible  <bruno@clisp.org>
13096
13097         mountlist: Move AC_LIBOBJ invocations to module description.
13098         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
13099         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
13100         * modules/mountlist (configure.ac): ... to here.
13101
13102 2011-05-21  Bruno Haible  <bruno@clisp.org>
13103
13104         mktime: Respect rules for use of AC_LIBOBJ.
13105         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
13106         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
13107         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
13108         (gl_FUNC_MKTIME_INTERNAL): ... and here...
13109         * modules/mktime (configure.ac): ... to here.
13110         * modules/mktime-internal (configure.ac): ... and here.
13111         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
13112
13113 2011-05-21  Bruno Haible  <bruno@clisp.org>
13114
13115         mkstemps: Move AC_LIBOBJ invocations to module description.
13116         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
13117         here...
13118         * modules/mkstemps (configure.ac): ... to here.
13119
13120 2011-05-21  Bruno Haible  <bruno@clisp.org>
13121
13122         mkstemp: Move AC_LIBOBJ invocations to module description.
13123         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
13124         gl_PREREQ_MKSTEMP invocations from here...
13125         * modules/mkstemp (configure.ac): ... to here.
13126
13127 2011-05-21  Bruno Haible  <bruno@clisp.org>
13128
13129         mkostemps: Move AC_LIBOBJ invocations to module description.
13130         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
13131         here...
13132         * modules/mkostemps (configure.ac): ... to here.
13133
13134 2011-05-21  Bruno Haible  <bruno@clisp.org>
13135
13136         mkostemp: Move AC_LIBOBJ invocations to module description.
13137         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
13138         gl_PREREQ_MKOSTEMP invocations from here...
13139         * modules/mkostemp (configure.ac): ... to here.
13140
13141 2011-05-21  Bruno Haible  <bruno@clisp.org>
13142
13143         mknod: Move AC_LIBOBJ invocations to module description.
13144         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
13145         * modules/mknod (configure.ac): ... to here.
13146
13147 2011-05-21  Bruno Haible  <bruno@clisp.org>
13148
13149         mkfifoat: Move AC_LIBOBJ invocations to module description.
13150         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
13151         here...
13152         * modules/mkfifoat (configure.ac): ... to here.
13153
13154 2011-05-21  Bruno Haible  <bruno@clisp.org>
13155
13156         mkfifo: Respect rules for use of AC_LIBOBJ.
13157         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
13158         here...
13159         * modules/mkfifo (configure.ac): ... to here.
13160
13161 2011-05-21  Bruno Haible  <bruno@clisp.org>
13162
13163         mkdtemp: Move AC_LIBOBJ invocations to module description.
13164         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
13165         invocations from here...
13166         * modules/mkdtemp (configure.ac): ... to here.
13167
13168 2011-05-21  Bruno Haible  <bruno@clisp.org>
13169
13170         mkdir: Move AC_LIBOBJ invocations to module description.
13171         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
13172         * modules/mkdir (configure.ac): ... to here.
13173
13174 2011-05-21  Bruno Haible  <bruno@clisp.org>
13175
13176         memset: Move AC_LIBOBJ invocations to module description.
13177         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
13178         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
13179         here...
13180         * modules/memset (configure.ac): ... to here.
13181
13182 2011-05-21  Bruno Haible  <bruno@clisp.org>
13183
13184         memrchr: Move AC_LIBOBJ invocations to module description.
13185         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
13186         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
13187         here...
13188         * modules/memrchr (configure.ac): ... to here.
13189
13190 2011-05-21  Bruno Haible  <bruno@clisp.org>
13191
13192         mempcpy: Move AC_LIBOBJ invocations to module description.
13193         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
13194         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
13195         here...
13196         * modules/mempcpy (configure.ac): ... to here.
13197
13198 2011-05-21  Bruno Haible  <bruno@clisp.org>
13199
13200         memmove: Move AC_LIBOBJ invocations to module description.
13201         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
13202         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
13203         here...
13204         * modules/memmove (configure.ac): ... to here.
13205
13206 2011-05-21  Bruno Haible  <bruno@clisp.org>
13207
13208         memmem*: Move AC_LIBOBJ invocations to module description.
13209         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
13210         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
13211         here...
13212         (gl_FUNC_MEMMEM): ... and here...
13213         * modules/memmem-simple (configure.ac): ... to here.
13214         * modules/memmem (configure.ac): ... and here.
13215
13216 2011-05-21  Bruno Haible  <bruno@clisp.org>
13217
13218         memcpy: Move AC_LIBOBJ invocations to module description.
13219         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
13220         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
13221         here...
13222         * modules/memcpy (configure.ac): ... to here.
13223
13224 2011-05-21  Bruno Haible  <bruno@clisp.org>
13225
13226         memcmp: Simplify autoconf macro.
13227         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
13228         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
13229         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
13230
13231 2011-05-21  Bruno Haible  <bruno@clisp.org>
13232
13233         memcmp: Move AC_LIBOBJ invocations to module description.
13234         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
13235         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
13236         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
13237         * modules/memcmp (configure.ac): ... to here.
13238         (Depends-on): Update conditions.
13239
13240 2011-05-21  Bruno Haible  <bruno@clisp.org>
13241
13242         memchr: Respect rules for use of AC_LIBOBJ.
13243         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
13244         invocations from here...
13245         * modules/memchr (configure.ac): ... to here.
13246
13247 2011-05-21  Bruno Haible  <bruno@clisp.org>
13248
13249         mbtowc: Move AC_LIBOBJ invocations to module description.
13250         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
13251         invocations from here...
13252         * modules/mbtowc (configure.ac): ... to here.
13253
13254 2011-05-21  Bruno Haible  <bruno@clisp.org>
13255
13256         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
13257         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
13258         gl_PREREQ_MBSRTOWCS invocations from here...
13259         * modules/mbsrtowcs (configure.ac): ... to here.
13260
13261 2011-05-21  Bruno Haible  <bruno@clisp.org>
13262
13263         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
13264         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
13265         gl_PREREQ_MBSNRTOWCS invocations from here...
13266         * modules/mbsnrtowcs (configure.ac): ... to here.
13267
13268 2011-05-21  Bruno Haible  <bruno@clisp.org>
13269
13270         mbsinit: Move AC_LIBOBJ invocations to module description.
13271         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
13272         invocations from here...
13273         * modules/mbsinit (configure.ac): ... to here.
13274
13275 2011-05-21  Bruno Haible  <bruno@clisp.org>
13276
13277         mbrlen: Move AC_LIBOBJ invocations to module description.
13278         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
13279         invocations from here...
13280         * modules/mbrlen (configure.ac): ... to here.
13281
13282 2011-05-21  Bruno Haible  <bruno@clisp.org>
13283
13284         mbrtowc: Respect rules for use of AC_LIBOBJ.
13285         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
13286         invocations from here...
13287         * modules/mbrtowc (configure.ac): ... to here.
13288
13289 2011-05-21  Bruno Haible  <bruno@clisp.org>
13290
13291         malloc-*: Move AC_LIBOBJ invocations to module description.
13292         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
13293         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
13294         AC_LIBOBJ invocations from here...
13295         * modules/malloc-gnu (configure.ac): ... to here.
13296         * modules/malloc-posix (configure.ac): ... and here.
13297
13298 2011-05-21  Bruno Haible  <bruno@clisp.org>
13299
13300         lstat, openat: Respect rules for use of AC_LIBOBJ.
13301         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
13302         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
13303         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
13304         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
13305         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
13306         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
13307         here.
13308         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
13309
13310 2011-05-21  Bruno Haible  <bruno@clisp.org>
13311
13312         lseek: Move AC_LIBOBJ invocations to module description.
13313         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
13314         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
13315         * modules/lseek (configure.ac): ... to here.
13316
13317 2011-05-21  Bruno Haible  <bruno@clisp.org>
13318
13319         linkat: Move AC_LIBOBJ invocations to module description.
13320         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
13321         here...
13322         * modules/linkat (configure.ac): ... to here.
13323
13324 2011-05-21  Bruno Haible  <bruno@clisp.org>
13325
13326         link: Respect rules for use of AC_LIBOBJ.
13327         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
13328         * modules/link (configure.ac): ... to here.
13329
13330 2011-05-21  Bruno Haible  <bruno@clisp.org>
13331
13332         lchown: Move AC_LIBOBJ invocations to module description.
13333         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
13334         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
13335         * modules/lchown (configure.ac): ... to here.
13336
13337 2011-05-21  Bruno Haible  <bruno@clisp.org>
13338
13339         iswctype: Move AC_LIBOBJ invocations to module description.
13340         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
13341         here...
13342         * modules/iswctype (configure.ac): ... to here.
13343
13344 2011-05-21  Bruno Haible  <bruno@clisp.org>
13345
13346         iswblank: Move AC_LIBOBJ invocations to module description.
13347         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
13348         here...
13349         * modules/iswblank (configure.ac): ... to here.
13350
13351 2011-05-21  Bruno Haible  <bruno@clisp.org>
13352
13353         atanl: Move AC_LIBOBJ invocations to module description.
13354         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
13355         * modules/atanl (configure.ac): ... to here.
13356
13357 2011-05-21  Bruno Haible  <bruno@clisp.org>
13358
13359         acosl: Move AC_LIBOBJ invocations to module description.
13360         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
13361         * modules/acosl (configure.ac): ... to here.
13362
13363 2011-05-21  Bruno Haible  <bruno@clisp.org>
13364
13365         asinl: Respect rules for use of AC_LIBOBJ.
13366         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
13367         * modules/asinl (configure.ac): ... to here.
13368
13369 2011-05-21  Bruno Haible  <bruno@clisp.org>
13370
13371         tanl: Move AC_LIBOBJ invocations to module description.
13372         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
13373         * modules/tanl (configure.ac): ... to here.
13374
13375 2011-05-21  Bruno Haible  <bruno@clisp.org>
13376
13377         cosl: Move AC_LIBOBJ invocations to module description.
13378         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
13379         * modules/cosl (configure.ac): ... to here.
13380
13381 2011-05-21  Bruno Haible  <bruno@clisp.org>
13382
13383         sinl: Move AC_LIBOBJ invocations to module description.
13384         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
13385         * modules/sinl (configure.ac): ... to here.
13386
13387 2011-05-21  Bruno Haible  <bruno@clisp.org>
13388
13389         logl: Move AC_LIBOBJ invocations to module description.
13390         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
13391         * modules/logl (configure.ac): ... to here.
13392
13393 2011-05-21  Bruno Haible  <bruno@clisp.org>
13394
13395         expl: Move AC_LIBOBJ invocations to module description.
13396         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
13397         * modules/expl (configure.ac): ... to here.
13398
13399 2011-05-21  Bruno Haible  <bruno@clisp.org>
13400
13401         roundl: Move AC_LIBOBJ invocations to module description.
13402         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
13403         * modules/roundl (configure.ac): ... to here.
13404
13405 2011-05-21  Bruno Haible  <bruno@clisp.org>
13406
13407         round: Move AC_LIBOBJ invocations to module description.
13408         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
13409         * modules/round (configure.ac): ... to here.
13410
13411 2011-05-21  Bruno Haible  <bruno@clisp.org>
13412
13413         roundf: Move AC_LIBOBJ invocations to module description.
13414         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
13415         * modules/roundf (configure.ac): ... to here.
13416
13417 2011-05-21  Bruno Haible  <bruno@clisp.org>
13418
13419         truncl: Move AC_LIBOBJ invocations to module description.
13420         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
13421         * modules/truncl (configure.ac): ... to here.
13422
13423 2011-05-21  Bruno Haible  <bruno@clisp.org>
13424
13425         trunc: Move AC_LIBOBJ invocations to module description.
13426         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
13427         * modules/trunc (configure.ac): ... to here.
13428
13429 2011-05-21  Bruno Haible  <bruno@clisp.org>
13430
13431         truncf: Move AC_LIBOBJ invocations to module description.
13432         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
13433         * modules/truncf (configure.ac): ... to here.
13434
13435 2011-05-21  Bruno Haible  <bruno@clisp.org>
13436
13437         ceill: Move AC_LIBOBJ invocations to module description.
13438         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
13439         * modules/ceill (configure.ac): ... to here.
13440
13441 2011-05-21  Bruno Haible  <bruno@clisp.org>
13442
13443         ceil: Move AC_LIBOBJ invocations to module description.
13444         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
13445         * modules/ceil (configure.ac): ... to here.
13446
13447 2011-05-21  Bruno Haible  <bruno@clisp.org>
13448
13449         ceilf: Move AC_LIBOBJ invocations to module description.
13450         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
13451         * modules/ceilf (configure.ac): ... to here.
13452
13453 2011-05-21  Bruno Haible  <bruno@clisp.org>
13454
13455         floorl: Respect rules for use of AC_LIBOBJ.
13456         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
13457         * modules/floorl (configure.ac): ... to here.
13458
13459 2011-05-21  Bruno Haible  <bruno@clisp.org>
13460
13461         floor: Respect rules for use of AC_LIBOBJ.
13462         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
13463         * modules/floor (configure.ac): ... to here.
13464
13465 2011-05-21  Bruno Haible  <bruno@clisp.org>
13466
13467         floorf: Move AC_LIBOBJ invocations to module description.
13468         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
13469         * modules/floorf (configure.ac): ... to here.
13470
13471 2011-05-20  Bruno Haible  <bruno@clisp.org>
13472
13473         sqrtl: Respect rules for use of AC_LIBOBJ.
13474         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
13475         * modules/sqrtl (configure.ac): ... to here.
13476
13477 2011-05-20  Bruno Haible  <bruno@clisp.org>
13478
13479         ldexpl: Respect rules for use of AC_LIBOBJ.
13480         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
13481         * modules/ldexpl (configure.ac): ... to here.
13482
13483 2011-05-20  Bruno Haible  <bruno@clisp.org>
13484
13485         frexpl*: Respect rules for use of AC_LIBOBJ.
13486         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
13487         invocation from here...
13488         * modules/frexpl (configure.ac): ... to here.
13489         * modules/frexpl-nolibm (configure.ac): ... and here.
13490
13491 2011-05-20  Bruno Haible  <bruno@clisp.org>
13492
13493         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
13494         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
13495         invocation from here...
13496         * modules/frexp (configure.ac): ... to here.
13497         * modules/frexp-nolibm (configure.ac): ... and here.
13498
13499 2011-05-20  Bruno Haible  <bruno@clisp.org>
13500
13501         isnan: Respect rules for use of AC_LIBOBJ.
13502         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
13503         invocations here.
13504         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
13505         REPLACE_ISNAN.
13506         * modules/isnand (configure.ac): Likewise.
13507         * modules/isnanl (configure.ac): Likewise.
13508
13509 2011-05-20  Bruno Haible  <bruno@clisp.org>
13510
13511         isnanl*: Respect rules for use of AC_LIBOBJ.
13512         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
13513         invocation from here...
13514         * modules/isnanl (configure.ac): ... to here.
13515         * modules/isnanl-nolibm (configure.ac): ... and here.
13516
13517 2011-05-20  Bruno Haible  <bruno@clisp.org>
13518
13519         isnand*: Move AC_LIBOBJ invocations to module description.
13520         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
13521         invocation from here...
13522         * modules/isnand (configure.ac): ... to here.
13523         * modules/isnand-nolibm (configure.ac): ... and here.
13524
13525 2011-05-20  Bruno Haible  <bruno@clisp.org>
13526
13527         isnanf*: Move AC_LIBOBJ invocations to module description.
13528         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
13529         invocation from here...
13530         * modules/isnanf (configure.ac): ... to here.
13531         * modules/isnanf-nolibm (configure.ac): ... and here.
13532
13533 2011-05-20  Bruno Haible  <bruno@clisp.org>
13534
13535         isnan*: Separate the AC_LIBOBJ invocations.
13536         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
13537         AC_LIBOBJ invocation.
13538         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
13539         here.
13540         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
13541         AC_LIBOBJ invocation.
13542         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
13543         here.
13544         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
13545         AC_LIBOBJ invocation.
13546         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
13547         here.
13548         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
13549
13550 2011-05-08  Bruno Haible  <bruno@clisp.org>
13551
13552         isinf: Move AC_LIBOBJ invocations to module description.
13553         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
13554         * modules/isinf (configure.ac): ... to here.
13555
13556 2011-05-08  Bruno Haible  <bruno@clisp.org>
13557
13558         isfinite: Move AC_LIBOBJ invocations to module description.
13559         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
13560         * modules/isfinite (configure.ac): ... to here.
13561
13562 2011-05-08  Bruno Haible  <bruno@clisp.org>
13563
13564         isblank: Move AC_LIBOBJ invocations to module description.
13565         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
13566         here...
13567         * modules/isblank (configure.ac): ... to here.
13568
13569 2011-05-08  Bruno Haible  <bruno@clisp.org>
13570
13571         isapipe: Move AC_LIBOBJ invocations to module description.
13572         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
13573         gl_PREREQ_ISAPIPE invocations from here...
13574         * modules/isapipe (configure.ac): ... to here.
13575         (Depends-on): Update condition.
13576
13577 2011-05-08  Bruno Haible  <bruno@clisp.org>
13578
13579         ioctl: Move AC_LIBOBJ invocations to module description.
13580         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
13581         invocations from here...
13582         * modules/ioctl (configure.ac): ... to here.
13583         (Depends-on): Update condition.
13584
13585 2011-05-08  Bruno Haible  <bruno@clisp.org>
13586
13587         imaxdiv: Move AC_LIBOBJ invocations to module description.
13588         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
13589         invocations from here...
13590         * modules/imaxdiv (configure.ac): ... to here.
13591
13592 2011-05-08  Bruno Haible  <bruno@clisp.org>
13593
13594         imaxabs: Move AC_LIBOBJ invocations to module description.
13595         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
13596         invocations from here...
13597         * modules/imaxabs (configure.ac): ... to here.
13598
13599 2011-05-08  Bruno Haible  <bruno@clisp.org>
13600
13601         getaddrinfo: Move AC_LIBOBJ invocations to module description.
13602         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
13603         AC_LIBOBJ invocations from here...
13604         * modules/getaddrinfo (configure.ac): ... to here.
13605         (Depends-on): Add conditions.
13606
13607 2011-05-08  Bruno Haible  <bruno@clisp.org>
13608
13609         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
13610         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
13611         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
13612         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
13613         (gl_PREREQ_INET_PTON): ... from here.
13614         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
13615         gl_PREREQ_INET_PTON here.
13616         (Depends-on): Update condition.
13617
13618 2011-05-08  Bruno Haible  <bruno@clisp.org>
13619
13620         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
13621         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
13622         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
13623         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
13624         (gl_PREREQ_INET_NTOP): ... from here.
13625         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
13626         gl_PREREQ_INET_NTOP here.
13627         (Depends-on): Update condition.
13628
13629 2011-05-08  Bruno Haible  <bruno@clisp.org>
13630
13631         iconv_open: Move AC_LIBOBJ invocations to module description.
13632         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
13633         AC_LIBOBJ invocations from here...
13634         * modules/iconv_open (configure.ac): ... to here.
13635
13636 2011-05-08  Bruno Haible  <bruno@clisp.org>
13637
13638         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
13639         If module 'iconv_open' is among the main modules and module
13640         'iconv_open-utf' is among the tests dependencies, then
13641         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
13642         return the special iconv_t values. Therefore iconv() and iconv_close()
13643         must support these special iconv_t values, already in lib, not only in
13644         tests.
13645         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
13646         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
13647         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
13648         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
13649         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
13650         (Depends-on): Add the dependencies of iconv_open-utf.
13651         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
13652         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
13653         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
13654
13655 2011-05-08  Bruno Haible  <bruno@clisp.org>
13656
13657         group-member: Move AC_LIBOBJ invocations to module description.
13658         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
13659         gl_PREREQ_GROUP_MEMBER invocations from here...
13660         * modules/group-member (configure.ac): ... to here.
13661
13662 2011-05-08  Bruno Haible  <bruno@clisp.org>
13663
13664         grantpt: Move AC_LIBOBJ invocations to module description.
13665         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
13666         invocations from here...
13667         * modules/grantpt (configure.ac): ... to here.
13668
13669 2011-05-08  Bruno Haible  <bruno@clisp.org>
13670
13671         glob: Move AC_LIBOBJ invocations to module description.
13672         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
13673         from here...
13674         * modules/glob (configure.ac): ... to here.
13675
13676 2011-05-08  Bruno Haible  <bruno@clisp.org>
13677
13678         getusershell: Move AC_LIBOBJ invocations to module description.
13679         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
13680         Move AC_LIBOBJ invocation from here...
13681         * modules/getusershell (configure.ac): ... to here.
13682         (Depends-on): Update condition.
13683
13684 2011-05-08  Bruno Haible  <bruno@clisp.org>
13685
13686         gettimeofday: Move AC_LIBOBJ invocations to module description.
13687         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
13688         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
13689         gl_PREREQ_GETTIMEOFDAY invocations from here...
13690         * modules/gettimeofday (configure.ac): ... to here.
13691
13692 2011-05-08  Bruno Haible  <bruno@clisp.org>
13693
13694         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
13695         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
13696         just gl_FUNC_TZSET.
13697         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
13698         (gl_FUNC_TZSET_CLOBBER): Remove actions.
13699         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
13700         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
13701
13702 2011-05-08  Bruno Haible  <bruno@clisp.org>
13703
13704         getsubopt: Move AC_LIBOBJ invocations to module description.
13705         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
13706         gl_PREREQ_GETSUBOPT invocations from here...
13707         * modules/getsubopt (configure.ac): ... to here.
13708
13709 2011-05-08  Bruno Haible  <bruno@clisp.org>
13710
13711         getpass-gnu: Move AC_LIBOBJ invocations to module description.
13712         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
13713         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
13714         * modules/getpass-gnu (configure.ac): ... to here.
13715
13716 2011-05-08  Bruno Haible  <bruno@clisp.org>
13717
13718         getpass: Move AC_LIBOBJ invocations to module description.
13719         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
13720         gl_PREREQ_GETPASS invocations from here...
13721         * modules/getpass (configure.ac): ... to here.
13722
13723 2011-05-08  Bruno Haible  <bruno@clisp.org>
13724
13725         getpagesize: Move AC_LIBOBJ invocations to module description.
13726         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
13727         from here...
13728         * modules/getpagesize (configure.ac): ... to here.
13729
13730 2011-05-08  Bruno Haible  <bruno@clisp.org>
13731
13732         getopt: Move AC_LIBOBJ invocations to module description.
13733         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
13734         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
13735         invocations from here...
13736         * modules/getopt-gnu (configure.ac): ... to here.
13737         * modules/getopt-posix (configure.ac): ... and here.
13738         (Depends-on): Update condition.
13739
13740 2011-05-08  Bruno Haible  <bruno@clisp.org>
13741
13742         getopt, argp: Respect rules for use of AC_LIBOBJ.
13743         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
13744         (gl_REPLACE_GETOPT_ALWAYS): New macro.
13745         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
13746         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
13747
13748 2011-05-08  Bruno Haible  <bruno@clisp.org>
13749
13750         getlogin_r: Move AC_LIBOBJ invocations to module description.
13751         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
13752         gl_PREREQ_GETLOGIN_R invocations from here...
13753         * modules/getlogin_r (configure.ac): ... to here.
13754
13755 2011-05-08  Bruno Haible  <bruno@clisp.org>
13756
13757         getlogin: Move AC_LIBOBJ invocations to module description.
13758         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
13759         here...
13760         * modules/getlogin (configure.ac): ... to here.
13761
13762 2011-05-08  Bruno Haible  <bruno@clisp.org>
13763
13764         getloadavg: Move AC_LIBOBJ invocations to module description.
13765         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
13766         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
13767         * modules/getloadavg (configure.ac): ... to here.
13768
13769 2011-05-08  Bruno Haible  <bruno@clisp.org>
13770
13771         gethrxtime: Move AC_LIBOBJ invocations to module description.
13772         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
13773         LIB_GETHRXTIME from here...
13774         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
13775         invocations from here...
13776         * modules/gethrxtime (configure.ac): ... to here.
13777
13778 2011-05-08  Bruno Haible  <bruno@clisp.org>
13779
13780         gethostname: Move AC_LIBOBJ invocations to module description.
13781         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
13782         gl_PREREQ_GETHOSTNAME invocations from here...
13783         * modules/gethostname (configure.ac): ... to here.
13784
13785 2011-05-08  Bruno Haible  <bruno@clisp.org>
13786
13787         getgroups: Move AC_LIBOBJ invocations to module description.
13788         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
13789         here...
13790         * modules/getgroups (configure.ac): ... to here.
13791
13792 2011-05-08  Bruno Haible  <bruno@clisp.org>
13793
13794         getdtablesize: Move AC_LIBOBJ invocations to module description.
13795         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
13796         invocation from here...
13797         * modules/getdtablesize (configure.ac): ... to here.
13798
13799 2011-05-08  Bruno Haible  <bruno@clisp.org>
13800
13801         getdomainname: Move AC_LIBOBJ invocations to module description.
13802         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
13803         gl_PREREQ_GETDOMAINNAME invocations from here...
13804         * modules/getdomainname (configure.ac): ... to here.
13805
13806 2011-05-08  Bruno Haible  <bruno@clisp.org>
13807
13808         getline: Move AC_LIBOBJ invocations to module description.
13809         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
13810         invocations from here...
13811         * modules/getline (configure.ac): ... to here.
13812
13813 2011-05-08  Bruno Haible  <bruno@clisp.org>
13814
13815         getline: Simplify.
13816         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
13817         It's already handled through the module dependency.
13818
13819 2011-05-08  Bruno Haible  <bruno@clisp.org>
13820
13821         getdelim: Move AC_LIBOBJ invocations to module description.
13822         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
13823         and gl_PREREQ_GETDELIM invocations from here...
13824         * modules/getdelim (configure.ac): ... to here.
13825         (Depends-on): Fix condition.
13826
13827 2011-05-08  Bruno Haible  <bruno@clisp.org>
13828
13829         getcwd: Move AC_LIBOBJ invocations to module description.
13830         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
13831         invocations from here...
13832         * modules/getcwd (configure.ac): ... to here.
13833
13834 2011-05-08  Bruno Haible  <bruno@clisp.org>
13835
13836         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
13837         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
13838         here...
13839         * modules/getcwd-lgpl (configure.ac): ... to here.
13840
13841 2011-05-07  Bruno Haible  <bruno@clisp.org>
13842
13843         crypto/gc: Move AC_LIBOBJ invocations to module description.
13844         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
13845         * modules/crypto/gc (configure.ac): ... to here.
13846
13847 2011-05-07  Bruno Haible  <bruno@clisp.org>
13848
13849         fwriting: Move AC_LIBOBJ invocations to module description.
13850         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
13851         here...
13852         * modules/fwriting (configure.ac): ... to here.
13853
13854 2011-05-07  Bruno Haible  <bruno@clisp.org>
13855
13856         fwritable: Move AC_LIBOBJ invocations to module description.
13857         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
13858         here...
13859         * modules/fwritable (configure.ac): ... to here.
13860
13861 2011-05-07  Bruno Haible  <bruno@clisp.org>
13862
13863         futimens: Move AC_LIBOBJ invocations to module description.
13864         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
13865         here...
13866         * modules/futimens (configure.ac): ... to here.
13867
13868 2011-05-07  Bruno Haible  <bruno@clisp.org>
13869
13870         ftruncate: Move AC_LIBOBJ invocations to module description.
13871         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
13872         gl_PREREQ_FTRUNCATE invocations from here...
13873         * modules/ftruncate (configure.ac): ... to here.
13874
13875 2011-05-07  Bruno Haible  <bruno@clisp.org>
13876
13877         fsync: Move AC_LIBOBJ invocations to module description.
13878         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
13879         invocations from here...
13880         * modules/fsync (configure.ac): ... to here.
13881
13882 2011-05-07  Bruno Haible  <bruno@clisp.org>
13883
13884         fsusage: Move AC_LIBOBJ invocations to module description.
13885         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
13886         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
13887         * modules/fsusage (configure.ac): ... to here.
13888
13889 2011-05-07  Bruno Haible  <bruno@clisp.org>
13890
13891         freopen: Move AC_LIBOBJ invocations to module description.
13892         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
13893         invocations from here...
13894         * modules/freopen (configure.ac): ... to here.
13895
13896 2011-05-07  Bruno Haible  <bruno@clisp.org>
13897
13898         free: Move AC_LIBOBJ invocations to module description.
13899         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
13900         invocations from here...
13901         * modules/free (configure.ac): ... to here.
13902
13903 2011-05-07  Bruno Haible  <bruno@clisp.org>
13904
13905         freadable: Move AC_LIBOBJ invocations to module description.
13906         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
13907         here...
13908         * modules/freadable (configure.ac): ... to here.
13909
13910 2011-05-07  Bruno Haible  <bruno@clisp.org>
13911
13912         fpurge: Move AC_LIBOBJ invocations to module description.
13913         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
13914         invocations from here...
13915         * modules/fpurge (configure.ac): ... to here.
13916
13917 2011-05-07  Bruno Haible  <bruno@clisp.org>
13918
13919         fpending: Move AC_LIBOBJ invocations to module description.
13920         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
13921         gl_FUNC_FPENDING.
13922         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
13923         invocations from here...
13924         * modules/fpending (configure.ac): ... to here.
13925
13926 2011-05-07  Bruno Haible  <bruno@clisp.org>
13927
13928         fopen: Move AC_LIBOBJ invocations to module description.
13929         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
13930         invocations from here...
13931         * modules/fopen (configure.ac): ... to here.
13932
13933 2011-05-07  Bruno Haible  <bruno@clisp.org>
13934
13935         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
13936         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
13937         gl_FUNC_FNMATCH_POSIX.
13938         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
13939         invocations from here...
13940         * modules/fnmatch (configure.ac): ... to here.
13941         * modules/fnmatch-gnu (configure.ac): ... and here.
13942
13943 2011-05-07  Bruno Haible  <bruno@clisp.org>
13944
13945         flock: Move AC_LIBOBJ invocations to module description.
13946         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
13947         invocations from here...
13948         * modules/flock (configure.ac): ... to here.
13949
13950 2011-05-07  Bruno Haible  <bruno@clisp.org>
13951
13952         fileblocks: Move AC_LIBOBJ invocations to module description.
13953         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
13954         gl_PREREQ_FILEBLOCKS invocations from here...
13955         * modules/fileblocks (configure.ac): ... to here.
13956
13957 2011-05-06  Bruno Haible  <bruno@clisp.org>
13958
13959         fflush: Move AC_LIBOBJ invocations to module description.
13960         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
13961         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
13962         invocations from here...
13963         * modules/fflush (configure.ac): ... to here.
13964
13965 2011-05-06  Bruno Haible  <bruno@clisp.org>
13966
13967         fdopendir: Move AC_LIBOBJ invocations to module description.
13968         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
13969         here...
13970         * modules/fdopendir (configure.ac): ... to here.
13971         (Depends-on): Improve conditions.
13972
13973 2011-05-06  Bruno Haible  <bruno@clisp.org>
13974
13975         _Exit: Move AC_LIBOBJ invocations to module description.
13976         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
13977         invocations from here...
13978         * modules/_Exit (configure.ac): ... to here.
13979
13980 2011-05-21  Bruno Haible  <bruno@clisp.org>
13981
13982         euidaccess: Respect rules for use of AC_LIBOBJ.
13983         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
13984         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
13985         from here...
13986         * modules/euidaccess (configure.ac): ... to here.
13987
13988 2011-05-06  Bruno Haible  <bruno@clisp.org>
13989
13990         error: Move AC_LIBOBJ invocations to module description.
13991         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
13992         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
13993         invocations from here...
13994         * modules/error (configure.ac): ... to here.
13995
13996 2011-05-06  Bruno Haible  <bruno@clisp.org>
13997
13998         duplocale: Move AC_LIBOBJ invocations to module description.
13999         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
14000         gl_PREREQ_DUPLOCALE invocations from here...
14001         * modules/duplocale (configure.ac): ... to here.
14002
14003 2011-05-05  Bruno Haible  <bruno@clisp.org>
14004
14005         dirfd: Move AC_LIBOBJ invocations to module description.
14006         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
14007         gl_FUNC_DIRFD.
14008         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
14009         here...
14010         * modules/dirfd (configure.ac): ... to here.
14011         (Depends-on): Fix condition.
14012
14013 2011-05-05  Bruno Haible  <bruno@clisp.org>
14014
14015         chown: Respect rules for use of AC_LIBOBJ.
14016         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
14017         * modules/chown (configure.ac): ... to here.
14018
14019 2011-05-05  Bruno Haible  <bruno@clisp.org>
14020
14021         chdir-long: Move AC_LIBOBJ invocations to module description.
14022         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
14023         gl_PREREQ_CHDIR_LONG invocations from here...
14024         * modules/chdir-long (configure.ac): ... to here.
14025
14026 2011-05-05  Bruno Haible  <bruno@clisp.org>
14027
14028         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
14029         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
14030         from here...
14031         * modules/canonicalize-lgpl (configure.ac): ... to here.
14032
14033 2011-05-05  Bruno Haible  <bruno@clisp.org>
14034
14035         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
14036         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
14037         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
14038         REPLACE_CALLOC.
14039         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
14040         * modules/calloc-gnu (configure.ac): Likewise.
14041
14042 2011-05-05  Bruno Haible  <bruno@clisp.org>
14043
14044         btowc: Move AC_LIBOBJ invocations to module description.
14045         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
14046         invocations from here...
14047         * modules/btowc (configure.ac): ... to here.
14048
14049 2011-05-21  Bruno Haible  <bruno@clisp.org>
14050
14051         atexit: Move AC_LIBOBJ invocations to module description.
14052         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
14053         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
14054         here...
14055         * modules/atexit (configure.ac): ... to here.
14056
14057 2011-05-05  Bruno Haible  <bruno@clisp.org>
14058
14059         atoll: Move AC_LIBOBJ invocations to module description.
14060         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
14061         invocations from here...
14062         * modules/atoll (configure.ac): ... to here.
14063
14064 2011-05-05  Bruno Haible  <bruno@clisp.org>
14065
14066         argz: Move AC_LIBOBJ invocations to module description.
14067         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
14068         * modules/argz (configure.ac): ... to here.
14069
14070 2011-05-05  Bruno Haible  <bruno@clisp.org>
14071
14072         alphasort: Move AC_LIBOBJ invocations to module description.
14073         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
14074         gl_PREREQ_ALPHASORT invocations from here...
14075         * modules/alphasort (configure.ac): ... to here.
14076
14077 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
14078
14079         verify: new macro verify_expr; verify_true deprecated
14080         * NEWS: Mention this.
14081         * doc/verify.texi (Compile-time Assertions): Document this.
14082         * lib/verify.h (verify_true): Deprecate.
14083         (verify_expr): New macro.
14084         * tests/test-verify.c (function): Test verify_expr.
14085
14086 2011-06-14  Jim Meyering  <meyering@redhat.com>
14087
14088         init.sh: give more portable redirection-related advice in a comment
14089         * tests/init.sh (stderr_fileno_): Update the advice in comments.
14090         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
14091         for lots of discussion.  Stefano Lattarini suggested the solution
14092         of putting "9>&2" after the command.  Reported by Bruno Haible.
14093
14094 2011-06-13  Bruno Haible  <bruno@clisp.org>
14095
14096         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
14097         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
14098         'none'.
14099
14100 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
14101
14102         ftoastr: use strtof only if HAVE_STRTOF
14103         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
14104         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
14105         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
14106         * modules/ftoastr (configure.ac): Check for strtof.
14107
14108 2011-06-13  Bruno Haible  <bruno@clisp.org>
14109
14110         gnulib-tool: Addendum to 2011-06-08 commit.
14111         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
14112         and --witness-c-macro have been given, augment AM_CPPFLAGS.
14113
14114 2011-06-13  Bruno Haible  <bruno@clisp.org>
14115
14116         fseeko: Provide a non-inline replacement of fseek().
14117         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
14118         * modules/fseeko (Depends-on): Add fseek.
14119         * modules/fseek (License): Change to LGPLv2+.
14120
14121 2011-06-13  Bruno Haible  <bruno@clisp.org>
14122
14123         ftello: Provide a non-inline replacement of ftell().
14124         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
14125         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
14126         not have ftello() (such as on mingw).
14127         * modules/ftello (Depends-on): Add ftell.
14128         * modules/ftell (License): Change to LGPLv2+.
14129
14130 2011-05-07  Bruno Haible  <bruno@clisp.org>
14131
14132         ftell: Move AC_LIBOBJ invocations to module description.
14133         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
14134         * modules/ftell (configure.ac): ... to here.
14135
14136 2011-05-07  Bruno Haible  <bruno@clisp.org>
14137
14138         ftello: Respect rules for use of AC_LIBOBJ.
14139         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
14140         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
14141         here...
14142         * modules/ftello (configure.ac): ... to here.
14143
14144 2011-05-07  Bruno Haible  <bruno@clisp.org>
14145
14146         fseeko: Simplify.
14147         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
14148         (gl_FUNC_FSEEKO): Inline it here.
14149
14150 2011-05-07  Bruno Haible  <bruno@clisp.org>
14151
14152         fseek: Move AC_LIBOBJ invocations to module description.
14153         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
14154         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
14155         * modules/fseek (configure.ac): ... to here.
14156
14157 2011-05-07  Bruno Haible  <bruno@clisp.org>
14158
14159         fseek: Respect rules for use of AC_LIBOBJ.
14160         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
14161         here...
14162         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
14163
14164 2011-05-07  Bruno Haible  <bruno@clisp.org>
14165
14166         fseeko: Respect rules for use of AC_LIBOBJ.
14167         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
14168         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
14169         here...
14170         * modules/fseeko (configure.ac): ... to here.
14171
14172 2011-06-13  Bruno Haible  <bruno@clisp.org>
14173
14174         gnulib-tool: Allow comments in the 'Depends-on' section.
14175         * doc/gnulib.texi (Module description): Mention comment syntax in the
14176         Depends-on section.
14177         * gnulib-tool (func_get_dependencies): Filter out comment lines.
14178
14179 2011-06-13  Bruno Haible  <bruno@clisp.org>
14180
14181         file-set.h: guard __attibute__ use, now that it's not always defined
14182         * lib/file-set.h (record_file): Use __attribute__ only with compiler
14183         versions that support it.  This fixes a coreutils build failure with
14184         the vendor cc on HP-UX 11.31.
14185
14186 2011-06-12  Bruno Haible  <bruno@clisp.org>
14187
14188         acl: Add support for HP-UX >= 11.11 JFS ACLs.
14189         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
14190         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
14191         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
14192         (acl, aclsort): New declarations.
14193         (aclv_nontrivial): New declaration.
14194         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
14195         (file_has_acl): Read also the second kind of HP-UX ACLs.
14196         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
14197         kind of HP-UX ACLs if the first kind fails.
14198         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
14199         second kind of HP-UX ACLs.
14200         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
14201         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
14202         agree.
14203         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
14204         hpuxjfs.
14205         Handle hpuxjfs.
14206         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
14207         hpuxjfs.
14208         Handle hpuxjfs.
14209         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
14210         (func_test_same_acls): Use both lsacl and getacl.
14211         Handle hpuxjfs.
14212         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
14213         (func_test_same_acls): Use both lsacl and getacl.
14214         Handle hpuxjfs.
14215
14216 2011-06-12  Bruno Haible  <bruno@clisp.org>
14217
14218         acl: Complete the 2010-08-10 fix.
14219         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
14220         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
14221         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
14222         explicitly.
14223         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
14224         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
14225
14226 2011-06-12  Bruno Haible  <bruno@clisp.org>
14227
14228         spawn-pipe tests: Comments.
14229         * tests/test-spawn-pipe-child.c (main): Update comment.
14230         Reported by James Youngman <jay@gnu.org>.
14231
14232 2011-06-11  James Youngman  <jay@gnu.org>
14233
14234         New module 'stat-size'.
14235         * modules/stat-size: New module.  Provides macros for accessing
14236         file size information in instances of struct stat.  Depends on the
14237         fileblocks module because it calls st_blocks.
14238         * lib/stat-size.h: New file, adapted from coreutils' system.h.
14239         * doc/gnulib.texi: Include stat-size.texi.
14240         * doc/stat-size.texi: Documentation for this module.
14241         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
14242         * m4/fileblocks.m4: Mention that stat-size depends on the call to
14243         AC_STRUCT_ST_BLOCKS.
14244
14245 2011-06-09  Bruno Haible  <bruno@clisp.org>
14246
14247         thread: Support pthreads-win32.
14248         * lib/glthread/thread.h (gl_thread_self): Define differently on
14249         pthreads-win32.
14250         (gl_null_thread): New declaration.
14251         (gl_thread_self_pointer): New macro.
14252         * lib/glthread/thread.c (gl_null_thread): New constant.
14253         * tests/test-lock.c: Use gl_thread_self_pointer instead of
14254         gl_thread_self.
14255         * tests/test-tls.c: Likewise.
14256         Suggested by Paul Eggert. Reported by Eric Blake.
14257
14258 2011-06-09  Bruno Haible  <bruno@clisp.org>
14259
14260         thread: Fix confusion between NULL and 0.
14261         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
14262         Reported by Paul Eggert.
14263
14264 2011-06-09  Bruno Haible  <bruno@clisp.org>
14265
14266         spawn-pipe tests: Avoid test failure on HP-UX 11.
14267         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
14268         is closed.
14269
14270 2011-06-09  Bruno Haible  <bruno@clisp.org>
14271
14272         acl tests: Fix compilation error on HP-UX 11.
14273         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
14274
14275 2011-06-09  Bruno Haible  <bruno@clisp.org>
14276
14277         rmdir: Avoid test failure on HP-UX 10.20.
14278         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
14279         EEXIST.
14280
14281 2011-06-08  Eric Blake  <eblake@redhat.com>
14282
14283         perror: fix test on mingw
14284         * modules/perror-tests (Depends-on): Add dup2.
14285
14286         strerror_r-posix: fix on MacOS
14287         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
14288         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
14289         logic bug.
14290         * lib/strerror_r.c (strerror_r): Fix the bug.
14291         * lib/strerror.c (strerror): Likewise.
14292         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
14293         problem.
14294         * doc/posix-functions/strerror.texi (strerror): Likewise.
14295         * doc/posix-functions/perror.texi (perror): Likewise.
14296         * tests/test-strerror.c (main): Enhance test.
14297         * tests/test-strerror_r.c (main): Likewise.
14298
14299 2011-06-08  Bruno Haible  <bruno@clisp.org>
14300
14301         gnulib-tool: Better isolation between different gnulib-tool invocations.
14302         * gnulib-tool: New option --witness-c-macro.
14303         (witness_c_macro): New variable.
14304         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
14305         AM_CPPFLAGS define it as a C macro.
14306         (func_emit_tests_Makefile_am): Likewise.
14307         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
14308         read it from there.
14309         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
14310         m4_define, not AC_DEFUN.
14311         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
14312         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
14313         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
14314         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
14315         s|...|...|, to substitute the values of the GNULIB_* module indicator
14316         variables.
14317         * modules/dirent (Makefile.am): Likewise.
14318         * modules/fcntl-h (Makefile.am): Likewise.
14319         * modules/iconv-h (Makefile.am): Likewise.
14320         * modules/langinfo (Makefile.am): Likewise.
14321         * modules/locale (Makefile.am): Likewise.
14322         * modules/math (Makefile.am): Likewise.
14323         * modules/netdb (Makefile.am): Likewise.
14324         * modules/poll-h (Makefile.am): Likewise.
14325         * modules/pty (Makefile.am): Likewise.
14326         * modules/search (Makefile.am): Likewise.
14327         * modules/signal (Makefile.am): Likewise.
14328         * modules/spawn (Makefile.am): Likewise.
14329         * modules/stdio (Makefile.am): Likewise.
14330         * modules/stdlib (Makefile.am): Likewise.
14331         * modules/string (Makefile.am): Likewise.
14332         * modules/sys_ioctl (Makefile.am): Likewise.
14333         * modules/sys_select (Makefile.am): Likewise.
14334         * modules/sys_socket (Makefile.am): Likewise.
14335         * modules/sys_stat (Makefile.am): Likewise.
14336         * modules/sys_times (Makefile.am): Likewise.
14337         * modules/sys_utsname (Makefile.am): Likewise.
14338         * modules/sys_wait (Makefile.am): Likewise.
14339         * modules/termios (Makefile.am): Likewise.
14340         * modules/time (Makefile.am): Likewise.
14341         * modules/unistd (Makefile.am): Likewise.
14342         * modules/wchar (Makefile.am): Likewise.
14343
14344 2011-06-08  Eric Blake  <eblake@redhat.com>
14345
14346         strerror: simplify replacement
14347         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
14348         * modules/strerror (configure.ac): No prereqs needed here...
14349         * modules/strerror-override (configure.ac): ...but this needs it.
14350         (Files): Add file for needed prereq macro.
14351
14352 2011-06-08  Bruno Haible  <bruno@clisp.org>
14353
14354         strerror_r-posix: Tweaks.
14355         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
14356         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
14357         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
14358         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
14359         (gl_FUNC_STRERROR_R): ... to here.
14360         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
14361
14362 2011-06-07  Eric Blake  <eblake@redhat.com>
14363
14364         perror: document fixed bugs
14365         * doc/posix-functions/perror.texi (perror): Document recent
14366         patches.
14367
14368 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
14369
14370         stat-time: get_stat_birthtime failure is better-defined
14371         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
14372         return a timestamp whose tv_sec and tv_nsec values are both -1.
14373         Previously, the spec said only that the tv_nsec value was negative.
14374         This upward-compatible change simplifies GNU tar a bit.
14375
14376 2011-06-07  Eric Blake  <eblake@redhat.com>
14377
14378         strerror_r-posix: work around cygwin 1.7.9
14379         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
14380         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
14381         bug without replacing strerror_r.
14382         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
14383         strerror_r is buggy, but without requiring strerror_r compilation.
14384         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
14385
14386         test-perror: relax test to ignore cygwin bug
14387         * tests/test-perror2.c (main): Relax test on requiring detection
14388         of stream errors, and use unbuffered stream.
14389         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
14390         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
14391         * doc/posix-functions/fputc.texi (fputc): Likewise.
14392         * doc/posix-functions/fputs.texi (fputs): Likewise.
14393         * doc/posix-functions/fputws.texi (fputws): Likewise.
14394         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
14395         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
14396         * doc/posix-functions/getopt.texi (getopt): Likewise.
14397         * doc/posix-functions/perror.texi (perror): Likewise.
14398         * doc/posix-functions/printf.texi (printf): Likewise.
14399         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
14400         * doc/posix-functions/psignal.texi (psignal): Likewise.
14401         * doc/posix-functions/putc.texi (putc): Likewise.
14402         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
14403         Likewise.
14404         * doc/posix-functions/putchar.texi (putchar): Likewise.
14405         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
14406         Likewise.
14407         * doc/posix-functions/puts.texi (puts): Likewise.
14408         * doc/posix-functions/putwc.texi (putwc): Likewise.
14409         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
14410         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
14411         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
14412         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
14413         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
14414         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
14415         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
14416         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
14417
14418 2011-05-22  Bruno Haible  <bruno@clisp.org>
14419
14420         strerror: Move AC_LIBOBJ invocations to module description.
14421         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
14422         gl_PREREQ_STRERROR invocations from here...
14423         * modules/strerror (configure.ac): ... to here.
14424
14425 2011-05-21  Bruno Haible  <bruno@clisp.org>
14426
14427         perror: Use common idiom.
14428         * modules/perror (configure.ac): Reorder statements.
14429
14430 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
14431
14432         tests: fix usage message in 'mktempd_'
14433         * tests/init.sh (mktempd_): In the usage message, use literal
14434         'mktempd_', not '$ME' (which is even undefined), as the name of
14435         the subroutine.
14436
14437 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
14438
14439         tests init: new function 'fatal_', for hard errors
14440         Before this patch, the only way offered by tests/init.sh to
14441         properly signal a hard error was the `framework_failure_'
14442         function.  But the error message issued by that function,
14443         as its name would suggest, refers to a set-up failure in the
14444         testsuite, while hard errors can obviously also be due to
14445         other reasons.  The best way to fix this inconsistency is to
14446         introduce a new function with a more general error message.
14447         * tests/init.sh (fatal_): New function.
14448
14449 2011-06-06  Eric Blake  <eblake@redhat.com>
14450
14451         canonicalize-lgpl: use common idiom
14452         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
14453         over newer POSIX -Rf.
14454         Reported by Bruno Haible.
14455
14456         canonicalize-lgpl: work around AIX realpath bug
14457         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
14458         * doc/posix-functions/realpath.texi (realpath): Document it.
14459         Reported by Bruno Haible.
14460
14461         strerror: work around FreeBSD bug
14462         * lib/strerror.c (strerror): Special case 0.
14463         Reported by Bruno Haible.
14464
14465         strerror-override: avoid bloating errno module
14466         * modules/errno (Files, configure.ac): Move replacement strings...
14467         * modules/strerror-override: ...to new module.
14468         * modules/strerror (Depends-on): Add strerror-override.
14469         * modules/strerror_r-posix (Depends-on): Likewise.
14470         * MODULES.html.sh: Document new module.
14471         Reported by Bruno Haible.
14472
14473 2011-06-06  Bruno Haible  <bruno@clisp.org>
14474
14475         spawn-pipe tests: Rename program.
14476         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
14477         * tests/test-spawn-pipe-child.c: Update comment.
14478         * tests/test-spawn-pipe.sh: Update.
14479         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
14480
14481         spawn-pipe tests: Link the child program only against libc.
14482         * tests/test-spawn-pipe-child.c: New file, extracted from
14483         tests/test-spawn-pipe.c.
14484         (main): Expect only one argument.
14485         (is_open): New function, copied from tests/test-pipe.c.
14486         * tests/test-spawn-pipe.c: Don't include <errno.h>.
14487         (child_main): Remove function.
14488         (test_pipe): Pass only one argument to the child program.
14489         (main): Remove child process code. Expect the child program's name as
14490         first argument.
14491         * tests/test-spawn-pipe.sh: Pass the child program's name as first
14492         argument.
14493         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
14494         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
14495         test-spawn-pipe-child against no libraries.
14496
14497 2011-06-06  Bruno Haible  <bruno@clisp.org>
14498
14499         careadlinkat: Avoid mismatch between ssize_t and int.
14500         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
14501         * lib/careadlinkat.c (careadlinkatcwd): Define always.
14502
14503 2011-06-06  Jim Meyering  <meyering@redhat.com>
14504
14505         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
14506         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
14507         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
14508
14509 2011-06-05  Bruno Haible  <bruno@clisp.org>
14510
14511         ansi-c++-opt: Interoperability with libtool.
14512         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
14513         set the variable to "no", not to ":".
14514         * NEWS: Mention the change.
14515
14516 2011-06-05  Bruno Haible  <bruno@clisp.org>
14517
14518         acl: Fix test failure on AIX 7.
14519         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
14520         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
14521
14522 2011-06-05  Bruno Haible  <bruno@clisp.org>
14523
14524         pipe-filter-ii: Fix test failure on AIX and IRIX.
14525         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
14526         with EAGAIN, retry with a smaller buffer size.
14527
14528 2011-06-05  Bruno Haible  <bruno@clisp.org>
14529
14530         localename: Fix link dependencies.
14531         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
14532         * modules/localename-tests (Makefile.am): Link test-localename with
14533         $(LIBTHREAD).
14534
14535 2011-06-05  Bruno Haible  <bruno@clisp.org>
14536
14537         error: Avoid gcc warning.
14538         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
14539
14540 2011-06-05  Bruno Haible  <bruno@clisp.org>
14541
14542         unsetenv: Avoid gcc warning.
14543         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
14544
14545 2011-06-05  Bruno Haible  <bruno@clisp.org>
14546
14547         setenv: Avoid gcc warning.
14548         * lib/setenv.c (setenv): Provide declaration if system lacks it.
14549
14550 2011-06-05  Bruno Haible  <bruno@clisp.org>
14551
14552         sys_select: Ensure memset is declared also on AIX 7.
14553         * lib/sys_select.in.h: Include <string.h> also on AIX.
14554         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
14555         self-contained also on AIX 7.1.
14556
14557 2011-06-04  Jim Meyering  <meyering@redhat.com>
14558
14559         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
14560         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
14561         function name, "error".
14562         (_gl_translatable_diag_func_re): New configurable variable.
14563
14564 2011-06-04  Bruno Haible  <bruno@clisp.org>
14565
14566         getopt: Avoid gcc warning.
14567         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
14568
14569 2011-06-04  Bruno Haible  <bruno@clisp.org>
14570
14571         strerror_r: Fix comments.
14572         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
14573         commit.
14574
14575 2011-06-04  Bruno Haible  <bruno@clisp.org>
14576
14577         perror: Fix compilation error.
14578         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
14579         Undefine fprintf, not sprintf.
14580         * modules/perror (Depends-on): Remove intprops, verify.
14581
14582 2011-06-04  Bruno Haible  <bruno@clisp.org>
14583
14584         setlocale: Enable replacement on Cygwin 1.5.
14585         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
14586         Cygwin 1.5.x.
14587         * doc/posix-functions/setlocale.texi: Mention that the problem with the
14588         LC_CTYPE category also exists on Cygwin 1.5.x.
14589
14590 2011-06-04  Bruno Haible  <bruno@clisp.org>
14591
14592         strerror-override: Don't disable symbol renamings.
14593         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
14594         * lib/strerror-override.c: Include config.h.
14595         (strerror_override): Don't undefine.
14596
14597 2011-06-03  Bruno Haible  <bruno@clisp.org>
14598
14599         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
14600         * lib/localename.h: Update copyright header.
14601         * lib/localename.c: Likewise.
14602         * lib/relocatable.h: Likewise.
14603         * lib/relocatable.c: Likewise.
14604
14605 2011-06-02  Bruno Haible  <bruno@clisp.org>
14606
14607         doc: Fix a module name.
14608         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
14609
14610 2011-06-02  Bruno Haible  <bruno@clisp.org>
14611
14612         pipe2: Remove dependency on 'nonblocking' module.
14613         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
14614         O_NONBLOCK is defined by gnulib.
14615         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
14616         is zero.
14617         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
14618         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
14619         defined by gnulib.
14620         (get_nonblocking_flag): New function.
14621         (main): Test O_NONBLOCK flag only if it is nonzero.
14622         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
14623
14624 2011-06-03  Jim Meyering  <meyering@redhat.com>
14625
14626         maint: three new prohibit-header-without-use rules
14627         Prohibit use of cloexec.h, posixver.h, same.h without use.
14628         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
14629         (sc_prohibit_posixver_without_use): Likewise.
14630         (sc_prohibit_same_without_use): Likewise.
14631
14632 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
14633
14634         allocator: 'die' routine is now given requested size
14635         * lib/allocator.h (struct allocator.die): New size arg.
14636         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
14637         If the actual problem is an ssize_t limitation, not a size_t or
14638         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
14639
14640 2011-06-01  Eric Blake  <eblake@redhat.com>
14641
14642         strerror: drop strerror_r dependency
14643         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
14644         * lib/strerror-override.c (strerror_override): ...to new file.
14645         * lib/strerror-override.h: Add prototype.
14646         * lib/strerror-impl.h: Delete.
14647         * lib/strerror.c (strerror): New implementation.
14648         * modules/errno (Files): Add new files.
14649         (configure.ac): Compile new file as appropriate.
14650         * modules/strerror (Files): Drop unused file.
14651         (Depends-on): Drop strerror_r-posix.
14652         * MODULES.html.sh: Document strerror_r-posix.
14653         Requested by Sam Steingold.
14654
14655         perror: call strerror_r directly
14656         * modules/perror (Files): Drop strerror-impl.h.
14657         * lib/perror.c (perror): Use our own stack buffer, rather than
14658         calling a wrapper that uses static storage.
14659         * doc/posix-functions/perror.texi (perror): Document a limitation
14660         of our replacement.
14661
14662         strerror_r: fix includes for FreeBSD
14663         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
14664         since we use abort on some platforms.
14665         Reported by Matthias Bolte.
14666
14667 2011-05-31  Bruno Haible  <bruno@clisp.org>
14668
14669         Fix link errors in tests: openat-die uses gettext-h.
14670         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
14671         against $(LIBINTL).
14672         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
14673         against $(LIBINTL).
14674         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
14675         $(LIBINTL).
14676         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
14677         against $(LIBINTL).
14678         * modules/linkat-tests (Makefile.am): Link test-linkat against
14679         $(LIBINTL).
14680         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
14681         $(LIBINTL).
14682         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
14683         against $(LIBINTL).
14684         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
14685         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
14686         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
14687         $(LIBINTL).
14688         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
14689         $(LIBINTL).
14690         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
14691         $(LIBINTL).
14692         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14693
14694 2011-05-31  Bruno Haible  <bruno@clisp.org>
14695
14696         Fix link errors in tests: wait-process uses gettext-h.
14697         * modules/nonblocking-pipe-tests (Makefile.am): Set
14698         test_nonblocking_pipe_main_LDADD.
14699         * modules/nonblocking-socket-tests (Makefile.am): Link
14700         test-nonblocking-socket-main against $(LIBINTL).
14701         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14702
14703 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
14704
14705         assert-h: work around 'verify' incompatibility
14706         * lib/verify.h: Use @...@ directives, not ifdef.
14707         * modules/assert-h (assert.h): Implement the directives.
14708         (assert.h): Substitute the symbol-prefix more consistently.
14709
14710 2011-05-29  Jim Meyering  <meyering@redhat.com>
14711
14712         trim: remove three superfluous assignments
14713         * lib/trim.c (trim2): Remove three superfluous assignments
14714         and correct brace positioning.
14715
14716 2011-05-29  Bruno Haible  <bruno@clisp.org>
14717
14718         wctype-h: Avoid namespace pollution on Solaris 2.6.
14719         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
14720         identifiers.
14721         * doc/posix-headers/wctype.texi: Mention the problem.
14722         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14723
14724 2011-05-28  Jim Meyering  <meyering@redhat.com>
14725
14726         parse-datetime.y: accommodate -Wstrict-overflow
14727         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
14728         placate -Wstrict-overflow.
14729
14730         trim: avoid a warning from -O2 -Wstrict-overflow
14731         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
14732
14733 2011-05-29  Bruno Haible  <bruno@clisp.org>
14734
14735         gnulib-tool: Fix bug in yesterday's commit.
14736         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
14737         twice.
14738
14739 2011-05-29  Bruno Haible  <bruno@clisp.org>
14740
14741         Allow multiple gnulib generated include files to be combined.
14742         * gnulib-tool (func_compute_include_guard_prefix): New function.
14743         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
14744         ${gl_include_guard_prefix} references.
14745         (func_import, func_create_testdir): Invoke
14746         func_compute_include_guard_prefix.
14747         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
14748         * lib/ctype.in.h: Likewise.
14749         * lib/dirent.in.h: Likewise.
14750         * lib/errno.in.h: Likewise.
14751         * lib/fcntl.in.h: Likewise.
14752         * lib/float.in.h: Likewise.
14753         * lib/getopt.in.h: Likewise.
14754         * lib/iconv.in.h: Likewise.
14755         * lib/langinfo.in.h: Likewise.
14756         * lib/locale.in.h: Likewise.
14757         * lib/math.in.h: Likewise.
14758         * lib/netdb.in.h: Likewise.
14759         * lib/netinet_in.in.h: Likewise.
14760         * lib/poll.in.h: Likewise.
14761         * lib/pthread.in.h: Likewise.
14762         * lib/pty.in.h: Likewise.
14763         * lib/sched.in.h: Likewise.
14764         * lib/se-selinux.in.h: Likewise.
14765         * lib/search.in.h: Likewise.
14766         * lib/signal.in.h: Likewise.
14767         * lib/spawn.in.h: Likewise.
14768         * lib/stdarg.in.h: Likewise.
14769         * lib/stddef.in.h: Likewise.
14770         * lib/stdint.in.h: Likewise.
14771         * lib/stdio.in.h: Likewise.
14772         * lib/stdlib.in.h: Likewise.
14773         * lib/string.in.h: Likewise.
14774         * lib/strings.in.h: Likewise.
14775         * lib/sys_file.in.h: Likewise.
14776         * lib/sys_ioctl.in.h: Likewise.
14777         * lib/sys_select.in.h: Likewise.
14778         * lib/sys_socket.in.h: Likewise.
14779         * lib/sys_stat.in.h: Likewise.
14780         * lib/sys_time.in.h: Likewise.
14781         * lib/sys_times.in.h: Likewise.
14782         * lib/sys_uio.in.h: Likewise.
14783         * lib/sys_utsname.in.h: Likewise.
14784         * lib/sys_wait.in.h: Likewise.
14785         * lib/sysexits.in.h: Likewise.
14786         * lib/termios.in.h: Likewise.
14787         * lib/time.in.h: Likewise.
14788         * lib/unistd.in.h: Likewise.
14789         * lib/wchar.in.h: Likewise.
14790         * lib/wctype.in.h: Likewise.
14791         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
14792         * modules/ctype (Makefile.am): Likewise.
14793         * modules/dirent (Makefile.am): Likewise.
14794         * modules/errno (Makefile.am): Likewise.
14795         * modules/fcntl-h (Makefile.am): Likewise.
14796         * modules/float (Makefile.am): Likewise.
14797         * modules/getopt-posix (Makefile.am): Likewise.
14798         * modules/iconv-h (Makefile.am): Likewise.
14799         * modules/langinfo (Makefile.am): Likewise.
14800         * modules/locale (Makefile.am): Likewise.
14801         * modules/math (Makefile.am): Likewise.
14802         * modules/netdb (Makefile.am): Likewise.
14803         * modules/netinet_in (Makefile.am): Likewise.
14804         * modules/poll-h (Makefile.am): Likewise.
14805         * modules/pthread (Makefile.am): Likewise.
14806         * modules/pty (Makefile.am): Likewise.
14807         * modules/sched (Makefile.am): Likewise.
14808         * modules/search (Makefile.am): Likewise.
14809         * modules/selinux-h (Makefile.am): Likewise.
14810         * modules/signal (Makefile.am): Likewise.
14811         * modules/spawn (Makefile.am): Likewise.
14812         * modules/stdarg (Makefile.am): Likewise.
14813         * modules/stddef (Makefile.am): Likewise.
14814         * modules/stdint (Makefile.am): Likewise.
14815         * modules/stdio (Makefile.am): Likewise.
14816         * modules/stdlib (Makefile.am): Likewise.
14817         * modules/string (Makefile.am): Likewise.
14818         * modules/strings (Makefile.am): Likewise.
14819         * modules/sys_file (Makefile.am): Likewise.
14820         * modules/sys_ioctl (Makefile.am): Likewise.
14821         * modules/sys_select (Makefile.am): Likewise.
14822         * modules/sys_socket (Makefile.am): Likewise.
14823         * modules/sys_stat (Makefile.am): Likewise.
14824         * modules/sys_time (Makefile.am): Likewise.
14825         * modules/sys_times (Makefile.am): Likewise.
14826         * modules/sys_uio (Makefile.am): Likewise.
14827         * modules/sys_utsname (Makefile.am): Likewise.
14828         * modules/sys_wait (Makefile.am): Likewise.
14829         * modules/sysexits (Makefile.am): Likewise.
14830         * modules/termios (Makefile.am): Likewise.
14831         * modules/time (Makefile.am): Likewise.
14832         * modules/unistd (Makefile.am): Likewise.
14833         * modules/wchar (Makefile.am): Likewise.
14834         * modules/wctype-h (Makefile.am): Likewise.
14835         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
14836
14837 2011-05-29  Bruno Haible  <bruno@clisp.org>
14838
14839         assert-h: Allow multiple gnulib generated replacements to coexist.
14840         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
14841
14842 2011-05-29  Bruno Haible  <bruno@clisp.org>
14843
14844         argp: Allow coexistence with strerror_r-posix module.
14845         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
14846         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
14847         by gnulib's <string.h> replacement), assume it has the POSIX signature,
14848         not the glibc signature.
14849
14850 2011-05-28  Bruno Haible  <bruno@clisp.org>
14851
14852         gnulib-tool: Alternative structure of testdirs, similar to --import.
14853         * gnulib-tool: New option --single-configure.
14854         (func_usage): Document it.
14855         (single_configure): New variable.
14856         (func_modules_transitive_closure_separately,
14857         func_modules_transitive_closure_separately,
14858         func_determine_use_libtests, func_modules_add_dummy_separately,
14859         func_modules_to_filelist_separately): New functions, extracted from
14860         func_import.
14861         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
14862         (func_import): Use the new functions.
14863         (func_create_testdir): Set final_modules. Handle $single_configure =
14864         true case.
14865
14866 2011-05-28  Bruno Haible  <bruno@clisp.org>
14867
14868         getloadavg: Remove an unreliable safety check.
14869         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
14870         getloadavg.c is in place.
14871         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
14872         Reported by Sam Steingold <sds@gnu.org>.
14873
14874 2011-05-28  Bruno Haible  <bruno@clisp.org>
14875
14876         doc: Cleanup yet another file produced by texinfo.tex.
14877         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
14878
14879 2011-05-28  Bruno Haible  <bruno@clisp.org>
14880
14881         Finish the conditional dependencies mechanism.
14882         * gnulib-tool: New option --no-conditional-dependencies.
14883         (func_usage): Document it. Don't mark --conditional-dependencies as
14884         experimental.
14885         (cond_dependencies): The possible values can now be true, false, empty.
14886         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
14887         (func_import): Store setting in gnulib-cache.m4 and read it from there.
14888         * doc/gnulib-tool.texi (Conditional dependencies): New section.
14889
14890 2011-05-28  Bruno Haible  <bruno@clisp.org>
14891
14892         doc: Use a recent texinfo.tex.
14893         * doc/Makefile (tex_opts): New variable.
14894         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
14895
14896 2011-05-28  Jim Meyering  <meyering@redhat.com>
14897
14898         intprops.h: adjust comment to match code change
14899         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
14900         only once, it *may* have side effects.  Also fix an unrelated typo.
14901         (_GL_INT_SIGNED): Likewise.
14902
14903 2011-05-26  Simon Josefsson  <simon@josefsson.org>
14904
14905         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
14906
14907 2011-05-26  Bruno Haible  <bruno@clisp.org>
14908
14909         mbsrchr: Avoid collision with system function on Interix.
14910         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
14911         Reported by Markus Duft <mduft@gentoo.org>.
14912
14913 2011-05-15  James Youngman  <jay@gnu.org>
14914
14915         getopt: for ambiguous options, enumerate the possibilities.
14916         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
14917         the ambiguous options when an ambiguous prefix is given. This was
14918         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
14919         glibc change was
14920         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
14921
14922 2011-05-25  Eric Blake  <eblake@redhat.com>
14923
14924         getcwd: work around mingw bug
14925         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
14926         * doc/posix-functions/getcwd.texi (getcwd): Document it.
14927         Reported by Matthias Bolte.
14928
14929 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
14930
14931         test-intprops: disable -Wtype-limits diagnostics
14932         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
14933         diagnostics.  Otherwise, the integer overflow macros generate many
14934         diagnostics.  Reported by Jim Meyering in
14935         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
14936
14937         intprops: shorten, to pacify gcc -Woverlength-strings
14938         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
14939         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
14940         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
14941         likely to run afoul of C compiler limits for string constant lengths.
14942         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
14943
14944 2011-05-24  Eric Blake  <eblake@redhat.com>
14945
14946         docs: document recently fixed glibc printf bug
14947         * doc/posix-functions/fprintf.texi (fprintf): Document it.
14948         * doc/posix-functions/printf.texi (printf): Likewise.
14949         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
14950         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
14951
14952         closein-tests: convert to init.sh
14953         * modules/closein-tests (Files): Add init.sh
14954         * tests/test-closein.sh Use it.
14955
14956         yesno-tests: convert to init.sh
14957         * modules/yesno-tests (Files): Add init.sh.
14958         * tests/test-yesno.sh: Use it.
14959
14960         atexit-tests: ensure reliable exit status
14961         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
14962         Reported by Bruno Haible.
14963
14964 2011-05-24  Bruno Haible  <bruno@clisp.org>
14965
14966         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
14967         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
14968         gl_PREREQ_STRERROR_R invocations from here...
14969         * modules/strerror_r-posix (configure.ac): ... to here.
14970
14971 2011-05-24  Eric Blake  <eblake@redhat.com>
14972
14973         strerror_r: fix missing header
14974         * lib/strerror_r.c: Avoid compiler warning about snprintf.
14975
14976         strerror_r: fix AIX test failures
14977         * lib/strerror_r.c (strerror_r): Convert silent truncation to
14978         ERANGE failure.
14979
14980         strerror_r: fix Solaris test failures
14981         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
14982         failures.
14983         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
14984
14985         strerror_r: enforce POSIX recommendations
14986         * lib/strerror_r.c (safe_copy): New helper method.
14987         (strerror_r): Guarantee a non-empty string.
14988         * tests/test-strerror_r.c (main): Enhance tests to incorporate
14989         recent POSIX rulings and to match our strerror guarantees.
14990         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
14991
14992 2011-05-24  Jim Meyering  <meyering@redhat.com>
14993
14994         test-perror2.c: avoid warning about unused variable
14995         * tests/test-perror2.c (main): Remove declaration of unused "fp".
14996
14997 2011-05-24  Eric Blake  <eblake@redhat.com>
14998
14999         perror: avoid spurious test failure on HP-UX
15000         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
15001
15002         tests: fix logic bug in init.sh
15003         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
15004         shell.
15005
15006 2011-05-24  Jim Meyering  <meyering@redhat.com>
15007
15008         utimensat: do not reference an out-of-scope buffer
15009         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
15010         declared in an inner scope, yet "times" would be dereferenced outside
15011         the scope in which "ts" was valid.
15012         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
15013         of ts[2] "out/up", so that the use of aliased "times" (via
15014         "times = ts;") does not end up referencing an out-of-scope "ts"
15015
15016         opendir-safer.c: don't clobber errno; don't close negative FD
15017         * lib/opendir-safer.c (opendir_safer):
15018         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
15019         file descriptor, and more importantly, don't clobber the
15020         offending errno value with EINVAL.  Before, upon failure
15021         of dup_safer, we would pass the negative file descriptor to
15022         fdopendir, which would clobber errno.
15023
15024 2011-05-23  Bruno Haible  <bruno@clisp.org>
15025
15026         idcache: Fix module description.
15027         * modules/idcache (Include): Set to "idcache.h".
15028
15029 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
15030
15031         gnulib-tool: fix portability problem with MacOS sed
15032         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
15033         before the "}".  Problem reported by Leo in
15034         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
15035         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
15036         sed_extract_condition1, sed_extract_condition2.
15037
15038 2011-05-23  Bruno Haible  <bruno@clisp.org>
15039
15040         hash: Simplify autoconf macro.
15041         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
15042
15043 2011-05-23  Bruno Haible  <bruno@clisp.org>
15044
15045         getugroups: Fix module description.
15046         * modules/getugroups (Include): Set to "getugroups.h".
15047
15048 2011-05-23  Bruno Haible  <bruno@clisp.org>
15049
15050         linkat: Simplify autoconf macro.
15051         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
15052
15053 2011-05-23  Bruno Haible  <bruno@clisp.org>
15054             Eric Blake  <eblake@redhat.com>
15055
15056         linkat, renameat: Update dependencies.
15057         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
15058         * modules/linkat (Depends-on): Likewise. Remove also readlink,
15059         symlinkat.
15060
15061 2011-05-23  Jim Meyering  <meyering@redhat.com>
15062
15063         maint.mk: more tight_scope improvements
15064         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
15065         (_gl_TS_headers): Define only in if-0'd block.
15066         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
15067         sometimes we must *not* use it.  Adjust uses accordingly.
15068         (sc_tight_scope): Use much simpler grep-based test to determine
15069         whether we skip this rule.
15070
15071         maint.mk: generalize/improve the tight-scope rule
15072         * top/maint.mk: Emit a warning when the test is skipped.
15073         (_gl_TS_dir): Add $(srcdir)/ prefix.
15074         (_gl_TS_function_match): Simplify, rather than trying
15075         to enumerate common types.  Otherwise, it would fail to match an
15076         "extern unsigned char const *" declaration in idutils.
15077         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
15078         a way to support use of that type of macro.
15079         (_gl_TS_var_match): Simplify regexp.
15080         (_gl_TS_obj_files): New configurable variable.
15081         (_gl_TS_headers): Likewise.
15082
15083 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
15084
15085         verify: fix bug when gnulib <assert.h> is also included
15086         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
15087         is defined, not if _GL_STATIC_ASSERT_H is not defined.
15088         Perhaps there's a better way, but this fixes the immediate problem.
15089         Problem reported by Bruno Haible in
15090         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
15091
15092 2011-05-22  Bruno Haible  <bruno@clisp.org>
15093
15094         xgetcwd: Simplify autoconf macro.
15095         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
15096
15097 2011-05-22  Bruno Haible  <bruno@clisp.org>
15098
15099         New module 'mktime-internal'.
15100         * modules/mktime-internal: New file.
15101         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
15102         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
15103         mktime_internal as a C macro if libc has __mktime_internal.
15104         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
15105         conditions.
15106         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
15107
15108 2011-05-22  Bruno Haible  <bruno@clisp.org>
15109
15110         timegm: Correct mktime replacement statements.
15111         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
15112         defining mktime as a C macro. This completes a 2009-07-28 commit.
15113
15114 2011-05-22  Bruno Haible  <bruno@clisp.org>
15115
15116         timegm: Simplify autoconf macro.
15117         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
15118
15119 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
15120
15121         clock-time: change to LGPLv2+.
15122         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
15123         BSD-like but we have no mark for that; this is good enough for now.
15124
15125 2011-05-21  Bruno Haible  <bruno@clisp.org>
15126
15127         strerror_r: Fix comments.
15128         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
15129
15130 2011-05-21  Bruno Haible  <bruno@clisp.org>
15131
15132         relocatable-prog-wrapper: Fix possible link error.
15133         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
15134         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
15135         (gl_FUNC_SETENV): ... to here.
15136         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
15137         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
15138
15139 2011-05-21  Bruno Haible  <bruno@clisp.org>
15140
15141         relocatable-prog-wrapper: Assume strerror() exists.
15142         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
15143         m4/strerror.m4.
15144         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
15145         * lib/relocwrapper.c: Remove mention of strerror module.
15146         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
15147         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
15148         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
15149         C macro.
15150
15151 2011-05-21  Bruno Haible  <bruno@clisp.org>
15152
15153         select: Simplify replacement idiom.
15154         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
15155         Win32 platforms.
15156         * lib/sys_select.in.h (select): Simplify accordingly.
15157         * modules/select (Depends-on): Likewise.
15158
15159 2011-05-21  Bruno Haible  <bruno@clisp.org>
15160
15161         mkdir-p: Simplify autoconf macro.
15162         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
15163         gl_FUNC_LCHOWN.
15164
15165 2011-05-21  Eric Blake  <eblake@redhat.com>
15166
15167         strerror_r: avoid clobbering strerror on cygwin
15168         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
15169         fall back instead to sys_errlist.
15170         * modules/strerror (configure.ac): Add witness.
15171         * tests/test-strerror_r.c (main): Enhance test.
15172         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
15173         * tests/test-perror2.c (main): Free memory before exit.
15174
15175 2011-05-21  Bruno Haible  <bruno@clisp.org>
15176
15177         mkdtemp: Use gnulib naming conventions.
15178         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
15179         * modules/mkdtemp (configure.ac): Update.
15180
15181 2011-05-20  Eric Blake  <eblake@redhat.com>
15182
15183         strerror_r: avoid corrupting errno on Solaris
15184         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
15185         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
15186
15187         strerror_r: avoid compiler warning
15188         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
15189
15190         strerror_r: simplify AIX code
15191         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
15192
15193         test-perror: avoid spurious failure on FreeBSD
15194         * modules/perror-tests (Depends-on): Add strerror, now that
15195         strerror_r no longer pulls it in.
15196
15197 2011-05-20  Bruno Haible  <bruno@clisp.org>
15198
15199         strerror_r-posix: Remove unused dependencies.
15200         * modules/strerror_r-posix (Depends-on): Remove strerror.
15201         Reported by Eric Blake.
15202
15203 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
15204
15205         intprops: remove assumption about A|B representation
15206         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
15207         is a valid integer if both A and B are.  Although this is true for
15208         all known practical hosts, the C standard doesn't guarantee it,
15209         and the code need not assume it.  Also, this change may work around
15210         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
15211         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
15212
15213 2011-05-20  Eric Blake  <eblake@redhat.com>
15214
15215         perror: work around FreeBSD bug
15216         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
15217         is broken.  Move AC_LIBOBJ...
15218         * modules/perror (configure.ac): Here.
15219         * doc/posix-functions/perror.texi (perror): Document this.
15220         * tests/test-perror2.c (main): Enhance test.
15221
15222         test-perror: check for strerror interactions
15223         * tests/macros.h (STREQ): Add macro.
15224         * modules/perror-tests (Files): Add second test.
15225         * tests/test-perror2.c (main): New file.
15226         * doc/posix-functions/perror.texi (perror): Document glibc bug.
15227
15228         test-perror: rewrite to use init script
15229         * modules/perror-tests (Files): Add init.sh.
15230         * tests/test-perror.sh: Use temporary directory.
15231
15232 2011-05-20  Jim Meyering  <meyering@redhat.com>
15233
15234         maint: replace misused "a" with "an"
15235         * doc/intprops.texi: "a integer"
15236         * doc/regex.texi: "a explanation"
15237         * lib/alignof.h: "a object"
15238         * lib/argmatch.h: "a explanation"
15239         * lib/argp-help.c: "a option" and "a OPTION_DOC"
15240         * lib/stdint.in.h: "a integer"
15241         * lib/userspec.c: "a owner"
15242         * doc/gnulib.texi: Fix "a idea", and reword.
15243
15244 2011-05-19  Jim Meyering  <meyering@redhat.com>
15245
15246         maint: correct misuse of "a" and "an"
15247         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
15248         * lib/argp-help.c: "an docum...": s/an/a/
15249         * lib/argp-parse.c: "An vector": s/An/A/
15250         * lib/execute.c: "an native": s/an/a/
15251         * lib/spawn-pipe.c: Likewise.
15252         * lib/gc.h: "an Gc_rc": s/an/a/
15253         * lib/unigbrk.in.h: "an grapheme": s/an/a/
15254         * lib/fts.c: "an stat.st_dev": s/an/a/
15255
15256 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
15257
15258         intprops-tests: work around HP-UX 11.23 cc bug with constants
15259         * tests/test-intprops.c (VERIFY): New macro.
15260         (main): Use it, instead of verify, to work around the compiler bug; see
15261         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
15262
15263         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
15264         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
15265         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
15266         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
15267         (_GL_REMAINDER_OVERFLOW): Use it.
15268
15269         intprops-tests: revert unsigned part of previous change
15270         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
15271         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
15272         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
15273         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
15274
15275 2011-05-19  Bruno Haible  <bruno@clisp.org>
15276
15277         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
15278         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
15279         strerror_r() returned without filling the buffer.
15280         Reported by Eric Blake.
15281
15282 2011-05-19  Eric Blake  <eblake@redhat.com>
15283
15284         strerror_r: guarantee unchanged errno
15285         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
15286         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
15287         failure.
15288         * tests/test-strerror_r.c (main): Enhance test.
15289
15290 2011-05-19  Bruno Haible  <bruno@clisp.org>
15291
15292         strerror_r: Reorder #if blocks.
15293         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
15294         for consistency with the previous commit.
15295
15296 2011-05-19  Bruno Haible  <bruno@clisp.org>
15297
15298         perror: Avoid clobbering the strerror buffer when possible.
15299         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
15300         * lib/strerror.c: Include it.
15301         * modules/strerror (Files): Add lib/strerror-impl.h.
15302         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
15303         (my_strerror): New function, defined through lib/strerror-impl.h.
15304         (perror): Use it instead of strerror.
15305         * modules/perror (Files): Add lib/strerror-impl.h.
15306         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
15307
15308 2011-05-19  Eric Blake  <eblake@redhat.com>
15309
15310         strerror_r: fix on newer cygwin
15311         * lib/strerror_r.c (strerror_r): Cygwin now has
15312         __xpg_strerror_r, use it.
15313
15314 2011-05-19  Bruno Haible  <bruno@clisp.org>
15315
15316         strerror_r: Avoid clobbering the strerror buffer when possible.
15317         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
15318         (sys_nerr, sys_errlist): New declarations.
15319         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
15320         HP-UX, native Win32, IRIX, and 32-bit Solaris.
15321         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
15322
15323 2011-05-19  Bruno Haible  <bruno@clisp.org>
15324
15325         strerror_r: Fix test failure on mingw.
15326         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
15327         EXTEND_STRERROR_R.
15328         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
15329         macros from errno.in.h instead.
15330
15331 2011-05-19  Eric Blake  <eblake@redhat.com>
15332
15333         strerror: relax test for Solaris
15334         * tests/test-strerror.c (main): Permit Solaris behavior.
15335         * tests/test-strerror_r.c (main): Likewise.
15336
15337         strerror: enforce POSIX ruling on strerror(0)
15338         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
15339         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
15340         * lib/strerror_r.c (rpl_strerror_r): Work around it.
15341         * doc/posix-functions/strerror.texi (strerror): Document it.
15342         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
15343         * tests/test-strerror.c (main): Strengthen test.
15344         * tests/test-strerror_r.c (main): Likewise.
15345
15346 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
15347
15348         intprop-tests: port to older and more-pedantic compilers
15349         * modules/intprops-tests (Files): Add tests/macros.h.
15350         * tests/test-intprops.c: Include macros.h.
15351         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
15352         it's no longer documented to expand to an integer constant expression.
15353         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
15354         argument is floating point, as it's no longer documented to expand
15355         to an integer constant expression in that case.
15356         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
15357         compiler bugs reported by Bruno Haible.  See
15358         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
15359         (U0, U1): New constants, to work around the same bugs.  Also,
15360         in tests, use e.g., "(unsigned int) 39" rather than "39u".
15361
15362         intprops: work around C compiler bugs
15363         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
15364         bug in Sun C 5.11 2010/08/13 and other compilers; see
15365         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
15366
15367         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
15368         * doc/intprops.texi (Integer Type Determination): Fix
15369         documentation for TYPE_IS_INTEGER: it returns an constant
15370         expression, not an integer constant expression.  Fix doc for
15371         TYPE_SIGNED: it returns an integer constant expression only if its
15372         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
15373         hardly worth documented that way....)
15374
15375 2011-05-18  Bruno Haible  <bruno@clisp.org>
15376
15377         strerror_r: Avoid clobbering the strerror buffer when possible.
15378         * lib/strerror_r.c (strerror_r): Merge the three implementations.
15379         Handle gnulib defined errno values here. When strerror() returns NULL
15380         or an empty string, return EINVAL.
15381         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
15382         gnulib defined errno values here.
15383         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
15384
15385 2011-05-18  Eric Blake  <eblake@redhat.com>
15386
15387         fnmatch: avoid compiler warning
15388         * lib/fnmatch_loop.c (FCT): Use correct type.
15389         Reported by Matthias Bolte.
15390
15391 2011-05-13  Jim Meyering  <meyering@redhat.com>
15392
15393         maint.mk: three new prohibit_<HDR>_without_use rules
15394         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
15395         (sc_prohibit_stdio-safer_without_use): Likewise.
15396         (sc_prohibit_xfreopen_without_use): Likewise.
15397
15398 2011-05-17  Jim Meyering  <meyering@redhat.com>
15399
15400         announce-gen: fail if the NEWS delta is empty
15401         If there's nothing noteworthy in NEWS, then either you forgot
15402         or you shouldn't be releasing.
15403         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
15404
15405 2011-05-17  Pádraig Brady <P@draigBrady.com>
15406
15407         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
15408         reserved symbols starting with double underscore from the check.
15409
15410 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
15411
15412         intprops: add doc
15413         * doc/intprops.texi: New file, documenting intprops.
15414         * doc/gnulib.texi (Particular Modules): Include it.
15415
15416         verify: add doc to gnulib manual and fix example
15417         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
15418         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
15419         (Compile-time Assertions): Fix example so it can't overflow.
15420
15421 2011-05-17  Jim Meyering  <meyering@redhat.com>
15422
15423         warnings.m4: don't usurp save_CPPFLAGS variable name
15424         * m4/warnings.m4: Prefix local temporary variable name with gl_.
15425
15426         doc: fix typo
15427         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
15428
15429 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
15430             Bruno Haible  <bruno@clisp.org>
15431
15432         doc: Tweak recent change.
15433         * README (Portability guidelines): Tweak new text.
15434         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
15435         Interix 6.1.
15436
15437 2011-05-16  Eric Blake  <eblake@redhat.com>
15438
15439         inttypes: avoid autoconf warning
15440         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
15441         * m4/stdint.m4 (gl_STDINT_H): Likewise.
15442
15443 2011-05-16  Sam Steingold <sds@gnu.org>
15444         and Eric Blake  <eblake@redhat.com>
15445
15446         vc-list-files: accept multiple directory operands
15447         * build-aux/vc-list-files: Iterate over all remaining operands.
15448
15449 2011-05-16  Bruno Haible  <bruno@clisp.org>
15450
15451         Fix confusion regarding deprecated modules.
15452         * modules/calloc (Status, Notice): Mark module as deprecated, not
15453         obsolete.
15454         * modules/fnmatch-posix (Status, Notice): Likewise.
15455         * modules/getdate (Status, Notice): Likewise.
15456         * modules/getopt (Status, Notice): Likewise.
15457         * modules/malloc (Status, Notice): Likewise.
15458         * modules/pipe (Status, Notice): Likewise.
15459         * modules/realloc (Status, Notice): Likewise.
15460         * modules/rename-dest-slash (Status, Notice): Likewise.
15461         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
15462         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
15463         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
15464         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
15465         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
15466
15467 2011-05-16  Bruno Haible  <bruno@clisp.org>
15468
15469         doc: List the target platforms.
15470         * doc/gnulib-intro.texi (Target Platforms): New section.
15471         * doc/gnulib.texi (Introduction): Update menu.
15472         * README (Portability guidelines): Refer to the new section. Update
15473         statement about oldest supported environment. Remove rationale why
15474         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
15475         unportable C89 function.
15476         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
15477         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
15478
15479 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
15480
15481         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
15482
15483 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
15484
15485         intprops-tests: new module
15486         * modules/intprops-tests, tests/test-intprops.c: New files.
15487
15488         intprops: add safe, portable integer overflow checking
15489         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
15490         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
15491         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
15492         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
15493         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
15494         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
15495         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
15496         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
15497         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
15498         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
15499         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
15500
15501 2011-05-12  James Youngman  <jay@gnu.org>
15502
15503         Add a test for glibc's Bugzilla bug #12378.
15504         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
15505         doesn't allow the literal matching of a lone "[" (which is
15506         required by POSIX).
15507         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
15508
15509 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
15510
15511         Sync glibc change fixing Bugzilla bug #12378.
15512         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
15513         beginning and fall back to matching as normal character if the
15514         string ends before the matching ']' is found.  This is what POSIX
15515         requires.
15516
15517 2011-05-13  Eric Blake  <eblake@redhat.com>
15518
15519         getcwd-lgpl: relax test for FreeBSD
15520         * doc/posix-functions/getcwd.texi (getcwd): Document portability
15521         issue.
15522         * tests/test-getcwd-lgpl.c (main): Relax test.
15523         Reported by Matthias Bolte.
15524
15525 2011-05-11  Eric Blake  <eblake@redhat.com>
15526
15527         test-fflush: silence compiler warning
15528         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
15529
15530 2011-05-11  Bruno Haible  <bruno@clisp.org>
15531
15532         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
15533         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
15534         * modules/canonicalize (Depends-on): Add 'nocrash'.
15535         * modules/canonicalize-lgpl (Depends-on): Likewise.
15536         * doc/posix-functions/realpath.texi: Update platforms list.
15537         Reported by Ryan Schmidt <ryandesign@macports.org>.
15538
15539 2011-05-11  Bruno Haible  <bruno@clisp.org>
15540
15541         group-member: Declare function in <unistd.h>.
15542         * lib/unistd.in.h (group_member): New declaration.
15543         * lib/group-member.h: Remove file.
15544         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
15545         * tests/test-unistd-c++.cc: Check signature of group_member.
15546         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
15547         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
15548         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
15549         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
15550         HAVE_GROUP_MEMBER.
15551         * modules/group-member (Files): Remove lib/group-member.h.
15552         (Depends-on): Add unistd. Specify conditions.
15553         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
15554         (Include): Change to <unistd.h>.
15555         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
15556         HAVE_GROUP_MEMBER.
15557         * NEWS: Mention the change.
15558         * lib/euidaccess.c: Don't include group-member.h.
15559
15560 2011-05-11  Bruno Haible  <bruno@clisp.org>
15561
15562         group-member: Document module.
15563         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
15564         module.
15565
15566 2011-05-11  Bruno Haible  <bruno@clisp.org>
15567
15568         fclose: Fix mistake earlier today.
15569         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
15570
15571 2011-05-11  Eric Blake  <eblake@redhat.com>
15572
15573         fclose: preserve fflush errors
15574         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
15575         Reported by Jim Meyering.
15576
15577         bootstrap: support a prereq of 'rpcgen -' on RHEL5
15578         * build-aux/bootstrap (check_versions): When no specific version
15579         is required, merely check that the app produces an exit status
15580         that indicates its existence.
15581
15582         maint.mk: drop redundant check
15583         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
15584         the same but better.
15585
15586 2011-05-11  Bruno Haible  <bruno@clisp.org>
15587
15588         fclose: Fix possible link error.
15589         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
15590         unregister_shadow_fd. Improve comments.
15591         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
15592         Eric Blake.
15593
15594 2011-05-11  Jim Meyering  <meyering@redhat.com>
15595
15596         maint.mk: improve "can not" detection and generalize rule name
15597         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
15598         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
15599         Use the same technique as in sc_prohibit_doubled_word, so that
15600         we recognize "can not" also when the words are separated by a newline.
15601         Suggested by Eric Blake.
15602         (perl_filename_lineno_text_): Define.  Factored out of...
15603         (prohibit_doubled_word_): ...here.  Use the new definition.
15604         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
15605         (prohibit_undesirable_word_seq_RE_): New overridable variable.
15606         (ignore_undesirable_word_sequence_RE_): New overridable variable.
15607
15608 2011-05-10  Eric Blake  <eblake@redhat.com>
15609
15610         fclose: avoid double close race when possible
15611         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
15612         all but WINDOWS_SOCKETS.
15613
15614 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
15615
15616         openat: correct new comment
15617         * lib/openat-proc.c (openat_proc_name): Correct the comment.
15618
15619 2011-05-10  Jim Meyering  <meyering@redhat.com>
15620
15621         openat: add comments
15622         * lib/openat-proc.c (openat_proc_name): Add comments,
15623         mostly from Eric Blake.
15624
15625 2011-05-09  Eric Blake  <eblake@redhat.com>
15626
15627         openat: reduce syscalls in first probe of /proc
15628         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
15629         be a directory.  Simplify the probe for .. bugs.
15630         * modules/openat (Depends-on): Drop same-inode.
15631         Reported by Bastien ROUCARIES.
15632
15633 2011-05-09  Jim Meyering  <meyering@redhat.com>
15634
15635         maint.mk: change semantics/name of tight_scope variables
15636         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
15637         Rename variables to align with semantics that make them more useful.
15638
15639         maint.mk: tweak new rule's name not to impinge
15640         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
15641         (sc_tight_scope): Use new rule name rather than $@-0.
15642
15643         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
15644         * top/maint.mk (sc_tight_scope): New rule.
15645         (sc_tight_scope-0): New rule, ifdef'd out.
15646         (_gl_TS_dir): Default.
15647         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
15648         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
15649
15650 2011-05-09  Simon Josefsson  <simon@josefsson.org>
15651
15652         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
15653         Haible <bruno@clisp.org>.
15654
15655 2011-05-08  Bruno Haible  <bruno@clisp.org>
15656
15657         Comments.
15658         * m4/isnanf.m4: Add comment.
15659         * m4/isnanl.m4: Likewise.
15660
15661 2011-05-08  Bruno Haible  <bruno@clisp.org>
15662
15663         glob: Remove obsolete macro.
15664         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
15665
15666 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
15667
15668         intprops: Sun C 5.11 supports __typeof__
15669         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
15670         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
15671         which is new.
15672         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
15673
15674         intprops: switch to usual gnulib indenting and naming
15675         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
15676         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
15677
15678         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
15679
15680 2011-05-08  Jim Meyering  <meyering@redhat.com>
15681
15682         maint.mk: suppress "Entering/Leaving directory" diag in announcement
15683         * top/maint.mk (release-prep): Use make's --no-print-directory
15684         option when generating the announcement.  This eliminates the
15685         pesky "make[2]: Entering/Leaving directory" diagnostics in the
15686         generated announcement template.
15687
15688 2011-05-08  Bruno Haible  <bruno@clisp.org>
15689
15690         tzset: Fix gettimeofday wrapper on Solaris 2.6.
15691         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
15692         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
15693
15694 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
15695
15696         ignore-value, verify: Omit include files from lib_SOURCES.
15697         * modules/ignore-value, modules/verify (Makefile.am):
15698         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
15699         that leads Automake to duplicate use of am__objects_... variables
15700         in Makefile.in.  See
15701         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
15702
15703 2011-05-07  Bruno Haible  <bruno@clisp.org>
15704
15705         fclose: Simplify autoconf macro.
15706         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
15707         defined.
15708
15709 2011-05-07  Bruno Haible  <bruno@clisp.org>
15710
15711         canonicalize-lgpl: Fix autoconf macro ordering bug.
15712         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
15713         gl_STDLIB_H_DEFAULTS.
15714
15715 2011-05-06  Eric Blake  <eblake@redhat.com>
15716
15717         maintainer-makefile: make sc_po_check easier to tune
15718         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
15719         to probe for strings, such as an alternate location for gnulib.
15720
15721         fclose: guarantee behavior on seekable stdin
15722         * modules/fclose (Depends-on): Add fflush.
15723         * doc/posix-functions/fclose.texi (fclose): Document this.
15724         * tests/test-fclose.c (main): Make test for this unconditional.
15725
15726 2011-05-06  Bruno Haible  <bruno@clisp.org>
15727
15728         fflush, fpurge: Relicense under LGPLv2+.
15729         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
15730         * modules/fpurge (License): Likewise.
15731         With permission from Eric Blake and Jim Meyering.
15732         Suggested by Eric Blake.
15733
15734 2011-05-06  Karl Berry  <karl@gnu.org>
15735
15736         * MODULES.html.sh (func_all_modules): remove exit.
15737
15738 2011-05-06  Jim Meyering  <meyering@redhat.com>
15739
15740         maint.mk: use info-gnu@ as the default only for a stable release
15741         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
15742         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
15743         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
15744         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
15745
15746 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
15747
15748         assert-h: new module, which supports C1X-style static_assert
15749         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
15750         * lib/verify.h: Revamp so that this can be copied into assert.h,
15751         while retaining the ability to use it standalone as before.
15752         Rename private identifiers so as not to encroach on the
15753         standard C namespace, since this is now used by assert.h.
15754         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
15755         the old verify_true.
15756         (_GL_VERIFY_TRUE): New macro, with much of the contents of
15757         the old verify_true.  Use _GL_VERIFY_TYPE.
15758         (_GL_VERIFY): New macro, with much of the contents of the old verify.
15759         (static_assert): New macro, if _GL_STATIC_ASSERT_H
15760         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
15761         defined when this file is copied into the replacement assert.h.
15762         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
15763         and _Static_assert is not built in.
15764         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
15765         defined, and use the new macros mentioned above.
15766         * doc/posix-headers/assert.texi: Document this.
15767
15768 2011-05-05  Bruno Haible  <bruno@clisp.org>
15769
15770         fclose, fflush: Respect rules for use of AC_LIBOBJ.
15771         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
15772         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
15773         gl_REPLACE_FCLOSE here.
15774         * modules/fflush (Depends-on): Remove fclose.
15775         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
15776         combination with module 'fclose'.
15777
15778 2011-05-05  Bruno Haible  <bruno@clisp.org>
15779
15780         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
15781         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
15782         gl_FUNC_FFLUSH.
15783         (gl_FUNC_FFLUSH): Use it.
15784         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
15785         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
15786         gl_REPLACE_FSEEKO here.
15787
15788 2011-05-05  Bruno Haible  <bruno@clisp.org>
15789
15790         tzset: Relicense under LGPL.
15791         * modules/tzset (License): Change to LGPL.
15792         No agreement needed; it's a no-op.
15793
15794         strtoimax, strtoumax: Relicense under LGPL.
15795         * modules/strtoimax (License): Change to LGPL.
15796         * modules/strtoumax (License): Likewise.
15797         With permission from Jim Meyering, Paul Eggert:
15798         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
15799         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
15800
15801         getgroups: Relicense under LGPL.
15802         * modules/getgroups (License): Change to LGPL.
15803         With permission from Jim Meyering, Paul Eggert, Eric Blake:
15804         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
15805         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
15806         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
15807
15808         nanosleep: Relicense under LGPL.
15809         * modules/nanosleep (License): Change to LGPL.
15810         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
15811         Haible:
15812         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
15813         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
15814         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
15815         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
15816
15817         futimens: Relicense under LGPL.
15818         * modules/futimens (License): Change to LGPL.
15819         With permission from Eric Blake:
15820         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
15821
15822         fflush: Relicense under LGPL.
15823         * modules/fflush (License): Change to LGPL.
15824         With permission from Eric Blake, Bruno Haible, Jim Meyering:
15825         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
15826         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
15827         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
15828
15829         tmpfile: Relicense under LGPL.
15830         * modules/tmpfile (License): Change to LGPL.
15831         With permission from Ben Pfaff:
15832         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
15833
15834         isfinite: Relicense under LGPL.
15835         * modules/isfinite (License): Change to LGPL.
15836         With permission from Ben Pfaff, Bruno Haible:
15837         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
15838         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
15839
15840         acosl..tanl: Relicense under LGPL.
15841         * modules/acosl (License): Change to LGPL.
15842         * modules/asinl (License): Likewise.
15843         * modules/atanl (License): Likewise.
15844         * modules/cosl (License): Likewise.
15845         * modules/expl (License): Likewise.
15846         * modules/logl (License): Likewise.
15847         * modules/sinl (License): Likewise.
15848         * modules/sqrtl (License): Likewise.
15849         * modules/tanl (License): Likewise.
15850         Source code originally from glibc and Paolo Bonzini. Agreements:
15851         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
15852         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
15853
15854 2011-05-05  Bruno Haible  <bruno@clisp.org>
15855
15856         signal: Define sighandler_t.
15857         * lib/signal.in.h (sighandler_t): New type.
15858         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
15859         whether sighandler_t is defined.
15860         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
15861         * modules/signal (Depends-on): Add extensions.
15862         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
15863         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
15864         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
15865
15866 2011-05-05  Eric Blake  <eblake@redhat.com>
15867
15868         maint: remove useless REPLACE_*_H macros
15869         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
15870         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
15871         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
15872         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
15873         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
15874         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
15875         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
15876         * m4/btowc.m4: Update callers.
15877         * m4/dirfd.m4: Likewise.
15878         * m4/duplocale.m4: Likewise.
15879         * m4/fchdir.m4: Likewise.
15880         * m4/fdopendir.m4: Likewise.
15881         * m4/inet_ntop.m4: Likewise.
15882         * m4/inet_pton.m4: Likewise.
15883         * m4/ioctl.m4: Likewise.
15884         * m4/mbrlen.m4: Likewise.
15885         * m4/mbrtowc.m4: Likewise.
15886         * m4/mbsinit.m4: Likewise.
15887         * m4/mbsnrtowcs.m4: Likewise.
15888         * m4/mbsrtowcs.m4: Likewise.
15889         * m4/poll.m4: Likewise.
15890         * m4/setlocale.m4: Likewise.
15891         * m4/wcrtomb.m4: Likewise.
15892         * m4/wcsnrtombs.m4: Likewise.
15893         * m4/wcsrtombs.m4: Likewise.
15894         * m4/wctob.m4: Likewise.
15895         * m4/wcwidth.m4: Likewise.
15896         * modules/posix_spawn: Likewise.
15897         * modules/posix_spawn_file_actions_addclose: Likewise.
15898         * modules/posix_spawn_file_actions_adddup2: Likewise.
15899         * modules/posix_spawn_file_actions_addopen: Likewise.
15900         * modules/posix_spawn_file_actions_destroy: Likewise.
15901         * modules/posix_spawn_file_actions_init: Likewise.
15902         * modules/posix_spawnattr_destroy: Likewise.
15903         * modules/posix_spawnattr_getflags: Likewise.
15904         * modules/posix_spawnattr_getpgroup: Likewise.
15905         * modules/posix_spawnattr_getschedparam: Likewise.
15906         * modules/posix_spawnattr_getschedpolicy: Likewise.
15907         * modules/posix_spawnattr_getsigdefault: Likewise.
15908         * modules/posix_spawnattr_getsigmask: Likewise.
15909         * modules/posix_spawnattr_init: Likewise.
15910         * modules/posix_spawnattr_setflags: Likewise.
15911         * modules/posix_spawnattr_setpgroup: Likewise.
15912         * modules/posix_spawnattr_setschedparam: Likewise.
15913         * modules/posix_spawnattr_setschedpolicy: Likewise.
15914         * modules/posix_spawnattr_setsigdefault: Likewise.
15915         * modules/posix_spawnattr_setsigmask: Likewise.
15916         * modules/posix_spawnp: Likewise.
15917
15918 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
15919
15920         Add option to do-release-commit-and-tag to specify branch.
15921         * build-aux/do-release-commit-and-tag: Add --branch.
15922
15923 2011-05-03  Bruno Haible  <bruno@clisp.org>
15924
15925         Avoid unnecessary compilation units, through conditional dependencies.
15926         * modules/accept (Depends-on): Add conditions to the dependencies.
15927         * modules/acosl (Depends-on): Likewise.
15928         * modules/argz (Depends-on): Likewise.
15929         * modules/asinl (Depends-on): Likewise.
15930         * modules/atanl (Depends-on): Likewise.
15931         * modules/atoll (Depends-on): Likewise.
15932         * modules/bind (Depends-on): Likewise.
15933         * modules/btowc (Depends-on): Likewise.
15934         * modules/canonicalize-lgpl (Depends-on): Likewise.
15935         * modules/ceil (Depends-on): Likewise.
15936         * modules/ceilf (Depends-on): Likewise.
15937         * modules/ceill (Depends-on): Likewise.
15938         * modules/chdir-long (Depends-on): Likewise.
15939         * modules/chown (Depends-on): Likewise.
15940         * modules/close (Depends-on): Likewise.
15941         * modules/connect (Depends-on): Likewise.
15942         * modules/cosl (Depends-on): Likewise.
15943         * modules/dirfd (Depends-on): Likewise.
15944         * modules/dprintf (Depends-on): Likewise.
15945         * modules/dprintf-posix (Depends-on): Likewise.
15946         * modules/error (Depends-on): Likewise.
15947         * modules/euidaccess (Depends-on): Likewise.
15948         * modules/expl (Depends-on): Likewise.
15949         * modules/faccessat (Depends-on): Likewise.
15950         * modules/fchdir (Depends-on): Likewise.
15951         * modules/fclose (Depends-on): Likewise.
15952         * modules/fcntl (Depends-on): Likewise.
15953         * modules/fdopendir (Depends-on): Likewise.
15954         * modules/fflush (Depends-on): Likewise.
15955         * modules/floor (Depends-on): Likewise.
15956         * modules/floorf (Depends-on): Likewise.
15957         * modules/floorl (Depends-on): Likewise.
15958         * modules/fnmatch (Depends-on): Likewise.
15959         * modules/fopen (Depends-on): Likewise.
15960         * modules/fprintf-posix (Depends-on): Likewise.
15961         * modules/frexp (Depends-on): Likewise.
15962         * modules/frexp-nolibm (Depends-on): Likewise.
15963         * modules/frexpl (Depends-on): Likewise.
15964         * modules/frexpl-nolibm (Depends-on): Likewise.
15965         * modules/fseek (Depends-on): Likewise.
15966         * modules/fsusage (Depends-on): Likewise.
15967         * modules/ftell (Depends-on): Likewise.
15968         * modules/ftello (Depends-on): Likewise.
15969         * modules/futimens (Depends-on): Likewise.
15970         * modules/getcwd (Depends-on): Likewise.
15971         * modules/getcwd-lgpl (Depends-on): Likewise.
15972         * modules/getdelim (Depends-on): Likewise.
15973         * modules/getdomainname (Depends-on): Likewise.
15974         * modules/getgroups (Depends-on): Likewise.
15975         * modules/gethostname (Depends-on): Likewise.
15976         * modules/getline (Depends-on): Likewise.
15977         * modules/getlogin_r (Depends-on): Likewise.
15978         * modules/getopt-posix (Depends-on): Likewise.
15979         * modules/getpeername (Depends-on): Likewise.
15980         * modules/getsockname (Depends-on): Likewise.
15981         * modules/getsockopt (Depends-on): Likewise.
15982         * modules/getsubopt (Depends-on): Likewise.
15983         * modules/getusershell (Depends-on): Likewise.
15984         * modules/glob (Depends-on): Likewise.
15985         * modules/grantpt (Depends-on): Likewise.
15986         * modules/iconv_open (Depends-on): Likewise.
15987         * modules/iconv_open-utf (Depends-on): Likewise.
15988         * modules/inet_ntop (Depends-on): Likewise.
15989         * modules/inet_pton (Depends-on): Likewise.
15990         * modules/ioctl (Depends-on): Likewise.
15991         * modules/isapipe (Depends-on): Likewise.
15992         * modules/isfinite (Depends-on): Likewise.
15993         * modules/isinf (Depends-on): Likewise.
15994         * modules/lchown (Depends-on): Likewise.
15995         * modules/ldexpl (Depends-on): Likewise.
15996         * modules/link (Depends-on): Likewise.
15997         * modules/linkat (Depends-on): Likewise.
15998         * modules/listen (Depends-on): Likewise.
15999         * modules/logl (Depends-on): Likewise.
16000         * modules/lstat (Depends-on): Likewise.
16001         * modules/mbrlen (Depends-on): Likewise.
16002         * modules/mbrtowc (Depends-on): Likewise.
16003         * modules/mbsinit (Depends-on): Likewise.
16004         * modules/mbsnrtowcs (Depends-on): Likewise.
16005         * modules/mbsrtowcs (Depends-on): Likewise.
16006         * modules/mbtowc (Depends-on): Likewise.
16007         * modules/memcmp (Depends-on): Likewise.
16008         * modules/mkdir (Depends-on): Likewise.
16009         * modules/mkdtemp (Depends-on): Likewise.
16010         * modules/mkfifo (Depends-on): Likewise.
16011         * modules/mkfifoat (Depends-on): Likewise.
16012         * modules/mknod (Depends-on): Likewise.
16013         * modules/mkostemp (Depends-on): Likewise.
16014         * modules/mkostemps (Depends-on): Likewise.
16015         * modules/mkstemp (Depends-on): Likewise.
16016         * modules/mkstemps (Depends-on): Likewise.
16017         * modules/mktime (Depends-on): Likewise.
16018         * modules/nanosleep (Depends-on): Likewise.
16019         * modules/open (Depends-on): Likewise.
16020         * modules/openat (Depends-on): Likewise.
16021         * modules/perror (Depends-on): Likewise.
16022         * modules/poll (Depends-on): Likewise.
16023         * modules/popen (Depends-on): Likewise.
16024         * modules/posix_spawn (Depends-on): Likewise.
16025         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
16026         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
16027         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
16028         * modules/posix_spawnp (Depends-on): Likewise.
16029         * modules/pread (Depends-on): Likewise.
16030         * modules/printf-posix (Depends-on): Likewise.
16031         * modules/ptsname (Depends-on): Likewise.
16032         * modules/putenv (Depends-on): Likewise.
16033         * modules/pwrite (Depends-on): Likewise.
16034         * modules/readline (Depends-on): Likewise.
16035         * modules/readlink (Depends-on): Likewise.
16036         * modules/readlinkat (Depends-on): Likewise.
16037         * modules/recv (Depends-on): Likewise.
16038         * modules/recvfrom (Depends-on): Likewise.
16039         * modules/regex (Depends-on): Likewise.
16040         * modules/remove (Depends-on): Likewise.
16041         * modules/rename (Depends-on): Likewise.
16042         * modules/renameat (Depends-on): Likewise.
16043         * modules/rmdir (Depends-on): Likewise.
16044         * modules/round (Depends-on): Likewise.
16045         * modules/roundf (Depends-on): Likewise.
16046         * modules/roundl (Depends-on): Likewise.
16047         * modules/rpmatch (Depends-on): Likewise.
16048         * modules/select (Depends-on): Likewise.
16049         * modules/send (Depends-on): Likewise.
16050         * modules/sendto (Depends-on): Likewise.
16051         * modules/setenv (Depends-on): Likewise.
16052         * modules/setlocale (Depends-on): Likewise.
16053         * modules/setsockopt (Depends-on): Likewise.
16054         * modules/shutdown (Depends-on): Likewise.
16055         * modules/sigaction (Depends-on): Likewise.
16056         * modules/signbit (Depends-on): Likewise.
16057         * modules/sigprocmask (Depends-on): Likewise.
16058         * modules/sinl (Depends-on): Likewise.
16059         * modules/sleep (Depends-on): Likewise.
16060         * modules/snprintf (Depends-on): Likewise.
16061         * modules/snprintf-posix (Depends-on): Likewise.
16062         * modules/socket (Depends-on): Likewise.
16063         * modules/sprintf-posix (Depends-on): Likewise.
16064         * modules/sqrtl (Depends-on): Likewise.
16065         * modules/stat (Depends-on): Likewise.
16066         * modules/strchrnul (Depends-on): Likewise.
16067         * modules/strdup-posix (Depends-on): Likewise.
16068         * modules/strerror (Depends-on): Likewise.
16069         * modules/strerror_r-posix (Depends-on): Likewise.
16070         * modules/strndup (Depends-on): Likewise.
16071         * modules/strnlen (Depends-on): Likewise.
16072         * modules/strptime (Depends-on): Likewise.
16073         * modules/strsep (Depends-on): Likewise.
16074         * modules/strsignal (Depends-on): Likewise.
16075         * modules/strstr-simple (Depends-on): Likewise.
16076         * modules/strtod (Depends-on): Likewise.
16077         * modules/strtoimax (Depends-on): Likewise.
16078         * modules/strtok_r (Depends-on): Likewise.
16079         * modules/strtoumax (Depends-on): Likewise.
16080         * modules/symlink (Depends-on): Likewise.
16081         * modules/symlinkat (Depends-on): Likewise.
16082         * modules/tanl (Depends-on): Likewise.
16083         * modules/tcgetsid (Depends-on): Likewise.
16084         * modules/tmpfile (Depends-on): Likewise.
16085         * modules/trunc (Depends-on): Likewise.
16086         * modules/truncf (Depends-on): Likewise.
16087         * modules/truncl (Depends-on): Likewise.
16088         * modules/uname (Depends-on): Likewise.
16089         * modules/unlink (Depends-on): Likewise.
16090         * modules/unlockpt (Depends-on): Likewise.
16091         * modules/unsetenv (Depends-on): Likewise.
16092         * modules/usleep (Depends-on): Likewise.
16093         * modules/utimensat (Depends-on): Likewise.
16094         * modules/vasprintf (Depends-on): Likewise.
16095         * modules/vdprintf (Depends-on): Likewise.
16096         * modules/vdprintf-posix (Depends-on): Likewise.
16097         * modules/vfprintf-posix (Depends-on): Likewise.
16098         * modules/vprintf-posix (Depends-on): Likewise.
16099         * modules/vsnprintf (Depends-on): Likewise.
16100         * modules/vsnprintf-posix (Depends-on): Likewise.
16101         * modules/vsprintf-posix (Depends-on): Likewise.
16102         * modules/wcrtomb (Depends-on): Likewise.
16103         * modules/wcscasecmp (Depends-on): Likewise.
16104         * modules/wcscspn (Depends-on): Likewise.
16105         * modules/wcsdup (Depends-on): Likewise.
16106         * modules/wcsncasecmp (Depends-on): Likewise.
16107         * modules/wcsnrtombs (Depends-on): Likewise.
16108         * modules/wcspbrk (Depends-on): Likewise.
16109         * modules/wcsrtombs (Depends-on): Likewise.
16110         * modules/wcsspn (Depends-on): Likewise.
16111         * modules/wcsstr (Depends-on): Likewise.
16112         * modules/wcstok (Depends-on): Likewise.
16113         * modules/wcswidth (Depends-on): Likewise.
16114         * modules/wctob (Depends-on): Likewise.
16115         * modules/wctomb (Depends-on): Likewise.
16116         * modules/wctype (Depends-on): Likewise.
16117         * modules/wcwidth (Depends-on): Likewise.
16118         * modules/write (Depends-on): Likewise.
16119
16120 2011-05-03  Bruno Haible  <bruno@clisp.org>
16121
16122         Support for conditional dependencies.
16123         * doc/gnulib.texi (Module description): Document the syntax of
16124         conditional dependencies.
16125         * gnulib-tool: New option --conditional-dependencies.
16126         (func_usage): Document it.
16127         (cond_dependencies): New variable.
16128         (func_get_automake_snippet_conditional,
16129         func_get_automake_snippet_unconditional): New functions, extracted from
16130         func_get_automake_snippet.
16131         (func_get_automake_snippet): Use them.
16132         (sed_first_32_chars): New variable.
16133         (func_module_shellfunc_name): New function.
16134         (func_module_shellvar_name): New function.
16135         (func_module_conditional_name): New function.
16136         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
16137         func_cond_module_condition): New functions.
16138         (func_modules_transitive_closure): Add support for conditional
16139         dependencies.
16140         (func_emit_lib_Makefile_am): For a conditional module, enclose the
16141         conditional automake snippet in an automake conditional.
16142         (func_emit_autoconf_snippets): Emit shell functions that contain the
16143         code for conditional modules.
16144         (func_import, func_create_testdir): Update specification.
16145
16146 2011-05-03  Eric Blake  <eblake@redhat.com>
16147
16148         test-getaddrinfo: report error information
16149         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
16150
16151 2011-05-03  Jim Meyering  <meyering@redhat.com>
16152
16153         bootstrap: avoid build failure when $GZIP is set
16154         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
16155         program name.  If defined at all, it is supposed to list gzip options.
16156         Reported by Alan Curry in http://debbugs.gnu.org/8609
16157
16158 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
16159
16160         readme-release: new module with release instructions
16161         * modules/readme-release: New module.
16162         * top/README-release: New file, from coreutils, grep, diffutils.
16163         * MODULES.html.sh (Support for maintaining and releasing): Add it.
16164
16165 2011-05-02  Eric Blake  <eblake@redhat.com>
16166
16167         fflush: also replace fclose when fixing fflush
16168         * modules/fflush (Depends-on): Add fclose.
16169         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
16170         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
16171         memstreams with no backing fd.
16172         * doc/posix-functions/fclose.texi (fclose): Document the use of
16173         fflush module to fix the bug.
16174         * tests/test-fclose.c (main): Relax test when fclose is used in
16175         isolation.
16176
16177         fclose: add some tests
16178         * modules/fclose-tests: New test module.
16179         * tests/test-fclose.c: New file.
16180         * doc/posix-functions/fclose.texi (fclose): Document the bug.
16181
16182         fclose: reduced dependencies
16183         * modules/fclose (Depends-on): Switch from fflush/fseeko to
16184         simpler lseek.
16185         * lib/fclose.c (rpl_fclose): Likewise.
16186         Reported by Simon Josefsson.
16187
16188         exit: drop remaining clients
16189         * modules/argmatch (Depends-on): Replace exit with stdlib.
16190         * modules/copy-file (Depends-on): Likewise.
16191         * modules/execute (Depends-on): Likewise.
16192         * modules/exitfail (Depends-on): Likewise.
16193         * modules/obstack (Depends-on): Likewise.
16194         * modules/pagealign_alloc (Depends-on): Likewise.
16195         * modules/pipe-filter-gi (Depends-on): Likewise.
16196         * modules/pipe-filter-ii (Depends-on): Likewise.
16197         * modules/savewd (Depends-on): Likewise.
16198         * modules/spawn-pipe (Depends-on): Likewise.
16199         * modules/wait-process (Depends-on): Likewise.
16200         * modules/xsetenv (Depends-on): Likewise.
16201         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
16202         * modules/git-merge-changelog (Depends-on): Likewise.
16203         * modules/long-options (Depends-on): Likewise.
16204         * modules/pt_chown (Depends-on): Likewise.
16205         * modules/sysexits (Depends-on): Likewise.
16206
16207         freading: relax license from LGPLv3+ to LGPLv2+
16208         * modules/freading (License): Relax LGPL version.
16209
16210 2011-05-02  Bruno Haible  <bruno@clisp.org>
16211
16212         fchdir: Remove unused dependencies.
16213         * modules/fchdir (Depends-on): Remove include_next.
16214
16215 2011-05-02  Bruno Haible  <bruno@clisp.org>
16216
16217         gnulib-tool: Refactor.
16218         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
16219         from func_emit_autoconf_snippets.
16220         (func_emit_autoconf_snippets): Use it.
16221
16222 2011-05-02  Simon Josefsson  <simon@josefsson.org>
16223
16224         * NEWS: Document removal of 'exit'.
16225         * modules/exit: Remove file.
16226
16227 2011-05-01  Bruno Haible  <bruno@clisp.org>
16228
16229         Update DEPENDENCIES.
16230         * DEPENDENCIES (gettext): Recommend the newest release.
16231         Reported by Simon Josefsson.
16232
16233 2011-05-01  Bruno Haible  <bruno@clisp.org>
16234
16235         gnulib-tool: Reduce code duplication.
16236         * gnulib-tool (func_emit_autoconf_snippets): New function.
16237         (func_import, func_create_testdir): Use it.
16238
16239 2011-04-30  Eric Blake  <eblake@redhat.com>
16240
16241         fclose: don't fail on non-seekable input stream
16242         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
16243         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
16244         since fflush is allowed to fail in that case.
16245
16246 2011-04-30  Bruno Haible  <bruno@clisp.org>
16247
16248         dup3: cleanup
16249         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
16250
16251 2011-04-30  Bruno Haible  <bruno@clisp.org>
16252
16253         netdb: Make it work in C++ mode.
16254         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
16255         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
16256         module.
16257         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
16258         gl_MODULE_INDICATOR_FOR_TESTS.
16259         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
16260         * modules/netdb-c++-tests: New file.
16261         * tests/test-netdb-c++.cc: New file.
16262
16263 2011-04-30  Bruno Haible  <bruno@clisp.org>
16264
16265         New modules 'vfscanf', 'vscanf'.
16266         * modules/vfscanf: New file.
16267         * modules/vscanf: New file.
16268         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
16269         here.
16270         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
16271         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
16272
16273 2011-04-30  Bruno Haible  <bruno@clisp.org>
16274
16275         passfd: Add comments.
16276         * lib/passfd.c: Add comments about platforms.
16277
16278 2011-04-30  Bruno Haible  <bruno@clisp.org>
16279
16280         sys_uio: Make <sys/uio.h> self-contained.
16281         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
16282         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
16283
16284 2011-04-30  Bruno Haible  <bruno@clisp.org>
16285
16286         sys_socket: Ensure 'struct iovec' definition.
16287         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
16288         <sys/socket.h>.
16289         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
16290
16291 2011-04-30  Bruno Haible  <bruno@clisp.org>
16292
16293         sys_uio: Protect definition of 'struct iovec'.
16294         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
16295         it as a C struct.
16296
16297 2011-04-30  Bruno Haible  <bruno@clisp.org>
16298
16299         manywarnings: fix indentation
16300         * m4/manywarnings.m4: Indent by 2 spaces consistently.
16301
16302 2011-04-30  Pádraig Brady <P@draigBrady.com>
16303
16304         manywarnings: add -Wno-missing-field-initializers if needed.
16305         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
16306         option if it's needed to allow initialization with { 0, }
16307
16308 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
16309
16310         announce-gen: cosmetic improvement
16311         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
16312
16313 2011-04-29  Jim Meyering  <meyering@redhat.com>
16314
16315         vc-list-files: indent with spaces, not TABs
16316         * build-aux/vc-list-files: Convert leading TABs to spaces,
16317         to match the style of most other files in gnulib.
16318
16319         announce-gen: indent with spaces, not TABs
16320         * build-aux/announce-gen: Convert all TABs to spaces, to match
16321         the style of most other files in gnulib.
16322
16323 2011-04-29  Eric Blake  <eblake@redhat.com>
16324
16325         quotearg: avoid uninitialized variable use
16326         * lib/quotearg.c (quoting_options_from_style): Initialize
16327         remaining fields, and ensure that custom styles are only used via
16328         quoting_options rather than quoting_style.
16329
16330 2011-04-29  Jim Meyering  <meyering@redhat.com>
16331
16332         maint.mk: remove unused VC-tag variable
16333         * top/maint.mk (VC-tag): Remove unused variable.
16334
16335 2011-04-29  Bruno Haible  <bruno@clisp.org>
16336
16337         netdb: fix gai_strerror replacements
16338         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
16339         * modules/netdb: Substitute it.
16340
16341 2011-04-29  Jim Meyering  <meyering@redhat.com>
16342
16343         test-getcwd.c: avoid new set-but-not-used warning
16344         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
16345         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
16346         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
16347         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
16348
16349         test-hash.c: avoid a new shadowing warning
16350         * tests/test-hash.c (main): Don't shadow "dup".
16351
16352 2011-04-28  Eric Blake  <eblake@redhat.com>
16353
16354         getaddrinfo: fix gai_strerror signature
16355         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
16356         and work around mingw with UNICODE defined.
16357         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
16358         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
16359         * modules/netdb (Makefile.am): Substitute it.
16360         * lib/netdb.in.h (gai_strerror): Declare replacement.
16361         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
16362         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
16363         the fix.
16364
16365         getsockopt: avoid compiler warning
16366         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
16367         Reported by Matthias Bolte.
16368
16369         tests: drop unused link dependency
16370         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
16371         * modules/dirent-safer-tests (Makefile.am): Likewise.
16372         * modules/fdopendir-tests (Makefile.am): Likewise.
16373         * modules/mkfifoat-tests (Makefile.am): Likewise.
16374         * modules/openat-safer-tests (Makefile.am): Likewise.
16375         * modules/openat-tests (Makefile.am): Likewise.
16376         * modules/readlinkat-tests (Makefile.am): Likewise.
16377         * modules/symlinkat-tests (Makefile.am): Likewise.
16378         * modules/linkat-tests (Makefile.am): Likewise.
16379         (Depends-on): Switch to filenamecat-lgpl.
16380         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
16381         LIBINTL.
16382         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
16383         * tests/test-linkat.c (main): Don't require xalloc.
16384
16385         hash, mgetgroups: drop xalloc dependency
16386         * lib/hash.c (includes): Adjust includes.
16387         * lib/mgetgroups.c (includes): Likewise.
16388         (xgetgroups): Move...
16389         * lib/xgetgroups.c: ...to new file.
16390         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
16391         * modules/xgetgroups: New file, split from...
16392         * modules/mgetgroups: ...here.
16393         (Depends-on): Add xalloc-oversized.
16394         * modules/hash (Depends-on): Likewise.
16395         * modules/hash-tests (Depends-on): Drop xalloc.
16396         (test_hash_LDADD): Drop unused library.
16397         * tests/test-hash.c (main): Break xalloc dependency.
16398         (includes): Drop unused include.
16399
16400         xalloc-oversized: new module
16401         * modules/xalloc-oversized: New module.
16402         * modules/xalloc (Depends-on): Add it.
16403         * lib/xalloc.h (xalloc_oversized): Move...
16404         * lib/xalloc-oversized.h: ...into new file.
16405
16406         utimecmp: drop dependency on xmalloc
16407         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
16408         due to memory pressure.
16409         * modules/utimecmp (Depends-on): Drop xalloc.
16410
16411 2011-04-27  Eric Blake  <eblake@redhat.com>
16412
16413         getcwd: fix mingw bugs
16414         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
16415         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
16416         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
16417
16418 2011-04-27  Bruno Haible  <bruno@clisp.org>
16419
16420         mkstemps: Ensure declaration on MacOS X 10.5.
16421         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
16422         * doc/glibc-functions/mkstemps.texi: Document header file problem on
16423         MacOS X.
16424
16425 2011-04-27  Bruno Haible  <bruno@clisp.org>
16426
16427         mkstemp: More documentation.
16428         * doc/posix-functions/mkstemp.texi: Document header file problem on
16429         MacOS X.
16430
16431 2011-04-27  Bruno Haible  <bruno@clisp.org>
16432
16433         mkstemp: Tweak configure message when cross-compiling.
16434         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
16435         result as a guess.
16436
16437 2011-04-27  Bruno Haible  <bruno@clisp.org>
16438
16439         clean-temp: Clarify what it does.
16440         * lib/clean-temp.h: Add more comments.
16441         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
16442         module.
16443         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
16444         * doc/glibc-functions/mkstemps.texi: Likewise.
16445         * doc/glibc-functions/mkostemps.texi: Likewise.
16446
16447 2011-04-27  Eric Blake  <eblake@redhat.com>
16448
16449         fchdir: avoid extra chdir and fix test
16450         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
16451         getcwd-lgpl.
16452         * lib/fchdir.c (get_name): Any absolute name will do; it does not
16453         have to be canonical.
16454         (canonicalize_file_name): Drop unused macro.
16455         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
16456
16457         filenamecat-lgpl: fix licence
16458         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
16459         when it was first created.
16460
16461         linkat, renameat: add missing dependency
16462         * modules/linkat (Depends-on): Require getcwd-lgpl.
16463         * modules/renameat (Depends-on): Likewise.
16464
16465         tests: reduce dependencies
16466         * tests/test-linkat.c (main): Use lighter-weight getcwd.
16467         * tests/test-renameat.c (main): Likewise.
16468         * modules/linkat-tests (Depends-on): Relax dependency.
16469         * modules/renameat-tests (Depends-on): Likewise.
16470         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
16471         dependency explicit.
16472
16473         save-cwd: reduce default dependency
16474         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
16475         * lib/save-cwd.c: Update comments.
16476         * NEWS: Document the semantic change.
16477
16478         getcwd: enhance tests
16479         * tests/test-getcwd-lgpl.c: New file, taken from...
16480         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
16481         repeat long path stress tests from m4 probe.
16482         * modules/getcwd-lgpl-tests: New module.
16483         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
16484         * m4/getcwd-abort-bug.m4: Update comment.
16485         * m4/getcwd-path-max.m4: Likewise.
16486
16487         getcwd-lgpl: new module
16488         * modules/getcwd-lgpl: New module.
16489         * lib/getcwd-lgpl.c: New file.
16490         * doc/posix-functions/getcwd.texi (getcwd): Document it.
16491         * MODULES.html.sh (lacking POSIX:2008): Likewise.
16492         * modules/getcwd (configure.ac): Set C witness.
16493         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
16494
16495         getcwd: tweak comments
16496         * m4/getcwd-abort-bug.m4: Fix comments.
16497         * m4/getcwd-path-max.m4: Likewise.
16498         * m4/getcwd.m4: Likewise.
16499
16500 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
16501         and Eric Blake  <eblake@redhat.com>
16502
16503         mkstemp: replace if system version uses wrong permissions
16504         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
16505         read/write mode bits set in file created by mkstemp.
16506         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
16507
16508 2011-04-27  Eric Blake  <eblake@redhat.com>
16509
16510         passfd: avoid compiler warning
16511         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
16512         Reported by Laine Stump.
16513
16514 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
16515
16516         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
16517         required by the NetBSD (and perhaps other 4.4BSD derived) join.
16518
16519 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
16520         and Eric Blake  <eblake@redhat.com>
16521
16522         mkstemp: mention clean-temp module
16523         * lib/mkstemp.c: Add comment.
16524         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
16525
16526 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
16527
16528         inttypes: also provide default values for 32-bit tests
16529         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
16530         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
16531
16532 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
16533
16534         strtoumax: remove dependency on strtoimax
16535         This is like the strtoull change of yesterday.
16536         * modules/strtoumax (Files): Add lib/strtoimax.c.
16537         (Depends-on): Remove strtoimax and add verify.
16538
16539         inttypes-incomplete: new module
16540         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
16541         all but the PRI* and SCN* parts of gl_INTTYPES_H.
16542         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
16543         of gl_INTTYPES_H.
16544         (gl_INTTYPES_H): Rewrite in terms of these new macros.
16545         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
16546         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
16547         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
16548         * modules/strtoumax, modules/xstrtol (Depends-on):
16549         Depend on inttypes-incomplete, not inttypes.
16550         * modules/inttypes-incomplete: New module, containing the contents
16551         of the old modules/inttypes module, except that the Files: section
16552         omits m4/inttypes-pri.m4, and the configure.ac section invokes
16553         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
16554         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
16555         (Depends-on): Depend only on inttypes-incomplete.
16556         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
16557
16558         inttypes: omit now-redundant strtoimax and strtoumax work
16559         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
16560         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
16561
16562         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
16563         This supports apps that need pointers to strtoimax and strtoumax,
16564         and ports to HP-UX 11.00 64.bit, which has macros that expand to
16565         nonexistent functions.  See
16566         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
16567         et seq.
16568         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
16569         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
16570         a macro.
16571         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
16572
16573 2011-04-25  Simon Josefsson  <simon@josefsson.org>
16574
16575         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
16576
16577 2011-04-25  Bruno Haible  <bruno@clisp.org>
16578
16579         strtol, strtoul: Mark modules as obsolete.
16580         * modules/strtol (Status, Notice): New sections.
16581         * modules/strtoul (Status, Notice): New sections.
16582
16583 2011-04-25  Bruno Haible  <bruno@clisp.org>
16584
16585         strtod: Remove check for strtod, unless supporting old platforms.
16586         * modules/strtod-obsolete: New file.
16587         * m4/strtod-obsolete.m4: New file.
16588         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
16589         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
16590         * modules/strtod (Depends-on): Add strtod-obsolete.
16591         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
16592
16593 2011-04-25  Bruno Haible  <bruno@clisp.org>
16594
16595         strcase: Make module obsolete.
16596         * modules/strcase (Status, Notice): New sections.
16597
16598 2011-04-25  Bruno Haible  <bruno@clisp.org>
16599
16600         dup2: Remove check for dup2, unless supporting old obsolete platforms.
16601         * modules/dup2-obsolete: New file.
16602         * m4/dup2-obsolete.m4: New file.
16603         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
16604         gl_FUNC_DUP2_OBSOLETE is not also defined.
16605         * modules/dup2 (Depends-on): Add dup2-obsolete.
16606         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
16607
16608 2011-04-25  Bruno Haible  <bruno@clisp.org>
16609
16610         strnlen: Avoid memchr related link error on old obsolete platforms.
16611         * modules/memchr-obsolete: New file.
16612         * m4/memchr-obsolete.m4: New file.
16613         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
16614         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
16615         * modules/memchr (Depends-on): Add memchr-obsolete.
16616         * modules/strnlen (Depends-on): Likewise.
16617         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
16618
16619 2011-04-25  Jim Meyering  <meyering@redhat.com>
16620
16621         maint.mk: makefile_at_at_check extend and clean up
16622         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
16623         in addition to */Makefile.am.
16624         Exempt legitimate uses of @VAR@ notation, e.g.,
16625         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
16626         Remove obsolete coreutils-specific comment.
16627         Prompted by discussion here:
16628         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
16629
16630 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
16631
16632         strtoul: remove dependency on strtol
16633         This is so that 'configure' need not check for strtol merely because
16634         the application needs strtoul.
16635         * modules/strtoul (Files): Add lib/strtol.c.
16636         (Depends-on): Remove strtol.
16637
16638         strtoull: remove dependency on strtoul
16639         This is like the strtoll change.
16640         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
16641         (Depends-on): Remove strtoul.
16642
16643         strtoll: remove dependency on strtol
16644         This is so that 'configure' need not check for strtol merely because
16645         the application needs strtoll.
16646         * modules/strtoll (Files): Add lib/strtol.c.
16647         (Depends-on): Remove strtol.
16648
16649 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16650
16651         inttypes: Move some configure check to module 'imaxdiv'.
16652         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
16653         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
16654         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
16655
16656 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16657
16658         inttypes: Move some configure check to module 'imaxabs'.
16659         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
16660         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
16661         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
16662
16663 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16664
16665         inttypes: Remove configure tests that are not needed since 2009-12-31.
16666         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
16667         gl_cv_header_working_inttypes_h.
16668
16669 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
16670
16671         * modules/strnlen (Depends-on): Remove memchr.
16672         The strnlen implementation doesn't need the memchr module's fixes; see
16673         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
16674
16675         strtol: remove dependency on wchar
16676         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
16677         * modules/strtol (Depends-on): Remove wchar.
16678
16679 2011-04-21  Eric Blake  <eblake@redhat.com>
16680
16681         passfd: fix test regression on Linux
16682         * modules/passfd-tests (configure.ac): Correct socketpair check.
16683
16684         passfd: speed up configure and drop unused code
16685         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
16686         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
16687         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
16688         Instead of probing at configure for unix_scm_rights_bsd44_way,
16689         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
16690         check to a struct member probe.
16691         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
16692         (sendfd, recvfd): Update preprocessor checks.
16693         * modules/passfd (Files): Reflect rename, and drop unused file.
16694         (Depends-on): Drop unused dependency.
16695
16696         passfd: allow compilation on mingw
16697         * modules/sys_socket (Depends-on): Add sys_uio.
16698         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
16699         iovec and a minimal struct msghdr.
16700         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
16701         * tests/test-sys_socket.c (main): Enhance test.
16702         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
16703         guaranteed to provide what we need.
16704         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
16705         * modules/passfd-tests (Depends-on): Add sys_wait.
16706         * tests/test-passfd.c (main): Skip test on mingw, for now.
16707         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
16708         partial 'struct msghdr' implementation.
16709
16710         sys_uio: new module
16711         * modules/sys_uio: New module.
16712         * modules/sys_uio-tests: Likewise.
16713         * lib/sys_uio.in.h: New file.
16714         * m4/sys_uio_h.m4: Likewise.
16715         * tests/test-sys_uio.c: Likewise.
16716         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
16717         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
16718
16719 2011-04-20  Jim Meyering  <meyering@redhat.com>
16720
16721         useless-if-before-free: avoid false-positive
16722         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
16723         disjunct so that it too requires a terminating ";".  Without that,
16724         this script would identify as useless one statement from gcc that
16725         was not:
16726           if (aligned_ptr)
16727             free (((void **) aligned_ptr) [-1]);
16728
16729 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
16730
16731         doc: update users.txt.
16732         * users.txt: Add barcode.
16733
16734 2011-04-19  Bruno Haible  <bruno@clisp.org>
16735
16736         ioctl: Remove link dependency on native Windows.
16737         * lib/fd-hook.h: Renamed from lib/close-hook.h.
16738         (gl_close_fn, gl_ioctl_fn): New types.
16739         (struct fd_hook): Renamed from struct close_hook. Change type of
16740         private_close_fn field. Add private_ioctl_fn field.
16741         (close_hook_fn): Add parameter for primary close method.
16742         (execute_close_hooks, execute_all_close_hooks): Likewise.
16743         (ioctl_hook_fn): New type.
16744         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
16745         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
16746         argument.
16747         (unregister_fd_hook): Renamed from unregister_close_hook.
16748         * lib/fd-hook.c: Renamed from lib/close-hook.c.
16749         Don't include <unistd.h>.
16750         (close): Remove undef.
16751         (anchor): Update.
16752         (execute_close_hooks): Add argument for primary close method.
16753         (execute_all_close_hooks): Likewise.
16754         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
16755         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
16756         argument. Allow each argument to be NULL.
16757         (unregister_fd_hook): Renamed from unregister_close_hook.
16758         * lib/close.c (rpl_close): Pass 'close' function pointer to
16759         execute_all_close_hooks.
16760         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
16761         (primary_ioctl): New function.
16762         (ioctl): Don't call ioctlsocket here. Instead, call
16763         execute_all_ioctl_hooks.
16764         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
16765         close method.
16766         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
16767         (fd_sockets_hook): Renamed from close_sockets_hook.
16768         (gl_sockets_startup, gl_sockets_cleanup): Update.
16769         * modules/fd-hook: Renamed from modules/close-hook. Update.
16770         * modules/close (Depends-on): Add fd-hook, remove close-hook.
16771         * modules/sockets (Depends-on): Likewise.
16772         * modules/ioctl (Depends-on): Add fd-hook.
16773         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
16774         GNULIB_SOCKET.
16775
16776 2011-04-19  Bruno Haible  <bruno@clisp.org>
16777
16778         Move the support of O_NONBLOCK in open() to the 'open' module.
16779         * modules/nonblocking (Depends-on): Remove 'open'.
16780         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
16781         gl_cv_have_open_O_NONBLOCK.
16782         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
16783         O_NONBLOCK support.
16784         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
16785
16786 2011-04-17  Bruno Haible  <bruno@clisp.org>
16787
16788         pipe2: Simplify code.
16789         * lib/pipe2.c (pipe2): Reduce code duplication.
16790
16791 2011-04-17  Bruno Haible  <bruno@clisp.org>
16792
16793         nonblocking: Add comment.
16794         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
16795
16796 2011-04-17  Bruno Haible  <bruno@clisp.org>
16797
16798         nonblocking: Add tests for sockets.
16799         * tests/test-nonblocking-socket.sh: New file.
16800         * tests/test-nonblocking-socket-main.c: New file.
16801         * tests/test-nonblocking-socket-child.c: New file.
16802         * tests/test-nonblocking-socket.h: New file.
16803         * tests/socket-server.h: New file.
16804         * tests/socket-client.h: New file.
16805         * modules/nonblocking-socket-tests: New file.
16806         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
16807
16808 2011-04-17  Bruno Haible  <bruno@clisp.org>
16809
16810         nonblocking: Add tests for pipes.
16811         * tests/test-nonblocking-pipe.sh: New file.
16812         * tests/test-nonblocking-pipe-main.c: New file.
16813         * tests/test-nonblocking-pipe-child.c: New file.
16814         * tests/test-nonblocking-pipe.h: New file.
16815         * tests/test-nonblocking-writer.h: New file.
16816         * tests/test-nonblocking-reader.h: New file.
16817         * tests/test-nonblocking-misc.h: New file.
16818         * modules/nonblocking-pipe-tests: New file.
16819         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
16820
16821 2011-04-16  Bruno Haible  <bruno@clisp.org>
16822
16823         gettext: Clarify the needed programmer actions.
16824         * modules/gettext (Notice): New field.
16825         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
16826
16827 2011-04-16  Bruno Haible  <bruno@clisp.org>
16828
16829         strchrnul: Tweak last commit.
16830         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
16831         bug.
16832         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
16833         as in _GL_FUNCDECL_SYS.
16834         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
16835         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
16836
16837 2011-04-15  Eric Blake  <eblake@redhat.com>
16838
16839         strchrnul: work around cygwin bug
16840         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
16841         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
16842         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
16843         * modules/string (Makefile.am): Substitute it.
16844         * lib/string.in.h (strchrnul): Use it.
16845
16846 2011-04-15  Bruno Haible  <bruno@clisp.org>
16847
16848         Don't require lib/stdio-write.c when only module 'stdio' is used.
16849         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
16850         invocation.
16851         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
16852
16853 2011-04-14  Bruno Haible  <bruno@clisp.org>
16854
16855         Support non-blocking pipe I/O in read() on native Windows.
16856         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
16857         (read): New declaration.
16858         * lib/read.c: New file.
16859         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
16860         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
16861         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
16862         vscanf): New declarations.
16863         * lib/stdio-read.c: New file.
16864         * m4/read.m4: New file.
16865         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
16866         REPLACE_READ.
16867         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
16868         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
16869         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
16870         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
16871         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
16872         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
16873         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
16874         * modules/read: New file.
16875         * modules/nonblocking (Files): Add lib/stdio-read.c.
16876         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
16877         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
16878         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
16879         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
16880         * modules/pread (Depends-on): Add read.
16881         * modules/safe-read (Depends-on): Likewise.
16882         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
16883         gets, scanf, vfscanf, vscanf): Verify signatures.
16884         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
16885         problem with non-blocking pipes.
16886         * doc/posix-functions/fgetc.texi: Likewise.
16887         * doc/posix-functions/fgets.texi: Likewise.
16888         * doc/posix-functions/fread.texi: Likewise.
16889         * doc/posix-functions/fscanf.texi: Likewise.
16890         * doc/posix-functions/getc.texi: Likewise.
16891         * doc/posix-functions/getchar.texi: Likewise.
16892         * doc/posix-functions/gets.texi: Likewise.
16893         * doc/posix-functions/scanf.texi: Likewise.
16894         * doc/posix-functions/vfscanf.texi: Likewise.
16895         * doc/posix-functions/vscanf.texi: Likewise.
16896
16897 2011-04-14  Bruno Haible  <bruno@clisp.org>
16898
16899         Support non-blocking pipe I/O in write() on native Windows.
16900         * lib/write.c (rpl_write): Split a write request that failed merely
16901         because the byte count was larger than the pipe buffer's size.
16902         * doc/posix-functions/write.texi: Mention the problem with large byte
16903         counts.
16904
16905 2011-04-14  Bruno Haible  <bruno@clisp.org>
16906
16907         wchar: Ensure that wchar_t gets defined on uClibc.
16908         * lib/wchar.in.h: On uClibc, include <stddef.h>.
16909         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
16910
16911 2011-04-13  Bruno Haible  <bruno@clisp.org>
16912
16913         safe-write, full-read: Avoid unnecessary compilation units.
16914         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
16915         (Depends-on): Remove safe-read. Add ssize_t.
16916         * modules/full-read (Files): Add lib/full-write.c.
16917         (Depends-on): Add full-write.
16918
16919 2011-04-13  Bruno Haible  <bruno@clisp.org>
16920
16921         Support non-blocking pipe I/O and SIGPIPE in pwrite().
16922         * modules/pwrite (Depends-on): Add 'write'.
16923
16924 2011-04-13  Bruno Haible  <bruno@clisp.org>
16925
16926         Support non-blocking pipe I/O in write() on native Windows.
16927         * lib/unistd.in.h (write): Enable replacement also if
16928         GNULIB_UNISTD_H_NONBLOCKING is 1.
16929         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
16930         (rpl_write): When failing to write on a non-blocking pipe, change
16931         errno from ENOSPC to EAGAIN.
16932         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
16933         putchar, puts, vfprintf, vprintf): Enable replacement also if
16934         GNULIB_STDIO_H_NONBLOCKING is 1.
16935         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
16936         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
16937         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
16938         CALL_WITH_SIGPIPE_EMULATION.
16939         (CALL_WITH_SIGPIPE_EMULATION): Use them.
16940         * m4/nonblocking.m4: New file.
16941         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
16942         for non-blocking I/O support.
16943         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16944         GNULIB_UNISTD_H_NONBLOCKING.
16945         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
16946         required for non-blocking I/O support.
16947         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
16948         * modules/nonblocking (Files): Add m4/nonblocking.m4,
16949         lib/stdio-write.c, m4/asm-underscore.m4.
16950         (Depends-on): Add stdio, unistd.
16951         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
16952         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
16953         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
16954         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
16955         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
16956         problem with non-blocking pipes.
16957         * doc/posix-functions/fputc.texi: Likewise.
16958         * doc/posix-functions/fputs.texi: Likewise.
16959         * doc/posix-functions/fwrite.texi: Likewise.
16960         * doc/posix-functions/printf.texi: Likewise.
16961         * doc/posix-functions/putc.texi: Likewise.
16962         * doc/posix-functions/putchar.texi: Likewise.
16963         * doc/posix-functions/puts.texi: Likewise.
16964         * doc/posix-functions/vfprintf.texi: Likewise.
16965         * doc/posix-functions/vprintf.texi: Likewise.
16966         * doc/posix-functions/write.texi: Likewise.
16967
16968 2011-04-10  Jim Meyering  <meyering@redhat.com>
16969
16970         maint.mk: prohibit doubled words
16971         Detect them also when they're separated by a newline.
16972         There are 3 ways to customize it:
16973           - disable the test on a per file basis, as usual with rules using
16974             $(VC_LIST_EXCEPT)
16975           - replace the default doubled-word-selecting regexp (affects all files)
16976           - ignore a particular file-vs-doubled-word match
16977         I nearly used that last one to ignore the "is is" match in
16978         coreutils' NEWS file, since the text was "ls -is is ..."
16979         To do that, I would have added this line to cfg.mk:
16980           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
16981         but it would have ignored any "is is" match in NEWS.
16982         Low probability, but still...
16983         Instead, I changed the text, slightly:
16984           -  ls -is is now consistent with ls -lis in ignoring values returned
16985           +  "ls -is" is now consistent with ls -lis in ignoring values returned
16986         * top/maint.mk (prohibit_double_word_RE_): Provide default.
16987         (prohibit_doubled_word_): Define.
16988         (sc_prohibit_doubled_word): New rule.
16989         (sc_prohibit_the_the): Remove.  Subsumed by the above.
16990
16991 2011-04-10  Jim Meyering  <meyering@redhat.com>
16992
16993         maint: fix doubled-word typo in comment
16994         * m4/gethostname.m4: s/is is/it is/
16995         * m4/getdomainname.m4: Likewise.
16996
16997 2011-04-10  Jim Meyering  <meyering@redhat.com>
16998
16999         maint: remove doubled word: s/it it/it/
17000         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
17001
17002 2011-04-10  Jim Meyering  <meyering@redhat.com>
17003
17004         maint.mk: remove useless semicolon and backslash
17005         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
17006         semicolon and backslash.
17007
17008 2011-04-10  Bruno Haible  <bruno@clisp.org>
17009
17010         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
17011         * modules/stdint-tests (Depends-on): Add wchar.
17012
17013 2011-04-10  Jim Meyering  <meyering@redhat.com>
17014
17015         maint: remove doubled words in comments, e.g., s/a a/a/
17016         * lib/strptime.c (day_of_the_week): s/the the/the/
17017         * tests/test-chown.h (test_chown): s/a a/a/
17018
17019         test-chown.h: correct a cast
17020         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
17021         when the destination is a stat.st_gid.
17022
17023 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
17024
17025         getaddrinfo: Fix test for sa_len member.
17026         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
17027         include <sys/types.h> before <sys/socket.h>.
17028
17029 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
17030
17031         maint: change "can not" to "cannot"
17032         * doc/posix-functions/iconv.texi (iconv): This one crossed line
17033         boundaries.
17034
17035 2011-04-09  Jim Meyering  <meyering@redhat.com>
17036
17037         maint: change "a a" to "a"
17038         * tests/test-lchown.h (test_lchown): s/a a/a/
17039
17040         maint.mk: prohibit \<the the\>
17041         * top/maint.mk (sc_prohibit_the_the): New rule.
17042
17043         maint: fix "the the" in comment
17044         * lib/count-one-bits.h: s/the the/the/
17045
17046         maint: change "can not" to "cannot"
17047         But do not change the occurrences in maintain.texi or in
17048         build-aux/po/Makefile.in.in, which I presume comes from gettext.
17049         * doc/gnulib-tool.texi: s/can not/cannot/
17050         * doc/posix-functions/accept.texi (accept): Likewise.
17051         * doc/posix-functions/socket.texi (socket): Likewise.
17052         * lib/mbrtowc.c: Likewise.
17053
17054         maint.mk: prohibit use of "can not"
17055         * top/maint.mk (sc_prohibit_can_not): New rule.
17056         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
17057
17058 2011-04-09  Bruno Haible  <bruno@clisp.org>
17059
17060         careadlinkat: Guard against misuse of careadlinkatcwd.
17061         * lib/careadlinkat.c: Include <stdlib.h>.
17062         (careadlinkatcwd): Check that the fd argument is as expected.
17063
17064 2011-04-09  Bruno Haible  <bruno@clisp.org>
17065
17066         careadlinkat: Use common coding style.
17067         * lib/careadlinkat.c: Move gnulib includes after system includes.
17068
17069 2011-04-09  Bruno Haible  <bruno@clisp.org>
17070
17071         careadlinkat: Clarify specification.
17072         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
17073         (careadlinkatcwd): Add comment.
17074         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
17075
17076 2011-04-09  Bruno Haible  <bruno@clisp.org>
17077
17078         areadlinkat: Avoid link error on many platforms.
17079         * modules/areadlinkat (Depends-on): Add areadlink.
17080
17081 2011-04-09  Bruno Haible  <bruno@clisp.org>
17082
17083         allocator, careadlinkat: Fix double-inclusion guard.
17084         * lib/allocator.h: Fix double-inclusion guard.
17085         * lib/careadlinkat.h: Likewise.
17086
17087 2011-04-09  Bruno Haible  <bruno@clisp.org>
17088
17089         relocatable-prog-wrapper: Update after module 'areadlink' changed.
17090         * lib/relocwrapper.c: Update dependencies hierarchy.
17091         * build-aux/install-reloc: Update list of files to be compiled.
17092         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
17093         lib/allocator.[hc].
17094
17095 2011-04-08  Eric Blake  <eblake@redhat.com>
17096
17097         strftime: silence gnulib-tool warning
17098         * modules/strftime-tests (Depends-on): Drop automatic dependency.
17099
17100 2011-04-08  Bruno Haible  <bruno@clisp.org>
17101
17102         verify: Fix syntax error with GCC 4.6 in C++ mode.
17103         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
17104         (HAVE_STATIC_ASSERT): New macro.
17105         (verify_true, verify): Use 'static_assert' if it is supported and
17106         '_Static_assert' is not supported.
17107
17108 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
17109
17110         allocator: New module.
17111         * modules/allocator, lib/allocator.c: New files.
17112         * lib/allocator.h (stdlib_allocator): New decl.
17113         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
17114         Remove.  Do not include <stdlib.h>.
17115         (careadlinkat): Use stdlib_allocator instead of rolling our own.
17116         * modules/careadlinkat (Files): Remove lib/allocator.h.
17117         (Depends-on): Add allocator.
17118
17119         stdlib: let modules use system malloc, realloc
17120         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
17121         if !_GL_USE_STDLIB_ALLOC.
17122         (malloc, realloc): Limit this change to a smaller scope.
17123
17124         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
17125         (malloc, realloc): Don't #undef; no longer needed.
17126         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17127         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17128         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
17129         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17130         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17131         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17132         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
17133         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
17134
17135         careadlinkat: rename members to avoid problem
17136         * lib/allocator.h (struct allocator): Rename members from
17137         malloc/realloc to allocate/reallocate, to avoid problems if malloc
17138         and realloc are #define'd.  Reported by Eric Blake in
17139         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
17140         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
17141
17142 2011-04-08  Eric Blake  <eblake@redhat.com>
17143
17144         nonblocking: reduce dependency
17145         * tests/test-nonblocking.c: Only test sockets when in use.
17146         * modules/nonblocking-tests (Depends-on): Drop socket.
17147         (Makefile.am): Link even if sockets are not present.
17148         * modules/pipe2-tests (Makefile.am): Likewise.
17149         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
17150
17151         pipe2: fix O_NONBLOCK support on mingw
17152         * modules/pipe2 (Depends-on): Add nonblocking.
17153         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
17154         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
17155         * tests/test-nonblocking.c (main): Likewise.
17156         * modules/pipe2-tests (Makefile.am): Avoid link failure.
17157
17158         fcntl-h: fix O_ACCMODE on cygwin
17159         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
17160         * lib/fcntl.in.h (O_ACCMODE): Fix it.
17161
17162         pipe-filter: drop O_NONBLOCK workarounds
17163         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
17164         * modules/pipe-filter-ii (Depends-on): Likewise.
17165         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
17166
17167         nonblocking: provide O_NONBLOCK for mingw
17168         * modules/nonblocking (Depends-on): Add open.
17169         (configure.ac): Set new witness macro.
17170         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
17171         * modules/fcntl-h (Makefile.am): Substitute it.
17172         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
17173         nonblocking module is in use.
17174         * lib/nonblocking.c: Adjust portability test.
17175         * lib/open.c (open): Don't let native open see gnulib flag.
17176         * tests/test-fcntl-h.c (main): Enhance test.
17177         * tests/test-open.h (test_open): Likewise.
17178         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
17179
17180         careadlinkat: fix compilation error on mingw
17181         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
17182         within struct allocator.
17183
17184 2011-04-06  Eric Blake  <eblake@redhat.com>
17185
17186         binary-io: relicense under LGPLv2+
17187         * modules/binary-io (License): Relax to LGPLv2+.
17188         Requested for libvirt, and required by pipe2.
17189
17190 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
17191
17192         verify: use _Static_assert if available
17193         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
17194         (verify_true, verify): Use it if available.  This generates better
17195         diagnostics with GCC 4.6.0 and later.
17196
17197 2011-04-05  Bruno Haible  <bruno@clisp.org>
17198
17199         Remove leftover generated .h files after config.status changed.
17200
17201         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
17202         GL_GENERATE_ALLOCA_H.
17203         * modules/alloca-opt (Makefile.am): Remove alloca.h if
17204         GL_GENERATE_ALLOCA_H evaluates to false.
17205
17206         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
17207         GL_GENERATE_ARGZ_H.
17208         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
17209         evaluates to false.
17210
17211         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
17212         GL_GENERATE_BYTESWAP_H.
17213         * modules/byteswap (Makefile.am): Remove byteswap.h if
17214         GL_GENERATE_BYTESWAP_H evaluates to false.
17215
17216         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
17217         GL_GENERATE_ERRNO_H.
17218         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
17219         evaluates to false.
17220
17221         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
17222         GL_GENERATE_FLOAT_H.
17223         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
17224         evaluates to false.
17225
17226         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
17227         GL_GENERATE_FNMATCH_H.
17228         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
17229         GL_GENERATE_FNMATCH_H evaluates to false.
17230
17231         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
17232         GL_GENERATE_GLOB_H.
17233         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
17234         evaluates to false.
17235
17236         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
17237         automake conditional GL_GENERATE_ICONV_H.
17238         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
17239         evaluates to false.
17240
17241         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
17242         GL_GENERATE_NETINET_IN_H.
17243         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
17244         GL_GENERATE_NETINET_IN_H evaluates to false.
17245
17246         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
17247         conditional GL_GENERATE_PTHREAD_H.
17248         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
17249         * modules/pthread (Makefile.am): Remove pthread.h if
17250         GL_GENERATE_PTHREAD_H evaluates to false.
17251
17252         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
17253         GL_GENERATE_SCHED_H.
17254         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
17255         evaluates to false.
17256
17257         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
17258         conditional GL_GENERATE_SELINUX_CONTEXT_H.
17259         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
17260         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
17261
17262         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
17263         GL_GENERATE_STDARG_H.
17264         * modules/stdarg (Makefile.am): Remove stdarg.h if
17265         GL_GENERATE_STDARG_H evaluates to false.
17266
17267         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
17268         GL_GENERATE_STDBOOL_H.
17269         * modules/stdbool (Makefile.am): Remove stdbool.h if
17270         GL_GENERATE_STDBOOL_H evaluates to false.
17271
17272         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
17273         conditional GL_GENERATE_STDDEF_H.
17274         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
17275         * modules/stddef (Makefile.am): Remove stddef.h if
17276         GL_GENERATE_STDDEF_H evaluates to false.
17277
17278         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
17279         GL_GENERATE_STDINT_H.
17280         * modules/stdint (Makefile.am): Remove stdint.h if
17281         GL_GENERATE_STDINT_H evaluates to false.
17282
17283         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
17284         GL_GENERATE_SYSEXITS_H.
17285         * modules/sysexits (Makefile.am): Remove sysexits.h if
17286         GL_GENERATE_SYSEXITS_H evaluates to false.
17287
17288         Reported by Karl Berry and Ralf Wildenhues.
17289
17290 2011-04-05  Bruno Haible  <bruno@clisp.org>
17291
17292         Ensure to rebuild generated .h files when config.status has changed.
17293         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
17294         config.status.
17295         * modules/ctype (Makefile.am): Likewise.
17296         * modules/dirent (Makefile.am): Likewise.
17297         * modules/errno (Makefile.am): Likewise.
17298         * modules/fcntl-h (Makefile.am): Likewise.
17299         * modules/float (Makefile.am): Likewise.
17300         * modules/getopt-posix (Makefile.am): Likewise.
17301         * modules/glob (Makefile.am): Likewise.
17302         * modules/iconv-h (Makefile.am): Likewise.
17303         * modules/inttypes (Makefile.am): Likewise.
17304         * modules/langinfo (Makefile.am): Likewise.
17305         * modules/locale (Makefile.am): Likewise.
17306         * modules/math (Makefile.am): Likewise.
17307         * modules/netdb (Makefile.am): Likewise.
17308         * modules/netinet_in (Makefile.am): Likewise.
17309         * modules/poll-h (Makefile.am): Likewise.
17310         * modules/pthread (Makefile.am): Likewise.
17311         * modules/pty (Makefile.am): Likewise.
17312         * modules/sched (Makefile.am): Likewise.
17313         * modules/search (Makefile.am): Likewise.
17314         * modules/selinux-h (Makefile.am): Likewise.
17315         * modules/signal (Makefile.am): Likewise.
17316         * modules/spawn (Makefile.am): Likewise.
17317         * modules/stdarg (Makefile.am): Likewise.
17318         * modules/stdbool (Makefile.am): Likewise.
17319         * modules/stddef (Makefile.am): Likewise.
17320         * modules/stdint (Makefile.am): Likewise.
17321         * modules/stdio (Makefile.am): Likewise.
17322         * modules/stdlib (Makefile.am): Likewise.
17323         * modules/string (Makefile.am): Likewise.
17324         * modules/strings (Makefile.am): Likewise.
17325         * modules/sys_file (Makefile.am): Likewise.
17326         * modules/sys_ioctl (Makefile.am): Likewise.
17327         * modules/sys_select (Makefile.am): Likewise.
17328         * modules/sys_socket (Makefile.am): Likewise.
17329         * modules/sys_stat (Makefile.am): Likewise.
17330         * modules/sys_time (Makefile.am): Likewise.
17331         * modules/sys_times (Makefile.am): Likewise.
17332         * modules/sys_utsname (Makefile.am): Likewise.
17333         * modules/sys_wait (Makefile.am): Likewise.
17334         * modules/sysexits (Makefile.am): Likewise.
17335         * modules/termios (Makefile.am): Likewise.
17336         * modules/time (Makefile.am): Likewise.
17337         * modules/unistd (Makefile.am): Likewise.
17338         * modules/wchar (Makefile.am): Likewise.
17339         * modules/wctype-h (Makefile.am): Likewise.
17340         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
17341
17342 2011-04-05  Bruno Haible  <bruno@clisp.org>
17343
17344         pipe2: Relicense under LGPLv2+.
17345         * modules/pipe2 (License): Change to LGPLv2+.
17346         Requested by Eric Blake, for libvirt.
17347
17348 2011-04-05  Bruce Korb  <bkorb@gnu.org>
17349
17350         bootstrap: compute gnulib_extra_files after updating build_aux
17351         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
17352         change build_aux or also supply gnulib_extra_files.  Handle correctly.
17353
17354 2011-04-05  Eric Blake  <eblake@redhat.com>
17355
17356         bootstrap: preserve git whitelist item sorting
17357         * build-aux/bootstrap (sort_patterns): New function.
17358         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
17359
17360 2011-04-05  Simon Josefsson  <simon@josefsson.org>
17361
17362         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
17363         sc_space_tab check.
17364
17365 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
17366
17367         areadlink, areadlinkat: rewrite in terms of careadlinkat
17368         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
17369         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
17370         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
17371         (malloc, realloc): Remove #undefs.
17372         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
17373         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
17374         readlink, ssize_t, stdint, unistd.
17375         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
17376         areadlink, stdint.
17377
17378         careadlinkat: new module
17379         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
17380         * modules/careadlinkat: New files, written by me with
17381         a review and feedback from Ben Pfaff in
17382         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
17383
17384 2011-04-01  Bruno Haible  <bruno@clisp.org>
17385
17386         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
17387         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
17388         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
17389         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
17390         Reported by Bruce Korb <bruce.korb@gmail.com>.
17391
17392 2011-04-01  Bruno Haible  <bruno@clisp.org>
17393
17394         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
17395         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
17396         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
17397         * modules/wcpcpy (Depends-on): Add extensions.
17398         * modules/wcpncpy (Depends-on): Likewise.
17399         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
17400         systems.
17401         * doc/posix-functions/wcpncpy.texi: Likewise.
17402         * doc/posix-functions/wcwidth.texi: Likewise.
17403
17404 2011-03-31  Eric Blake  <eblake@redhat.com>
17405
17406         nonblocking: fix mingw test failures
17407         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
17408         non-blocking flag on regular file.
17409         (get_nonblocking_flag): Set errno on invalid fd.
17410         * tests/test-nonblocking.c (main): Avoid test failure on
17411         directories if fchdir is not active.
17412         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
17413
17414 2011-03-31  Bruno Haible  <bruno@clisp.org>
17415
17416         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
17417         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
17418         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
17419         Reported by Simon Josefsson <simon@josefsson.org>.
17420
17421 2011-03-31  Bruno Haible  <bruno@clisp.org>
17422         and Eric Blake  <eblake@redhat.com>
17423
17424         nonblocking: new module
17425         * modules/nonblocking: New module.
17426         * modules/nonblocking-tests: Likewise.
17427         * lib/nonblocking.h: New file.
17428         * lib/nonblocking.c: Likewise.
17429         * tests/test-nonblocking.c: New test.
17430         * lib/ioctl.c (ioctl) [mingw]: Update comment.
17431
17432 2011-03-30  Bruno Haible  <bruno@clisp.org>
17433
17434         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
17435         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
17436         instead of 'printf' format for GCC >= 4.4.
17437         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
17438         (fprintf, printf, vfprintf, vprintf): Declare with
17439         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
17440         the system's vfprintf() function.
17441         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
17442
17443 2011-03-30  Eric Blake  <eblake@redhat.com>
17444
17445         passfd: fix scoping bug
17446         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
17447         before sendmsg/recvmsg.
17448
17449         passfd: standardize coding conventions
17450         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
17451         can be learned at compile time.
17452         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
17453         ifdefs.
17454         (sendfd, recvfd): Follow gnulib code conventions.
17455
17456         passfd: fix incorrect sendmsg arguments
17457         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
17458         incorrect msg_controllen value.
17459         * modules/passfd-tests (Depends-on): Check for alarm.
17460         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
17461         Reported by Bastien ROUCARIES.
17462
17463 2011-03-30  Bruno Haible  <bruno@clisp.org>
17464
17465         c-strcasestr: Relicense under LGPLv2+.
17466         * modules/c-strcasestr (License): Change to LGPLv2+.
17467         Requested by Eric Blake, for libvirt.
17468
17469 2011-03-30  Simon Josefsson  <simon@josefsson.org>
17470
17471         * users.txt: Add libidn2.  Fix libtasn1 link.
17472
17473 2011-03-30  Jim Meyering  <meyering@redhat.com>
17474
17475         tests: readlink* ("",... fails with EINVAL on newer kernels
17476         readlink and readlinkat have typically failed with ENOENT for
17477         the invalid, empty file name,  "".  However, with the advent
17478         of linux-2.6.39, they fail with EINVAL.
17479         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
17480         when operating on the empty file name.
17481         * tests/test-readlink.h (test_readlink): Likewise.
17482
17483 2011-03-29  Bruno Haible  <bruno@clisp.org>
17484
17485         Relicense some modules under LGPLv2+, for libidn2.
17486         * modules/array-mergesort (License): Change to LGPLv2+.
17487         * modules/c-strcaseeq (License): Likewise.
17488         * modules/striconveh (License): Likewise.
17489         * modules/striconveha (License): Likewise.
17490         * modules/uniconv/base (License): Likewise.
17491         * modules/uniconv/u8-conv-from-enc (License): Likewise.
17492         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
17493         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
17494         * modules/unictype/base (License): Likewise.
17495         * modules/unictype/bidiclass-of (License): Likewise.
17496         * modules/unictype/category-M (License): Likewise.
17497         * modules/unictype/category-none (License): Likewise.
17498         * modules/unictype/category-of (License): Likewise.
17499         * modules/unictype/category-test (License): Likewise.
17500         * modules/unictype/category-test-withtable (License): Likewise.
17501         * modules/unictype/combining-class (License): Likewise.
17502         * modules/unictype/joiningtype-of (License): Likewise.
17503         * modules/unictype/scripts (License): Likewise.
17504         * modules/uninorm/base (License): Likewise.
17505         * modules/uninorm/canonical-decomposition (License): Likewise.
17506         * modules/uninorm/composition (License): Likewise.
17507         * modules/uninorm/decompose-internal (License): Likewise.
17508         * modules/uninorm/decomposition-table (License): Likewise.
17509         * modules/uninorm/nfc (License): Likewise.
17510         * modules/uninorm/nfd (License): Likewise.
17511         * modules/uninorm/u32-normalize (License): Likewise.
17512         * modules/unistr/base (License): Likewise.
17513         * modules/unistr/u32-cpy (License): Likewise.
17514         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
17515         * modules/unistr/u32-to-u8 (License): Likewise.
17516         * modules/unistr/u32-uctomb (License): Likewise.
17517         * modules/unistr/u8-check (License): Likewise.
17518         * modules/unistr/u8-mblen (License): Likewise.
17519         * modules/unistr/u8-mbtouc (License): Likewise.
17520         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
17521         * modules/unistr/u8-mbtoucr (License): Likewise.
17522         * modules/unistr/u8-prev (License): Likewise.
17523         * modules/unistr/u8-strlen (License): Likewise.
17524         * modules/unistr/u8-to-u32 (License): Likewise.
17525         * modules/unistr/u8-uctomb (License): Likewise.
17526         * modules/unitypes (License): Likewise.
17527         Requested by Simon Josefsson.
17528
17529 2011-03-29  Simon Josefsson  <simon@josefsson.org>
17530
17531         lib-symbol-visibility: Add a notice.
17532         * modules/lib-symbol-visibility (Notice): New field.
17533
17534 2011-03-29  Bruno Haible  <bruno@clisp.org>
17535
17536         getaddrinfo: Doc fix.
17537         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
17538         section "fixed in Gnulib".
17539
17540 2011-03-28  Simon Josefsson  <simon@josefsson.org>
17541
17542         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
17543         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
17544
17545 2011-03-26  Bruno Haible  <bruno@clisp.org>
17546
17547         unictype/property-byname: Reduce the number of load-time relocations.
17548         * lib/unictype/pr_byname.c: Include <stdlib.h>.
17549         (UC_PROPERTY_INDEX_*): New enumeration values.
17550         (uc_property_byname): Convert an index from the lookup table to an
17551         uc_property_t.
17552         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
17553         values.
17554
17555 2011-03-26  Bruno Haible  <bruno@clisp.org>
17556
17557         unictype/property-byname: Allow omitted word separators and aliases.
17558         * lib/unictype/pr_byname.gperf: Add property names without word
17559         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
17560         for 'space'.
17561
17562 2011-03-26  Bruno Haible  <bruno@clisp.org>
17563
17564         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
17565         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
17566         also hyphens to space.
17567         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
17568         without spaces.
17569         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
17570
17571 2011-03-26  Bruno Haible  <bruno@clisp.org>
17572
17573         unictype/joiningtype-byname: Recognize long names as well.
17574         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
17575         a long name.
17576         * lib/unictype/joiningtype_byname.c: Include <string.h>,
17577         unictype/joiningtype_byname.h.
17578         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
17579         * lib/unictype/joiningtype_byname.gperf: New file.
17580         * modules/unictype/joiningtype-byname (Files): Add
17581         lib/unictype/joiningtype_byname.gperf.
17582         (Depends-on): Add gperf.
17583         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
17584         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
17585         long names.
17586
17587         Tests for module 'unictype/joiningtype-longname'.
17588         * modules/unictype/joiningtype-longname-tests: New file.
17589         * tests/unictype/test-joiningtype_longname.c: New file.
17590
17591         New module 'unictype/joiningtype-longname'.
17592         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
17593         * lib/unictype/joiningtype_longname.c: New file.
17594         * modules/unictype/joiningtype-longname: New file.
17595         * modules/unictype/joiningtype-all (Depends-on): Add
17596         unictype/joiningtype-longname.
17597
17598 2011-03-26  Bruno Haible  <bruno@clisp.org>
17599
17600         unictype/bidiclass-byname: Recognize long names as well.
17601         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
17602         name.
17603         * lib/unictype/bidi_byname.c: Include <string.h>,
17604         unictype/bidi_byname.h.
17605         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
17606         * lib/unictype/bidi_byname.gperf: New file.
17607         * modules/unictype/bidiclass-byname (Files): Add
17608         lib/unictype/bidi_byname.gperf.
17609         (Depends-on): Add gperf.
17610         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
17611         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
17612         long names.
17613
17614         Tests for module 'unictype/bidiclass-longname'.
17615         * modules/unictype/bidiclass-longname-tests: New file.
17616         * tests/unictype/test-bidi_longname.c: New file.
17617
17618         New module 'unictype/bidiclass-longname'.
17619         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
17620         * lib/unictype/bidi_longname.c: New file.
17621         * modules/unictype/bidiclass-longname: New file.
17622         * modules/unictype/bidiclass-all (Depends-on): Add
17623         unictype/bidiclass-longname.
17624
17625 2011-03-26  Bruno Haible  <bruno@clisp.org>
17626
17627         unictype/bidi*: Rename modules.
17628         * modules/unictype/bidiclass-all: Renamed from
17629         modules/unictype/bidicategory-all.
17630         * modules/unictype/bidiclass-name: Renamed from
17631         modules/unictype/bidiclass-name.
17632         (Description): Update.
17633         * modules/unictype/bidiclass-name-tests: Renamed from
17634         modules/unictype/bidicategory-name-tests.
17635         * modules/unictype/bidiclass-byname: Renamed from
17636         modules/unictype/bidicategory-byname.
17637         (Description): Update.
17638         * modules/unictype/bidiclass-byname-tests: Renamed from
17639         modules/unictype/bidicategory-byname-tests.
17640         * modules/unictype/bidiclass-of: Renamed from
17641         modules/unictype/bidicategory-of.
17642         (Description): Update.
17643         * modules/unictype/bidiclass-of-tests: Renamed from
17644         modules/unictype/bidicategory-of-tests.
17645         * modules/unictype/bidiclass-test: Renamed from
17646         modules/unictype/bidicategory-test.
17647         (Description): Update.
17648         * modules/unictype/bidiclass-test-tests: Renamed from
17649         modules/unictype/bidicategory-test-tests.
17650         * modules/unictype/bidicategory-all: New file, a simple redirection.
17651         * modules/unictype/bidicategory-name: Likewise.
17652         * modules/unictype/bidicategory-byname: Likewise.
17653         * modules/unictype/bidicategory-of: Likewise.
17654         * modules/unictype/bidicategory-test: Likewise.
17655         * modules/unictype/property-bidi-* (Dependencies): Update.
17656         * lib/unictype/bidi_*.c: Update comment.
17657
17658 2011-03-26  Bruno Haible  <bruno@clisp.org>
17659
17660         unictype/bidi*: Rename functions, part 2.
17661         * modules/unictype/bidicategory-name (configure.ac): Update required
17662         libunistring version.
17663         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
17664
17665 2011-03-25  Bruno Haible  <bruno@clisp.org>
17666
17667         New module 'unictype/combining-class-all'.
17668         * modules/unictype/combining-class-all: New file.
17669
17670         Tests for module 'unictype/combining-class-byname'.
17671         * modules/unictype/combining-class-byname-tests: New file.
17672         * tests/unictype/test-combiningclass_byname.c: New file.
17673
17674         New module 'unictype/combining-class-byname'.
17675         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
17676         * lib/unictype/combiningclass_byname.c: New file.
17677         * lib/unictype/combiningclass_byname.gperf: New file.
17678         * modules/unictype/combining-class-byname: New file.
17679
17680         Tests for module 'unictype/combining-class-longname'.
17681         * modules/unictype/combining-class-longname-tests: New file.
17682         * tests/unictype/test-combiningclass_longname.c: New file.
17683
17684         New module 'unictype/combining-class-longname'.
17685         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
17686         * lib/unictype/combiningclass_longname.c: New file.
17687         * modules/unictype/combining-class-longname: New file.
17688
17689         Tests for module 'unictype/combining-class-name'.
17690         * modules/unictype/combining-class-name-tests: New file.
17691         * tests/unictype/test-combiningclass_name.c: New file.
17692
17693         New module 'unictype/combining-class-name'.
17694         * lib/unictype.in.h (uc_combining_class_name): New declaration.
17695         * lib/unictype/combiningclass_name.c: New file.
17696         * modules/unictype/combining-class-name: New file.
17697
17698 2011-03-25  Bruno Haible  <bruno@clisp.org>
17699
17700         unictype/combining-class: Rename source files.
17701         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
17702         of unictype/combining.h.
17703         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
17704         Update.
17705         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
17706         * modules/unictype/combining-class (Description): Fix.
17707         (Files, Makefile.am): Update.
17708         * tests/unictype/test-combiningclass.c: Renamed from
17709         tests/unictype/test-combining.c.
17710         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
17711
17712 2011-03-25  Bruno Haible  <bruno@clisp.org>
17713
17714         unictype: Update list of canonical combining classes.
17715         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
17716
17717 2011-03-25  Bruno Haible  <bruno@clisp.org>
17718
17719         unictype/category-byname: Recognize long names as well.
17720         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
17721         a long name.
17722         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
17723         unictype/categ_byname.h.
17724         (UC_CATEGORY_INDEX_*): New enumeration values.
17725         (uc_general_category_byname): Use uc_general_category_lookup and
17726         convert from index to value.
17727         * lib/unictype/categ_byname.gperf: New file.
17728         * modules/unictype/category-byname (Files): Add
17729         lib/unictype/categ_byname.gperf.
17730         (Depends-on): Add gperf.
17731         (Makefile.am): Add rule for generating unictype/categ_byname.h.
17732         * tests/unictype/test-categ_byname.c (main): Test the recognition of
17733         long names.
17734
17735         Tests for module 'unictype/category-longname'.
17736         * modules/unictype/category-longname-tests: New file.
17737         * tests/unictype/test-categ_longname.c: New file.
17738
17739         New module 'unictype/category-longname'.
17740         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
17741         * lib/unictype/categ_longname.c: New file.
17742         * modules/unictype/category-longname: New file.
17743         * modules/unictype/category-all (Depends-on): Add it.
17744
17745 2011-03-25  Bruno Haible  <bruno@clisp.org>
17746
17747         Tests for module 'unictype/category-LC'.
17748         * modules/unictype/category-LC-tests: New file.
17749         * tests/unictype/test-categ_LC.c: New file, automatically generated.
17750
17751         New module 'unictype/category-LC'.
17752         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
17753         (UC_CATEGORY_LC): New declaration.
17754         (UC_CASED_LETTER): New macro.
17755         * lib/gen-uni-tables.c (is_category_LC): New function.
17756         (output_categories): Also handle category LC.
17757         (UC_CATEGORY_MASK_LC): New enumeration value.
17758         (general_category_byname): Also handle category LC.
17759         * lib/unictype/categ_LC.c: New file.
17760         * lib/unictype/categ_LC.h: New file, automatically generated.
17761         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
17762         category LC.
17763         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
17764         * modules/unictype/category-LC: New file.
17765         * modules/unictype/category-byname (Depends-on): Add
17766         unictype/category-LC.
17767         * modules/unictype/category-all (Depends-on): Likewise.
17768
17769 2011-03-25  Eric Blake  <eblake@redhat.com>
17770
17771         xmalloc: revert yesterday's regression
17772         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
17773         realloc's underlying behavior (allowing allocation of zero-size
17774         objects, especially if malloc-gnu is also in use).
17775
17776 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
17777
17778         maint.mk: add missing version to VC-tag
17779         * top/maint.mk: git tag was missing actual tag name; add it.
17780
17781         valgrind: do leak checking, and exit with code 1 on error (not 0)
17782         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
17783         to VALGRIND.
17784
17785 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
17786
17787         posix-modules: say what it does.
17788         * posix-modules: Add a line to the --help output saying what it does.
17789
17790 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
17791
17792         xmalloc: Do not leak if underlying realloc is C99 compatible.
17793         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
17794         This avoids a leak on C99-based systems.  See
17795         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
17796
17797 2011-03-24  Eric Blake  <eblake@redhat.com>
17798
17799         realloc: document portability problem
17800         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
17801         passing 0 size to realloc.
17802
17803 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
17804
17805         doc: update users.txt
17806         * users.txt: Add cvsps, tmpwatch
17807
17808 2011-03-23  Matt Rice  <ratmice@gmail.com>
17809
17810         doc: update users.txt
17811         * users.txt: Add gdb.
17812
17813 2011-03-23  Jim Meyering  <meyering@redhat.com>
17814
17815         doc: update users.txt
17816         Looking through matches up to the following URL (there are still
17817         several more pages), I found several projects that use gnulib:
17818         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
17819         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
17820         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
17821
17822 2011-03-22  Bruno Haible  <bruno@clisp.org>
17823
17824         unictype/bidi*: Rename functions.
17825         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
17826         uc_bidi_class, uc_is_bidi_class): New declarations.
17827         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
17828         uc_bidi_category_byname.
17829         (uc_bidi_category_byname): New function.
17830         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
17831         u_bidi_category_name.
17832         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
17833         (uc_bidi_category_name): New function.
17834         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
17835         uc_bidi_category.
17836         (uc_bidi_category): New function.
17837         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
17838         uc_is_bidi_category. Invoke uc_bidi_class.
17839         (uc_is_bidi_category): New function.
17840         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
17841         instead of uc_bidi_category_byname.
17842         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
17843         instead of uc_bidi_category_name.
17844         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
17845         uc_bidi_category.
17846         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
17847         instead of uc_is_bidi_category.
17848
17849 2011-03-21  Bruno Haible  <bruno@clisp.org>
17850
17851         New module 'unictype/joininggroup-all'.
17852         * modules/unictype/joininggroup-all: New file.
17853
17854         Tests for module 'unictype/joininggroup-of'.
17855         * modules/unictype/joininggroup-of-tests: New file.
17856         * tests/unictype/test-joininggroup_of.c: New file.
17857         * tests/unictype/test-joininggroup_of.h: New file, automatically
17858         generated by gen-uni-tables.
17859
17860         New module 'unictype/joininggroup-of'.
17861         * modules/unictype/joininggroup-of: New file.
17862         * lib/unictype/joininggroup_of.c: New file.
17863         * lib/unictype/joininggroup_of.h: New file, automatically generated by
17864         gen-uni-tables.
17865
17866         Tests for module 'unictype/joininggroup-byname'.
17867         * modules/unictype/joininggroup-byname-tests: New file.
17868         * tests/unictype/test-joininggroup_byname.c: New file.
17869
17870         New module 'unictype/joininggroup-byname'.
17871         * modules/unictype/joininggroup-byname: New file.
17872         * lib/unictype/joininggroup_byname.c: New file.
17873         * lib/unictype/joininggroup_byname.gperf: New file.
17874
17875         Tests for module 'unictype/joininggroup-name'.
17876         * modules/unictype/joininggroup-name-tests: New file.
17877         * tests/unictype/test-joininggroup_name.c: New file.
17878
17879         New module 'unictype/joininggroup-name'.
17880         * modules/unictype/joininggroup-name: New file.
17881         * lib/unictype/joininggroup_name.c: New file.
17882         * lib/unictype/joininggroup_name.h: New file.
17883
17884         New module 'unictype/joiningtype-all'.
17885         * modules/unictype/joiningtype-all: New file.
17886
17887         Tests for module 'unictype/joiningtype-of'.
17888         * modules/unictype/joiningtype-of-tests: New file.
17889         * tests/unictype/test-joiningtype_of.c: New file.
17890         * tests/unictype/test-joiningtype_of.h: New file, automatically
17891         generated by gen-uni-tables.
17892
17893         New module 'unictype/joiningtype-of'.
17894         * modules/unictype/joiningtype-of: New file.
17895         * lib/unictype/joiningtype_of.c: New file.
17896         * lib/unictype/joiningtype_of.h: New file, automatically generated by
17897         gen-uni-tables.
17898
17899         Tests for module 'unictype/joiningtype-byname'.
17900         * modules/unictype/joiningtype-byname-tests: New file.
17901         * tests/unictype/test-joiningtype_byname.c: New file.
17902
17903         New module 'unictype/joiningtype-byname'.
17904         * modules/unictype/joiningtype-byname: New file.
17905         * lib/unictype/joiningtype_byname.c: New file.
17906
17907         Tests for module 'unictype/joiningtype-name'.
17908         * modules/unictype/joiningtype-name-tests: New file.
17909         * tests/unictype/test-joiningtype_name.c: New file.
17910
17911         New module 'unictype/joiningtype-name'.
17912         * modules/unictype/joiningtype-name: New file.
17913         * lib/unictype/joiningtype_name.c: New file.
17914
17915         unictype: Add support for Arabic shaping properties.
17916         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
17917         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
17918         declarations.
17919         (UC_JOINING_GROUP_*): New enumeration values.
17920         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
17921         declarations.
17922         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
17923         (unicode_joining_type): New variable.
17924         (UC_JOINING_GROUP_*): New enumeration values.
17925         (unicode_joining_group): New variable.
17926         (fill_arabicshaping, joining_type_as_c_identifier,
17927         output_joining_type_test, output_joining_type,
17928         joining_group_as_c_identifier, output_joining_group_test,
17929         output_joining_group): New functions.
17930         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
17931         fill_arabicshaping and output_joining_type_test, output_joining_type,
17932         output_joining_group_test, output_joining_group.
17933         Reported by Simon Josefsson.
17934
17935 2011-03-21  Jim Meyering  <meyering@redhat.com>
17936
17937         strftime: fix a bug in yesterday's change
17938         * lib/strftime.c (add): Accommodate width's initial value of -1.
17939         Otherwise, nstrftime would copy uninitialized data into
17940         the result buffer.
17941
17942 2011-03-21  Jim Meyering  <meyering@redhat.com>
17943
17944         tests: add strftime-tests module
17945         * tests/test-strftime.c: New file.
17946         * modules/strftime-tests: New module.
17947
17948 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
17949
17950         strftime: don't assume a byte count fits in 'int'
17951         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
17952         found this problem by static analysis, using gcc -Wstrict-overflow
17953         (GCC 4.5.2, x86-64).  This reported an optimization that depended
17954         on an integer overflow having undefined behavior, but it turns out
17955         that the argument is a size, which might not fit in 'int' anyway,
17956
17957 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
17958
17959         stdio: don't require ignore_value around fwrite
17960
17961         This patch works around libc bug 11959
17962         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
17963         Without this patch, applications must often write
17964         ignore_value (fwrite (...)) even though the ignore_value is
17965         not helpful here.  It's common to write many objects, using
17966         fwrite/printf/etc., and then use ferror to detect output error.
17967
17968         I considered making this patch optional, but decided against it,
17969         because libc is obviously being inconsistent here: there is no
17970         reason libc should insist that user code must inspect fwrite
17971         return's value without also insisting that it inspect printf's,
17972         putchar's, etc.  If user code wants to have a strict style where
17973         all these functions' values are checked (so that ferror need not
17974         be checked), we could add support for that style in a new gnulib
17975         module, but in the meantime it's better to be consistent and to
17976         support common usage.
17977
17978         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
17979         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
17980         that we are compiling in checking mode, and if not C++, and
17981         if not already wrapping fwrite for some other reason.
17982         (fwrite): #define to rpl_fwrite if the latter is defined.
17983
17984 2011-03-20  Bruno Haible  <bruno@clisp.org>
17985
17986         verror: Fix compilation error introduced on 2011-02-13.
17987         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
17988         instead of __attribute__.
17989         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17990
17991 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
17992             Bruno Haible  <bruno@clisp.org>
17993
17994         socklen: do not depend on sys_socket
17995         While trying to modify Emacs to use gnulib's socklen module,
17996         I discovered a circular dependency: socklen depends on sys_socket
17997         and vice versa.  Emacs can use socklen, but it does not need
17998         sys_socket because it has its own substitute for sys/socket.h.
17999         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
18000         gl_TYPE_SOCKLEN_T.
18001         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
18002         gl_PREREQ_SYS_H_SOCKET.
18003         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
18004         gl_PREREQ_SYS_H_SOCKET.
18005         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
18006         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
18007         * modules/socklen (Depends-on): Do not depend on sys_socket.
18008         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
18009
18010 2011-03-20  Jim Meyering  <meyering@redhat.com>
18011
18012         maint.mk: sort file names *after* new transformation
18013         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
18014         prefix would have led to an unwarranted failure in GNU parted.
18015         Sort after that transformation.
18016
18017 2011-03-19  Jim Meyering  <meyering@redhat.com>
18018
18019         maint.mk: fix po-file syntax-check rule
18020         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
18021         Patch by Bruno Haible.
18022
18023 2011-03-19  Bruno Haible  <bruno@clisp.org>
18024
18025         socklen: Update comment.
18026         * m4/socklen.m4: Update comment about platforms.
18027
18028 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
18029             Bruno Haible  <bruno@clisp.org>
18030
18031         inet_ntop, inet_pton: Simplify.
18032         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
18033         documented to provide socklen_t and we already depend on sys_socket.
18034         * modules/inet_pton (Depends-on): Likewise.
18035         * lib/arpa_inet.in.h: Adjust comment.
18036
18037 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
18038             Bruno Haible  <bruno@clisp.org>
18039
18040         netdb: Simplify.
18041         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
18042         documented to provide socklen_t and we already depend on sys_socket.
18043         * lib/netdb.in.h: Adjust comment.
18044
18045 2011-03-19  Bruno Haible  <bruno@clisp.org>
18046
18047         sys_socket, netdb: Document problem with socklen_t.
18048         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
18049         platforms.
18050         * doc/posix-headers/netdb.texi: Likewise.
18051
18052 2011-03-18  Eric Blake  <eblake@redhat.com>
18053
18054         maint.mk: let po check work in VPATH build
18055         * top/maint.mk (po_file): Allow cfg.mk override.
18056         (sc_po_check): Allow VPATH use.
18057         Reported by Jiri Denemark.
18058
18059 2011-03-16  Jim Meyering  <meyering@redhat.com>
18060
18061         maint.mk: allow fine-grained syntax-check exclusion via Make variables
18062         Before, you would have had to create one .x-sc_ file per rule in order
18063         to exempt offending files.  Now, you may instead use a Make variable --
18064         usually defined in cfg.mk -- whose name identifies the affected rule.
18065         * top/maint.mk (_sc_excl): Define.
18066         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
18067         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
18068
18069 2011-03-13  Bruno Haible  <bruno@clisp.org>
18070
18071         ignore-value tests: Avoid warnings.
18072         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
18073         empty for gcc < 3.4.
18074
18075 2011-03-13  Bruno Haible  <bruno@clisp.org>
18076
18077         passfd: Fix link error on Solaris.
18078         * modules/passfd (Description): Correct.
18079         (Depends-on): Add socketlib.
18080         (Link): New section.
18081         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
18082
18083 2011-03-13  Bruno Haible  <bruno@clisp.org>
18084
18085         passfd: Fix link error on AIX 5.2.
18086         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
18087
18088 2011-03-13  Bruno Haible  <bruno@clisp.org>
18089
18090         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
18091         * lib/sys_socket.in.h: Include <stddef.h>.
18092         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
18093         CMSG_FIRSTHDR. Remove unused variable.
18094
18095 2011-03-13  Bruno Haible  <bruno@clisp.org>
18096
18097         passfd: Fix compilation error on OpenBSD.
18098         * lib/passfd.c: Include <sys/uio.h>.
18099
18100 2011-03-13  Bruno Haible  <bruno@clisp.org>
18101
18102         passfd test: Fix warnings.
18103         * tests/test-passfd.c: Include <sys/wait.h>.
18104         (main): Fix typo.
18105
18106 2011-03-13  Bruno Haible  <bruno@clisp.org>
18107
18108         passfd module, part 4, tweaks.
18109         * tests/test-passfd.c: Reorder includes.
18110         (main): Fix perror and printf calls.
18111
18112 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
18113
18114         passfd module, part 4.
18115         * modules/passfd-tests: New file.
18116         * tests/test-passfd.c: New file.
18117
18118 2011-03-13  Jim Meyering  <meyering@redhat.com>
18119
18120         Makefile: rely on GNU make; derive syntax-check rule names
18121         Rather than requiring that each sc_ rule be listed as a dependent
18122         of "check", use features of GNU make to derive the list.
18123         * Makefile (syntax-check-rules): Define.
18124         (check): Depend on the new variable, not the hard-coded list.
18125
18126 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
18127             Bruno Haible  <bruno@clisp.org>
18128
18129         passfd module, part 3.
18130         * lib/passfd.h (recvfd): Add a flags argument.
18131         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
18132         (recvfd): Add a flags argument.
18133         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
18134         exists.
18135         * modules/passfd (Depends-on): Add cloexec.
18136         Suggested by Eric Blake.
18137
18138 2011-03-13  Bruno Haible  <bruno@clisp.org>
18139
18140         passfd module, part 2, tweaks.
18141         * modules/passfd (Files): Reorder.
18142         (Depends-on): Remove errno.
18143         (Include): Remove <sys/socket.h>, <sys/un.h>.
18144         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
18145         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
18146         specification header. Include <sys/socket.h> always. Don't include
18147         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
18148         (sendfd): Clarify that it sets errno when it fails.
18149         (recvfd): Fix specification.
18150
18151 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
18152
18153         passfd module, part 2.
18154         * modules/passfd: New file.
18155         * lib/passfd.h: New file.
18156         * lib/passfd.c: New file.
18157
18158 2011-03-12  Bruno Haible  <bruno@clisp.org>
18159
18160         wcswidth, mbswidth: Avoid integer overflow.
18161         * lib/wcswidth.c: Include <limits.h>.
18162         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
18163         * lib/mbswidth.c: Include <limits.h>.
18164         (mbsnwidth): Avoid 'int' overflow.
18165         Reported by Jim Meyering.
18166
18167 2011-03-12  Bruno Haible  <bruno@clisp.org>
18168
18169         futimens, utimensat: Avoid endless recursion on Solaris 10.
18170         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
18171         Solaris.
18172         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
18173         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
18174
18175 2011-03-11  Jim Meyering  <meyering@redhat.com>
18176
18177         maint.mk: relax a regexp to accommodate other formatting styles
18178         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
18179         between "ngettext" and the following "(".
18180
18181 2011-03-11  Pádraig Brady <P@draigBrady.com>
18182
18183         maint.mk: suppress a false positive warning
18184         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
18185         diagnostics are marked with ngettext.
18186
18187 2011-03-10  Eric Blake  <eblake@redhat.com>
18188
18189         wchar: add explicit dependencies, for Tru64
18190         * modules/mbmemcasecoll (Depends-on): Add wchar.
18191         * modules/mbtowc (Depends-on): Likewise.
18192         * modules/vasnprintf (Depends-on): Likewise.
18193         * modules/unistdio/u-printf-args (Depends-on): Likewise.
18194         * modules/wctomb (Depends-on): Likewise.
18195         Reported by Peter O'Gorman.
18196
18197 2011-03-08  Bruno Haible  <bruno@clisp.org>
18198
18199         passfd module, part 1, tweaks.
18200         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
18201         Improve indentation. Improve AC_MSG_CHECKING messages.
18202         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
18203         gl_SOCKET_FAMILIES.
18204
18205 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
18206
18207         passfd module, part 1.
18208         * m4/afunix.m4: New file.
18209         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
18210         sockets.
18211
18212 2011-03-08  Bruno Haible  <bruno@clisp.org>
18213
18214         regex-quote: New API.
18215         * lib/regex-quote.h: Include <stdbool.h>.
18216         (struct regex_quote_spec): New type.
18217         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
18218         New declarations.
18219         (regex_quote_length, regex_quote_copy, regex_quote): Take a
18220         'const struct regex_quote_spec *' argument.
18221         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
18222         (pcre_special): New constant.
18223         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
18224         New functions.
18225         (regex_quote_length, regex_quote_copy, regex_quote): Take a
18226         'const struct regex_quote_spec *' argument.
18227         * modules/regex-quote (Depends-on): Add stdbool.
18228         * tests/test-regex-quote.c (check): Update for new API. Add test for
18229         anchored results.
18230         * NEWS: Mention the API change.
18231         Reported by Reuben Thomas and Eric Blake.
18232
18233 2011-03-06  Bruno Haible  <bruno@clisp.org>
18234
18235         regex-quote: Fix creation of POSIX extended regular expressions.
18236         * lib/regex-quote.c (ere_special): Add grouping and alternation
18237         operators.
18238
18239 2011-03-05  Bruno Haible  <bruno@clisp.org>
18240
18241         doc: Improve doc regarding autopoint vs. gnulib.
18242         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
18243         disable autopoint while running autoreconf.
18244         Suggested by Ralf Wildenhues.
18245
18246 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18247
18248         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
18249         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
18250
18251 2011-03-03  Bruce Korb  <bkorb@gnu.org>
18252
18253         parse-duration: remove xalloc.h dependency
18254         * lib/parse-duration.c (parse_period): handle NULL return from
18255         strdup instead of calling xstrdup().
18256         * modules/parse-duration: remove "xalloc" dependency
18257
18258 2011-03-03  Matthew Booth  <mbooth@redhat.com>
18259
18260         bootstrap: honor m4_base when running aclocal
18261         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
18262
18263 2011-03-02  Jim Meyering  <meyering@redhat.com>
18264
18265         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
18266         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
18267         on request from Matt Booth.
18268
18269 2011-03-01  Eric Blake  <eblake@redhat.com>
18270
18271         test-link: work on Hurd
18272         * tests/test-link.h (test_link): Hurd rejects linking directories
18273         with EISDIR instead of the POSIX-mandated EPERM.
18274
18275 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
18276
18277         stdio: simplify by moving files to printf-posix, sigpipe
18278         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
18279         since this symbol is needed only if printf is replaced.
18280         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
18281         Require gl_ASM_SYMBOL_PREFIX.
18282         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
18283         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
18284         (Depends-on): Add 'raise'.
18285         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
18286         * modules/stdio (Files): Remove lib/stdio-write.c,
18287         m4/asm-underscore.m4.
18288         (Depends-on): Remove 'raise'.
18289
18290         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
18291         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
18292         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
18293         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
18294
18295 2011-02-28  Bruno Haible  <bruno@clisp.org>
18296
18297         localcharset: Assume ANSI C behaviour of free().
18298         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
18299         calling free().
18300         Suggested by Simon Josefsson <simon@josefsson.org>.
18301
18302 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
18303             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
18304             Bruno Haible  <bruno@clisp.org>  (tiny change)
18305
18306         On Cygwin, use /proc file system instead of win32 API.
18307         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
18308         Win32 file names.
18309         (DllMain): Simplify by removing Cygwin specific code.
18310         (find_shared_library_fullname): Use Linux specific implementation also
18311         for Cygwin.
18312         (get_shared_library_fullname): Update accordingly.
18313         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
18314         Win32 file names.
18315         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
18316         Cygwin specific code.
18317
18318 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
18319             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
18320
18321         Fix OpenMP flag detection for various Fortran compilers.
18322         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
18323         OpenMP-conditional compilation construct, to force compile
18324         failure with missing OpenMP flag.
18325         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
18326
18327 2011-02-25  Eric Blake  <eblake@redhat.com>
18328
18329         strstr: expand test coverage
18330         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
18331         compilation.
18332         * tests/test-memmem.c (main): Duplicate tests.
18333         * tests/test-strcasestr.c (main): Likewise.
18334         * tests/test-c-strcasestr.c (main): Likewise.
18335
18336 2011-02-25  Jim Meyering  <meyering@redhat.com>
18337
18338         maint.mk: detect missing-NL-at-EOF, too
18339         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
18340         it also detects when a file lacks a newline at EOF.
18341         (require_exactly_one_NL_at_EOF_): Renamed from
18342         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
18343         since people may well have .x-sc_... file names tied to the
18344         existing name.  Suggested by Eric Blake.
18345
18346 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
18347
18348         dirname: move m4/dos.m4 functionality into lib/dosname.h
18349
18350         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
18351         extracts symbols from it, puts them into config.h; but it's much
18352         easier to use the symbols directly.  filename.h already does this,
18353         but it disagrees with dos.m4 in some respects.  This patch
18354         introduces a different include file dosname.h that packages up
18355         dos.m4, and then later we can work on merging filename.h and
18356         dosname.h.  Applications that need only the easy-to-configure
18357         symbols should consider including dosname.h rather than dirname.h.
18358         * NEWS: Mention incompatible changes.
18359         * m4/dos.m4: Remove.
18360         * lib/dosname.h, modules/dosname: New files.
18361         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
18362         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
18363         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
18364         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
18365         Include dosname.h, not dirname.h.
18366         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
18367         Include dosname.h, for definitions of symbols like ISSLASH
18368         that used to be in config.h.
18369         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
18370         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
18371         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
18372         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
18373         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
18374         * modules/rmdir (Files): Likewise.
18375         * modules/stat (Files): Likewise.
18376         * modules/unlink (Files): Likewise.
18377         * modules/dirname-lgpl (Depends-on): Add dosname.
18378         * modules/lstat (Depends-on): Likewise.
18379         * modules/openat (Depends-on): Likewise.
18380         * modules/rmdir (Depends-on): Likewise.
18381         * modules/savewd (Depends-on): Likewise.
18382         * modules/stat (Depends-on): Likewise.
18383         * modules/unlink (Depends-on): Likewise.
18384         * modules/openat (Depends-on): Remove dirname-lgpl.
18385         * modules/savewd (Depends-on): Likewise.
18386         * tests/test-dirname.c: Do not use removed symbols like
18387         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
18388         the remaining symbols, e.g., ISSLASH ('\\').
18389
18390 2011-02-25  Eric Blake  <eblake@redhat.com>
18391
18392         strstr: revert patches that introduced bug and pessimization
18393         * lib/str-two-way.h: Add another reference.
18394         (two_way_short_needle, two_way_long_needle): Revert changes from
18395         2011-02-24; they pessimize search speed.
18396         (critical_factorization): Partially revert changes from
18397         2010-06-22; they violate the requirement that the left half of the
18398         needle be smaller than the period of the needle.
18399
18400 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
18401
18402         filenamecat: remove unnecessary dependency on dirname-lgpl
18403         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
18404         is no direct dependency, just an indirect one via filenamecat-lgpl.
18405
18406         remove: remove unnecessary use of m4/dos.m4
18407         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
18408         * modules/remove (FILES): Remove m4/dos.m4.
18409
18410         * lib/openat-proc.c: Don't include dirname.h; not needed.
18411
18412         backupfile: remove unnecessary use of m4/dos.m4
18413         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
18414         of its symbols are used by the backupfile code.  backupfile.c does
18415         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
18416         for the rare case of programs that want all their backup file
18417         names to live within 8+3 limits, and dos.m4 doesn't address that.
18418         * modules/backupfile (Files): Remove m4/dos.m4.
18419
18420 2011-02-24  Jim Meyering  <meyering@redhat.com>
18421
18422         strstr: fix a bug whereby strstr would mistakenly return NULL
18423         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
18424         in period calculation.
18425         (two_way_long_needle): Likewise.
18426         The original problem was reported by Mike Stump in
18427         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
18428         Ralf Wildenhues provided the short needle and haystack.
18429         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
18430         Add a more involved test to trigger the bug in two_way_long_needle.
18431
18432 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
18433
18434         gnulib-tool: remove use of bold display in help screen
18435         * gnulib-tool (func_usage): Do not use bold display anymore in the
18436         help screen.  That was just meant to be a temporary emphasis for a
18437         backward-incompatible change.
18438
18439 2011-02-23  Bruno Haible  <bruno@clisp.org>
18440
18441         Fix misindentation of preprocessor directives.
18442         * lib/argp-namefrob.h: Reindent preprocessor directives.
18443         * lib/getopt_int.h (struct _getopt_data): Likewise.
18444         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
18445         * lib/vasnprintf.c (decode_long_double): Likewise.
18446         * tests/test-argmatch.c: Insert blank lines, for clarity.
18447         * tests/test-exclude.c: Likewise.
18448
18449 2011-02-22  Bruno Haible  <bruno@clisp.org>
18450
18451         ioctl: Fix for MacOS X in 64-bit mode.
18452         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
18453         value.
18454         Suggested by Eric Blake.
18455         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
18456
18457 2011-02-22  Jim Meyering  <meyering@redhat.com>
18458
18459         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
18460         * Makefile (sc_cpp_indent_check): Don't limit the check to files
18461         in lib/.
18462
18463 2011-02-22  Eric Blake  <eblake@redhat.com>
18464
18465         maint: avoid any CDPATH issue
18466         * Makefile (sc_cpp_indent_check): Anchor cd argument.
18467
18468         maint: adjust cpp indentation for my modules, as well
18469         * Makefile (sc_cpp_indent_check): Add my name.
18470         * lib/fbufmode.c: Filter through cppi.
18471         * lib/fpurge.c: Likewise.
18472         * lib/freadable.c: Likewise.
18473         * lib/freading.c: Likewise.
18474         * lib/fwritable.c: Likewise.
18475         * lib/fwriting.c: Likewise.
18476         * lib/sigaction.c: Likewise.
18477
18478 2011-02-22  Jim Meyering  <meyering@redhat.com>
18479
18480         maint: adjust cpp indentation to reflect nesting depth
18481         I.e., in a block of code that begins with an unnested "#if",
18482         put one space between the "#" in column 1 and following token.
18483         For example,
18484         -#include <sys/vfs.h>
18485         +# include <sys/vfs.h>
18486         Do this only in .c files that are part of a module I maintain.
18487         * lib/linkat.c: Filter through cppi.
18488         * lib/nanosleep.c: Likewise.
18489         * lib/openat.c: Likewise.
18490         * lib/openat-die.c: Likewise.
18491         * lib/dup3.c: Likewise.
18492         * lib/fchownat.c: Likewise.
18493         * lib/flock.c: Likewise.
18494         * lib/fsync.c: Likewise.
18495         * lib/fts.c: Likewise.
18496         * lib/getpass.c: Likewise.
18497         * lib/gettimeofday.c: Likewise.
18498         * lib/userspec.c: Likewise.
18499         * Makefile (sc_cpp_indent_check): New rule, to check this.
18500
18501 2011-02-22  Bruno Haible  <bruno@clisp.org>
18502
18503         New module 'wctomb'.
18504         * lib/stdlib.in.h (wctomb): New declaration.
18505         * lib/wctomb.c: New file.
18506         * lib/wctomb-impl.h: New file.
18507         * m4/wctomb.m4: New file.
18508         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
18509         REPLACE_WCTOMB.
18510         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
18511         REPLACE_WCTOMB.
18512         * modules/wctomb: New file.
18513         * tests/test-stdlib-c++.cc: Test signature of wctomb.
18514         * doc/posix-functions/wctomb.texi: Mention the new module.
18515         * modules/wctob (Depends-on): Add wctomb.
18516
18517 2011-02-22  Bruno Haible  <bruno@clisp.org>
18518
18519         New module 'mbtowc'.
18520         * lib/stdlib.in.h (mbtowc): New declaration.
18521         * lib/mbtowc.c: New file.
18522         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
18523         * m4/mbtowc.m4: New file.
18524         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
18525         REPLACE_MBTOWC.
18526         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
18527         REPLACE_MBTOWC.
18528         * modules/mbtowc: New file.
18529         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
18530         * doc/posix-functions/mbtowc.texi: Mention the new module.
18531         * modules/btowc (Depends-on): Add mbtowc.
18532
18533 2011-02-22  Bruno Haible  <bruno@clisp.org>
18534
18535         wcrtomb: Add more tests for native Windows platforms.
18536         * tests/test-wcrtomb-w32-1.sh: New file.
18537         * tests/test-wcrtomb-w32-2.sh: New file.
18538         * tests/test-wcrtomb-w32-3.sh: New file.
18539         * tests/test-wcrtomb-w32-4.sh: New file.
18540         * tests/test-wcrtomb-w32-5.sh: New file.
18541         * tests/test-wcrtomb-w32.c: New file.
18542         * modules/wcrtomb-tests (Files): Add them.
18543         (Makefile.am): Arrange to run these tests.
18544         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
18545         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
18546
18547 2011-02-20  Bruno Haible  <bruno@clisp.org>
18548
18549         wcrtomb: Enhance test.
18550         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
18551
18552 2011-02-20  Bruno Haible  <bruno@clisp.org>
18553
18554         mbrtowc: Tiny optimization.
18555         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
18556
18557 2011-02-20  Jim Meyering  <meyering@redhat.com>
18558
18559         test-exclude.c: remove unmatched #endif
18560         * tests/test-exclude.c: Remove stray #endif, left over from
18561         the change of a week ago.
18562
18563 2011-02-19  Jim Meyering  <meyering@redhat.com>
18564
18565         git-version-gen: skip "-dirty" check when appropriate
18566         * build-aux/git-version-gen: Don't run any git commands when the
18567         version string comes from .tarball-version.  Prior to this, we
18568         would run git update-index --refresh even from a just-unpacked
18569         tarball directory, and that could affect a .git/ directory in a
18570         parent of the build directory.  Reported by Mike Frysinger.
18571
18572 2011-02-19  Bruno Haible  <bruno@clisp.org>
18573
18574         unictype/property-byname: Reduce the size of the 'data' segment.
18575         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
18576
18577 2011-02-19  Bruno Haible  <bruno@clisp.org>
18578
18579         unictype/scripts: Reduce the size of the 'data' segment.
18580         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
18581         '%pic'.
18582         * lib/unictype/scripts_byname.gperf: Regenerated.
18583
18584 2011-02-19  Bruno Haible  <bruno@clisp.org>
18585
18586         stdint: Update documentation.
18587         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
18588
18589 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
18590
18591         stdint: omit redundant check for wchar.h
18592         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
18593         always tests whether wchar.h exists, so remove the now-redundant test.
18594
18595 2011-02-18  Bruno Haible  <bruno@clisp.org>
18596
18597         stdint: Cut dependency to module 'wchar'.
18598         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
18599         include the necessary prerequisites.
18600         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
18601         * modules/stdint (Depends-on): Remove wchar.
18602         (Makefile.am): Substitute HAVE_WCHAR_H.
18603         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
18604
18605 2011-02-18  Eric Blake  <eblake@redhat.com>
18606
18607         longlong: skip, rather than fail, on cross-compilation
18608         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
18609         when cross-compiling; regression from 2011-02-16.
18610
18611 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
18612
18613         * NEWS: Mention 2011-02-08 change to stdlib.
18614
18615 2011-02-17  Bruno Haible  <bruno@clisp.org>
18616
18617         getloadavg: Add comments about platforms.
18618         * m4/getloadavg.m4: Add comment.
18619         * lib/getloadavg.c: Likewise.
18620
18621 2011-02-17  Bruno Haible  <bruno@clisp.org>
18622
18623         getloadavg: Fix link error on Solaris 2.6.
18624         * modules/getloadavg (Link): New section.
18625         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
18626         linking test-getloadavg.
18627         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
18628         getloadavg.
18629
18630 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
18631
18632         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
18633         It was 'int', but this doesn't match the IRIX 6.5 manual.
18634         Suggested by Bruno Haible in
18635         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
18636
18637 2011-02-17  Bruno Haible  <bruno@clisp.org>
18638
18639         havelib: Fix comments.
18640         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
18641         change.
18642
18643 2011-02-17  Bruno Haible  <bruno@clisp.org>
18644
18645         havelib: Update config.rpath.
18646         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
18647
18648 2011-02-17  Bruno Haible  <bruno@clisp.org>
18649
18650         getloadavg test: Add some plausibility checks.
18651         * tests/test-getloadavg.c (check_avg): Print a warning when the value
18652         is improbable.
18653
18654 2011-02-16  Eric Blake  <eblake@redhat.com>
18655
18656         maintainer-makefile: make syntax-check a no-op from tarballs
18657         * top/maint.mk (no-vc-detected): New rule.
18658         (local-checks-available): Use it to avoid hanging if someone tries
18659         'make syntax-check' from a tarball.  Also append to any non-syntax
18660         checks already defined in cfg.mk.
18661
18662 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
18663
18664         longlong: tune, particularly for common case of c99
18665
18666         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
18667         or running anything if c99, or if unsigned long long int does not
18668         work.  In either case, we know the answer without further tests.
18669         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
18670         it at most once, and use its results for both long long int and
18671         unsigned long long int.  This is more likely to be efficient in
18672         the common case where the program wants to check for both long
18673         long int and unsigned long long int.
18674         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
18675         since the answer is already known.
18676
18677 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
18678
18679         getloadavg: set errno
18680         * lib/getloadavg.c: Set errno when returning -1.  If no other
18681         error number looks appropriate, set it to ENOSYS if the getloadavg
18682         looks like it can't possibly ever work, ENOTSUP otherwise.
18683         Suggested by Bruno Haible in
18684         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
18685
18686         getloadavg: trim unused parts and speed up 'configure'
18687         * NEWS: Document this.
18688         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
18689         always compiled if getloadavg is absent.
18690         Move test code to ...
18691         * tests/test-getloadavg.c: New file, containing previous
18692         contents of test from lib/getloadavg.c.  It also contains
18693         suggestions by Bruno Haible in
18694         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
18695         * modules/getloadavg-tests: New file.
18696         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
18697         Do tests in the same order as they're needed for getloadavg.c.
18698         Omit setgid-related tests that generate symbols KMEM_GROUP,
18699         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
18700         Do only the tests that are needed to see whether the system has
18701         getloadavg, moving the other tests into ...
18702         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
18703         NLIST_NAME_UNION; nobody should be using it.  Do not define
18704         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
18705         relevant, as the user of this module shouldn't care how getloadavg
18706         is implemented.
18707
18708         getloadavg: omit unused var
18709         * lib/getloadavg.c (getloadavg): Omit unused local variable.
18710
18711 2011-02-15  Jim Meyering  <meyering@redhat.com>
18712
18713         doc: update users.txt
18714         * users.txt: Update iwhd's URL.
18715
18716 2011-02-13  Bruno Haible  <bruno@clisp.org>
18717
18718         Consistent macro naming for macros that use GCC __attribute__.
18719         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
18720         _ATTRIBUTE_NONNULL_.
18721         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
18722         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
18723         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
18724         ATTRIBUTE_DEPRECATED.
18725         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
18726         ATTRIBUTE_NORETURN.
18727         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
18728         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
18729         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
18730         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
18731         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
18732         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
18733         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
18734         ATTRIBUTE_SENTINEL.
18735         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
18736         ATTRIBUTE_RETURN_CHECK.
18737         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
18738         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
18739         ATTRIBUTE_NORETURN.
18740         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
18741         Reported by Paul Eggert.
18742
18743 2011-02-13  Bruno Haible  <bruno@clisp.org>
18744
18745         Don't interfere with a program's definition of __attribute__.
18746         * lib/argp.h (__attribute__): Remove definition.
18747         (_GL_ATTRIBUTE_FORMAT): New macro.
18748         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
18749         * lib/argp-fmtstream.h (__attribute__): Remove definition.
18750         (_GL_ATTRIBUTE_FORMAT): New macro.
18751         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
18752         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
18753         GCC 3 or newer.
18754         * lib/error.h (__attribute__): Remove definition.
18755         (_GL_ATTRIBUTE_FORMAT): New macro.
18756         (error, error_at_line): Use it.
18757         * lib/hash.h (__attribute__): Remove definition.
18758         (ATTRIBUTE_WUR): Update definition. Define always.
18759         * lib/openat.h (__attribute__): Remove definition.
18760         (ATTRIBUTE_NORETURN): Update definition. Define always.
18761         * lib/sigpipe-die.h (__attribute__): Remove definition.
18762         (ATTRIBUTE_NORETURN): Update definition. Define always.
18763         * lib/vasnprintf.h (__attribute__): Remove definition.
18764         (_GL_ATTRIBUTE_FORMAT): New macro.
18765         (asnprintf, vasnprintf): Use it.
18766         * lib/xalloc.h (__attribute__): Remove definition.
18767         (ATTRIBUTE_NORETURN): Update definition. Define always.
18768         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
18769         * lib/xmemdup0.h (__attribute__): Remove definition.
18770         (ATTRIBUTE_NORETURN): Update definition. Define always.
18771         * lib/xprintf.h (__attribute__): Remove definition.
18772         (_GL_ATTRIBUTE_FORMAT): New macro.
18773         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
18774         * lib/xstrtol.h (__attribute__): Remove definition.
18775         (ATTRIBUTE_NORETURN): Update definition. Define always.
18776         * lib/xvasprintf.h (__attribute__): Remove definition.
18777         (_GL_ATTRIBUTE_FORMAT): New macro.
18778         (xasprintf, xvasprintf): Use it.
18779         * tests/test-argmatch.c (__attribute__): Remove definition.
18780         (ATTRIBUTE_NORETURN): Update definition. Define always.
18781         * tests/test-exclude.c (__attribute__): Remove definition.
18782         (ATTRIBUTE_NORETURN): Update definition. Define always.
18783         Reported by Paul Eggert.
18784
18785 2011-02-13  Bruno Haible  <bruno@clisp.org>
18786
18787         mbrtowc: Add more tests for native Windows platforms.
18788         * tests/test-mbrtowc-w32-1.sh: New file.
18789         * tests/test-mbrtowc-w32-2.sh: New file.
18790         * tests/test-mbrtowc-w32-3.sh: New file.
18791         * tests/test-mbrtowc-w32-4.sh: New file.
18792         * tests/test-mbrtowc-w32-5.sh: New file.
18793         * tests/test-mbrtowc-w32.c: New file.
18794         * modules/mbrtowc-tests (Files): Add them.
18795         (Makefile.am): Arrange to run these tests.
18796         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
18797         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
18798
18799 2011-02-13  Bruno Haible  <bruno@clisp.org>
18800
18801         mbrtowc: Work around native Windows bug.
18802         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
18803         guess when no suitable locale for testing was found.
18804         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
18805
18806 2011-02-13  Bruno Haible  <bruno@clisp.org>
18807
18808         mbsinit: Work around mingw bug.
18809         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
18810         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
18811         Windows.
18812         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
18813
18814 2011-02-13  Bruno Haible  <bruno@clisp.org>
18815
18816         mbsinit: Don't crash for a NULL argument.
18817         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
18818         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
18819
18820 2011-02-13  Bruno Haible  <bruno@clisp.org>
18821
18822         Don't interfere with a program's definition of __attribute__.
18823         * lib/stdio.in.h (__attribute__): Remove definition.
18824         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
18825         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
18826         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
18827         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
18828         * lib/string.in.h (__attribute__): Remove definition.
18829         Reported by Paul Eggert.
18830
18831 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
18832
18833         stdlib: don't get in the way of non-GCC __attribute__
18834         See thread starting at
18835         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
18836         Revert previous stdlib change, installing the following instead:
18837         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
18838         to get in the way of a non-GCC compiler that supports __attribute__.
18839         (_GL_ATTRIBUTE_RETURN): New macro.
18840         (_Exit): Use it instead of __attribute__.
18841
18842 2011-02-12  Bruno Haible  <bruno@clisp.org>
18843
18844         quotearg test: Avoid test failure on mingw.
18845         * tests/test-quotearg.sh: Convert the locale identifier from native
18846         Windows syntax to Unix syntax.
18847
18848 2011-02-12  Bruno Haible  <bruno@clisp.org>
18849
18850         setlocale: Prefer gnulib's override over libintl's override.
18851         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
18852         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
18853         GNULIB_defined_setlocale is set.
18854
18855 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
18856
18857         stdlib: support non-GCC __attribute__
18858
18859         Fix a serious and tricky problem encountered when attempting to
18860         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
18861         5.5, but it crashed due to memory corruption on Solaris 10 with
18862         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
18863         bits that are otherwise zero.  This tagging is optional inside
18864         Emacs but is preferred and is used when __attribute__ ((__aligned
18865         (8))) works, as it does with both recent-enough GCC and with Sun C
18866         5.11.  However, Sun C 5.11 is not GCC and does not #define
18867         __GNUC__ and __GNUC_MINOR__.
18868
18869         When I added the getloadavg module to Emacs, it brought in
18870         stdlib.in.h, which contained this fragment:
18871
18872            #ifndef __attribute__
18873            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
18874            #  define __attribute__(Spec)   /* empty */
18875            # endif
18876            #endif
18877
18878         When files that include <stdlib.h> were compiled with Sun C 5.11,
18879         the above code disabled __attribute__ ((__aligned (8))), which
18880         caused variables to not be properly aligned, which eventually led
18881         to the pointer corruption mentioned above.  (This was a bit hard
18882         to diagnose, unfortunately.)
18883
18884         Several "#define __attribute__(X) /* empty */" code snippets need
18885         to be eradicated from Gnulib to work with non-GCC compilers that
18886         support __attribute__.  The Autoconf way to do this is to test for
18887         each kind of attribute that we want support for, and selectively
18888         enable that in source code.
18889
18890         Fix this problem just for stdlib.h, by adding a test for the
18891         __noreturn__ attribute, and change stdlib.in.h to use that test
18892         when needed.  This technique can be easily generalized to the
18893         other *.in.h files and attributes, and a similar technique can be
18894         used for *.h and *.c files.  This patch is enough to solve the
18895         problem for Emacs + getloadavg, and I thought I'd publish it for
18896         feedback before undertaking further, similar fixes in other
18897         modules.
18898
18899         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
18900         because it's not needed for stdlib.h.  It merely substitutes the
18901         value directly into stdlib.h.  We may well need to #define it, or
18902         similar symbols, for other modules, but it's nice to also have an
18903         option to not #define it for applications like Emacs that do not
18904         need it.
18905
18906         * lib/stdlib.in.h (__attribute__): Do not #define.
18907         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
18908         be defined only if the _Exit module is also used.
18909         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
18910         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
18911         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
18912         platforms.
18913         * modules/_Exit (Files): Add m4/attribute.m4.
18914         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
18915         * m4/attribute.m4: New file.
18916
18917 2011-02-12  Bruno Haible  <bruno@clisp.org>
18918
18919         wcsrtombs: Work around bug on native Windows.
18920         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
18921         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
18922         instead of len.
18923         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
18924
18925 2011-02-12  Bruno Haible  <bruno@clisp.org>
18926
18927         mbsrtowcs: Work around bug on native Windows.
18928         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
18929         against mingw bug.
18930         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
18931
18932 2011-02-12  Bruno Haible  <bruno@clisp.org>
18933
18934         Avoid setlocale bugs in tests.
18935         * modules/btowc (Dependencies): Add setlocale.
18936         * modules/c-strcase (Dependencies): Likewise.
18937         * modules/mbmemcasecmp (Dependencies): Likewise.
18938         * modules/mbmemcasecoll (Dependencies): Likewise.
18939         * modules/mbrtowc (Dependencies): Likewise.
18940         * modules/mbscasecmp (Dependencies): Likewise.
18941         * modules/mbscasestr (Dependencies): Likewise.
18942         * modules/mbschr (Dependencies): Likewise.
18943         * modules/mbscspn (Dependencies): Likewise.
18944         * modules/mbsinit (Dependencies): Likewise.
18945         * modules/mbsncasecmp (Dependencies): Likewise.
18946         * modules/mbsnrtowcs (Dependencies): Likewise.
18947         * modules/mbspbrk (Dependencies): Likewise.
18948         * modules/mbspcasecmp (Dependencies): Likewise.
18949         * modules/mbsrchr (Dependencies): Likewise.
18950         * modules/mbsrtowcs (Dependencies): Likewise.
18951         * modules/mbsspn (Dependencies): Likewise.
18952         * modules/mbsstr (Dependencies): Likewise.
18953         * modules/nl_langinfo (Dependencies): Likewise.
18954         * modules/quotearg (Dependencies): Likewise.
18955         * modules/unicase/locale-language (Dependencies): Likewise.
18956         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
18957         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
18958         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
18959         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
18960         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
18961         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
18962         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
18963         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
18964         * modules/vasnprintf-posix (Dependencies): Likewise.
18965         * modules/wcrtomb (Dependencies): Likewise.
18966         * modules/wcsnrtombs (Dependencies): Likewise.
18967         * modules/wcsrtombs (Dependencies): Likewise.
18968
18969 2011-02-12  Bruno Haible  <bruno@clisp.org>
18970
18971         setlocale: Workaround native Windows bug.
18972         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
18973         succeeds but sets LC_CTYPE to "C", report a failure.
18974         * tests/test-setlocale2.sh: New file.
18975         * tests/test-setlocale2.c: New file.
18976         * modules/setlocale-tests (Files): Add the new files.
18977         (Makefile.am): Enable test-setlocale2.sh test.
18978         * doc/posix-functions/setlocale.texi: Mention workaround.
18979
18980 2011-02-11  Bruno Haible  <bruno@clisp.org>
18981
18982         Tests for module 'setlocale'.
18983         * modules/setlocale-tests: New file.
18984         * tests/test-setlocale1.sh: New file.
18985         * tests/test-setlocale1.c: New file.
18986
18987         New module 'setlocale'.
18988         * lib/locale.in.h (setlocale): New declaration.
18989         * lib/setlocale.c: New file, based on
18990         gettext/gettext-runtime/intl/setlocale.c.
18991         * m4/setlocale.m4: New file.
18992         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
18993         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
18994         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
18995         REPLACE_SETLOCALE.
18996         * modules/setlocale: New file.
18997         * tests/test-locale-c++.cc: Test the declaration of setlocale.
18998         * doc/posix-functions/setlocale.texi: Mention the new module.
18999
19000 2011-02-11  Bruno Haible  <bruno@clisp.org>
19001
19002         Prepare for locale dependent tests on mingw.
19003         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
19004         because it has the wrong locale encoding.
19005         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
19006         French_France.1252 instead of "fr".
19007         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
19008         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
19009         because it has the wrong locale encoding.
19010         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
19011         native Windows, try Turkish_Turkey.65001.
19012         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
19013         Chinese_China.54936.
19014
19015         Prepare for locale dependent tests on mingw.
19016         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
19017         differently.
19018         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
19019         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
19020         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
19021         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
19022
19023 2011-02-11  Eric Blake  <eblake@redhat.com>
19024
19025         strptime: avoid compiler warnings
19026         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
19027         compiler warnings about dead code.
19028         Reported by Daniel P. Berrange.
19029
19030 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
19031
19032         doc: update users.txt
19033         * users.txt: Add rcs.
19034
19035 2011-02-10  John W. Eaton  <jwe@gnu.org>
19036
19037         doc: update users.txt
19038         * users.txt: Add octave.
19039
19040 2011-02-10  Jim Meyering  <meyering@redhat.com>
19041
19042         doc: update users.txt
19043         * users.txt: Add iwhd.
19044
19045 2011-02-09  Bruno Haible  <bruno@clisp.org>
19046
19047         gnulib-tool: Make copyright notice adjustment more robust.
19048         * gnulib-tool (func_import): In sed_transform_main_lib_file,
19049         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
19050         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
19051         License".
19052         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
19053
19054 2011-02-06  Bruno Haible  <bruno@clisp.org>
19055
19056         New module 'towctrans'.
19057         * modules/towctrans: New file.
19058         * lib/wctype.in.h (towctrans): New declaration.
19059         * lib/towctrans.c: New file.
19060         * lib/towctrans-impl.h: New file.
19061         * m4/towctrans.m4: New file.
19062         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
19063         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
19064         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
19065         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
19066         * doc/posix-functions/towctrans.texi: Mention the new module.
19067
19068 2011-02-06  Bruno Haible  <bruno@clisp.org>
19069
19070         New module 'wctrans'.
19071         * modules/wctrans: New file.
19072         * lib/wctype.in.h (wctrans): New declaration.
19073         * lib/wctrans.c: New file.
19074         * lib/wctrans-impl.h: New file.
19075         * m4/wctrans.m4: New file.
19076         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
19077         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
19078         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
19079         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
19080         * doc/posix-functions/wctrans.texi: Mention the new module.
19081
19082 2011-02-06  Bruno Haible  <bruno@clisp.org>
19083
19084         New module 'iswctype'.
19085         * modules/iswctype: New file.
19086         * lib/wctype.in.h (iswctype): New declaration.
19087         * lib/iswctype.c: New file.
19088         * lib/iswctype-impl.h: New file.
19089         * m4/iswctype.m4: New file.
19090         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
19091         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
19092         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
19093         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
19094         * doc/posix-functions/iswctype.texi: Mention the new module and the
19095         HP-UX 11.00 problem.
19096
19097 2011-02-06  Bruno Haible  <bruno@clisp.org>
19098
19099         New module 'wctype'.
19100         * modules/wctype: Change to represent the wctype() substitute.
19101         * lib/wctype.in.h (wctype): New declaration.
19102         * lib/wctype.c: New file.
19103         * lib/wctype-impl.h: New file.
19104         * m4/wctype.m4: New file.
19105         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
19106         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
19107         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
19108         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
19109         * doc/posix-functions/wctype.texi: Mention the new module and the
19110         HP-UX 11.00 problem.
19111
19112 2011-02-06  Bruno Haible  <bruno@clisp.org>
19113
19114         wctype-h: Ensure wctype_t and wctrans_t are defined.
19115         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
19116         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
19117         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
19118         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
19119         HAVE_WCTRANS_T.
19120         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
19121
19122 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
19123
19124         flock: fix license typo
19125
19126         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
19127         omitted.
19128
19129 2011-02-08  Bruno Haible  <bruno@clisp.org>
19130
19131         Split large sed scripts, for HP-UX sed.
19132         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
19133         to avoid HP-UX limit of 99 commands, in the near future.
19134         * modules/stdlib (Makefile.am): Likewise.
19135         * modules/unistd (Makefile.am): Likewise.
19136         * modules/wchar (Makefile.am): Likewise.
19137         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19138         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
19139         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
19140
19141 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
19142             Bruno Haible  <bruno@clisp.org>
19143
19144         stdlib: improve random_r modularization
19145         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
19146         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
19147         you also need the random_r module to get this material right.
19148         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
19149         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
19150         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
19151
19152 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
19153
19154         stdlib: don't depend on stdint
19155         * lib/stdlib.in.h: Don't include <stdint.h> merely because
19156         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
19157         be independent of whether stdint.h is needed.
19158         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
19159         here, instead of ...
19160         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
19161         struct random_data should be using the random_r module, not just
19162         the stdlib module (which wouldn't make sense: what package needs
19163         just struct random_data without also needing random_r?).
19164         * modules/stdlib (Depends-on): Remove stdint.
19165
19166         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
19167         See the thread rooted at
19168         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
19169         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
19170         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
19171         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
19172         __VMS)); previously it was always included (via fcntl--.h).
19173         (getloadavg): Do not use c_strtod.  Instead, approximate it by
19174         hand; this is good enough for load averages.  Also, do not use
19175         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
19176         flags directly if available and don't bother otherwise.  (Packages
19177         that need the extra reliability should use the modules that define
19178         these flags on older platforms that lack them.)
19179         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
19180         fcntl-safer.
19181
19182 2011-02-08  Jim Meyering  <meyering@redhat.com>
19183
19184         di-set.h, ino-map.h: add multiple-inclusion guard
19185         Technically, the guard is required only for ino-map.h, due to its
19186         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
19187         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
19188         * lib/ino-map.h: Likewise.
19189
19190 2011-02-06  Bruno Haible  <bruno@clisp.org>
19191
19192         iswblank: Ensure declaration on glibc systems.
19193         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
19194         * modules/iswblank (Dependencies): Add 'extensions'.
19195         * doc/posix-functions/iswblank.texi: Document the glibc problem.
19196
19197 2011-02-06  Bruno Haible  <bruno@clisp.org>
19198
19199         New module 'iswblank'.
19200         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
19201         * modules/iswblank: New file.
19202         * modules/wctype-h (Files): Remove lib/iswblank.c.
19203         (Makefile.am): Substitute GNULIB_ISWBLANK.
19204         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
19205         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
19206         (gl_WCTYPE_H_DEFAULTS): New macro.
19207         (gl_WCTYPE_H): Require it. Remove iswblank related code.
19208         * modules/iswblank-tests: New file.
19209         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
19210         * tests/test-wctype-h.c (main): Remove iswblank tests.
19211         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
19212         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
19213         of 'wctype-h'.
19214         * NEWS: Mention the change.
19215         * modules/mbchar (Depends-on): Add iswblank.
19216
19217 2011-02-08  Bruno Haible  <bruno@clisp.org>
19218
19219         di-set tests: Refactor.
19220         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
19221         unnecessary includes.
19222         (ASSERT): Remove macro.
19223         (main): Make C90 compliant by avoiding variable declaration after
19224         statement.
19225         * modules/di-set-tests (Files): Add tests/macros.h.
19226
19227 2011-02-08  Bruno Haible  <bruno@clisp.org>
19228
19229         ino-map tests: Refactor.
19230         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
19231         unnecessary includes.
19232         (ASSERT): Remove macro.
19233         (main): Make C90 compliant by avoiding variable declaration after
19234         statement.
19235         * modules/ino-map-tests (Files): Add tests/macros.h.
19236
19237 2011-02-08  Jim Meyering  <meyering@redhat.com>
19238
19239         di-set: add "const" to a cast
19240         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
19241         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
19242
19243 2011-02-06  Bruno Haible  <bruno@clisp.org>
19244
19245         Rename module 'wctype' to 'wctype-h'.
19246         * modules/wctype-h: Renamed from modules/wctype.
19247         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
19248         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
19249         (Files, Depends-on, Makefile.am): Update.
19250         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
19251         (Files, Makefile.am): Update.
19252         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
19253         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
19254         * doc/posix-headers/wctype.texi: Update.
19255         * doc/posix-functions/iswalnum.texi: Update.
19256         * doc/posix-functions/iswalpha.texi: Update.
19257         * doc/posix-functions/iswblank.texi: Update.
19258         * doc/posix-functions/iswcntrl.texi: Update.
19259         * doc/posix-functions/iswdigit.texi: Update.
19260         * doc/posix-functions/iswgraph.texi: Update.
19261         * doc/posix-functions/iswlower.texi: Update.
19262         * doc/posix-functions/iswprint.texi: Update.
19263         * doc/posix-functions/iswpunct.texi: Update.
19264         * doc/posix-functions/iswspace.texi: Update.
19265         * doc/posix-functions/iswupper.texi: Update.
19266         * doc/posix-functions/iswxdigit.texi: Update.
19267         * doc/posix-functions/towlower.texi: Update.
19268         * doc/posix-functions/towupper.texi: Update.
19269         * NEWS: Mention the change.
19270         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
19271         * modules/mbchar (Dependencies): Likewise.
19272         * modules/mbswidth (Dependencies): Likewise.
19273         * modules/quotearg (Dependencies): Likewise.
19274         * modules/regex (Dependencies): Likewise.
19275         * modules/wcscasecmp (Dependencies): Likewise.
19276         * modules/wcsncasecmp (Dependencies): Likewise.
19277         * modules/wcwidth (Dependencies): Likewise.
19278
19279 2011-02-06  Bruno Haible  <bruno@clisp.org>
19280
19281         New module 'wcswidth'.
19282         * modules/wcswidth: New file.
19283         * lib/wchar.in.h (wcswidth): New declaration.
19284         * lib/wcswidth.c: New file.
19285         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
19286         * m4/wcswidth.m4: New file.
19287         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
19288         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
19289         REPLACE_WCSWIDTH.
19290         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
19291         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
19292         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
19293         * doc/posix-functions/wcswidth.texi: Mention the new module.
19294
19295 2011-02-06  Bruno Haible  <bruno@clisp.org>
19296
19297         New module 'wcstok'.
19298         * modules/wcstok: New file.
19299         * lib/wchar.in.h (wcstok): New declaration.
19300         * lib/wcstok.c: New file.
19301         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
19302         * m4/wcstok.m4: New file.
19303         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
19304         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
19305         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
19306         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
19307         * doc/posix-functions/wcstok.texi: Mention the new module.
19308
19309 2011-02-06  Bruno Haible  <bruno@clisp.org>
19310
19311         New module 'wcsstr'.
19312         * modules/wcsstr: New file.
19313         * lib/wchar.in.h (wcsstr): New declaration.
19314         * lib/wcsstr.c: New file.
19315         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
19316         * m4/wcsstr.m4: New file.
19317         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
19318         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
19319         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
19320         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
19321         * doc/posix-functions/wcsstr.texi: Mention the new module.
19322
19323 2011-02-06  Bruno Haible  <bruno@clisp.org>
19324
19325         New module 'wcspbrk'.
19326         * modules/wcspbrk: New file.
19327         * lib/wchar.in.h (wcspbrk): New declaration.
19328         * lib/wcspbrk.c: New file.
19329         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
19330         * m4/wcspbrk.m4: New file.
19331         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
19332         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
19333         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
19334         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
19335         * doc/posix-functions/wcspbrk.texi: Mention the new module.
19336
19337 2011-02-06  Bruno Haible  <bruno@clisp.org>
19338
19339         New module 'wcsspn'.
19340         * modules/wcsspn: New file.
19341         * lib/wchar.in.h (wcsspn): New declaration.
19342         * lib/wcsspn.c: New file.
19343         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
19344         * m4/wcsspn.m4: New file.
19345         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
19346         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
19347         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
19348         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
19349         * doc/posix-functions/wcsspn.texi: Mention the new module.
19350
19351 2011-02-06  Bruno Haible  <bruno@clisp.org>
19352
19353         New module 'wcscspn'.
19354         * modules/wcscspn: New file.
19355         * lib/wchar.in.h (wcscspn): New declaration.
19356         * lib/wcscspn.c: New file.
19357         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
19358         * m4/wcscspn.m4: New file.
19359         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
19360         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
19361         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
19362         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
19363         * doc/posix-functions/wcscspn.texi: Mention the new module.
19364
19365 2011-02-06  Bruno Haible  <bruno@clisp.org>
19366
19367         New module 'wcsrchr'.
19368         * modules/wcsrchr: New file.
19369         * lib/wchar.in.h (wcsrchr): New declaration.
19370         * lib/wcsrchr.c: New file.
19371         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
19372         * m4/wcsrchr.m4: New file.
19373         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
19374         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
19375         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
19376         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
19377         * doc/posix-functions/wcsrchr.texi: Mention the new module.
19378
19379 2011-02-06  Bruno Haible  <bruno@clisp.org>
19380
19381         New module 'wcschr'.
19382         * modules/wcschr: New file.
19383         * lib/wchar.in.h (wcschr): New declaration.
19384         * lib/wcschr.c: New file.
19385         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
19386         * m4/wcschr.m4: New file.
19387         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
19388         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
19389         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
19390         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
19391         * doc/posix-functions/wcschr.texi: Mention the new module.
19392
19393 2011-02-06  Bruno Haible  <bruno@clisp.org>
19394
19395         New module 'wcsdup'.
19396         * modules/wcsdup: New file.
19397         * lib/wchar.in.h (wcsdup): New declaration.
19398         * lib/wcsdup.c: New file.
19399         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
19400         * m4/wcsdup.m4: New file.
19401         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
19402         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
19403         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
19404         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
19405         * doc/posix-functions/wcsdup.texi: Mention the new module.
19406
19407 2011-02-06  Bruno Haible  <bruno@clisp.org>
19408
19409         New module 'wcsxfrm'.
19410         * modules/wcsxfrm: New file.
19411         * lib/wchar.in.h (wcsxfrm): New declaration.
19412         * lib/wcsxfrm.c: New file.
19413         * lib/wcsxfrm-impl.h: New file.
19414         * m4/wcsxfrm.m4: New file.
19415         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
19416         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
19417         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
19418         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
19419         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
19420
19421 2011-02-06  Bruno Haible  <bruno@clisp.org>
19422
19423         New module 'wcscoll'.
19424         * modules/wcscoll: New file.
19425         * lib/wchar.in.h (wcscoll): New declaration.
19426         * lib/wcscoll.c: New file.
19427         * lib/wcscoll-impl.h: New file.
19428         * m4/wcscoll.m4: New file.
19429         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
19430         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
19431         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
19432         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
19433         * doc/posix-functions/wcscoll.texi: Mention the new module.
19434
19435 2011-02-06  Bruno Haible  <bruno@clisp.org>
19436
19437         New module 'wcsncasecmp'.
19438         * modules/wcsncasecmp: New file.
19439         * lib/wchar.in.h (wcsncasecmp): New declaration.
19440         * lib/wcsncasecmp.c: New file.
19441         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
19442         * m4/wcsncasecmp.m4: New file.
19443         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
19444         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
19445         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
19446         HAVE_WCSNCASECMP.
19447         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
19448         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
19449
19450 2011-02-06  Bruno Haible  <bruno@clisp.org>
19451
19452         New module 'wcscasecmp'.
19453         * modules/wcscasecmp: New file.
19454         * lib/wchar.in.h (wcscasecmp): New declaration.
19455         * lib/wcscasecmp.c: New file.
19456         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
19457         * m4/wcscasecmp.m4: New file.
19458         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
19459         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
19460         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
19461         HAVE_WCSCASECMP.
19462         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
19463         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
19464
19465 2011-02-05  Bruno Haible  <bruno@clisp.org>
19466
19467         New module 'wcsncmp'.
19468         * modules/wcsncmp: New file.
19469         * lib/wchar.in.h (wcsncmp): New declaration.
19470         * lib/wcsncmp.c: New file.
19471         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
19472         * m4/wcsncmp.m4: New file.
19473         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
19474         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
19475         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
19476         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
19477         * doc/posix-functions/wcsncmp.texi: Mention the new module.
19478
19479 2011-02-05  Bruno Haible  <bruno@clisp.org>
19480
19481         New module 'wcscmp'.
19482         * modules/wcscmp: New file.
19483         * lib/wchar.in.h (wcscmp): New declaration.
19484         * lib/wcscmp.c: New file.
19485         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
19486         * m4/wcscmp.m4: New file.
19487         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
19488         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
19489         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
19490         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
19491         * doc/posix-functions/wcscmp.texi: Mention the new module.
19492
19493 2011-02-05  Bruno Haible  <bruno@clisp.org>
19494
19495         New module 'wcsncat'.
19496         * modules/wcsncat: New file.
19497         * lib/wchar.in.h (wcsncat): New declaration.
19498         * lib/wcsncat.c: New file.
19499         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
19500         * m4/wcsncat.m4: New file.
19501         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
19502         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
19503         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
19504         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
19505         * doc/posix-functions/wcsncat.texi: Mention the new module.
19506
19507 2011-02-05  Bruno Haible  <bruno@clisp.org>
19508
19509         New module 'wcscat'.
19510         * modules/wcscat: New file.
19511         * lib/wchar.in.h (wcscat): New declaration.
19512         * lib/wcscat.c: New file.
19513         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
19514         * m4/wcscat.m4: New file.
19515         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
19516         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
19517         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
19518         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
19519         * doc/posix-functions/wcscat.texi: Mention the new module.
19520
19521 2011-02-05  Bruno Haible  <bruno@clisp.org>
19522
19523         New module 'wcpncpy'.
19524         * modules/wcpncpy: New file.
19525         * lib/wchar.in.h (wcpncpy): New declaration.
19526         * lib/wcpncpy.c: New file.
19527         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
19528         * m4/wcpncpy.m4: New file.
19529         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
19530         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
19531         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
19532         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
19533         * doc/posix-functions/wcpncpy.texi: Mention the new module.
19534
19535 2011-02-05  Bruno Haible  <bruno@clisp.org>
19536
19537         New module 'wcsncpy'.
19538         * modules/wcsncpy: New file.
19539         * lib/wchar.in.h (wcsncpy): New declaration.
19540         * lib/wcsncpy.c: New file.
19541         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
19542         * m4/wcsncpy.m4: New file.
19543         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
19544         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
19545         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
19546         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
19547         * doc/posix-functions/wcsncpy.texi: Mention the new module.
19548
19549 2011-02-05  Bruno Haible  <bruno@clisp.org>
19550
19551         New module 'wcpcpy'.
19552         * modules/wcpcpy: New file.
19553         * lib/wchar.in.h (wcpcpy): New declaration.
19554         * lib/wcpcpy.c: New file.
19555         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
19556         * m4/wcpcpy.m4: New file.
19557         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
19558         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
19559         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
19560         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
19561         * doc/posix-functions/wcpcpy.texi: Mention the new module.
19562
19563 2011-02-05  Bruno Haible  <bruno@clisp.org>
19564
19565         New module 'wcscpy'.
19566         * modules/wcscpy: New file.
19567         * lib/wchar.in.h (wcscpy): New declaration.
19568         * lib/wcscpy.c: New file.
19569         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
19570         * m4/wcscpy.m4: New file.
19571         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
19572         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
19573         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
19574         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
19575         * doc/posix-functions/wcscpy.texi: Mention the new module.
19576
19577 2011-02-05  Bruno Haible  <bruno@clisp.org>
19578
19579         New module 'wcsnlen'.
19580         * modules/wcsnlen: New file.
19581         * lib/wchar.in.h (wcsnlen): New declaration.
19582         * lib/wcsnlen.c: New file.
19583         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
19584         * m4/wcsnlen.m4: New file.
19585         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
19586         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
19587         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
19588         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
19589         * doc/posix-functions/wcsnlen.texi: Mention the new module.
19590
19591 2011-02-05  Bruno Haible  <bruno@clisp.org>
19592
19593         New module 'wcslen'.
19594         * modules/wcslen: New file.
19595         * lib/wchar.in.h (wcslen): New declaration.
19596         * lib/wcslen.c: New file.
19597         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
19598         * m4/wcslen.m4: New file.
19599         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
19600         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
19601         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
19602         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
19603         * doc/posix-functions/wcslen.texi: Mention the new module.
19604
19605 2011-02-05  Bruno Haible  <bruno@clisp.org>
19606
19607         New module 'wmemset'.
19608         * modules/wmemset: New file.
19609         * lib/wchar.in.h (wmemset): New declaration.
19610         * lib/wmemset.c: New file.
19611         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
19612         * m4/wmemset.m4: New file.
19613         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
19614         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
19615         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
19616         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
19617         * doc/posix-functions/wmemset.texi: Mention the new module.
19618
19619 2011-02-05  Bruno Haible  <bruno@clisp.org>
19620
19621         New module 'wmemmove'.
19622         * modules/wmemmove: New file.
19623         * lib/wchar.in.h (wmemmove): New declaration.
19624         * lib/wmemmove.c: New file.
19625         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
19626         * m4/wmemmove.m4: New file.
19627         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
19628         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
19629         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
19630         HAVE_WMEMMOVE.
19631         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
19632         * doc/posix-functions/wmemmove.texi: Mention the new module.
19633
19634 2011-02-05  Bruno Haible  <bruno@clisp.org>
19635
19636         New module 'wmemcpy'.
19637         * modules/wmemcpy: New file.
19638         * lib/wchar.in.h (wmemcpy): New declaration.
19639         * lib/wmemcpy.c: New file.
19640         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
19641         * m4/wmemcpy.m4: New file.
19642         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
19643         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
19644         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
19645         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
19646         * doc/posix-functions/wmemcpy.texi: Mention the new module.
19647
19648 2011-02-05  Bruno Haible  <bruno@clisp.org>
19649
19650         New module 'wmemcmp'.
19651         * modules/wmemcmp: New file.
19652         * lib/wchar.in.h (wmemcmp): New declaration.
19653         * lib/wmemcmp.c: New file.
19654         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
19655         * m4/wmemcmp.m4: New file.
19656         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
19657         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
19658         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
19659         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
19660         * doc/posix-functions/wmemcmp.texi: Mention the new module.
19661
19662 2011-02-07  Jim Meyering  <meyering@redhat.com>
19663
19664         di-set, ino-map: new modules, from coreutils
19665         * lib/di-set.c: New file.
19666         * lib/di-set.h: Likewise.
19667         * lib/ino-map.c: Likewise.
19668         * lib/ino-map.h: Likewise.
19669         * modules/di-set: Likewise.
19670         * modules/di-set-tests: Likewise.
19671         * modules/ino-map: Likewise.
19672         * modules/ino-map-tests: Likewise.
19673         * tests/test-di-set.c: Likewise.
19674         * tests/test-ino-map.c: Likewise.
19675
19676 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
19677
19678         getloadavg: merge minor changes from Emacs
19679
19680         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
19681         (getloadavg): Use memset, not bzero.
19682
19683         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
19684         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
19685         clash (bug#86).
19686
19687 2010-11-14  Bruno Haible  <bruno@clisp.org>
19688
19689         Allow multiple gnulib generated replacements to coexist.
19690         * lib/getopt.in.h (struct option): Avoid identical redefinition.
19691         * lib/inttypes.in.h (imaxdiv_t): Likewise.
19692         * lib/langinfo.in.h (nl_item): Likewise.
19693         * lib/math.in.h (_NaN, NAN): Likewise.
19694         * lib/netdb.in.h (struct addrinfo): Likewise.
19695         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
19696         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
19697         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
19698         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
19699         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
19700         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
19701         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
19702         pthread_mutexattr_init, pthread_mutexattr_settype,
19703         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
19704         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
19705         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
19706         pthread_spin_trylock, pthread_spin_unlock): Likewise.
19707         * lib/sched.in.h (struct sched_param): Likewise.
19708         * lib/se-selinux.in.h (security_class_t, security_context_t,
19709         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
19710         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
19711         lsetfilecon, fsetfilecon, security_check_context,
19712         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
19713         Likewise.
19714         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
19715         Likewise.
19716         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
19717         _gl_function_taking_int_returning_void_t, union sigval,
19718         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
19719         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
19720         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
19721         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
19722         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
19723         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
19724         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
19725         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
19726         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
19727         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
19728         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
19729         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
19730         socklen_t, rpl_fd_isset): Likewise.
19731         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
19732         * lib/sys_time.in.h (struct timeval): Likewise.
19733         * lib/sys_times.in.h (struct tms): Likewise.
19734         * lib/sys_utsname.in.h (struct utsname):
19735         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
19736         * lib/unistd.in.h (getpagesize): Likewise.
19737         * lib/wchar.in.h (mbstate_t): Likewise.
19738         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
19739         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
19740         towlower, towupper): Likewise.
19741         Reported by Sam Steingold <sds@gnu.org>.
19742
19743 2011-02-05  Eric Blake  <eblake@redhat.com>
19744
19745         unsetenv: work around Haiku issues
19746         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
19747         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
19748
19749 2010-12-30  Bruce Korb  <bkorb@gnu.org>
19750
19751         libposix: avoid calling error() within libposix
19752         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
19753         is defined.
19754
19755 2011-02-05  Eric Blake  <eblake@redhat.com>
19756
19757         strerror_r-posix: port to cygwin
19758         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
19759         implementation.
19760         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
19761         * tests/test-strerror_r.c (main): Fix test.
19762         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
19763         issue.
19764
19765 2011-02-05  Bruno Haible  <bruno@clisp.org>
19766
19767         New module 'wmemchr'.
19768         * modules/wmemchr: New file.
19769         * lib/wchar.in.h (wmemchr): New declaration.
19770         * lib/wmemchr.c: New file.
19771         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
19772         * m4/wmemchr.m4: New file.
19773         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
19774         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
19775         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
19776         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
19777         * doc/posix-functions/wmemchr.texi: Mention the new module.
19778
19779 2011-02-04  Eric Blake  <eblake@redhat.com>
19780
19781         fdopendir: detect FreeBSD bug
19782         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
19783         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
19784
19785 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
19786
19787         stdbool: do not define HAVE_STDBOOL_H
19788         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
19789         AC_HEADER_STDBOOL.  All uses changed.  Do not define
19790         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
19791         imported from the latest Autoconf git.  It was motivated by Emacs,
19792         which uses gnulib but does not need HAVE_STDBOOL_H.
19793
19794 2011-02-04  Bruno Haible  <bruno@clisp.org>
19795
19796         wcsnrtombs: Prepare for new module wwcsnrtombs.
19797         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
19798         * lib/wcsnrtombs.c: Include it.
19799         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
19800
19801         wcsrtombs: Prepare for new module wwcsrtombs.
19802         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
19803         * lib/wcsrtombs.c: Include it.
19804         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
19805
19806         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
19807         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
19808         * lib/mbsnrtowcs.c: Include it.
19809         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
19810
19811         mbsrtowcs: Prepare for new module mbsrtowwcs.
19812         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
19813         * lib/mbsrtowcs.c: Include it.
19814         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
19815
19816 2011-02-04  Bruno Haible  <bruno@clisp.org>
19817
19818         vasnprintf: Reduce use of malloc for small format strings.
19819         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
19820         (arguments): Add room for the first 7 arguments.
19821         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
19822         (char_directives, u8_directives, u16_directives, u32_directives): Add
19823         room for the first 7 directives.
19824         * lib/printf-parse.c: Include <string.h>.
19825         (PRINTF_PARSE): Change memory handling code so that it uses the first
19826         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
19827         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
19828         Reported by Pádraig Brady <P@draigbrady.com>.
19829
19830 2011-01-31  Eric Blake  <eblake@redhat.com>
19831
19832         dup2: work around Haiku bug
19833         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
19834         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
19835         * doc/posix-functions/dup2.texi (dup2): Document the bug.
19836         * tests/test-dup2.c (main): Enhance test.
19837
19838 2011-01-31  Simon Josefsson  <simon@josefsson.org>
19839
19840         doc: off_t is not available in eglibc 2.11.2 stdio.h.
19841         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
19842         declared by eglibc 2.11.2.
19843         * lib/stdio.in.h: Likewise.
19844
19845 2011-01-31  Eric Blake  <eblake@redhat.com>
19846
19847         ignore-value: add missing test dependency
19848         * tests/test-ignore-value.c: Revert previous change; stdio.h
19849         provides off_t.
19850         * modules/ignore-value-tests (Depends-on): Add missing dependency.
19851
19852 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
19853
19854         mktime: clarify long_int width checking
19855         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
19856         the top level, to make it clearer that the assumption about
19857         long_int width is being checked.  See
19858         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
19859
19860 2011-01-30  Simon Josefsson  <simon@josefsson.org>
19861
19862         ignore-value: Fix self-test.
19863         * tests/test-ignore-value.c: Include sys/types.h for off_t.
19864
19865 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
19866
19867         TYPE_MAXIMUM: avoid theoretically undefined behavior
19868         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
19869         negative number, which the C Standard says has undefined behavior.
19870         In practice this is not a problem, but might as well do it by the book.
19871         Reported by Rich Felker and Eric Blake; see
19872         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
19873         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
19874         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
19875         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
19876         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
19877         * m4/stdint.m4 (gl_STDINT_H): Likewise.
19878         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
19879
19880         mktime: #undef mktime before #defining it
19881         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
19882
19883         mktime: systematically normalize tm_isdst comparisons
19884         * lib/mktime.c (isdst_differ): New function.
19885         (__mktime_internal): Use it systematically for all isdst comparisons.
19886         This completes the fix for libc BZ #6723, and removes the need for
19887         normalizing tm_isdst.  See
19888         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
19889         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
19890
19891         mktime: fix some integer overflow issues and sidestep the rest
19892
19893         This was prompted by a bug report by Benjamin Lindner for MinGW
19894         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
19895         His bug is due to signed integer overflow (0 - INT_MIN), and I
19896         I scanned through mktime.c looking for other integer overflow
19897         problems, fixing all the bugs I found.
19898
19899         Although the C Standard says the resulting code is still not safe
19900         in the presence of integer overflow, in practice it should be good
19901         enough for all real-world two's-complement implementations, except
19902         for debugging environments that deliberately trap on integer
19903         overflow (e.g., gcc -ftrapv).
19904
19905         * lib/mktime.c (WRAPV): New macro.
19906         (SHR): Also check that long_int and time_t shift right in the
19907         usual way, before using the fast-but-unportable method.
19908         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
19909         used.  The code already assumed two's complement, so there's
19910         no need to test for alternatives.  All uses removed.
19911         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
19912         the C standard.  Problem reported by Rich Felker in
19913         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
19914         (twos_complement_arithmetic): Also check long_int and time_t.
19915         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
19916         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
19917         (__mktime_internal): Avoid integer overflow with unary subtraction
19918         in two instances where -1 - X is an adequate replacement for -X,
19919         since the calculations are approximate.
19920
19921 2011-01-29  Eric Blake  <eblake@redhat.com>
19922
19923         mktime: avoid infinite loop
19924         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
19925         type; behavior is still undefined but portable to all known targets.
19926         Reported by Rich Felker.
19927
19928 2011-01-29  Simon Josefsson  <simon@josefsson.org>
19929
19930         rename, unlink, same-inode: Relicense.
19931         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
19932         * modules/unlink (License): Likewise.
19933         * modules/same-inode (License): Likewise.
19934
19935 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
19936
19937         mktime: avoid problems on NetBSD 5 / i386
19938         * lib/mktime.c (long_int): New type.  This works around a problem
19939         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
19940         but time_t is 64 bits, and where I expect the existing code is
19941         wrong in some cases.
19942         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
19943         (ydhms_diff): Bring back the compile-time check for wide-enough
19944         year and yday.
19945
19946         mktime: fix misspelling in comment
19947         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
19948         This merges all recent glibc changes of importance.
19949
19950 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19951
19952         move-if-change: cope with concurrent mv of identical file.
19953         * build-aux/move-if-change (CMPPROG): Accept environment
19954         variable as an override for `cmp'.
19955         (usage): Document CMPPROG.
19956         Adjust comparison to drop stdout.  Cope with failure of mv if
19957         the target file exists and is identical to the source, for
19958         parallel builds.
19959         Report from H.J. Lu against binutils in PR binutils/12283.
19960
19961 2011-01-28  Bruce Korb  <bkorb@gnu.org>
19962
19963         * users.txt: Mention sharutils.
19964
19965 2011-01-28  Simon Josefsson  <simon@josefsson.org>
19966
19967         * users.txt: Mention OATH Toolkit.
19968
19969 2011-01-27  Bruno Haible  <bruno@clisp.org>
19970
19971         Prepare for supporting FreeBSD 10.
19972         * build-aux/config.libpath: Remove handling of freebsd1*.
19973
19974 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
19975
19976         Prepare for supporting FreeBSD 10.
19977         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
19978         match FreeBSD 10.0.
19979
19980 2011-01-27  Bruno Haible  <bruno@clisp.org>
19981
19982         vma-iter, get-rusage-as: Add OpenBSD support.
19983         * modules/vma-iter (configure.ac): Test for mquery.
19984         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
19985         * lib/vma-iter.c: Include <sys/mman.h>.
19986         (vma_iterate): Add an implementation based on mquery().
19987         * lib/resource-ext.h (get_rusage_as): Update comments.
19988         * lib/get-rusage-as.c: Likewise.
19989         * lib/get-rusage-data.c: Likewise.
19990
19991 2011-01-26  Karl Berry  <karl@gnu.org>
19992
19993         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
19994         variables to make it easier to override the makeinfo program used.
19995
19996 2011-01-26  Eric Blake  <eblake@redhat.com>
19997
19998         fcntl: work around Haiku F_DUPFD bugs
19999         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
20000         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
20001         cloexec bit on duplication.
20002         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
20003
20004 2011-01-26  Bruno Haible  <bruno@clisp.org>
20005
20006         Enable memory leak tests on AIX.
20007         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
20008         * tests/test-fprintf-posix3.c (main): Likewise.
20009
20010 2011-01-26  Bruno Haible  <bruno@clisp.org>
20011
20012         Tests for module 'get-rusage-data'.
20013         * modules/get-rusage-data-tests: New file.
20014         * tests/test-get-rusage-data.c: New file.
20015
20016         New module 'get-rusage-data'.
20017         * lib/resource-ext.h (get_rusage_data): New declaration.
20018         * lib/get-rusage-data.c: New file.
20019         * modules/get-rusage-data: New file.
20020
20021 2011-01-25  Bruno Haible  <bruno@clisp.org>
20022
20023         get-rusage-as: Allow for easier testing.
20024         * lib/resource-ext.h (get_rusage_as): Add comment.
20025         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
20026         (main): New function for interactive testing.
20027
20028 2011-01-25  Bruno Haible  <bruno@clisp.org>
20029
20030         vma-iter: Treat Haiku like BeOS.
20031         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
20032         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
20033
20034 2011-01-25  Eric Blake  <eblake@redhat.com>
20035
20036         c-stack: fix regression on cygwin when libsigsegv is present
20037         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
20038
20039 2011-01-24  Bruno Haible  <bruno@clisp.org>
20040
20041         vma-iter: Avoid empty intervals.
20042         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
20043         on an empty interval.
20044
20045 2011-01-24  Jim Meyering  <meyering@redhat.com>
20046
20047         u64: remove unnecessary #include
20048         * lib/u64.h: Don't include <stddef.h>.  It was not used.
20049
20050 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
20051
20052         Allow the user to avoid the HAVE_RAW_DECL_* macros.
20053         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
20054
20055 2011-01-23  Bruno Haible  <bruno@clisp.org>
20056
20057         New module 'vma-iter'.
20058         * lib/vma-iter.h: New file.
20059         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
20060         * modules/vma-iter: New file.
20061         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
20062         for get_rusage_as_via_iterator.
20063         (vma_iterate_callback): New function.
20064         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
20065         * modules/get-rusage-as (Depends-on): Add vma-iter.
20066
20067 2011-01-23  Bruno Haible  <bruno@clisp.org>
20068
20069         uninorm: Tweak includes.
20070         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
20071         Reported by Jim Meyering.
20072
20073 2011-01-23  Bruno Haible  <bruno@clisp.org>
20074
20075         get-rusage-as: Improve on NetBSD.
20076         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
20077         /proc, like on FreeBSD.
20078
20079 2011-01-23  Jim Meyering  <meyering@redhat.com>
20080
20081         xreadlink.h: remove unnecessary #include
20082         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
20083
20084         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
20085         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
20086
20087 2011-01-23  Bruno Haible  <bruno@clisp.org>
20088
20089         get-rusage-as: Fix bug.
20090         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
20091         original limit when aborting the first loop.
20092
20093 2011-01-23  Bruno Haible  <bruno@clisp.org>
20094
20095         wctype: Ensure valid C syntax.
20096         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
20097         unconditionally, instead of gl_NEXT_HEADERS conditionally.
20098
20099 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
20100
20101         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
20102         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
20103         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
20104         as they are needed only for configure's test case.
20105         This removes two unnecessary symbols from config.h.
20106
20107         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
20108         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
20109         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
20110         AC_CHECK_HEADERS_ONCE on a header that we also invoke
20111         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
20112         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
20113         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
20114         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
20115         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
20116         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
20117         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
20118         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20119         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20120         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
20121         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
20122         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
20123         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
20124         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
20125
20126 2011-01-21  Eric Blake  <eblake@redhat.com>
20127
20128         maintainer-makefile: work with older git for submodule check
20129         * top/maint.mk (public-submodule-commit): Rewrite to avoid
20130         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
20131         Reported by Matthias Bolte.
20132
20133         bootstrap: minor portability fixes
20134         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
20135         (usage): Omit leading capital and trailing . on help phrases, per
20136         GNU Coding Standards.
20137         (check_versions, top level): Prefix messages with script name.
20138
20139 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
20140
20141         bootstrap: support --no-git option
20142         * build-aux/bootstrap: Add --no-git option, to be used when
20143         --gnulib-srcdir points to the exact desired checkout.
20144
20145 2011-01-21  Eric Blake  <eblake@redhat.com>
20146
20147         strerror_r-posix: work with glibc 2.13
20148         * lib/strerror_r.c (strerror_r): Fix return type.
20149
20150 2011-01-21  Pádraig Brady  <P@draigBrady.com>
20151             Bruno Haible  <bruno@clisp.org>
20152
20153         uN_strstr: New unit tests.
20154         * modules/unistr/u8-strstr-tests: New file.
20155         * modules/unistr/u16-strstr-tests: New file.
20156         * modules/unistr/u32-strstr-tests: New file.
20157         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
20158         * tests/unistr/test-u8-strstr.c: New file.
20159         * tests/unistr/test-u16-strstr.c: New file.
20160         * tests/unistr/test-u32-strstr.c: New file.
20161
20162 2011-01-21  Pádraig Brady  <P@draigBrady.com>
20163             Bruno Haible  <bruno@clisp.org>
20164
20165         Make uN_strstr functions O(n) worst-case.
20166         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
20167         16-bit and 32-bit unit cases, use the unibyte algorithm from
20168         lib/mbsstr.c.
20169         * lib/unistr/u8-strstr.c: Include <string.h>.
20170         (UNIT_IS_UINT8_T): New macro.
20171         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
20172         (U_STRLEN, U_STRNLEN): New macros.
20173         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
20174         (U_STRLEN, U_STRNLEN): New macros.
20175         * modules/unistr/u8-strstr (Depends-on): Add strstr.
20176         (configure.ac): Update required libunistring version.
20177         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
20178         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
20179         malloca.
20180         (configure.ac): Update required libunistring version.
20181         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
20182         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
20183         malloca.
20184         (configure.ac): Update required libunistring version.
20185
20186 2011-01-21  Pádraig Brady  <P@draigBrady.com>
20187             Bruno Haible  <bruno@clisp.org>
20188
20189         Prepare for faster uN_strstr functions.
20190         * lib/str-kmp.h: Support definable UNITs.
20191         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
20192         needle_len argument.
20193         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
20194         * lib/mbscasestr.c (mbscasestr): Likewise.
20195
20196 2011-01-21  Pádraig Brady <P@draigBrady.com>
20197
20198         malloca-tests: make faster by unsetting MALLOC_PERTURB_
20199         * tests/test-malloca.c (main): Unset the environment variable
20200         to greatly speed up the test.
20201         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
20202         * modules/malloca-tests: Depend on unsetenv.
20203
20204 2011-01-21  Pádraig Brady <P@draigBrady.com>
20205
20206         ignore-value: remove stdint dependency
20207         * lib/ignore-value.h: Remove <stdint.h>
20208         * modules/ignore-value: Remove stdint dependency.
20209
20210 2011-01-21  Jim Meyering  <meyering@redhat.com>
20211
20212         maint.mk: adjust variable name to be consistent with other gl_ vars
20213         * top/maint.mk (gl_public_submodule_commit): Rename the variable
20214         to be lower case.
20215
20216 2011-01-20  Jim Meyering  <meyering@redhat.com>
20217
20218         maint.mk: make "check" depend on public-submodule-commit by default
20219         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
20220
20221 2011-01-20  Bruno Haible  <bruno@clisp.org>
20222
20223         mbfile, mbiter: Complete change from 2008-12-21.
20224         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
20225         * m4/mbiter.m4 (gl_MBITER): Likewise.
20226
20227 2011-01-20  Jim Meyering  <meyering@redhat.com>
20228
20229         init.sh: insert space between each function name and "()"
20230         * tests/init.sh: Make it a little easier to see that a function's
20231         name is "warn_", and not "warn" when looking at the first part of
20232         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
20233
20234 2011-01-20  Jim Meyering  <meyering@redhat.com>
20235
20236         mountlist: clean up code formatting
20237         * lib/mountlist.c (read_file_system_list): Split a long line,
20238         correct bracing style, use NULL in place of "(struct statfs *)0",
20239         don't parenthesize return value, add spaces around "=" and after
20240         ";-in-for-stmt".
20241
20242 2011-01-14  Markus Duft <mduft@gentoo.org>
20243
20244         mountlist: add support for Interix
20245         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
20246         Apply statvfs to all entries of /dev/fs.
20247         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
20248         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
20249
20250 2011-01-20  Jim Meyering  <meyering@redhat.com>
20251
20252         maint.mk: improve the public-submodule-commit rule
20253         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
20254         to suppress printing of its commands... unless V=1.
20255         Add git submodule's --quiet option to suppress printing of e.g.,
20256         "Entering gnulib" output.
20257         "cd" into $(srcdir) before running git submodule.
20258
20259 2011-01-20  Bruno Haible  <bruno@clisp.org>
20260
20261         include_next: Fix bug introduced on 2011-01-18.
20262         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
20263         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
20264         ac_cv_header_... variable if the second argument is not 'check'.
20265         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
20266         gl_NEXT_HEADERS_INTERNAL.
20267
20268 2011-01-20  Bruno Haible  <bruno@clisp.org>
20269
20270         Allow the user to avoid the GNULIB_TEST_* macros.
20271         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
20272         Suggested by Paul Eggert.
20273
20274 2011-01-14  Jim Meyering  <meyering@redhat.com>
20275
20276         bootstrap: avoid failure when there is no .gitmodules file
20277         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
20278         has been assigned to, even when its value is the empty string.
20279         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
20280         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
20281         Reported by John W. Eaton <jwe@gnu.org>.
20282
20283 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
20284
20285         assume <ctype.h>, ..., <time.h> exist
20286         For years gnulib has been assuming the existence of the headers
20287         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
20288         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
20289         them, since they don't appear to be needed.
20290         * README (Portability guidelines): Document this.
20291         * lib/flock.c: Assume <fcntl.h> exists.
20292         * lib/regex_internal.h: Assume <locale.h> exists.
20293         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
20294         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
20295         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
20296         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
20297         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
20298         * m4/regex.m4 (gl_REGEX): Likewise.
20299         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
20300         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
20301         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
20302         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
20303         * tests/test-argp.c: Likewise.
20304         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
20305
20306         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
20307         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
20308         AA_APPLE_UNIVERSAL_BUILD.  See
20309         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
20310         * NEWS: Document this.
20311
20312 2011-01-19  Eric Blake  <eblake@redhat.com>
20313
20314         c-stack: assume stack overflow if SA_SIGINFO unsupported
20315         * lib/c-stack.c (SIGACTION_WORKS): Rename...
20316         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
20317         sigaction will work.
20318         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
20319         behavior match Linux.
20320         * tests/test-c-stack.c (main): Prefer NULL for pointers.
20321
20322         stdbool-tests: accomodate Haiku
20323         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
20324
20325         binary-io: fix O_TEXT on Haiku
20326         * modules/binary-io (Depends-on): Add fcntl-h.
20327         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
20328         than blindly undefining O_TEXT.
20329         Reported by Scott McCreary.
20330
20331 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
20332
20333         include_next: do not check for standard headers like stddef.h
20334
20335         I found this problem when modifying Emacs to use gnulib.
20336         I noticed that it added HAVE_STDDEF_H to config.h, even though
20337         gnulib always assumes <stddef.h> exists as per README and this
20338         symbol is unnecessary.
20339         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
20340         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
20341         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
20342         faster for headers like stddef.h that are known to exist.
20343         (gl_CHECK_NEXT_HEADERS): Use it.
20344         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
20345         rather than gl_CHECK_NEXT_HEADERS.
20346         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
20347         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
20348
20349 2011-01-18  Eric Blake  <eblake@redhat.com>
20350
20351         ansi-c++-opt: skip C++ dependency style if C++ is unused
20352         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
20353         tests when we know C++ compilation is not desired.
20354         Reported by Scott McCreary.
20355
20356 2011-01-18  Bruno Haible  <bruno@clisp.org>
20357
20358         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
20359         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
20360         (main): Perform test also when getrlimit and setrlimit don't exist or
20361         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
20362         limiting the address space size using setrlimit, compare the address
20363         space size before and after the the test.
20364         * tests/test-dprintf-posix2.c: Likewise.
20365         * tests/test-fprintf-posix3.sh: Update skip messages.
20366         * tests/test-dprintf-posix2.sh: Likewise.
20367         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
20368         * modules/dprintf-posix-tests (Depends-on): Likewise.
20369         Reported by Bruce Korb <bkorb@gnu.org> and
20370         Gary V. Vaughan <gary@gnu.org>.
20371
20372 2011-01-18  Bruno Haible  <bruno@clisp.org>
20373
20374         get-rusage-as: Improvement for Cygwin.
20375         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
20376         areas that are merely reserved.
20377
20378 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
20379
20380         strftime: remove dependencies on multibyte modules
20381
20382         strftime depended on mbrlen, mbsinit, and wchar, but these modules
20383         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
20384         only if __osf__ is defined, and I suspect OSF doesn't need these
20385         other modules.  If my guess is wrong, we'll need to come up with a
20386         variant of strftime that doesn't need the multibyte modules.
20387
20388         I discovered this problem when attempting modify Emacs to use the
20389         strftime module.  With the previous gnulib, this caused Emacs to
20390         need 31 new files, ranging from lib/config.charset to
20391         m4/wint_t.m4.  This was overkill and I expect would be offputting
20392         to the Emacs maintainers.  After this change, only 6 new files are
20393         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
20394         stdbool.m4, and tm_gmtoff.m4.
20395
20396         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
20397         Suggested by Bruno Haible in
20398         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
20399         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
20400         and do not check for wchar.h.
20401         * modules/strftime (Files): Remove m4/mbstate_t.m4.
20402         (Depends-on): Remove mbrlen, mbsinit, wchar.
20403
20404 2011-01-18  Bruno Haible  <bruno@clisp.org>
20405
20406         Tests for module 'get-rusage-as'.
20407         * modules/get-rusage-as-tests: New file.
20408         * tests/test-get-rusage-as.c: New file.
20409
20410         New module 'get-rusage-as'.
20411         * modules/get-rusage-as: New file.
20412         * lib/resource-ext.h: New file.
20413         * lib/get-rusage-as.c: New file.
20414
20415 2011-01-17  Eric Blake  <eblake@redhat.com>
20416
20417         sigaction: relax license from LGPLv3+ to LGPLv2+
20418         * modules/sigaction (License): Relax to LGPLv2+.
20419
20420 2011-01-14  Bruno Haible  <bruno@clisp.org>
20421
20422         filemode: Make function declarations usable in C++ mode.
20423         * lib/filemode.h: Enclose function declarations in extern "C" block.
20424         Reported by John W. Eaton <jwe@gnu.org>.
20425
20426 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
20427
20428         save-cwd: no longer include "xgetcwd.h"
20429         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
20430         This avoids a compilation failure in projects that use save-cwd
20431         without also using the xgetcwd module.
20432
20433 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
20434
20435         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
20436         This is so that a program like Emacs, which needs only dtoastr,
20437         does not have to bother with distributing and compiling ftoastr
20438         and ldtoastr.
20439         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
20440         * modules/dtoastr, modules/ldtoastr: New files.
20441         * modules/ftoastr: Now works just for 'float'.
20442         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
20443         (Makefile.am): Remove ftoastr.h (not needed and no effect),
20444         dtoastr.c, ldtoastr.c.
20445
20446 2011-01-11  Jim Meyering  <meyering@redhat.com>
20447
20448         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
20449         There is no need to work around the lack of the fchdir function,
20450         since gnulib can now provide a replacement when required.
20451         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
20452         * modules/save-cwd (Depends-on): Add fchdir.
20453
20454 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
20455
20456         openat, save-cwd: avoid xmalloc
20457
20458         This removes a direct (but undocumented) dependency of openat on
20459         xalloc, along with an indirect dependency via save-cwd.  It also
20460         removes a dependency of save-cwd on xgetcwd, and thereby
20461         indirectly on xalloc.  This change causes the openat substitute
20462         to fall back on save_cwd when memory is tight, and for save_cwd to
20463         fail instead of dying when memory is tight, but that's good enough.
20464         Problem and initial idea for fix reported by Bastien Roucaries in
20465         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
20466
20467         * lib/openat-proc.c: Include stdlib.h (for malloc), not
20468         xalloc.h (for xmalloc).
20469         (openat_proc_name): Use malloc, not xmalloc.
20470         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
20471         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
20472
20473         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
20474         This avoids heap allocation for file names whose lengths are in
20475         the range 512..1023, with the upper bound increasing to at most
20476         4031 depending on the platform's PATH_MAX.  (We do not want
20477         pathmax.h here as it might supply a non-constant PATH_MAX.)
20478         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
20479         Perhaps they should be moved to malloca.h?
20480         (OPENAT_BUFFER_SIZE): Use them.
20481
20482 2011-01-10  Bruno Haible  <bruno@clisp.org>
20483
20484         doc: Update users.txt.
20485         * users.txt: Add recutils.
20486
20487 2011-01-09  Karl Berry  <karl@gnu.org>
20488
20489         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
20490
20491         * doc/configmake.texi: New file.
20492         * doc/gnulib.texi: Include it.
20493         * modules/configmake: Move documentation from here.
20494
20495 2011-01-09  Bruno Haible  <bruno@clisp.org>
20496
20497         Update to Unicode 6.0.0.
20498         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
20499         (get_lbp): Update for Unicode 6.0.0.
20500         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
20501         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
20502         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
20503         U+11001, U+11038..U+11046. Remove U+06DE.
20504         (uc_width): Fix bounds of planes.
20505         * tests/uniwidth/test-uc_width2.sh: Same updates as in
20506         lib/uniwidth/width.c.
20507         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
20508         trailing whitespace removed.
20509         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
20510         without comments, but with the original copyright notice.
20511         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
20512         * lib/unicase/ignorable.h: Likewise.
20513         * lib/unicase/tocasefold.h: Likewise.
20514         * lib/unicase/tolower.h: Likewise.
20515         * lib/unicase/totitle.h: Likewise.
20516         * lib/unicase/toupper.h: Likewise.
20517         * lib/unictype/bidi_of.h: Likewise.
20518         * lib/unictype/blocks.h: Likewise.
20519         * lib/unictype/categ_C.h: Likewise.
20520         * lib/unictype/categ_Cn.h: Likewise.
20521         * lib/unictype/categ_L.h: Likewise.
20522         * lib/unictype/categ_Ll.h: Likewise.
20523         * lib/unictype/categ_Lm.h: Likewise.
20524         * lib/unictype/categ_Lo.h: Likewise.
20525         * lib/unictype/categ_Lu.h: Likewise.
20526         * lib/unictype/categ_M.h: Likewise.
20527         * lib/unictype/categ_Mc.h: Likewise.
20528         * lib/unictype/categ_Me.h: Likewise.
20529         * lib/unictype/categ_Mn.h: Likewise.
20530         * lib/unictype/categ_N.h: Likewise.
20531         * lib/unictype/categ_Nd.h: Likewise.
20532         * lib/unictype/categ_No.h: Likewise.
20533         * lib/unictype/categ_P.h: Likewise.
20534         * lib/unictype/categ_Po.h: Likewise.
20535         * lib/unictype/categ_S.h: Likewise.
20536         * lib/unictype/categ_Sc.h: Likewise.
20537         * lib/unictype/categ_Sk.h: Likewise.
20538         * lib/unictype/categ_Sm.h: Likewise.
20539         * lib/unictype/categ_So.h: Likewise.
20540         * lib/unictype/categ_of.h: Likewise.
20541         * lib/unictype/combining.h: Likewise.
20542         * lib/unictype/ctype_alnum.h: Likewise.
20543         * lib/unictype/ctype_alpha.h: Likewise.
20544         * lib/unictype/ctype_graph.h: Likewise.
20545         * lib/unictype/ctype_lower.h: Likewise.
20546         * lib/unictype/ctype_print.h: Likewise.
20547         * lib/unictype/ctype_punct.h: Likewise.
20548         * lib/unictype/ctype_upper.h: Likewise.
20549         * lib/unictype/decdigit.h: Likewise.
20550         * lib/unictype/digit.h: Likewise.
20551         * lib/unictype/numeric.h: Likewise.
20552         * lib/unictype/pr_alphabetic.h: Likewise.
20553         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
20554         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
20555         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
20556         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
20557         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
20558         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
20559         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
20560         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
20561         * lib/unictype/pr_case_ignorable.h: Likewise.
20562         * lib/unictype/pr_cased.h: Likewise.
20563         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
20564         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
20565         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
20566         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
20567         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
20568         * lib/unictype/pr_combining.h: Likewise.
20569         * lib/unictype/pr_composite.h: Likewise.
20570         * lib/unictype/pr_currency_symbol.h: Likewise.
20571         * lib/unictype/pr_decimal_digit.h: Likewise.
20572         * lib/unictype/pr_deprecated.h: Likewise.
20573         * lib/unictype/pr_format_control.h: Likewise.
20574         * lib/unictype/pr_grapheme_base.h: Likewise.
20575         * lib/unictype/pr_grapheme_extend.h: Likewise.
20576         * lib/unictype/pr_grapheme_link.h: Likewise.
20577         * lib/unictype/pr_id_continue.h: Likewise.
20578         * lib/unictype/pr_id_start.h: Likewise.
20579         * lib/unictype/pr_ideographic.h: Likewise.
20580         * lib/unictype/pr_lowercase.h: Likewise.
20581         * lib/unictype/pr_math.h: Likewise.
20582         * lib/unictype/pr_numeric.h: Likewise.
20583         * lib/unictype/pr_other_alphabetic.h: Likewise.
20584         * lib/unictype/pr_other_id_continue.h: Likewise.
20585         * lib/unictype/pr_other_math.h: Likewise.
20586         * lib/unictype/pr_punctuation.h: Likewise.
20587         * lib/unictype/pr_sentence_terminal.h: Likewise.
20588         * lib/unictype/pr_terminal_punctuation.h: Likewise.
20589         * lib/unictype/pr_unassigned_code_value.h: Likewise.
20590         * lib/unictype/pr_unified_ideograph.h: Likewise.
20591         * lib/unictype/pr_uppercase.h: Likewise.
20592         * lib/unictype/pr_xid_continue.h: Likewise.
20593         * lib/unictype/pr_xid_start.h: Likewise.
20594         * lib/unictype/scripts.h: Likewise.
20595         * lib/unictype/scripts_byname.gperf: Likewise.
20596         * lib/unictype/sy_java_ident.h: Likewise.
20597         * lib/unigbrk/gbrkprop.h: Likewise.
20598         * lib/unilbrk/lbrkprop1.h: Likewise.
20599         * lib/unilbrk/lbrkprop2.h: Likewise.
20600         * lib/uninorm/decomposition-table2.h: Likewise.
20601         * lib/uniwbrk/wbrkprop.h: Likewise.
20602         * tests/unicase/test-cased.c: Likewise.
20603         * tests/unicase/test-ignorable.c: Likewise.
20604         * tests/unicase/test-uc_tolower.c: Likewise.
20605         * tests/unicase/test-uc_totitle.c: Likewise.
20606         * tests/unicase/test-uc_toupper.c: Likewise.
20607         * tests/unictype/test-categ_C.c: Likewise.
20608         * tests/unictype/test-categ_Cn.c: Likewise.
20609         * tests/unictype/test-categ_L.c: Likewise.
20610         * tests/unictype/test-categ_Ll.c: Likewise.
20611         * tests/unictype/test-categ_Lm.c: Likewise.
20612         * tests/unictype/test-categ_Lo.c: Likewise.
20613         * tests/unictype/test-categ_Lu.c: Likewise.
20614         * tests/unictype/test-categ_M.c: Likewise.
20615         * tests/unictype/test-categ_Mc.c: Likewise.
20616         * tests/unictype/test-categ_Me.c: Likewise.
20617         * tests/unictype/test-categ_Mn.c: Likewise.
20618         * tests/unictype/test-categ_N.c: Likewise.
20619         * tests/unictype/test-categ_Nd.c: Likewise.
20620         * tests/unictype/test-categ_No.c: Likewise.
20621         * tests/unictype/test-categ_P.c: Likewise.
20622         * tests/unictype/test-categ_Po.c: Likewise.
20623         * tests/unictype/test-categ_S.c: Likewise.
20624         * tests/unictype/test-categ_Sc.c: Likewise.
20625         * tests/unictype/test-categ_Sk.c: Likewise.
20626         * tests/unictype/test-categ_Sm.c: Likewise.
20627         * tests/unictype/test-categ_So.c: Likewise.
20628         * tests/unictype/test-ctype_alnum.c: Likewise.
20629         * tests/unictype/test-ctype_alpha.c: Likewise.
20630         * tests/unictype/test-ctype_graph.c: Likewise.
20631         * tests/unictype/test-ctype_lower.c: Likewise.
20632         * tests/unictype/test-ctype_print.c: Likewise.
20633         * tests/unictype/test-ctype_punct.c: Likewise.
20634         * tests/unictype/test-ctype_upper.c: Likewise.
20635         * tests/unictype/test-decdigit.h: Likewise.
20636         * tests/unictype/test-digit.h: Likewise.
20637         * tests/unictype/test-numeric.h: Likewise.
20638         * tests/unictype/test-pr_alphabetic.c: Likewise.
20639         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
20640         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
20641         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
20642         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
20643         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
20644         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
20645         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
20646         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
20647         * tests/unictype/test-pr_case_ignorable.c: Likewise.
20648         * tests/unictype/test-pr_cased.c: Likewise.
20649         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
20650         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
20651         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
20652         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
20653         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
20654         * tests/unictype/test-pr_combining.c: Likewise.
20655         * tests/unictype/test-pr_composite.c: Likewise.
20656         * tests/unictype/test-pr_currency_symbol.c: Likewise.
20657         * tests/unictype/test-pr_decimal_digit.c: Likewise.
20658         * tests/unictype/test-pr_deprecated.c: Likewise.
20659         * tests/unictype/test-pr_format_control.c: Likewise.
20660         * tests/unictype/test-pr_grapheme_base.c: Likewise.
20661         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
20662         * tests/unictype/test-pr_grapheme_link.c: Likewise.
20663         * tests/unictype/test-pr_id_continue.c: Likewise.
20664         * tests/unictype/test-pr_id_start.c: Likewise.
20665         * tests/unictype/test-pr_ideographic.c: Likewise.
20666         * tests/unictype/test-pr_lowercase.c: Likewise.
20667         * tests/unictype/test-pr_math.c: Likewise.
20668         * tests/unictype/test-pr_numeric.c: Likewise.
20669         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
20670         * tests/unictype/test-pr_other_id_continue.c: Likewise.
20671         * tests/unictype/test-pr_other_math.c: Likewise.
20672         * tests/unictype/test-pr_punctuation.c: Likewise.
20673         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
20674         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
20675         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
20676         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
20677         * tests/unictype/test-pr_uppercase.c: Likewise.
20678         * tests/unictype/test-pr_xid_continue.c: Likewise.
20679         * tests/unictype/test-pr_xid_start.c: Likewise.
20680         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
20681         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
20682         changes.
20683         * lib/unictype/categ_Cc.h: Likewise.
20684         * lib/unictype/categ_Cf.h: Likewise.
20685         * lib/unictype/categ_Co.h: Likewise.
20686         * lib/unictype/categ_Cs.h: Likewise.
20687         * lib/unictype/categ_Lt.h: Likewise.
20688         * lib/unictype/categ_Nl.h: Likewise.
20689         * lib/unictype/categ_Pc.h: Likewise.
20690         * lib/unictype/categ_Pd.h: Likewise.
20691         * lib/unictype/categ_Pe.h: Likewise.
20692         * lib/unictype/categ_Pf.h: Likewise.
20693         * lib/unictype/categ_Pi.h: Likewise.
20694         * lib/unictype/categ_Ps.h: Likewise.
20695         * lib/unictype/categ_Z.h: Likewise.
20696         * lib/unictype/categ_Zl.h: Likewise.
20697         * lib/unictype/categ_Zp.h: Likewise.
20698         * lib/unictype/categ_Zs.h: Likewise.
20699         * lib/unictype/ctype_blank.h: Likewise.
20700         * lib/unictype/ctype_cntrl.h: Likewise.
20701         * lib/unictype/ctype_digit.h: Likewise.
20702         * lib/unictype/ctype_space.h: Likewise.
20703         * lib/unictype/ctype_xdigit.h: Likewise.
20704         * lib/unictype/mirror.h: Likewise.
20705         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
20706         * lib/unictype/pr_bidi_block_separator.h: Likewise.
20707         * lib/unictype/pr_bidi_common_separator.h: Likewise.
20708         * lib/unictype/pr_bidi_control.h: Likewise.
20709         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
20710         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
20711         * lib/unictype/pr_bidi_european_digit.h: Likewise.
20712         * lib/unictype/pr_bidi_pdf.h: Likewise.
20713         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
20714         * lib/unictype/pr_bidi_whitespace.h: Likewise.
20715         * lib/unictype/pr_dash.h: Likewise.
20716         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
20717         * lib/unictype/pr_diacritic.h: Likewise.
20718         * lib/unictype/pr_extender.h: Likewise.
20719         * lib/unictype/pr_hex_digit.h: Likewise.
20720         * lib/unictype/pr_hyphen.h: Likewise.
20721         * lib/unictype/pr_ids_binary_operator.h: Likewise.
20722         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
20723         * lib/unictype/pr_ignorable_control.h: Likewise.
20724         * lib/unictype/pr_iso_control.h: Likewise.
20725         * lib/unictype/pr_join_control.h: Likewise.
20726         * lib/unictype/pr_left_of_pair.h: Likewise.
20727         * lib/unictype/pr_line_separator.h: Likewise.
20728         * lib/unictype/pr_logical_order_exception.h: Likewise.
20729         * lib/unictype/pr_non_break.h: Likewise.
20730         * lib/unictype/pr_not_a_character.h: Likewise.
20731         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
20732         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
20733         * lib/unictype/pr_other_id_start.h: Likewise.
20734         * lib/unictype/pr_other_lowercase.h: Likewise.
20735         * lib/unictype/pr_other_uppercase.h: Likewise.
20736         * lib/unictype/pr_paired_punctuation.h: Likewise.
20737         * lib/unictype/pr_paragraph_separator.h: Likewise.
20738         * lib/unictype/pr_pattern_syntax.h: Likewise.
20739         * lib/unictype/pr_pattern_white_space.h: Likewise.
20740         * lib/unictype/pr_private_use.h: Likewise.
20741         * lib/unictype/pr_quotation_mark.h: Likewise.
20742         * lib/unictype/pr_radical.h: Likewise.
20743         * lib/unictype/pr_soft_dotted.h: Likewise.
20744         * lib/unictype/pr_space.h: Likewise.
20745         * lib/unictype/pr_titlecase.h: Likewise.
20746         * lib/unictype/pr_variation_selector.h: Likewise.
20747         * lib/unictype/pr_white_space.h: Likewise.
20748         * lib/unictype/pr_zero_width.h: Likewise.
20749         * lib/unictype/sy_c_ident.h: Likewise.
20750         * lib/unictype/sy_c_whitespace.h: Likewise.
20751         * lib/unictype/sy_java_whitespace.h: Likewise.
20752         * lib/uninorm/composition-table.gperf: Likewise.
20753         * lib/uninorm/decomposition-table1.h: Likewise.
20754         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
20755         LB8.
20756         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
20757         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
20758         * modules/unictype/*: Bump version number of expected libunistring
20759         version.
20760
20761 2011-01-09  Bruno Haible  <bruno@clisp.org>
20762
20763         Update to Unicode 5.2.0.
20764         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
20765         trailing whitespace removed.
20766
20767 2011-01-09  Bruno Haible  <bruno@clisp.org>
20768
20769         New Unicode character properties, from Unicode 5.2.0.
20770         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
20771         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
20772         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
20773         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
20774         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
20775         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
20776         uc_is_property_cased, uc_is_property_case_ignorable,
20777         uc_is_property_changes_when_lowercased,
20778         uc_is_property_changes_when_uppercased,
20779         uc_is_property_changes_when_titlecased,
20780         uc_is_property_changes_when_casefolded,
20781         uc_is_property_changes_when_casemapped): New declarations.
20782         * lib/unictype/pr_byname.gperf: Add the new properties.
20783         * modules/unictype/property-byname (Depends-on): Depend on the new
20784         properties modules.
20785         * modules/unictype/property-all (Depends-on): Likewise.
20786         * MODULES.html.sh (Unicode string functions): Add
20787         unictype/property-case-ignorable, unictype/property-cased,
20788         unictype/property-changes-when-casefolded,
20789         unictype/property-changes-when-casemapped,
20790         unictype/property-changes-when-lowercased,
20791         unictype/property-changes-when-titlecased,
20792         unictype/property-changes-when-uppercased.
20793
20794         New module 'unictype/property-changes-when-casemapped'.
20795         * modules/unictype/property-changes-when-casemapped: New file.
20796         * lib/unictype/pr_changes_when_casemapped.c: New file.
20797         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
20798         generated by gen-uni-tables.
20799         * modules/unictype/property-changes-when-casemapped-tests: New file.
20800         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
20801         automatically generated by gen-uni-tables.
20802
20803         New module 'unictype/property-changes-when-casefolded'.
20804         * modules/unictype/property-changes-when-casefolded: New file.
20805         * lib/unictype/pr_changes_when_casefolded.c: New file.
20806         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
20807         generated by gen-uni-tables.
20808         * modules/unictype/property-changes-when-casefolded-tests: New file.
20809         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
20810         automatically generated by gen-uni-tables.
20811
20812         New module 'unictype/property-changes-when-titlecased'.
20813         * modules/unictype/property-changes-when-titlecased: New file.
20814         * lib/unictype/pr_changes_when_titlecased.c: New file.
20815         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
20816         generated by gen-uni-tables.
20817         * modules/unictype/property-changes-when-titlecased-tests: New file.
20818         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
20819         automatically generated by gen-uni-tables.
20820
20821         New module 'unictype/property-changes-when-uppercased'.
20822         * modules/unictype/property-changes-when-uppercased: New file.
20823         * lib/unictype/pr_changes_when_uppercased.c: New file.
20824         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
20825         generated by gen-uni-tables.
20826         * modules/unictype/property-changes-when-uppercased-tests: New file.
20827         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
20828         automatically generated by gen-uni-tables.
20829
20830         New module 'unictype/property-changes-when-lowercased'.
20831         * modules/unictype/property-changes-when-lowercased: New file.
20832         * lib/unictype/pr_changes_when_lowercased.c: New file.
20833         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
20834         generated by gen-uni-tables.
20835         * modules/unictype/property-changes-when-lowercased-tests: New file.
20836         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
20837         automatically generated by gen-uni-tables.
20838
20839         New module 'unictype/property-case-ignorable'.
20840         * modules/unictype/property-case-ignorable: New file.
20841         * lib/unictype/pr_case_ignorable.c: New file.
20842         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
20843         by gen-uni-tables.
20844         * modules/unictype/property-case-ignorable-tests: New file.
20845         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
20846         generated by gen-uni-tables.
20847
20848         New module 'unictype/property-cased'.
20849         * modules/unictype/property-cased: New file.
20850         * lib/unictype/pr_cased.c: New file.
20851         * lib/unictype/pr_cased.h: New file, automatically generated by
20852         gen-uni-tables.
20853         * modules/unictype/property-cased-tests: New file.
20854         * tests/unictype/test-pr_cased.c: New file, automatically generated by
20855         gen-uni-tables.
20856
20857 2011-01-09  Bruno Haible  <bruno@clisp.org>
20858
20859         Update to Unicode 5.2.0.
20860         * lib/gen-uni-tables.c (output_predicate, output_category,
20861         output_combclass, output_bidi_category, output_decimal_digit_test,
20862         output_decimal_digit, output_digit_test, output_digit,
20863         output_numeric_test, output_numeric, output_mirror, output_scripts,
20864         output_scripts_byname, output_blocks, output_ident_category): Fix
20865         comment header.
20866         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
20867         get_wbp.
20868         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
20869         items.
20870         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
20871         Changes_When_Lowercased, Changes_When_Uppercased,
20872         Changes_When_Titlecased, Changes_When_Casefolded,
20873         Changes_When_Casemapped.
20874         (is_property_alphabetic, is_property_default_ignorable_code_point):
20875         Update for Unicode 5.2.0.
20876         (is_property_cased, is_property_case_ignorable,
20877         is_property_changes_when_lowercased,
20878         is_property_changes_when_uppercased,
20879         is_property_changes_when_titlecased,
20880         is_property_changes_when_casefolded,
20881         is_property_changes_when_casemapped): New functions.
20882         (output_properties): Output also the properties cased, case_ignorable,
20883         changes_when_lowercased, changes_when_uppercased,
20884         changes_when_titlecased, changes_when_casefolded,
20885         changes_when_casemapped.
20886         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
20887         Unicode TR#11 revision 17 -> 19.
20888         (LBP_CP): New enumeration value.
20889         (LBP_*): Adjust values accordingly.
20890         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
20891         TR#14 revision 22 -> 24.
20892         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
20893         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
20894         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
20895         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
20896         is_WBP_MIDLETTER.
20897         (output_composition_tables): Allow for 24 bits instead of 16 bits in
20898         the code1 and code2 of each composition rule.
20899         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
20900         * lib/unicase/ignorable.h: Likewise.
20901         * lib/unicase/tocasefold.h: Likewise.
20902         * lib/unicase/tolower.h: Likewise.
20903         * lib/unicase/totitle.h: Likewise.
20904         * lib/unicase/toupper.h: Likewise.
20905         * lib/unictype/bidi_of.h: Likewise.
20906         * lib/unictype/blocks.h: Likewise.
20907         * lib/unictype/categ_C.h: Likewise.
20908         * lib/unictype/categ_Cf.h: Likewise.
20909         * lib/unictype/categ_Cn.h: Likewise.
20910         * lib/unictype/categ_L.h: Likewise.
20911         * lib/unictype/categ_Ll.h: Likewise.
20912         * lib/unictype/categ_Lm.h: Likewise.
20913         * lib/unictype/categ_Lo.h: Likewise.
20914         * lib/unictype/categ_Lu.h: Likewise.
20915         * lib/unictype/categ_M.h: Likewise.
20916         * lib/unictype/categ_Mc.h: Likewise.
20917         * lib/unictype/categ_Mn.h: Likewise.
20918         * lib/unictype/categ_N.h: Likewise.
20919         * lib/unictype/categ_Nd.h: Likewise.
20920         * lib/unictype/categ_Nl.h: Likewise.
20921         * lib/unictype/categ_No.h: Likewise.
20922         * lib/unictype/categ_P.h: Likewise.
20923         * lib/unictype/categ_Pd.h: Likewise.
20924         * lib/unictype/categ_Po.h: Likewise.
20925         * lib/unictype/categ_S.h: Likewise.
20926         * lib/unictype/categ_Sc.h: Likewise.
20927         * lib/unictype/categ_So.h: Likewise.
20928         * lib/unictype/categ_of.h: Likewise.
20929         * lib/unictype/combining.h: Likewise.
20930         * lib/unictype/ctype_alnum.h: Likewise.
20931         * lib/unictype/ctype_alpha.h: Likewise.
20932         * lib/unictype/ctype_graph.h: Likewise.
20933         * lib/unictype/ctype_lower.h: Likewise.
20934         * lib/unictype/ctype_print.h: Likewise.
20935         * lib/unictype/ctype_punct.h: Likewise.
20936         * lib/unictype/ctype_upper.h: Likewise.
20937         * lib/unictype/decdigit.h: Likewise.
20938         * lib/unictype/digit.h: Likewise.
20939         * lib/unictype/numeric.h: Likewise.
20940         * lib/unictype/pr_alphabetic.h: Likewise.
20941         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
20942         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
20943         * lib/unictype/pr_bidi_european_digit.h: Likewise.
20944         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
20945         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
20946         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
20947         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
20948         * lib/unictype/pr_combining.h: Likewise.
20949         * lib/unictype/pr_composite.h: Likewise.
20950         * lib/unictype/pr_currency_symbol.h: Likewise.
20951         * lib/unictype/pr_dash.h: Likewise.
20952         * lib/unictype/pr_decimal_digit.h: Likewise.
20953         * lib/unictype/pr_deprecated.h: Likewise.
20954         * lib/unictype/pr_diacritic.h: Likewise.
20955         * lib/unictype/pr_extender.h: Likewise.
20956         * lib/unictype/pr_grapheme_base.h: Likewise.
20957         * lib/unictype/pr_grapheme_extend.h: Likewise.
20958         * lib/unictype/pr_grapheme_link.h: Likewise.
20959         * lib/unictype/pr_id_continue.h: Likewise.
20960         * lib/unictype/pr_id_start.h: Likewise.
20961         * lib/unictype/pr_ideographic.h: Likewise.
20962         * lib/unictype/pr_ignorable_control.h: Likewise.
20963         * lib/unictype/pr_logical_order_exception.h: Likewise.
20964         * lib/unictype/pr_lowercase.h: Likewise.
20965         * lib/unictype/pr_numeric.h: Likewise.
20966         * lib/unictype/pr_other_alphabetic.h: Likewise.
20967         * lib/unictype/pr_punctuation.h: Likewise.
20968         * lib/unictype/pr_sentence_terminal.h: Likewise.
20969         * lib/unictype/pr_terminal_punctuation.h: Likewise.
20970         * lib/unictype/pr_unassigned_code_value.h: Likewise.
20971         * lib/unictype/pr_unified_ideograph.h: Likewise.
20972         * lib/unictype/pr_uppercase.h: Likewise.
20973         * lib/unictype/pr_xid_continue.h: Likewise.
20974         * lib/unictype/pr_xid_start.h: Likewise.
20975         * lib/unictype/pr_zero_width.h: Likewise.
20976         * lib/unictype/scripts.h: Likewise.
20977         * lib/unictype/scripts_byname.gperf: Likewise.
20978         * lib/unictype/sy_java_ident.h: Likewise.
20979         * lib/unigbrk/gbrkprop.h: Likewise.
20980         * lib/unilbrk/lbrkprop1.h: Likewise.
20981         * lib/unilbrk/lbrkprop2.h: Likewise.
20982         * lib/unilbrk/lbrktables.h: Likewise.
20983         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
20984         LBP_CP. Implement rule LB30.
20985         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
20986         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
20987         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
20988         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
20989         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
20990         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
20991         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
20992         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
20993         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
20994         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
20995         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
20996         bits instead of 16 bits in the code1 and code2 of each composition
20997         rule.
20998         (uc_composition): Update for Unicode 5.2.0.
20999         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
21000         * lib/uninorm/decomposition-table2.h: Likewise.
21001         * lib/uniwbrk/wbrkprop.h: Likewise.
21002         * tests/unicase/test-cased.c: Likewise.
21003         * tests/unicase/test-ignorable.c: Likewise.
21004         * tests/unicase/test-uc_tolower.c: Likewise.
21005         * tests/unicase/test-uc_totitle.c: Likewise.
21006         * tests/unicase/test-uc_toupper.c: Likewise.
21007         * tests/unictype/test-categ_C.c: Likewise.
21008         * tests/unictype/test-categ_Cf.c: Likewise.
21009         * tests/unictype/test-categ_Cn.c: Likewise.
21010         * tests/unictype/test-categ_L.c: Likewise.
21011         * tests/unictype/test-categ_Ll.c: Likewise.
21012         * tests/unictype/test-categ_Lm.c: Likewise.
21013         * tests/unictype/test-categ_Lo.c: Likewise.
21014         * tests/unictype/test-categ_Lu.c: Likewise.
21015         * tests/unictype/test-categ_M.c: Likewise.
21016         * tests/unictype/test-categ_Mc.c: Likewise.
21017         * tests/unictype/test-categ_Mn.c: Likewise.
21018         * tests/unictype/test-categ_N.c: Likewise.
21019         * tests/unictype/test-categ_Nd.c: Likewise.
21020         * tests/unictype/test-categ_Nl.c: Likewise.
21021         * tests/unictype/test-categ_No.c: Likewise.
21022         * tests/unictype/test-categ_P.c: Likewise.
21023         * tests/unictype/test-categ_Pd.c: Likewise.
21024         * tests/unictype/test-categ_Po.c: Likewise.
21025         * tests/unictype/test-categ_S.c: Likewise.
21026         * tests/unictype/test-categ_Sc.c: Likewise.
21027         * tests/unictype/test-categ_So.c: Likewise.
21028         * tests/unictype/test-ctype_alnum.c: Likewise.
21029         * tests/unictype/test-ctype_alpha.c: Likewise.
21030         * tests/unictype/test-ctype_graph.c: Likewise.
21031         * tests/unictype/test-ctype_lower.c: Likewise.
21032         * tests/unictype/test-ctype_print.c: Likewise.
21033         * tests/unictype/test-ctype_punct.c: Likewise.
21034         * tests/unictype/test-ctype_upper.c: Likewise.
21035         * tests/unictype/test-decdigit.h: Likewise.
21036         * tests/unictype/test-digit.h: Likewise.
21037         * tests/unictype/test-numeric.h: Likewise.
21038         * tests/unictype/test-pr_alphabetic.c: Likewise.
21039         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
21040         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
21041         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
21042         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
21043         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
21044         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
21045         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
21046         * tests/unictype/test-pr_combining.c: Likewise.
21047         * tests/unictype/test-pr_composite.c: Likewise.
21048         * tests/unictype/test-pr_currency_symbol.c: Likewise.
21049         * tests/unictype/test-pr_dash.c: Likewise.
21050         * tests/unictype/test-pr_decimal_digit.c: Likewise.
21051         * tests/unictype/test-pr_deprecated.c: Likewise.
21052         * tests/unictype/test-pr_diacritic.c: Likewise.
21053         * tests/unictype/test-pr_extender.c: Likewise.
21054         * tests/unictype/test-pr_grapheme_base.c: Likewise.
21055         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
21056         * tests/unictype/test-pr_grapheme_link.c: Likewise.
21057         * tests/unictype/test-pr_id_continue.c: Likewise.
21058         * tests/unictype/test-pr_id_start.c: Likewise.
21059         * tests/unictype/test-pr_ideographic.c: Likewise.
21060         * tests/unictype/test-pr_ignorable_control.c: Likewise.
21061         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
21062         * tests/unictype/test-pr_lowercase.c: Likewise.
21063         * tests/unictype/test-pr_numeric.c: Likewise.
21064         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
21065         * tests/unictype/test-pr_punctuation.c: Likewise.
21066         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
21067         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
21068         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
21069         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
21070         * tests/unictype/test-pr_uppercase.c: Likewise.
21071         * tests/unictype/test-pr_xid_continue.c: Likewise.
21072         * tests/unictype/test-pr_xid_start.c: Likewise.
21073         * tests/unictype/test-pr_zero_width.c: Likewise.
21074         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
21075         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
21076         changed behaviour: line breaking is now disallowed between a letter
21077         or '=' and '('.
21078         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
21079         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
21080         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
21081         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
21082         * tests/uniwidth/test-uc_width2.sh: Same updates as in
21083         lib/uniwidth/width.c.
21084         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
21085         without comments, but with the original copyright notice.
21086         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
21087         changes.
21088         * lib/unictype/categ_Cc.h: Likewise.
21089         * lib/unictype/categ_Co.h: Likewise.
21090         * lib/unictype/categ_Cs.h: Likewise.
21091         * lib/unictype/categ_Lt.h: Likewise.
21092         * lib/unictype/categ_Me.h: Likewise.
21093         * lib/unictype/categ_Pc.h: Likewise.
21094         * lib/unictype/categ_Pe.h: Likewise.
21095         * lib/unictype/categ_Pf.h: Likewise.
21096         * lib/unictype/categ_Pi.h: Likewise.
21097         * lib/unictype/categ_Ps.h: Likewise.
21098         * lib/unictype/categ_Sk.h: Likewise.
21099         * lib/unictype/categ_Sm.h: Likewise.
21100         * lib/unictype/categ_Z.h: Likewise.
21101         * lib/unictype/categ_Zl.h: Likewise.
21102         * lib/unictype/categ_Zp.h: Likewise.
21103         * lib/unictype/categ_Zs.h: Likewise.
21104         * lib/unictype/ctype_blank.h: Likewise.
21105         * lib/unictype/ctype_cntrl.h: Likewise.
21106         * lib/unictype/ctype_digit.h: Likewise.
21107         * lib/unictype/ctype_space.h: Likewise.
21108         * lib/unictype/ctype_xdigit.h: Likewise.
21109         * lib/unictype/mirror.h: Likewise.
21110         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
21111         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
21112         * lib/unictype/pr_bidi_block_separator.h: Likewise.
21113         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
21114         * lib/unictype/pr_bidi_common_separator.h: Likewise.
21115         * lib/unictype/pr_bidi_control.h: Likewise.
21116         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
21117         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
21118         * lib/unictype/pr_bidi_pdf.h: Likewise.
21119         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
21120         * lib/unictype/pr_bidi_whitespace.h: Likewise.
21121         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
21122         * lib/unictype/pr_format_control.h: Likewise.
21123         * lib/unictype/pr_hex_digit.h: Likewise.
21124         * lib/unictype/pr_hyphen.h: Likewise.
21125         * lib/unictype/pr_ids_binary_operator.h: Likewise.
21126         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
21127         * lib/unictype/pr_iso_control.h: Likewise.
21128         * lib/unictype/pr_join_control.h: Likewise.
21129         * lib/unictype/pr_left_of_pair.h: Likewise.
21130         * lib/unictype/pr_line_separator.h: Likewise.
21131         * lib/unictype/pr_math.h: Likewise.
21132         * lib/unictype/pr_non_break.h: Likewise.
21133         * lib/unictype/pr_not_a_character.h: Likewise.
21134         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
21135         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
21136         * lib/unictype/pr_other_id_continue.h: Likewise.
21137         * lib/unictype/pr_other_id_start.h: Likewise.
21138         * lib/unictype/pr_other_lowercase.h: Likewise.
21139         * lib/unictype/pr_other_math.h: Likewise.
21140         * lib/unictype/pr_other_uppercase.h: Likewise.
21141         * lib/unictype/pr_paired_punctuation.h: Likewise.
21142         * lib/unictype/pr_paragraph_separator.h: Likewise.
21143         * lib/unictype/pr_pattern_syntax.h: Likewise.
21144         * lib/unictype/pr_pattern_white_space.h: Likewise.
21145         * lib/unictype/pr_private_use.h: Likewise.
21146         * lib/unictype/pr_quotation_mark.h: Likewise.
21147         * lib/unictype/pr_radical.h: Likewise.
21148         * lib/unictype/pr_soft_dotted.h: Likewise.
21149         * lib/unictype/pr_space.h: Likewise.
21150         * lib/unictype/pr_titlecase.h: Likewise.
21151         * lib/unictype/pr_variation_selector.h: Likewise.
21152         * lib/unictype/pr_white_space.h: Likewise.
21153         * lib/unictype/sy_c_ident.h: Likewise.
21154         * lib/unictype/sy_c_whitespace.h: Likewise.
21155         * lib/unictype/sy_java_whitespace.h: Likewise.
21156         * modules/uni*/*: Bump version number of expected libunistring version.
21157         Reported by Simon Josefsson.
21158
21159 2011-01-09  Karl Heuer  <kwzh@gnu.org>
21160
21161         useless-if-before-free: fix typo in --help and make the internal,
21162         automatic version date update process work once again.
21163         --help output contained a NUL character instead of the
21164         backslash-zero that was intended.  Also, the "must lie within
21165         the first 8 lines" line is on line 9, and hence not getting
21166         automatically updated.
21167         * build-aux/useless-if-before-free: Fix the former by adding a
21168         backslash, and the latter by condensing the three lines of what-it-does
21169         to a single line, leaving one line of slack for the future.
21170
21171 2011-01-09  Bruno Haible  <bruno@clisp.org>
21172
21173         uniwidth/width: Fix width of U+1D173..U+1D17A.
21174         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
21175         symbolic_width, output_width_property_test): New functions.
21176         (main): Invoke output_nonspacing_property, output_width_property_test.
21177         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
21178         U+1D173..U+1D17A.
21179         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
21180         1.
21181         * modules/uniwidth/*: Bump version number of expected libunistring
21182         version.
21183         * modules/unilbrk/*: Likewise.
21184
21185 2011-01-08  Bruno Haible  <bruno@clisp.org>
21186
21187         uninorm tests: Preserve copyright of Unicode data file.
21188         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
21189         Mention modifications.
21190
21191 2011-01-08  Bruno Haible  <bruno@clisp.org>
21192
21193         gen-uni-tables: Prepare for Unicode 5.2.0.
21194         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
21195         (debug_output_lbp, output_lbp): Update.
21196
21197 2011-01-08  Bruno Haible  <bruno@clisp.org>
21198
21199         unilbrk: Clarify gen-uni-tables.c code.
21200         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
21201         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
21202         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
21203
21204 2011-01-07  Bruno Haible  <bruno@clisp.org>
21205
21206         strtod: Restore errno when successfully parsing Infinity or NaN.
21207         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
21208         restore the original errno.
21209
21210 2011-01-07  Bruno Haible  <bruno@clisp.org>
21211
21212         remove test: Avoid failure on HP-UX 11.
21213         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
21214
21215 2011-01-07  Bruno Haible  <bruno@clisp.org>
21216
21217         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
21218         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
21219         error code.
21220
21221 2011-01-07  Pádraig Brady <P@draigBrady.com>
21222
21223         ignore-value: fixup comments, and add Eric Blake
21224         as an author since he rewrote the macros.
21225         * lib/ignore-value.h (ignore_value):  State that
21226         we now support aggregates.  Also specify exactly
21227         when the GCC warn_unused_result feature was added.
21228
21229 2011-01-06  Eric Blake  <eblake@redhat.com>
21230
21231         ignore-value: support aggregate types
21232         * lib/ignore-value.h (ignore_value): Provide separate gcc
21233         definition.
21234         * modules/ignore-value-tests: New test module.
21235         * tests/test-ignore-value.c: New test.
21236
21237         maint.mk: improve sc_prohibit_strcmp regex
21238         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
21239         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
21240         definition of STRNEQ.
21241
21242         signal: work around Haiku issue with SIGBUS
21243         * lib/siglist.h: Add comment.
21244         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
21245         strsignal's favoring of SIGSEGV.
21246         * tests/test-signal.c (main): Avoid test failure.
21247         * doc/posix-headers/signal.texi (signal.h): Document the issue.
21248         Reported by Scott McCreary.
21249
21250         maint.mk: add pre-release check to ensure submodule commits are public
21251         * top/maint.mk (public-submodule-commit): New rule.
21252         (submodule-checks): New variable.
21253         (alpha beta stable): Depend on the variable.
21254
21255 2011-01-05  Pádraig Brady <P@draigBrady.com>
21256         and Jim Meyering  <meyering@redhat.com>
21257
21258         ignore-value: make ignore_value more generic; deprecate ignore_ptr
21259         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
21260         (ATTRIBUTE_DEPRECATED): Define.
21261         (_ignore_case): New function.
21262         (ignore_value): New macro, to replace the old function.
21263         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
21264         * modules/ignore-value (Depends-on): Add stdint.
21265
21266 2011-01-04  Eric Blake  <eblake@redhat.com>
21267
21268         doc: regenerate INSTALL
21269         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
21270         @firstparagraphindent support, now that autoconf dropped it.
21271         (INSTALL_PRELUDE): Reinstate old macro.
21272         * doc/install.texi: Resync from autoconf.
21273         * doc/INSTALL: Reflect recent autoconf update.
21274         * doc/INSTALL.ISO: Likewise.
21275         * doc/INSTALL.UTF-8: Likewise.
21276         Reported by Karl Berry.
21277
21278 2011-01-04  Bruce Korb  <address@hidden>
21279
21280         git-version-gen: avoid a sub-shell
21281         * build-aux/git-version-gen: Redirect stderr in `...` via
21282         "exec 2>...", rather than via an added sub-shell.
21283
21284 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
21285
21286         git-version-gen: use (...) rather than sh -c '...'
21287         * build-aux/git-version-gen: Rather than hard-coding a shell's name
21288         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
21289
21290 2011-01-03  Jim Meyering  <meyering@redhat.com>
21291
21292         git-version-gen: convert leading TABs to spaces
21293         * build-aux/git-version-gen: Expand leading TABs.
21294
21295         git-version-gen: handle failed "git rev-list"
21296         * build-aux/git-version-gen: Rather than leaking a "fatal" error
21297         from git and proceeding as if it had succeeded but printed no SHA1
21298         checksums, suppress the diagnostic and handle the failure.
21299         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
21300
21301         git-version-gen: include command name in one more diagnostic
21302         * build-aux/git-version-gen: When the required .tarball-version file
21303         was missing or unreadable, you might see the diagnostic from "cat",
21304         but no trace of the name of the invoking script.  Now, you still see
21305         the diagnostic from cat, but also get one from "git-version-gen: ".
21306         Inspired by a patch from Bruce Korb.
21307
21308         update-copyright: adjust test to match changed code
21309         * tests/test-update-copyright.sh: Change test's expected output
21310         to match new actual output.
21311
21312 2011-01-02  Bruno Haible  <bruno@clisp.org>
21313
21314         getlogin_r: Avoid test failure on HP-UX 11.
21315         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
21316         ERANGE when the second argument is zero.
21317         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
21318         portability problem.
21319
21320 2011-01-02  Bruce Korb  <bkorb@gnu.org>
21321
21322         * build-aux/update-copyright: doc Simon's changes
21323
21324 2011-01-02  Simon Josefsson  <simon@josefsson.org>
21325
21326         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
21327         environment variable.
21328
21329 2011-01-02  Bruno Haible  <bruno@clisp.org>
21330
21331         unigbrk: Avoid gcc warnings.
21332         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
21333         unused variable.
21334         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
21335         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
21336         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
21337         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
21338         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
21339         Change type of first argument to 'const char *'.
21340         (main): Remove unused variable.
21341         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
21342         type of first argument to 'const char *'.
21343         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
21344         Likewise.
21345         (main): Change type of variable 's'.
21346         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
21347         to 'int'.
21348
21349 2011-01-02  Bruno Haible  <bruno@clisp.org>
21350
21351         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
21352         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
21353         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
21354         bug.
21355         * lib/pwrite.c: Undo 2010-12-31 patch.
21356         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
21357
21358 2011-01-02  Bruno Haible  <bruno@clisp.org>
21359
21360         pread: Fix test whether it works.
21361         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
21362
21363 2011-01-02  Bruno Haible  <bruno@clisp.org>
21364
21365         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
21366         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
21367         ends in "6". Don't require a specific month name. Try also the locale
21368         names found on HP-UX 11 and Solaris 7.
21369
21370 2011-01-02  Bruno Haible  <bruno@clisp.org>
21371
21372         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
21373         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
21374         C linkage.
21375         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
21376
21377 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
21378
21379         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
21380         for consistency, since the "cluster" term is not used elsewhere.
21381         * lib/unigbrk.in.h: Update name.
21382         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
21383         * lib/unigbrk/u16-grapheme-next.c: Update name.
21384         * lib/unigbrk/u16-grapheme-prev.c: Update name.
21385         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
21386         * lib/unigbrk/u32-grapheme-next.c: Update name.
21387         * lib/unigbrk/u32-grapheme-prev.c: Update name.
21388         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
21389         * lib/unigbrk/u8-grapheme-next.c: Update name.
21390         * lib/unigbrk/u8-grapheme-prev.c: Update name.
21391         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
21392         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
21393         Suggested by Bruno Haible.
21394
21395 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
21396
21397         Remove module 'u8-grapheme-len' as too redundant with
21398         'u8-grapheme-next'.
21399         * modules/unigbrk/u8-grapheme-len: Delete file.
21400         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
21401         * lib/unigbrk.in.h: Remove prototype for deleted function.
21402         * lib/unigbrk/u8-grapheme-len.c: Delete file.
21403         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
21404
21405         Remove module 'u16-grapheme-len' as too redundant with
21406         'u16-grapheme-next'.
21407         * modules/unigbrk/u16-grapheme-len: Delete file.
21408         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
21409         * lib/unigbrk.in.h: Remove prototype for deleted function.
21410         * lib/unigbrk/u16-grapheme-len.c: Delete file.
21411         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
21412
21413         Remove module 'u32-grapheme-len' as too redundant with
21414         'u32-grapheme-next'.
21415         * modules/unigbrk/u32-grapheme-len: Delete file.
21416         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
21417         * lib/unigbrk.in.h: Remove prototype for deleted function.
21418         * lib/unigbrk/u32-grapheme-len.c: Delete file.
21419         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
21420
21421         Suggested by Bruno Haible.
21422
21423 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
21424
21425         * unigbrk.in.h: Fix typo: "ben" => "been".
21426         Reported by Bruno Haible.
21427
21428 2011-01-01  Jim Meyering  <meyering@redhat.com>
21429
21430         maint: update almost all copyright ranges to include 2011
21431         Run the new "make update-copyright" rule.
21432
21433 2011-01-01  Jim Meyering  <meyering@redhat.com>
21434
21435         maint: update-copyright: exempt doc/INSTALL*
21436         * Makefile (update-copyright): Also exclude doc/INSTALL*,
21437         since they are generated.  Suggested by Bruno Haible.
21438
21439 2011-01-01  Jim Meyering  <meyering@redhat.com>
21440
21441         maint: refine the update-copyright rule
21442         * Makefile (update-copyright): Also exclude any file that includes
21443         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
21444         code that merely generates the comment.
21445
21446 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
21447
21448         New module 'u8-grapheme-len'.
21449         * modules/unigbrk/u8-grapheme-len: New file.
21450         * modules/unigbrk/u8-grapheme-len-tests: New file.
21451         * lib/unigbrk.in.h: Add prototype for new function.
21452         * lib/unigbrk/u8-grapheme-len.c: New file.
21453         * tests/unigbrk/test-u8-grapheme-len.c: New file.
21454
21455         New module 'u16-grapheme-len'.
21456         * modules/unigbrk/u16-grapheme-len: New file.
21457         * modules/unigbrk/u16-grapheme-len-tests: New file.
21458         * lib/unigbrk.in.h: Add prototype for new function.
21459         * lib/unigbrk/u16-grapheme-len.c: New file.
21460         * tests/unigbrk/test-u16-grapheme-len.c: New file.
21461
21462         New module 'u32-grapheme-len'.
21463         * modules/unigbrk/u32-grapheme-len: New file.
21464         * modules/unigbrk/u32-grapheme-len-tests: New file.
21465         * lib/unigbrk.in.h: Add prototype for new function.
21466         * lib/unigbrk/u32-grapheme-len.c: New file.
21467         * tests/unigbrk/test-u32-grapheme-len.c: New file.
21468
21469         New module 'u8-grapheme-next'.
21470         * modules/unigbrk/u8-grapheme-next: New file.
21471         * modules/unigbrk/u8-grapheme-next-tests: New file.
21472         * lib/unigbrk.in.h: Add prototype for new function.
21473         * lib/unigbrk/u8-grapheme-next.c: New file.
21474         * tests/unigbrk/test-u8-grapheme-next.c: New file.
21475
21476         New module 'u16-grapheme-next'.
21477         * modules/unigbrk/u16-grapheme-next: New file.
21478         * modules/unigbrk/u16-grapheme-next-tests: New file.
21479         * lib/unigbrk.in.h: Add prototype for new function.
21480         * lib/unigbrk/u16-grapheme-next.c: New file.
21481         * tests/unigbrk/test-u16-grapheme-next.c: New file.
21482
21483         New module 'u32-grapheme-next'.
21484         * modules/unigbrk/u32-grapheme-next: New file.
21485         * modules/unigbrk/u32-grapheme-next-tests: New file.
21486         * lib/unigbrk.in.h: Add prototype for new function.
21487         * lib/unigbrk/u32-grapheme-next.c: New file.
21488         * tests/unigbrk/test-u32-grapheme-next.c: New file.
21489
21490         New module 'u8-grapheme-prev'.
21491         * modules/unigbrk/u8-grapheme-prev: New file.
21492         * modules/unigbrk/u8-grapheme-prev-tests: New file.
21493         * lib/unigbrk.in.h: Add prototype for new function.
21494         * lib/unigbrk/u8-grapheme-prev.c: New file.
21495         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
21496
21497         New module 'u16-grapheme-prev'.
21498         * modules/unigbrk/u16-grapheme-prev: New file.
21499         * modules/unigbrk/u16-grapheme-prev-tests: New file.
21500         * lib/unigbrk.in.h: Add prototype for new function.
21501         * lib/unigbrk/u16-grapheme-prev.c: New file.
21502         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
21503
21504         New module 'u32-grapheme-prev'.
21505         * modules/unigbrk/u32-grapheme-prev: New file.
21506         * modules/unigbrk/u32-grapheme-prev-tests: New file.
21507         * lib/unigbrk.in.h: Add prototype for new function.
21508         * lib/unigbrk/u32-grapheme-prev.c: New file.
21509         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
21510
21511         New module 'u8-grapheme-breaks'.
21512         * modules/unigbrk/u8-grapheme-breaks: New file.
21513         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
21514         * lib/unigbrk.in.h: Add prototype for new function.
21515         * lib/unigbrk/u8-grapheme-breaks.c: New file.
21516         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
21517
21518         New module 'u16-grapheme-breaks'.
21519         * modules/unigbrk/u16-grapheme-breaks: New file.
21520         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
21521         * lib/unigbrk.in.h: Add prototype for new function.
21522         * lib/unigbrk/u16-grapheme-breaks.c: New file.
21523         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
21524
21525         New module 'u32-grapheme-breaks'.
21526         * modules/unigbrk/u32-grapheme-breaks: New file.
21527         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
21528         * lib/unigbrk.in.h: Add prototype for new function.
21529         * lib/unigbrk/u32-grapheme-breaks.c: New file.
21530         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
21531
21532         New module 'ulc-grapheme-breaks'.
21533         * modules/unigbrk/ulc-grapheme-breaks: New file.
21534         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
21535         * m4/locale-ar.m4: New file.
21536         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
21537         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
21538         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
21539
21540 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
21541
21542         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
21543         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
21544         modified how this file was generated before I initially submitted
21545         the module, but failed to regenerate it.  This meant that several
21546         of the level2 entries were wrong.
21547         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
21548         Remove the division-by-2 that is folded into the table now that
21549         gbrkprop.h has been regenerated properly.  Now -1 entries are
21550         handled correctly.
21551
21552         New module 'unigbrk/uc-gbrk-prop-tests'.
21553         * modules/unigbrk/uc-gbrk-prop-tests: New file.
21554         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
21555         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
21556         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
21557
21558 2011-01-01  Bruno Haible  <bruno@clisp.org>
21559
21560         Avoid use of hexadecimal escapes.
21561         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
21562         instead of hexadecimal escapes.
21563
21564 2011-01-01  Jim Meyering  <meyering@redhat.com>
21565
21566         maint: new rule to update copyright year ranges
21567         * Makefile (update-copyright): New rule.
21568
21569         maint: indent with TABs in Makefile
21570         * Makefile: Expand leading sequences of spaces to TABs
21571
21572         version-etc: update the copyright year it reports
21573         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
21574
21575 2010-12-31  Bruno Haible  <bruno@clisp.org>
21576
21577         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
21578         * lib/isfinite.c (zerof, zerod, zerol): New variables.
21579         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
21580         zero.
21581
21582 2010-12-31  Bruno Haible  <bruno@clisp.org>
21583
21584         pwrite: Work around HP-UX 11.11 bug.
21585         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
21586         works and set REPLACE_PWRITE if not.
21587         * lib/pwrite.c (pwrite): Add an implementation that uses the system
21588         function.
21589         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
21590
21591 2010-12-31  Bruno Haible  <bruno@clisp.org>
21592
21593         pread: Work around HP-UX 11 bugs.
21594         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
21595         and set REPLACE_PREAD if not.
21596         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
21597
21598 2010-12-31  Eric Blake  <eblake@redhat.com>
21599
21600         nl_langinfo: fix YESEXPR on Irix 6.5
21601         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
21602         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
21603         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
21604         it.
21605
21606 2010-12-31  Bruno Haible  <bruno@clisp.org>
21607
21608         iconv: Document HP-UX 11 bug.
21609         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
21610
21611 2010-12-31  Bruno Haible  <bruno@clisp.org>
21612
21613         ldexpl: Fix link error on HP-UX 11.
21614         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
21615         LDEXPL_LIBM, using $ISNANL_LIBM.
21616
21617 2010-12-31  Eric Blake  <eblake@redhat.com>
21618
21619         ftello: avoid compilation failure with SunStudio c89
21620         * lib/ftello.c (ftello): Use lseek, not llseek.
21621
21622         tests: avoid failing coreutils tests on cygwin
21623         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
21624         (create_exe_shims_): Return 0 when skipping.
21625
21626 2010-12-31  Bruno Haible  <bruno@clisp.org>
21627
21628         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
21629         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
21630
21631 2010-12-31  Bruno Haible  <bruno@clisp.org>
21632
21633         waitpid: Fix link error in C++ mode.
21634         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
21635
21636 2010-12-31  Bruno Haible  <bruno@clisp.org>
21637
21638         isnan: Use GCC built-ins when possible.
21639         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
21640         __builtin_isnan.
21641         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
21642         (isnan): Define using GCC built-ins for GCC >= 4.0.
21643
21644 2010-12-31  Bruno Haible  <bruno@clisp.org>
21645
21646         isnand: Fix mistake.
21647         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
21648         __builtin_isnand.
21649
21650 2010-12-31  Bruno Haible  <bruno@clisp.org>
21651
21652         open: Avoid C++ error on HP-UX 11.
21653         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
21654
21655 2010-12-31  Bruno Haible  <bruno@clisp.org>
21656
21657         time_r: Add missing declarations on HP-UX 11.
21658         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
21659         instead of HAVE_LOCALTIME_R.
21660         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
21661         HAVE_LOCALTIME_R always.
21662         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
21663         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
21664         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
21665         HAVE_LOCALTIME_R.
21666         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
21667         * doc/posix-functions/localtime_r.texi: Likewise.
21668
21669 2010-12-29  Eric Blake  <eblake@redhat.com>
21670
21671         mountlist: tweak previous commit
21672         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
21673         Reported by Paul Eggert.
21674
21675         mountlist: fix local drive detection on cygwin
21676         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
21677         that works for cygwin.
21678
21679 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
21680
21681         ftoastr, snprintf: ftoastr + snprintf module
21682         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
21683         since the snprintf module now should be good enough here.
21684         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
21685         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
21686         and gl_MODULE_INDICATOR([snprintf]), but the former enables
21687         GNULIB_SNPRINTF only for the test directory, and the latter
21688         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
21689         seems to suffice by itself.
21690
21691 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
21692
21693         alloca: one step towards thread-safety
21694         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
21695         need for a static variable.  All callers changed.  This does not
21696         make the alloca replacement thread-safe, but it's one step.
21697
21698         tests: minor indenting change
21699         * tests/init.sh: Sync from coreutils housekeeping patch
21700         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
21701         to keep lines within 80 columns.
21702
21703 2010-12-28  Jim Meyering  <meyering@redhat.com>
21704
21705         regex: don't infloop on persistent failing calloc
21706         * lib/regexec.c (build_trtable): Return failure indication upon
21707         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
21708         In glibc, this was fixed for version 2.13:
21709         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
21710
21711 2010-12-28  Bruno Haible  <bruno@clisp.org>
21712             Paul Eggert <eggert@cs.ucla.edu>
21713
21714         linkat: Make implementation robust against system behaviour variations.
21715         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
21716         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
21717         way, and to -2 if it needs a generic runtime test.
21718         * lib/linkat.c (solaris_optimized_link_immediate,
21719         solaris_optimized_link_follow): New functions.
21720         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
21721         (check_same_link): Use it.
21722
21723 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
21724
21725         New module 'unigbrk/base'.
21726         * modules/unigbrk/base: New file.
21727         * lib/unigbrk.in.h: New file.
21728
21729         New module 'unigbrk/uc-gbrk-prop'.
21730         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
21731         * modules/unigbrk/uc-gbrk-prop: New file.
21732         * lib/unigbrk/gbrkprop.h: New file.
21733         * lib/unigbrk/uc-gbrk-prop.c: New file.
21734
21735         New module 'unigbrk/uc-is-grapheme-break'.
21736         * modules/unigbrk/uc-is-grapheme-break: New file.
21737         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
21738         * lib/unigbrk/uc-is-grapheme-break.c: New file.
21739         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
21740         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
21741         * tests/unigbrk/GraphemeBreakTest.txt: New file.
21742
21743         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
21744
21745 2010-12-27  Bruno Haible  <bruno@clisp.org>
21746
21747         linkat test: Avoid failure on Solaris 11 2010-11.
21748         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
21749
21750 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
21751
21752         utimens: work around glibc rounding bug on more platforms
21753         * lib/utimens.c (fdutimens): Work around rounding bug even if
21754         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
21755         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
21756
21757 2010-12-27  Bruno Haible  <bruno@clisp.org>
21758
21759         select tests: Improve comments.
21760         * tests/test-select.c (do_select): Add comments.
21761
21762 2010-12-27  Bruno Haible  <bruno@clisp.org>
21763
21764         select tests: Safer way of handling timeout.
21765         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
21766         at every invocation.
21767
21768 2010-12-27  Bruno Haible  <bruno@clisp.org>
21769
21770         select tests: Use 'bool' where appropriate.
21771         * tests/test-select.c (connect_to_socket): Change argument type to
21772         'bool'.
21773
21774 2010-12-27  Bruno Haible  <bruno@clisp.org>
21775
21776         select tests: Use existing modules.
21777         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
21778         (configure.ac): Don't test for unistd.h.
21779         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
21780         declared in <unistd.h>.
21781
21782 2010-12-27  Bruno Haible  <bruno@clisp.org>
21783
21784         mbrtowc: Work around a Solaris 7 bug.
21785         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
21786         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
21787         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
21788         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
21789         MBRTOWC_NULL_ARG1_BUG.
21790         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
21791         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
21792         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
21793         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
21794
21795 2010-12-27  Jim Meyering  <meyering@redhat.com>
21796
21797         read-file.c: tweak syntax
21798         * lib/read-file.c (fread_file): Remove space after "*" in function
21799         definitions.
21800
21801 2010-12-27  Bruno Haible  <bruno@clisp.org>
21802
21803         times test: Avoid gcc warnings on OSF/1.
21804         * tests/test-times.c (main): Cast printf arguments from clock_t to
21805         'long int'.
21806
21807 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
21808
21809         utimens: work around glibc rounding bug on older Linux kernels
21810         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
21811         on Linux with a glibc whose utimes might not work, then work
21812         around a longstanding glibc bug involving rounding rather than
21813         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
21814         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
21815
21816 2010-12-26  Bruno Haible  <bruno@clisp.org>
21817
21818         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
21819         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
21820         _GL_CXXALIAS_SYS.
21821         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21822
21823 2010-12-26  Bruno Haible  <bruno@clisp.org>
21824
21825         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
21826         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
21827         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
21828         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
21829         looking for the declaration.
21830         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
21831         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
21832         problem.
21833         * doc/posix-functions/inet_pton.texi: Likewise.
21834
21835 2010-12-26  Bruno Haible  <bruno@clisp.org>
21836
21837         arpa_inet: Use the common idioms with C++ support.
21838         * lib/arpa_inet.in.h: Include c++defs.h.
21839         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
21840         support.
21841         * modules/arpa_inet (Depends-on): Add c++defs.
21842         (Makefile.am): Substitute the contents of c++defs.h.
21843         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
21844         * modules/arpa_inet-c++-tests: New file.
21845         * tests/test-arpa_inet-c++.cc: New file.
21846
21847 2010-12-25  Bruno Haible  <bruno@clisp.org>
21848
21849         Fix more C++ link errors on Solaris 8.
21850         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
21851         $(LIB_EACCESS).
21852         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
21853         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
21854         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
21855         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
21856         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
21857
21858 2010-12-25  Bruno Haible  <bruno@clisp.org>
21859
21860         printf-posix: Fix link error when a non-GCC compiler is used.
21861         * lib/stdio.in.h (printf): When not using GCC, override printf
21862         correctly.
21863         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
21864
21865 2010-12-25  Bruno Haible  <bruno@clisp.org>
21866
21867         strerror_r-posix: Update doc.
21868         * doc/posix-functions/strerror_r.texi: Update doc about the return
21869         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
21870
21871 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
21872
21873         utimens: simplify the logic of the previous change
21874         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
21875         This should not affect whether the test succeeds or fails.
21876
21877         utimens: configure better on hosts with NFS clock skew
21878         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
21879         uses the clock of the local host.  It might use the clock of the
21880         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
21881         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
21882
21883 2010-12-25  Bruno Haible  <bruno@clisp.org>
21884
21885         ptsname test: Avoid failure on Solaris.
21886         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
21887         open a pseudo-terminal; don't use BSD-style ptys.
21888         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
21889
21890 2010-12-25  Bruno Haible  <bruno@clisp.org>
21891
21892         ptsname: Avoid ERANGE failure on some systems.
21893         * lib/ptsname.c (buffer): Increase size.
21894
21895 2010-12-25  Bruno Haible  <bruno@clisp.org>
21896
21897         rename, renameat: Avoid test failures at NFS mounted locations.
21898         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
21899         so that subsequent mkdir calls succeed.
21900
21901 2010-12-25  Bruno Haible  <bruno@clisp.org>
21902
21903         iswblank: Fix C++ link error on Solaris 8.
21904         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
21905         _GL_FUNCDECL_SYS.
21906
21907 2010-12-25  Bruno Haible  <bruno@clisp.org>
21908
21909         unistd: Fix C++ link error on Solaris 8.
21910         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
21911
21912 2010-12-25  Bruno Haible  <bruno@clisp.org>
21913
21914         readlink doc: Mention an old glibc bug.
21915         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
21916
21917 2010-12-25  Bruno Haible  <bruno@clisp.org>
21918
21919         fcntl-h: Fix for use of C++ on glibc systems.
21920         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
21921         also on glibc systems in C++ mode.
21922         Reported by Gary V. Vaughan <gary@gnu.org>.
21923
21924 2010-12-25  Bruno Haible  <bruno@clisp.org>
21925
21926         roundl-ieee: Make it work on OSF/1 5.1 with cc.
21927         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
21928
21929 2010-12-25  Bruno Haible  <bruno@clisp.org>
21930
21931         truncl-ieee: Make it work on OSF/1 5.1 with cc.
21932         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
21933         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
21934         test whether truncl works according to ISO C 99 with IEC 60559.
21935         * m4/truncl-ieee.m4: New file.
21936         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
21937         m4/signbit.m4.
21938         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
21939
21940 2010-12-25  Bruno Haible  <bruno@clisp.org>
21941
21942         ceill-ieee: Make it work on OSF/1 5.1 with cc.
21943         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
21944         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
21945         test whether ceill works according to ISO C 99 with IEC 60559.
21946         * m4/ceill-ieee.m4: New file.
21947         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
21948         m4/signbit.m4.
21949         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
21950
21951 2010-12-25  Bruno Haible  <bruno@clisp.org>
21952
21953         Ensure all prerequisites of <wchar.h> are included.
21954         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
21955         before <wchar.h>.
21956         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
21957         gl_MBRLEN_NUL_RETVAL): Likewise.
21958         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
21959         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
21960         AC_FUNC_MBRTOWC): Likewise.
21961         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
21962         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
21963         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
21964         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
21965         Likewise.
21966         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
21967         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
21968         (gl_WCHAR_H): Improve comments.
21969         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
21970
21971 2010-12-25  Bruno Haible  <bruno@clisp.org>
21972
21973         strtok_r: Fix C syntax error in autoconf macro.
21974         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
21975         characters in test program.
21976
21977 2010-12-24  Bruno Haible  <bruno@clisp.org>
21978
21979         ceil, trunc, round: Fix gcc warnings.
21980         * lib/ceil.c (MIN): Undefine before redefining.
21981         * lib/trunc.c (MIN): Likewise.
21982         * lib/round.c (MIN): Likewise.
21983         Include <math.h> first.
21984
21985 2010-12-24  Bruno Haible  <bruno@clisp.org>
21986
21987         select tests: Avoid failures on OSF/1 5.1.
21988         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
21989         failure of closing the last socket; it may fail with ECONNRESET.
21990
21991 2010-12-24  Eric Blake  <eblake@redhat.com>
21992
21993         stdint: avoid HP-UX 10.20 preprocessor bug
21994         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
21995         than #if.
21996         * tests/test-floor2.c (main): Likewise.
21997         Reported by Peter O'Gorman.
21998
21999         pipe: make obsoletion transition easier
22000         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
22001         * modules/pipe (Files): Include revived file.
22002         (Include): Drop reference, to mirror getdate's behavior.
22003
22004 2010-12-24  Bruno Haible  <bruno@clisp.org>
22005
22006         sys_socket: Hide mismatch of declarations on NonStop Kernel.
22007         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
22008         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
22009         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22010
22011 2010-12-24  Bruno Haible  <bruno@clisp.org>
22012
22013         gethostname: Ensure declaration on NonStop Kernel.
22014         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
22015         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22016
22017 2010-12-24  Bruno Haible  <bruno@clisp.org>
22018
22019         sys_select: Ensure all necessary types on NonStop Kernel.
22020         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
22021         include <sys/time.h>.
22022         * doc/posix-headers/sys_select.texi: Mention that it's missing on
22023         NonStop Kernel.
22024         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22025
22026 2010-12-24  Bruno Haible  <bruno@clisp.org>
22027
22028         sys_select: Remove unneeded include.
22029         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
22030         have <sys/select.h>.
22031
22032 2010-12-24  Bruno Haible  <bruno@clisp.org>
22033
22034         gethostname: Provide a fallback for HOST_NAME_MAX.
22035         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
22036         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
22037         instead.
22038         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22039
22040 2010-12-24  Bruno Haible  <bruno@clisp.org>
22041
22042         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
22043         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
22044         (SA_RESTART): Likewise.
22045         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22046
22047 2010-12-24  Bruno Haible  <bruno@clisp.org>
22048
22049         signal: Define NSIG.
22050         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
22051         * tests/test-signal.c (nsig): New variable.
22052         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22053
22054 2010-12-24  Bruno Haible  <bruno@clisp.org>
22055
22056         rename, renameat: Avoid test failures on OSF/1 5.1.
22057         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
22058         alternative error codes.
22059         * tests/test-renameat.c (main): Likewise.
22060
22061 2010-12-24  Bruno Haible  <bruno@clisp.org>
22062
22063         *printf: Detect large precisions bug on Solaris 10/SPARC.
22064         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
22065         by Paul Eggert.
22066         * tests/test-snprintf-posix.h (test_function): Add this test code here
22067         too.
22068         * tests/test-sprintf-posix.h (test_function): Likewise.
22069         * tests/test-vasnprintf-posix.c (test_function): Likewise.
22070         * tests/test-vasprintf-posix.c (test_function): Likewise.
22071         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
22072         around by gnulib.
22073         * doc/posix-functions/printf.texi: Likewise.
22074         * doc/posix-functions/snprintf.texi: Likewise.
22075         * doc/posix-functions/sprintf.texi: Likewise.
22076         * doc/posix-functions/vfprintf.texi: Likewise.
22077         * doc/posix-functions/vprintf.texi: Likewise.
22078         * doc/posix-functions/vsnprintf.texi: Likewise.
22079         * doc/posix-functions/vsprintf.texi: Likewise.
22080         * doc/posix-functions/dprintf.texi: Undo last commit.
22081         * doc/posix-functions/vdprintf.texi: Likewise.
22082
22083 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
22084
22085         tests: port test-fdutimensat.c to Solaris 8
22086         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
22087         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
22088         On Solaris 8, it fails with errno == ENOSYS, because there is no
22089         futimens (so it can't use the fd), and there is no lutimens (so it
22090         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
22091
22092         vsnprintf: make more consistent with snprintf; doc fixes
22093
22094         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
22095         the byte count return problem was promoted from the snprintf-posix
22096         to the snprintf module.
22097         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
22098         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
22099         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
22100         * tests/test-snprintf.c (main): Check the byte count returned.
22101         * tests/test-vsnprintf.c (main): Likewise.
22102
22103 2010-12-23  Eric Blake  <eblake@redhat.com>
22104
22105         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
22106         * modules/sigpipe (License): Relax license.
22107
22108 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
22109
22110         doc: document Solaris printf bug with large float precisions
22111         * doc/posix-functions/dprintf.texi (dprintf):
22112         * doc/posix-functions/fprintf.texi (fprintf):
22113         * doc/posix-functions/printf.texi (printf):
22114         * doc/posix-functions/snprintf.texi (snprintf):
22115         * doc/posix-functions/sprintf.texi (sprintf):
22116         * doc/posix-functions/vdprintf.texi (vdprintf):
22117         * doc/posix-functions/vfprintf.texi (vfprintf):
22118         * doc/posix-functions/vprintf.texi (vprintf):
22119         * doc/posix-functions/vsnprintf.texi (vsnprintf):
22120         * doc/posix-functions/vsprintf.texi (vsprintf):
22121         Mention that these functions mishandle large floating point
22122         precisions on Solaris 10.  The same bug is also present in Solaris
22123         8, and I assume earlier.  This causes "cd gnulib-tests; make
22124         check" to fail on Solaris 8 (and I assume, later) when building
22125         the latest coreutils, in test-vasprintf-posix's call to
22126         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
22127         the wide flavors (e.g., wprintf) so this patch just updates the
22128         documentation for the narrow ones.
22129
22130         test-posixtm.c: add two tests
22131         * tests/test-posixtm.c: Add two tests, to highlight the
22132         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
22133         around this bug; this is merely to document it.
22134
22135 2010-12-22  Bruno Haible  <bruno@clisp.org>
22136
22137         getlogin_r: Work around portability problem on OSF/1.
22138         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
22139         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
22140         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
22141         test for a truncated result.
22142         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
22143         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
22144         * modules/getlogin_r (Depends-on): Add memchr.
22145         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
22146
22147 2010-12-22  Bruno Haible  <bruno@clisp.org>
22148
22149         ptsname: Avoid test failure on OSF/1 5.1.
22150         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
22151         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
22152         (same_slave): New function.
22153         (main): Use it to compare ptsname's result with the expected file name.
22154
22155 2010-12-22  Bruno Haible  <bruno@clisp.org>
22156
22157         Port extended stdio modules to HP NonStop Kernel.
22158         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
22159         macros.
22160         * lib/fbufmode.c: Update comments.
22161         * lib/fflush.c: Likewise.
22162         * lib/fpurge.c: Likewise.
22163         * lib/freadable.c: Likewise.
22164         * lib/freadahead.c: Likewise.
22165         * lib/freading.c: Likewise.
22166         * lib/freadptr.c: Likewise.
22167         * lib/freadseek.c: Likewise.
22168         * lib/fseeko.c: Likewise.
22169         * lib/fseterr.c: Likewise.
22170         * lib/fwritable.c: Likewise.
22171         * lib/fwriting.c: Likewise.
22172         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
22173
22174 2010-12-22  Bruno Haible  <bruno@clisp.org>
22175
22176         ttyname_r: Work around bug on OSF/1 5.1.
22177         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
22178         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
22179         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
22180         present.
22181         * lib/ttyname_r.c (ttyname_r): Update comments.
22182
22183 2010-12-22  Bruno Haible  <bruno@clisp.org>
22184
22185         round: Implement result sign according to IEEE 754.
22186         * lib/round.c (MIN, MINUS_ZERO): New macros.
22187         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
22188         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
22189         * tests/test-round-ieee.c (main): Likewise.
22190         * tests/test-roundl-ieee.c (main): Likewise.
22191
22192         trunc: Implement result sign according to IEEE 754.
22193         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
22194         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
22195         * tests/test-trunc2.c: Include minus-zero.h.
22196         (MINUS_ZERO): New macro.
22197         (trunc_reference): Keep in sync with lib/trunc.c.
22198         * tests/test-truncf2.c: Include minus-zero.h.
22199         (MINUS_ZERO): New macro.
22200         (truncf_reference): Keep in sync with lib/trunc.c.
22201         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
22202         * tests/test-trunc-ieee.c (main): Likewise.
22203         * tests/test-truncl-ieee.c (main): Likewise.
22204
22205         ceil: Implement result sign according to IEEE 754.
22206         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
22207         (FUNC): Return -0.0 for -1 < x < 0.
22208         * tests/test-ceil2.c: Include minus-zero.h.
22209         (MINUS_ZERO): New macro.
22210         (ceil_reference): Keep in sync with lib/ceil.c.
22211         * tests/test-ceilf2.c: Include minus-zero.h.
22212         (MINUS_ZERO): New macro.
22213         (ceilf_reference): Keep in sync with lib/ceil.c.
22214         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
22215         * tests/test-ceil-ieee.c (main): Likewise.
22216         * tests/test-ceill-ieee.c (main): Likewise.
22217
22218         floor: Implement result sign according to IEEE 754.
22219         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
22220         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
22221         * tests/test-floorf2.c (floorf_reference): Likewise.
22222         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
22223         * tests/test-floor-ieee.c (main): Likewise.
22224         * tests/test-floorl-ieee.c (main): Likewise.
22225
22226 2010-12-22  Bruno Haible  <bruno@clisp.org>
22227
22228         getaddrinfo: Update doc.
22229         * doc/posix-functions/gai_strerror.texi: Return type is also different
22230         on AIX and HP-UX.
22231
22232 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
22233
22234         getaddrinfo, inet_ntop: Update doc for Solaris.
22235         * doc/posix-functions/gai_strerror.texi: Return type is also an
22236         issue on Solaris 9 and earlier.
22237         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
22238         on Solaris 10 and earlier.
22239
22240 2010-12-21  Bruno Haible  <bruno@clisp.org>
22241
22242         New module 'roundl-ieee'.
22243         * modules/roundl-ieee: New file.
22244         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
22245         test whether roundl works according to ISO C 99 with IEC 60559.
22246         * m4/roundl-ieee.m4: New file.
22247         * modules/roundl-ieee-tests: New file.
22248         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
22249         * tests/test-roundl.c (main): Remove signbit tests.
22250         * modules/roundl-tests (Depends-on): Remove signbit.
22251         * doc/posix-functions/roundl.texi: Mention the new module.
22252
22253 2010-12-21  Bruno Haible  <bruno@clisp.org>
22254
22255         New module 'truncl-ieee'.
22256         * modules/truncl-ieee: New file.
22257         * modules/truncl-ieee-tests: New file.
22258         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
22259         * tests/test-truncl.c (main): Remove signbit tests.
22260         * modules/truncl-tests (Depends-on): Remove signbit.
22261         * doc/posix-functions/truncl.texi: Mention the new module.
22262
22263 2010-12-21  Bruno Haible  <bruno@clisp.org>
22264
22265         New module 'ceill-ieee'.
22266         * modules/ceill-ieee: New file.
22267         * modules/ceill-ieee-tests: New file.
22268         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
22269         * tests/test-ceill.c (main): Remove signbit tests.
22270         * modules/ceill-tests (Depends-on): Remove signbit.
22271         * doc/posix-functions/ceill.texi: Mention the new module.
22272
22273 2010-12-21  Bruno Haible  <bruno@clisp.org>
22274
22275         New module 'floorl-ieee'.
22276         * modules/floorl-ieee: New file.
22277         * modules/floorl-ieee-tests: New file.
22278         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
22279         * tests/test-floorl.c (main): Remove signbit tests.
22280         * modules/floorl-tests (Depends-on): Remove signbit.
22281         * doc/posix-functions/floorl.texi: Mention the new module.
22282
22283 2010-12-21  Bruno Haible  <bruno@clisp.org>
22284
22285         New module 'round-ieee'.
22286         * modules/round-ieee: New file.
22287         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
22288         whether round works according to ISO C 99 with IEC 60559.
22289         * m4/round-ieee.m4: New file.
22290         * modules/round-ieee-tests: New file.
22291         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
22292         * tests/test-round1.c (main): Remove signbit tests.
22293         * modules/round-tests (Depends-on): Remove 'signbit'.
22294         * doc/posix-functions/round.texi: Mention the new module.
22295
22296 2010-12-21  Bruno Haible  <bruno@clisp.org>
22297
22298         New module 'trunc-ieee'.
22299         * modules/trunc-ieee: New file.
22300         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
22301         whether trunc works according to ISO C 99 with IEC 60559.
22302         * m4/trunc-ieee.m4: New file.
22303         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
22304         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
22305         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
22306         * modules/trunc-ieee-tests: New file.
22307         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
22308         * tests/test-trunc1.c (main): Remove signbit tests.
22309         * modules/trunc-tests (Depends-on): Remove 'signbit'.
22310         * doc/posix-functions/trunc.texi: Mention the new module.
22311
22312 2010-12-21  Bruno Haible  <bruno@clisp.org>
22313
22314         New module 'ceil-ieee'.
22315         * modules/ceil-ieee: New file.
22316         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
22317         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
22318         ISO C 99 with IEC 60559.
22319         * m4/ceil-ieee.m4: New file.
22320         * modules/ceil (Files): Add lib/ceil.c.
22321         (Depends-on): Add 'float'.
22322         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
22323         * lib/math.in.h (ceil): New declaration.
22324         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
22325         REPLACE_CEIL.
22326         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
22327         * modules/ceil-ieee-tests: New file.
22328         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
22329         * tests/test-math-c++.cc: Check the signature of 'ceil'.
22330         * doc/posix-functions/ceil.texi: Mention the new module.
22331
22332 2010-12-21  Bruno Haible  <bruno@clisp.org>
22333
22334         New module 'floor-ieee'.
22335         * modules/floor-ieee: New file.
22336         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
22337         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
22338         ISO C 99 with IEC 60559.
22339         * m4/floor-ieee.m4: New file.
22340         * modules/floor (Files): Add lib/floor.c.
22341         (Depends-on): Add 'float'.
22342         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
22343         * lib/math.in.h (floor): New declaration.
22344         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
22345         REPLACE_FLOOR.
22346         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
22347         * modules/floor-ieee-tests: New file.
22348         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
22349         * tests/test-math-c++.cc: Check the signature of 'floor'.
22350         * doc/posix-functions/floor.texi: Mention the new module.
22351
22352 2010-12-21  Bruno Haible  <bruno@clisp.org>
22353
22354         New module 'roundf-ieee'.
22355         * modules/roundf-ieee: New file.
22356         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
22357         test whether roundf works according to ISO C 99 with IEC 60559.
22358         * m4/roundf-ieee.m4: New file.
22359         * modules/roundf-ieee-tests: New file.
22360         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
22361         * tests/test-roundf1.c (main): Remove signbit tests.
22362         * modules/roundf-tests (Depends-on): Remove 'signbit'.
22363         * doc/posix-functions/roundf.texi: Mention the new module.
22364
22365 2010-12-21  Bruno Haible  <bruno@clisp.org>
22366
22367         New module 'truncf-ieee'.
22368         * modules/truncf-ieee: New file.
22369         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
22370         test whether truncf works according to ISO C 99 with IEC 60559.
22371         * m4/truncf-ieee.m4: New file.
22372         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
22373         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
22374         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
22375         * modules/truncf-ieee-tests: New file.
22376         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
22377         * tests/test-truncf1.c (main): Remove signbit tests.
22378         * modules/truncf-tests (Depends-on): Remove 'signbit'.
22379         * doc/posix-functions/truncf.texi: Mention the new module.
22380
22381 2010-12-21  Bruno Haible  <bruno@clisp.org>
22382
22383         New module 'ceilf-ieee'.
22384         * modules/ceilf-ieee: New file.
22385         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
22386         test whether ceilf works according to ISO C 99 with IEC 60559.
22387         * m4/ceilf-ieee.m4: New file.
22388         * modules/ceilf-ieee-tests: New file.
22389         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
22390         * tests/test-ceilf1.c (main): Remove signbit tests.
22391         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
22392         * doc/posix-functions/ceilf.texi: Mention the new module.
22393
22394 2010-12-21  Bruno Haible  <bruno@clisp.org>
22395
22396         New module 'floorf-ieee'.
22397         * modules/floorf-ieee: New file.
22398         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
22399         test whether floorf works according to ISO C 99 with IEC 60559.
22400         * m4/floorf-ieee.m4: New file.
22401         * modules/floorf-ieee-tests: New file.
22402         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
22403         * tests/test-floorf1.c (main): Remove signbit tests.
22404         * modules/floorf-tests (Depends-on): Remove 'signbit'.
22405         * doc/posix-functions/floorf.texi: Mention the new module.
22406
22407 2010-12-21  Bruno Haible  <bruno@clisp.org>
22408
22409         Support for minus zero in autoconf macros.
22410         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
22411         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
22412         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
22413         * tests/minus-zero.h: Update comments.
22414
22415 2010-12-21  Bruno Haible  <bruno@clisp.org>
22416
22417         Tests for module 'ceil'.
22418         * modules/ceil-tests: New file.
22419         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
22420         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
22421
22422 2010-12-21  Bruno Haible  <bruno@clisp.org>
22423
22424         Tests for module 'floor'.
22425         * modules/floor-tests: New file.
22426         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
22427         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
22428
22429 2010-12-21  Bruno Haible  <bruno@clisp.org>
22430
22431         math: Fix indentation.
22432         * lib/math.in.h (floorf): Fix indentation.
22433
22434 2010-12-21  Bruno Haible  <bruno@clisp.org>
22435
22436         Fix cross-compilation guesses on Solaris.
22437         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
22438         not match "solaris2.10".
22439         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
22440         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
22441         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
22442
22443 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
22444
22445         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
22446         This fixes a problem observed with the latest coreutils snapshot
22447         that caused a test to fail on Solaris 8.  src/csplit.c's call
22448         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
22449         earlier, instead of returning the number of bytes that would have
22450         been generated; this causes csplit to incorrectly report memory
22451         exhaustion.
22452         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
22453         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
22454         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
22455         comments to match.
22456         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
22457         Fix typo in matching older versions of Solaris: "solaris2.10"
22458         is matched by the shell pattern "solaris2.[0-9]*".  This matters
22459         only for guessing while cross-compiling.
22460         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
22461
22462 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
22463
22464         ftoastr: fix comment again
22465         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
22466         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
22467         Also, simplify example a bit by using flags = 0.
22468
22469 2010-12-20  Bruno Haible  <bruno@clisp.org>
22470
22471         round*, trunc*: Update documentation regarding glibc.
22472         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
22473         * doc/posix-functions/round.texi: Likewise.
22474         * doc/posix-functions/roundl.texi: Likewise.
22475         * doc/posix-functions/truncf.texi: Likewise.
22476         * doc/posix-functions/trunc.texi: Likewise.
22477         * doc/posix-functions/truncl.texi: Likewise.
22478
22479 2010-12-20  Bruno Haible  <bruno@clisp.org>
22480
22481         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
22482         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
22483         * doc/posix-functions/round.texi: Likewise.
22484         * doc/posix-functions/roundl.texi: Likewise.
22485
22486 2010-12-20  Bruno Haible  <bruno@clisp.org>
22487
22488         ttyname_r: Add missing declaration on HP-UX 11.
22489         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
22490         HAVE_TTYNAME_R.
22491         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
22492         declared. Set HAVE_TTYNAME_R always.
22493         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22494         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
22495         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
22496         HAVE_TTYNAME_R.
22497         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
22498
22499 2010-12-20  Bruno Haible  <bruno@clisp.org>
22500
22501         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
22502         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
22503         * doc/posix-functions/getlogin_r.texi: Likewise.
22504         * tests/test-getlogin.c: Include <errno.h>.
22505         (main): Avoid test failure on HP-UX 11.11.
22506         * tests/test-getlogin_r.c (main): Likewise.
22507
22508 2010-12-20  Bruno Haible  <bruno@clisp.org>
22509
22510         getlogin_r: Add missing declaration on HP-UX 11.
22511         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
22512         declared also when it exists as a function.
22513         * doc/posix-functions/getlogin_r.texi: Document this workaround.
22514
22515 2010-12-20  Bruno Haible  <bruno@clisp.org>
22516
22517         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
22518         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
22519         through wcrtomb.
22520
22521 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
22522
22523         ftoastr: fix comment
22524         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
22525         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
22526
22527 2010-12-19  Bruno Haible  <bruno@clisp.org>
22528
22529         isnan: Ensure it is a macro.
22530         * lib/math.in.h (isnan): Define as a macro if not already a macro.
22531         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
22532         Solaris.
22533
22534 2010-12-19  Bruno Haible  <bruno@clisp.org>
22535
22536         ldexpl test: Fix link error on OSF/1 5.1.
22537         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
22538
22539 2010-12-19  Bruno Haible  <bruno@clisp.org>
22540
22541         wctype: Make it work in C++ mode on OSF/1 5.1.
22542         * lib/wctype.in.h (iswblank): Declare but not define here.
22543         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
22544         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
22545         * modules/wctype (Files): Add lib/iswblank.c.
22546
22547 2010-12-19  Bruno Haible  <bruno@clisp.org>
22548
22549         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
22550         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
22551         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
22552
22553 2010-12-19  Bruno Haible  <bruno@clisp.org>
22554
22555         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
22556         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
22557         _POSIX_PII_SOCKET.
22558         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
22559         * doc/posix-functions/recvfrom.texi: Likewise.
22560         * doc/posix-functions/send.texi: Likewise.
22561         * doc/posix-functions/sendto.texi: Likewise.
22562
22563 2010-12-19  Bruno Haible  <bruno@clisp.org>
22564
22565         tcgetsid: Add missing declaration on OSF/1 5.1.
22566         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
22567         HAVE_TCGETSID.
22568         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
22569         Don't set HAVE_TCGETSID.
22570         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
22571         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
22572         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
22573         HAVE_TCGETSID.
22574         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
22575
22576 2010-12-19  Bruno Haible  <bruno@clisp.org>
22577
22578         stdio: Fix problem with popen() declaration on OSF/1 5.1.
22579         * lib/stdio.in.h: During the include_next statement, let recursive
22580         includes of this file include only the system header file.
22581
22582 2010-12-19  Bruno Haible  <bruno@clisp.org>
22583
22584         iconv_open: Fix regression from 2010-12-04.
22585         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
22586         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
22587
22588 2010-12-19  Bruno Haible  <bruno@clisp.org>
22589
22590         stdbool test: Avoid a gcc warning.
22591         * tests/test-stdbool.c (main): Fail if e1 is false.
22592         Reported by Jim Meyering.
22593
22594 2010-12-19  Jim Meyering  <meyering@redhat.com>
22595
22596         setenv: restore to working order
22597         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
22598         mistakenly removed.
22599         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
22600         HAVE_SETENV.
22601         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
22602         HAVE_SETENV.
22603
22604 2010-12-19  Bruno Haible  <bruno@clisp.org>
22605
22606         Document some different function declarations on OSF/1 5.1.
22607         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
22608         * doc/posix-functions/inet_ntop.texi: Likewise.
22609         * doc/posix-functions/gethostname.texi: Likewise.
22610         * lib/unistd.in.h (gethostname): Update comment.
22611
22612 2010-12-19  Bruno Haible  <bruno@clisp.org>
22613
22614         doc: Mention vasprintf-posix module.
22615         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
22616         the 'vasprintf-posix' module.
22617         * doc/glibc-functions/vasprintf.texi: Likewise.
22618
22619 2010-12-19  Bruno Haible  <bruno@clisp.org>
22620
22621         unsetenv: Add missing declaration on OSF/1 5.1.
22622         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
22623         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
22624         Don't set HAVE_UNSETENV. In the test program, set _BSD.
22625         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
22626         not HAVE_UNSETENV.
22627         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
22628         HAVE_UNSETENV.
22629         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
22630
22631 2010-12-19  Bruno Haible  <bruno@clisp.org>
22632
22633         setenv: Add missing declaration on OSF/1 5.1.
22634         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
22635         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
22636         declared. Don't set HAVE_SETENV.
22637         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
22638         not HAVE_SETENV.
22639         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
22640         HAVE_SETENV.
22641         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
22642
22643 2010-12-19  Bruno Haible  <bruno@clisp.org>
22644
22645         nl_langinfo tests: Avoid gcc warning.
22646         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
22647
22648 2010-12-19  Bruno Haible  <bruno@clisp.org>
22649
22650         mknod: Avoid error in C++ mode on OSF/1 with GCC.
22651         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
22652         _GL_CXXALIAS_SYS.
22653
22654 2010-12-19  Bruno Haible  <bruno@clisp.org>
22655
22656         stdbool: Relax test.
22657         * tests/test-stdbool.c (e): Don't require that casts from a variable's
22658         address to 'bool' work in static initializer, for compilers other than
22659         GCC.
22660
22661 2010-12-19  Bruno Haible  <bruno@clisp.org>
22662
22663         ftello: Add missing declaration on OSF/1 5.1.
22664         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
22665         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
22666         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
22667         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
22668         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
22669
22670 2010-12-19  Bruno Haible  <bruno@clisp.org>
22671
22672         fseeko: Add missing declaration on OSF/1 5.1.
22673         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
22674         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
22675         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
22676         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
22677         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
22678
22679 2010-12-19  Bruno Haible  <bruno@clisp.org>
22680
22681         fchdir: Add missing declaration on OSF/1 5.1.
22682         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
22683         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
22684         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
22685         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
22686         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
22687
22688 2010-12-19  Bruno Haible  <bruno@clisp.org>
22689
22690         relocatable-prog-wrapper: Separate from relocatable-prog.
22691         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
22692         uninstall-relocwrapper rule here.
22693         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
22694         Reported by Ian Beckwith <ianb@erislabs.net>.
22695
22696 2010-12-19  Bruno Haible  <bruno@clisp.org>
22697
22698         unistr/u8-mbsnlen: Add missing dependency.
22699         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
22700         Reported by Ian Beckwith <ianb@erislabs.net>.
22701
22702 2010-12-19  Bruno Haible  <bruno@clisp.org>
22703
22704         iconv: Make it possible again to use this module without 'iconv-h'.
22705         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
22706         if it is not defined.
22707         Reported by Ian Beckwith <ianb@erislabs.net>.
22708
22709 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
22710
22711         acl: port to Solaris 8 when copying from tmpfs to ufs
22712         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
22713         error number.  Problem observed on Solaris 8 with latest
22714         coreutils, with "mv A B", where A is on a tmpfs file system and B
22715         is on a ufs file system.  This caused coreutils' mv/part-symlink
22716         test to fail.
22717
22718         tests: set fail=0 at start
22719         * tests/init.sh (setup_): Move fail=0 initialization here ...
22720         (mktempd_): ... from here, so that tests can rely on fail being
22721         set to 0 initially.  This fixes a problem in coreutils; see:
22722         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
22723
22724 2010-12-18  Bruno Haible  <bruno@clisp.org>
22725
22726         memmem-simple: Stylistic changes.
22727         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
22728         Fix preprocessor directive indentation.
22729
22730 2010-12-15  Pádraig Brady <P@draigBrady.com>
22731
22732         memmem, memmem-simple: reorganize and expand empty needle check
22733         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
22734         functional checks to memmem-simple so that one has a fully functional
22735         memmem by using just this module.
22736         Restrict the performance only check to the memmem module.
22737         Also expand the empty needle check to ensure the correct
22738         pointer is returned, not just a non NULL pointer.
22739         * doc/glibc-functions/memmem.texi: Rearrange the portability
22740         documentation to correlate with the rearranged checks.
22741         Clarify exactly how the memmem and memmem-simple modules
22742         relate to each other.
22743
22744 2010-12-15  Pádraig Brady <P@draigBrady.com>
22745             Bruno Haible  <bruno@clisp.org>
22746
22747         Improve cross-compilation guesses for uClibc.
22748         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
22749         that uClibc does not have the glibc bug.
22750         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
22751         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
22752
22753 2010-12-14  Eric Blake  <eblake@redhat.com>
22754
22755         configmake: provide fallbacks for oldest supported autotools
22756         * m4/configmake.m4: New file.
22757         * modules/configmake (Files): Ship it.
22758         (configure.ac): Use it to guarantee fallbacks.
22759
22760 2010-12-13  Pádraig Brady <P@draigBrady.com>
22761
22762         read-file: Improve handling of large files
22763         * lib/read-file.c (fread_file): Minimize realloc()s
22764         for regular files, and better manage sizes around SIZE_MAX.
22765
22766 2010-12-13  Eric Blake  <eblake@redhat.com>
22767
22768         cloexec, fcntl: relax license
22769         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
22770         consent from all contributors.
22771         * modules/fcntl (License): Likewise.
22772
22773 2010-12-10  Bruno Haible  <bruno@clisp.org>
22774
22775         Tests for module 'pipe-posix'.
22776         * modules/pipe-posix-tests: New file.
22777         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
22778
22779 2010-12-10  Bruno Haible  <bruno@clisp.org>
22780
22781         pipe-posix: Make it work in C++ mode.
22782         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
22783         (pipe): Use common idiom, not a macro definition.
22784         * lib/pipe.c: New file.
22785         * m4/pipe.m4: New file.
22786         * modules/pipe-posix (Description): Enhance.
22787         (Files): Add lib/pipe.c, m4/pipe.m4.
22788         (configure.ac): Invoke gl_FUNC_PIPE.
22789         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
22790         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
22791         * tests/test-unistd-c++.cc: Check the signature of pipe.
22792
22793 2010-12-10  Bruno Haible  <bruno@clisp.org>
22794
22795         Rename module 'pipe' to 'spawn-pipe'.
22796         * modules/spawn-pipe: New file, renamed from modules/pipe.
22797         (Files, configure.ac, Makefile.am): Update.
22798         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
22799         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
22800         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
22801         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
22802         "spawn-pipe.h" instead of "pipe.h".
22803         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
22804         to gl_SPAWN_PIPE.
22805         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
22806         (Files, Makefile.am): Update.
22807         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
22808         Update.
22809         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
22810         Include "spawn-pipe.h" instead of "pipe.h".
22811         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
22812         * lib/javacomp.c: Likewise.
22813         * lib/javaversion.c: Likewise.
22814         * lib/pipe-filter-gi.c: Likewise.
22815         * lib/pipe-filter-ii.c: Likewise.
22816         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
22817         * modules/javacomp (Depends-on): Likewise.
22818         * modules/javaversion (Depends-on): Likewise.
22819         * modules/pipe-filter-gi (Depends-on): Likewise.
22820         * modules/pipe-filter-ii (Depends-on): Likewise.
22821         * MODULES.html.sh (Executing programs): Update.
22822         * NEWS: Mention the change.
22823
22824 2010-12-10  Eric Blake  <eblake@redhat.com>
22825
22826         pipe-posix: new module
22827         * modules/pipe-posix: New file.
22828         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
22829         (gl_UNISTD_H): Check for declaration.
22830         * modules/unistd (Makefile.am): Substitute it.
22831         * lib/unistd.in.h (pipe): Provide it for mingw.
22832         * doc/posix-functions/pipe.texi (pipe): Update documentation.
22833         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
22834
22835 2010-12-07  Bruno Haible  <bruno@clisp.org>
22836
22837         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
22838         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
22839         u8_strcmp_gnu.
22840         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
22841
22842 2010-12-06  Bruno Haible  <bruno@clisp.org>
22843
22844         Update internal documentation.
22845         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
22846
22847 2010-12-04  Bruno Haible  <bruno@clisp.org>
22848
22849         Put more information about failed tests into the test return codes.
22850         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
22851         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
22852         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
22853         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
22854         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
22855         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
22856         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
22857         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
22858         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
22859         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
22860         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
22861         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
22862         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
22863         * m4/stdint.m4 (gl_STDINT_H): Likewise.
22864         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
22865         returns a bit mask.
22866         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
22867         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
22868         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
22869         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
22870         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
22871         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
22872         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
22873         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
22874         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
22875         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
22876         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
22877         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
22878         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
22879         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
22880         * m4/link.m4 (gl_FUNC_LINK): Likewise.
22881         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
22882         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
22883         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
22884         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
22885         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
22886         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
22887         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
22888         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
22889         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
22890         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
22891         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
22892         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
22893         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
22894         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
22895         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
22896         gl_PRINTF_PRECISION): Likewise.
22897         * m4/regex.m4 (gl_REGEX): Likewise.
22898         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
22899         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
22900         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
22901         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
22902         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
22903         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22904         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
22905         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
22906         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
22907         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
22908         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
22909         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
22910         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
22911         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
22912         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
22913         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
22914         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
22915         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
22916         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
22917         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
22918         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
22919         enumerated value.
22920         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
22921
22922 2010-12-04  Bruno Haible  <bruno@clisp.org>
22923
22924         Update for Solaris 11 2010-11.
22925         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
22926         Express, released in November 2010.
22927
22928 2010-12-04  Bruno Haible  <bruno@clisp.org>
22929
22930         nproc: Relax license.
22931         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
22932         and Paul Eggert.
22933         Requested by Ludovic Courtès <ludo@gnu.org>.
22934
22935 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
22936
22937         utimecmp: fine-grained src to nearby coarse-grained dest
22938
22939         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
22940         and the source is on a file system with higher-resolution time
22941         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
22942         not work, and the time stamps are close together, the algorithm to
22943         determine the exact resolution from the read-back mtime was buggy:
22944         it had a "!=" where it should have had an "==".  This bug has been
22945         in the code ever since it was introduced to gnulib.
22946         Problem reported by Dan Jacobson in
22947         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
22948
22949 2010-11-30  Bruno Haible  <bruno@clisp.org>
22950
22951         strerror_r-posix: Fix autoconf test.
22952         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
22953
22954 2010-11-28  Bruno Haible  <bruno@clisp.org>
22955             Paul Eggert  <eggert@cs.ucla.edu>
22956
22957         Tests for module 'getdomainname'.
22958         * modules/getdomainname-tests: New file.
22959         * tests/test-getdomainname.c: New file, based on
22960         tests/test-gethostname.c.
22961
22962 2010-11-28  Bruno Haible  <bruno@clisp.org>
22963             Paul Eggert  <eggert@cs.ucla.edu>
22964
22965         getdomainname: Use the system function when possible.
22966         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
22967         (getdomainname): Replace if needed. Provide the declaration if it is
22968         missing. Don't use _GL_CXXALIAS_SYS_CAST.
22969         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
22970         (getdomainname): When the system has getdomainname, call the system
22971         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
22972         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
22973         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
22974         found in libnsl. Look for the declaration also in <netdb.h>. Replace
22975         the function if its second argument is of type 'int' or if it is found
22976         in libnsl.
22977         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
22978         <sys/systeminfo.h> and sysinfo().
22979         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
22980         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22981         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
22982         HAVE_GETDOMAINNAME.
22983         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
22984         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
22985         * doc/glibc-functions/getdomainname.texi: Document the problems with
22986         the getdomainname declaration.
22987
22988 2010-11-28  Bruno Haible  <bruno@clisp.org>
22989
22990         sys_socket: Ensure ss_family field on AIX.
22991         * lib/sys_socket.in.h (ss_family): New macro definition.
22992         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
22993         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
22994         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
22995         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
22996         * modules/sys_socket (Makefile.am): Substitute
22997         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
22998         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
22999
23000 2010-11-27  Bruno Haible  <bruno@clisp.org>
23001
23002         readline: Improve configure output.
23003         * m4/readline.m4 (gl_FUNC_READLINE): Make the
23004         "checking for readline..." result understandable.
23005
23006 2010-11-27  Bruno Haible  <bruno@clisp.org>
23007
23008         *printf-posix: Detect a bug on Solaris 10/x86.
23009         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
23010         for floating-point output.
23011         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
23012         directive.
23013         * tests/test-snprintf-posix.h (test_function): Likewise.
23014         * tests/test-sprintf-posix.h (test_function): Likewise.
23015         * tests/test-vasprintf-posix.c (test_function): Likewise.
23016         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
23017         * doc/posix-functions/printf.texi: Likewise.
23018         * doc/posix-functions/snprintf.texi: Likewise.
23019         * doc/posix-functions/sprintf.texi: Likewise.
23020         * doc/posix-functions/vfprintf.texi: Likewise.
23021         * doc/posix-functions/vprintf.texi: Likewise.
23022         * doc/posix-functions/vsnprintf.texi: Likewise.
23023         * doc/posix-functions/vsprintf.texi: Likewise.
23024         * doc/glibc-functions/obstack_printf.texi: Likewise.
23025         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
23026
23027 2010-11-27  Bruno Haible  <bruno@clisp.org>
23028
23029         Fix link error when module libunistring-optional is in use.
23030         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
23031         * modules/striconveha-tests (Makefile.am): Likewise.
23032
23033 2010-11-27  Bruno Haible  <bruno@clisp.org>
23034
23035         regex: Mention link dependencies.
23036         * modules/regex (Link): New section.
23037         * modules/rpmatch (Link): Likewise.
23038         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
23039
23040 2010-11-27  Bruno Haible  <bruno@clisp.org>
23041
23042         ftoastr: Fix compilation error on Solaris.
23043         * lib/ftoastr.c: Include <config.h>.
23044
23045 2010-11-27  Bruno Haible  <bruno@clisp.org>
23046
23047         getloadavg: Update documentation.
23048         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
23049
23050 2010-11-27  Bruno Haible  <bruno@clisp.org>
23051
23052         sys_socket: Fix test whether the functions are declared.
23053         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
23054         not <sys/select.h>.
23055
23056 2010-11-27  Bruno Haible  <bruno@clisp.org>
23057
23058         getpass: Make sure to get system declaration on some platforms.
23059         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
23060         gl_USE_SYSTEM_EXTENSIONS.
23061         * modules/getpass (Depends-on): Add extensions.
23062
23063 2010-11-26  Bruno Haible  <bruno@clisp.org>
23064
23065         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
23066         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
23067         'iconv' module is present.
23068         (ICONV_CONST): New macro.
23069         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
23070         ICONV_CONST.
23071         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
23072         set ICONV_CONST.
23073         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
23074         here.
23075         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
23076         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
23077         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
23078         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
23079         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
23080         present.
23081
23082 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
23083
23084         ftoastr: comment fix
23085         * lib/ftoastr.c: "little" -> "little or no" in comment
23086
23087 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
23088
23089         stdint: port to GCC 4.3 + OSX + Octave
23090         On this platform, stdint.h is buggy and defines int64_t to long
23091         long int.  The replacement defined it to long int, causing
23092         problems with C++ style name mangling.  Instead, trust the system
23093         definition if INT64_MAX is defined, and likewise for the unsigned
23094         variant.   Problem reported by Jarno Rajahalme in
23095         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
23096         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
23097         and don't mess with int64_t and INT64_MAX in this case.
23098         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
23099
23100 2010-11-24  Bruno Haible  <bruno@clisp.org>
23101
23102         doc: Corrections regarding MacOS X 10.4 and 10.5.
23103         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
23104         MacOS X.
23105         Reported by Simon Josefsson.
23106
23107 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
23108
23109         Uninstall ".bin" files installed by relocwrapper.
23110         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
23111         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
23112         unless it is already there.
23113
23114 2010-11-21  Bruno Haible  <bruno@clisp.org>
23115
23116         Update for NetBSD 5.0.
23117         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
23118         NetBSD; the test fails on NetBSD 5.0.
23119         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
23120         about NetBSD.
23121
23122 2010-11-21  Bruno Haible  <bruno@clisp.org>
23123
23124         Update for HP-UX 11.23 and HP-UX 11.31.
23125         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
23126         HP-UX.
23127
23128 2010-11-21  Bruno Haible  <bruno@clisp.org>
23129
23130         Update for MacOS X 10.5.
23131         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
23132         MacOS X; the test fails on MacOS X 10.5.8.
23133         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
23134         about MacOS X.
23135
23136 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
23137
23138         bootstrap: add bootstrap_sync option.
23139         See discussion at
23140         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
23141         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
23142         * build-aux/bootstrap: Accept --bootstrap-sync to update
23143         bootstrap if it is not identical to the local gnulib's
23144         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
23145         enable this by default.  Accept --no-bootstrap-sync to disable
23146         it.
23147
23148 2010-11-20  Bruno Haible  <bruno@clisp.org>
23149
23150         Ensure that <features.h> is included before __GLIBC__ is tested.
23151         * lib/printf-parse.h: Include <features.h>.
23152         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
23153         Reported by Mike Frysinger <vapier@gentoo.org>.
23154
23155         Ensure that <features.h> is included before __GLIBC__ is tested.
23156         * lib/wchar.in.h: Include <features.h>.
23157         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
23158         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
23159         Reported by Mike Frysinger <vapier@gentoo.org>.
23160
23161         Ensure that <features.h> is included before __GLIBC__ is tested.
23162         * lib/arpa_inet.in.h: Include <features.h>.
23163         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
23164         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
23165         Reported by Mike Frysinger <vapier@gentoo.org>.
23166
23167         Ensure that <features.h> is included before __GLIBC__ is tested.
23168         * build-aux/link-warning.h: Include <features.h>.
23169         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
23170         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
23171         Reported by Mike Frysinger <vapier@gentoo.org>.
23172
23173         Ensure that <features.h> is included before __GLIBC__ is tested.
23174         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
23175         Reported by Mike Frysinger <vapier@gentoo.org>.
23176
23177 2010-11-20  Bruno Haible  <bruno@clisp.org>
23178
23179         memmem: Fix autoconf test.
23180         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
23181
23182 2010-11-20  Bruno Haible  <bruno@clisp.org>
23183
23184         Port to uClibc.
23185         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
23186         * lib/fcntl.in.h: Likewise.
23187         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
23188         * lib/mbrtowc.c (mbrtowc): Likewise.
23189         * lib/relocatable.c (find_shared_library_fullname): Likewise.
23190         * lib/strerror_r.c: Likewise.
23191         * lib/unistr/u8-strnlen.c: Likewise.
23192         * lib/vasnprintf.c (decimal_point_char): Likewise.
23193         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
23194         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
23195         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
23196         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
23197         * tests/test-sigaction.c (handler, main): Likewise.
23198         * lib/freading.h: Treat uClibc like a non-glibc platform.
23199         * lib/freading.c: Likewise.
23200         * lib/gettext.h: Likewise.
23201         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
23202         Likewise.
23203         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
23204         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
23205         * lib/propername.c (proper_name_utf8): Likewise.
23206         * lib/spawn.in.h: Likewise.
23207         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
23208         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
23209         mem_cd_iconveh_internal): Likewise.
23210         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
23211         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
23212         strstr, strcasestr): Likewise.
23213         * lib/unicodeio.c (unicode_to_mb): Likewise.
23214         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
23215         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
23216         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
23217         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
23218         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
23219         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
23220         * lib/unistr/u8-stpncpy.c: Likewise.
23221         * lib/vasnprintf.c (VASNPRINTF): Likewise.
23222         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
23223         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
23224         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23225         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
23226         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
23227         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
23228         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
23229         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
23230         Likewise.
23231         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
23232         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
23233         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
23234         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23235         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
23236         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
23237         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
23238         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
23239         * tests/test-getopt.h (OPTIND_MIN): Likewise.
23240         * tests/test-striconveha.c (main): Likewise.
23241         * tests/test-vasnprintf-posix.c (test_function): Likewise.
23242         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
23243         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
23244         * doc/posix-functions/getline.texi: Likewise.
23245         Reported by Mike Frysinger <vapier@gentoo.org>.
23246
23247 2010-11-20  Bruno Haible  <bruno@clisp.org>
23248
23249         nproc: Fix condition.
23250         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
23251         HAVE_PTHREAD_AFFINITY_NP.
23252
23253 2010-11-20  Bruno Haible  <bruno@clisp.org>
23254
23255         Fix a comment.
23256         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
23257
23258 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
23259
23260         ftoastr: don't assume snprintf
23261         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
23262         Implement a subset of snprintf here, by using sprintf safely.
23263         * modules/ftoastr (Depends-on): Remove snprintf.
23264
23265 2010-11-19  Jim Meyering  <meyering@redhat.com>
23266
23267         test-rename.h: fix compilation failure
23268         * tests/test-rename.h (test_rename): Add omitted "}".
23269
23270 2010-11-17  Jim Meyering  <meyering@redhat.com>
23271
23272         maint.mk: add a URL discussing the no-@acronym policy
23273         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
23274
23275 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
23276
23277         ftoastr: depend on snprintf, improve comments
23278         * lib/ftoastr.c: Also mention Loitsch's draft.
23279         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
23280         needed in the current implementation, but it might simplify
23281         speeding up the code later.
23282         * modules/ftoastr: Depend on snprintf; this improves portability.
23283         Suggested by Bruno Haible in the same email.
23284
23285         ftoastr: port to hosts lacking strtof and strtold
23286         Problem reported by Bruno Haible in
23287         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
23288         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
23289         environment and strtold (and presumably strtof) are not available.
23290         * modules/ftoastr (Files): Add m4/c-strtod.m4.
23291         (configure.ac): Require gl_C99_STRTOLD.
23292
23293 2010-11-18  Bruno Haible  <bruno@clisp.org>
23294
23295         c-strtold: Avoid link error on AIX 7.
23296         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
23297         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
23298         (gl_C_STRTOLD): Test whether strtold_l exists.
23299         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23300
23301 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
23302
23303         intprops: new macro INT_BITS_STRLEN_BOUND
23304         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
23305         ftoastr.h.  This exposes an internal of intprops.h that was formerly
23306         not exposed.  Also, it uses a slightly tighter bound than before;
23307         though this makes no practical difference, we might as well be as
23308         tight as we easily can.
23309
23310         ftoastr: new module, for lossless conversion of floats to short strings
23311         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
23312         * modules/ftoastr: New files.
23313
23314 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
23315
23316         bootstrap: port to Solaris sed
23317         * build-aux/bootstrap (get_version): Port to Solaris sed.
23318         See Ralf Wildenhues's note in
23319         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
23320
23321 2010-11-14  Jim Meyering  <meyering@redhat.com>
23322
23323         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
23324         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
23325         and move definition closer to sole use.
23326
23327 2010-11-13  Jim Meyering  <meyering@redhat.com>
23328
23329         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
23330         Now we require at least autoconf-2.59, which means the work-around
23331         is no longer needed.
23332         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
23333         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
23334         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
23335         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
23336         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
23337
23338 2010-11-13  Bruno Haible  <bruno@clisp.org>
23339
23340         rename, renameat: Avoid test failures at NFS mounted locations.
23341         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
23342         functions.
23343         (test_rename): Use assert_nonexistent.
23344         * tests/test-rename.c: Include <dirent.h>.
23345         * tests/test-renameat.c: Likewise.
23346         Reported by Gary V. Vaughan <gary@gnu.org>.
23347
23348         rename, renameat: Document Linux bug with NFS
23349         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
23350         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
23351         * doc/posix-functions/renameat.texi: Likewise.
23352         Suggested by Eric Blake.
23353
23354 2010-11-13  Bruno Haible  <bruno@clisp.org>
23355
23356         rename test: Add comments.
23357         * tests/test-rename.h (test_rename): Add structure and comments.
23358
23359 2010-11-13  Eric Blake  <eblake@redhat.com>
23360
23361         maintainer-makefile: cover a few more files
23362         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
23363         scripts generated within C files, for libvirt.
23364
23365 2010-11-13  Bruno Haible  <bruno@clisp.org>
23366
23367         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
23368         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
23369         character, return the number of bytes that belong together, not always
23370         1.
23371         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
23372         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
23373         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
23374         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
23375         number of bytes of an invalid character.
23376         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
23377         (main): Invoke it.
23378         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
23379         results.
23380         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
23381         malformed byte sequences.
23382         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
23383         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
23384         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
23385         Reported by Ben Pfaff and Paolo Bonzini.
23386
23387 2010-11-13  Bruno Haible  <bruno@clisp.org>
23388
23389         openat: Work around glibc bug with fchownat() and empty file names.
23390         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
23391         (gl_FUNC_FCHOWNAT): Invoke it.
23392         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
23393         * doc/posix-functions/fchownat.texi: Document the glibc bug.
23394         Reported by Gary V. Vaughan <gary@gnu.org>.
23395
23396 2010-11-13  Bruno Haible  <bruno@clisp.org>
23397
23398         openat: Ensure autoconf macro ordering.
23399         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
23400         gl_USE_SYSTEM_EXTENSIONS.
23401         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
23402
23403 2010-11-13  Bruno Haible  <bruno@clisp.org>
23404
23405         Update comments.
23406         * lib/unistr/u8-check.c: Update file name in comments.
23407         * lib/unistr/u8-mblen.c: Likewise.
23408         * lib/unistr/u8-prev.c: Likewise.
23409         * lib/unistr/u8-strmblen.c: Likewise.
23410         * lib/unistr/u8-strmbtouc.c: Likewise.
23411
23412 2010-11-13  Jim Meyering  <meyering@redhat.com>
23413
23414         tests: avoid test failure on Solaris 10 due to lack of PATH export
23415         * tests/test-update-copyright.sh: Don't forget to export PATH.
23416
23417         init.sh: ensure that IFS is defined, just in case...
23418         * tests/init.sh (setup_): Ensure that IFS is defined,
23419         so that saving and restoring it works as expected.  This
23420         appears to be useful at least for an old version of dash
23421         from a long time ago (RH 6).  See here for details:
23422         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
23423
23424         maint.mk: tighten "test a == b" check
23425         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
23426         test to files that contain something like #!/bin/sh.
23427         Without this, coreutils would get two false positives in
23428         the comments of C source files.
23429
23430 2010-11-12  Eric Blake  <eblake@redhat.com>
23431
23432         bootstrap: fix typo in previous attempt
23433         * build-aux/bootstrap (buildreq): Correct the grouping.
23434         Reported by Paul Eggert.
23435
23436         maintainer-makefile: prohibit test x == x
23437         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
23438         Based on a report by Matthias Bolte.
23439
23440         bootstrap: allow FreeBSD gzip
23441         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
23442         which has no '.' and goes to stderr.
23443         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
23444         Reported by Matthias Bolte.
23445
23446         maintainer-makefile: check for i18n setup
23447         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
23448         will likely work.
23449
23450 2010-11-12  Bruno Haible  <bruno@clisp.org>
23451
23452         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
23453         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
23454         * lib/nanosleep.c (nanosleep): Likewise.
23455
23456 2010-11-11  Bruno Haible  <bruno@clisp.org>
23457
23458         fcntl-h: Fix for use of C++ on glibc systems.
23459         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
23460         also on glibc systems in C++ mode.
23461         Reported by Gary V. Vaughan <gary@gnu.org>.
23462
23463 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
23464
23465         mknod: avoid false failure with dash
23466         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
23467
23468 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
23469
23470         unlink: Fix "is it should" typo in diagnostic.
23471         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
23472         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
23473
23474 2010-11-11  Bruno Haible  <bruno@clisp.org>
23475
23476         Tests for module 'strerror_r-posix'.
23477         * modules/strerror_r-posix-tests: New file.
23478         * tests/test-strerror_r.c: New file.
23479         * tests/test-string-c++.cc: Check the signature of strerror_r.
23480
23481         New module 'strerror_r-posix'.
23482         * lib/string.in.h (strerror_r): New declaration.
23483         * lib/strerror_r.c: New file.
23484         * m4/strerror_r.m4: New file.
23485         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
23486         of strerror_r.
23487         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
23488         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
23489         * modules/strerror_r-posix: New file.
23490         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
23491         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
23492         * doc/posix-functions/strerror_r.texi: Mention the new module and the
23493         portability problems.
23494
23495 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
23496
23497         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
23498         line is also considered for output. Quoted function name in shell
23499         command, so temporary files for functions like MyClass::operator()
23500         are removed correctly without errors.
23501
23502 2010-11-09  Bruno Haible  <bruno@clisp.org>
23503
23504         * doc/posix-functions/strerror.texi: List more failing platforms.
23505
23506         * doc/posix-functions/strerror.texi: Add a comment.
23507
23508 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
23509
23510         fdopendir: fix bug on MacOS X when low on file descriptors
23511
23512         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
23513         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
23514         All callers changed.
23515         (fdopendir): Invoke save_cwd at the top level, not after using
23516         multiple dup() calls to use up file descriptors.  Then retry
23517         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
23518         less than the maximum number of open file descriptors, because
23519         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
23520         on Mac OS X 10.6.4 for tar 1.24
23521         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
23522         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
23523         and for tar 1.25
23524         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
23525
23526 2010-11-07  Bruno Haible  <bruno@clisp.org>
23527
23528         vasnprintf: Support I flag on glibc systems.
23529         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
23530         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
23531         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
23532         snprintf function.
23533         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
23534         glibc systems.
23535         * tests/test-vasnprintf-posix3.c: New file.
23536         * modules/vasnprintf-posix-tests (Files): Add it.
23537         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
23538
23539 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
23540
23541         [html] Fix copy/paste bug: Use unique name for compiler warnings.
23542         * MODULES.html.sh: For compiler warnings, use name
23543         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
23544
23545 2010-11-05  Eric Blake  <eblake@redhat.com>
23546
23547         ceil, floor: avoid spurious failure with icc
23548         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
23549         [denormals-as-zero] when optimizing without -mieee-fp option.
23550         * tests/test-floorf2.c (floorf_reference): Likewise.
23551         * tests/test-ceilf1.c (dummy): New function.
23552         (main): Use it to outsmart icc's optimization.
23553         * tests/test-floorf1.c (dummy, main): Likewise.
23554
23555         tests: require working signbit
23556         * modules/ceilf-tests (Depends-on): Add signbit.
23557         * modules/ceill-tests (Depends-on): Likewise.
23558         * modules/floorf-tests (Depends-on): Likewise.
23559         * modules/floorl-tests (Depends-on): Likewise.
23560         * modules/round-tests (Depends-on): Likewise.
23561         * modules/roundf-tests (Depends-on): Likewise.
23562         * modules/roundl-tests (Depends-on): Likewise.
23563         * modules/trunc-tests (Depends-on): Likewise.
23564         * modules/truncf-tests (Depends-on): Likewise.
23565         * modules/truncl-tests (Depends-on): Likewise.
23566
23567         strtod: work around icc bug
23568         * lib/strtod.c (minus_zero): Define to working value.
23569         (strtod): Use it to avoid icc bug.
23570
23571         copysign: enhance tests
23572         * modules/copysign-tests (Files): Add minus-zero.h.
23573         * tests/test-copysign.c (main): Also test zeros.
23574
23575 2010-11-04  Eric Blake  <eblake@redhat.com>
23576
23577         ceil, floor, round, trunc: enhance tests of -0
23578         * tests/test-ceilf1.c (main): Ensure correct sign of result.
23579         * tests/test-ceill.c (main): Likewise.
23580         * tests/test-floorf1.c (main): Likewise.
23581         * tests/test-floorl.c (main): Likewise.
23582         * tests/test-round1.c (main): Likewise.
23583         * tests/test-roundf1.c (main): Likewise.
23584         * tests/test-roundl.c (main): Likewise.
23585         * tests/test-trunc1.c (main): Likewise.
23586         * tests/test-truncf1.c (main): Likewise.
23587         * tests/test-truncl.c (main): Likewise.
23588
23589 2010-11-04  Eric Blake  <eblake@redhat.com>
23590
23591         frexp, tests: work around ICC bug with -zero
23592         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
23593         works with more compilers.
23594         * tests/minus-zero.h: New file.
23595         * modules/ceilf-tests (Files): Include it.
23596         * modules/ceill-tests (Files): Likewise.
23597         * modules/floorf-tests (Files): Likewise.
23598         * modules/floorl-tests (Files): Likewise.
23599         * modules/frexp-nolibm-tests (Files): Likewise.
23600         * modules/frexp-tests (Files): Likewise.
23601         * modules/frexpl-nolibm-tests (Files): Likewise.
23602         * modules/frexpl-tests (Files): Likewise.
23603         * modules/isnan-tests (Files): Likewise.
23604         * modules/isnand-nolibm-tests (Files): Likewise.
23605         * modules/isnand-tests (Files): Likewise.
23606         * modules/isnanf-nolibm-tests (Files): Likewise.
23607         * modules/isnanf-tests (Files): Likewise.
23608         * modules/isnanl-nolibm-tests (Files): Likewise.
23609         * modules/isnanl-tests (Files): Likewise.
23610         * modules/round-tests (Files): Likewise.
23611         * modules/roundf-tests (Files): Likewise.
23612         * modules/roundl-tests (Files): Likewise.
23613         * modules/ldexpl-tests (Files): Likewise.
23614         * modules/signbit-tests (Files): Likewise.
23615         * modules/snprintf-posix-tests (Files): Likewise.
23616         * modules/sprintf-posix-tests (Files): Likewise.
23617         * modules/strtod-tests (Files): Likewise.
23618         * modules/trunc-tests (Files): Likewise.
23619         * modules/truncf-tests (Files): Likewise.
23620         * modules/truncl-tests (Files): Likewise.
23621         * modules/vsnprintf-posix-tests (Files): Likewise.
23622         * modules/vsprintf-posix-tests (Files): Likewise.
23623         * modules/vasnprintf-posix-tests (Files): Likewise.
23624         * modules/vasprintf-posix-tests (Files): Likewise.
23625         * tests/test-ceilf1.c (main): Use it.
23626         * tests/test-ceill.c (main): Likewise.
23627         * tests/test-floorf1.c (main): Likewise.
23628         * tests/test-floorl.c (main): Likewise.
23629         * tests/test-frexp.c (main): Likewise.
23630         * tests/test-frexpl.c (main): Likewise.
23631         * tests/test-isnan.c (main): Likewise.
23632         * tests/test-isnand.h (main): Likewise.
23633         * tests/test-isnanf.h (main): Likewise.
23634         * tests/test-isnanl.h (main): Likewise.
23635         * tests/test-ldexpl.c (main): Likewise.
23636         * tests/test-round.c (main): Likewise.
23637         * tests/test-roundf.c (main): Likewise.
23638         * tests/test-roundl.c (main): Likewise.
23639         * tests/test-signbit.c (test_signbitf, test_signbitd)
23640         (test_signbitl): Likewise.
23641         * tests/test-snprintf-posix.h (test_function): Likewise.
23642         * tests/test-sprintf-posix.h (test_function): Likewise.
23643         * tests/test-strtod.c (main): Likewise.
23644         * tests/test-trunc1.c (main): Likewise.
23645         * tests/test-truncf1.c (main): Likewise.
23646         * tests/test-truncl.c (main): Likewise.
23647
23648         isnanl: work around icc bug
23649         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
23650
23651 2010-11-03  Eric Blake  <eblake@redhat.com>
23652
23653         tests: fix compiler warnings
23654         * tests/test-getopt.h (test_getopt): Fix condition.
23655         * tests/test-getopt_long.h (test_getopt_long): Likewise.
23656         * tests/test-pipe2.c (main): Likewise.
23657         * tests/test-quotearg-simple.c (main): Avoid icc warning.
23658
23659         utimens: fix broken m4 test
23660         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
23661
23662 2010-10-28  Bruno Haible  <bruno@clisp.org>
23663
23664         posix_spawn*, getdtablesize: Relax license.
23665         * modules/posix_spawn (License): Change to LGPLv2+.
23666         * modules/posix_spawnp (License): Likewise.
23667         * modules/posix_spawn-internal (License): Likewise.
23668         * modules/posix_spawnattr_init (License): Likewise.
23669         * modules/posix_spawnattr_getflags (License): Likewise.
23670         * modules/posix_spawnattr_setflags (License): Likewise.
23671         * modules/posix_spawnattr_getpgroup (License): Likewise.
23672         * modules/posix_spawnattr_setpgroup (License): Likewise.
23673         * modules/posix_spawnattr_getschedparam (License): Likewise.
23674         * modules/posix_spawnattr_setschedparam (License): Likewise.
23675         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
23676         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
23677         * modules/posix_spawnattr_getsigdefault (License): Likewise.
23678         * modules/posix_spawnattr_setsigdefault (License): Likewise.
23679         * modules/posix_spawnattr_getsigmask (License): Likewise.
23680         * modules/posix_spawnattr_setsigmask (License): Likewise.
23681         * modules/posix_spawnattr_destroy (License): Likewise.
23682         * modules/posix_spawn_file_actions_init (License): Likewise.
23683         * modules/posix_spawn_file_actions_addclose (License): Likewise.
23684         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
23685         * modules/posix_spawn_file_actions_addopen (License): Likewise.
23686         * modules/posix_spawn_file_actions_destroy (License): Likewise.
23687         * modules/getdtablesize (License): Likewise.
23688         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
23689
23690 2010-10-26  Bruno Haible  <bruno@clisp.org>
23691
23692         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
23693         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
23694         Cygwin and mingw.
23695         Suggested by Eric Blake.
23696
23697 2010-10-26  Bruno Haible  <bruno@clisp.org>
23698
23699         stdio: Work around compilation error due to renameat() on Solaris 10.
23700         * lib/stdio.in.h: Include <unistd.h> on Solaris.
23701         * lib/renameat.c: Don't include <unistd.h> here.
23702         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
23703         Reported by Paul Eggert and Eric Blake.
23704
23705 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
23706
23707         renameat: port to Solaris 10, which declares renameat in unistd.h
23708
23709         * lib/renameat.c: Include unistd.h before stdio.h, because
23710         Solaris 10 declares renameat in unistd.h.  Problem encountered
23711         when building GNU tar 1.24 on Solaris 10.
23712
23713 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
23714
23715         fdopendir: fix C89 compilation
23716         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
23717         compilers.
23718
23719 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
23720
23721         inttostr: simplify by removing unnecessary redundancy
23722         * lib/anytostr.c: Don't include verify.h.
23723         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
23724         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
23725         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
23726         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
23727         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
23728         Likewise.
23729         * modules/inttostr (Depends-on): Remove 'verify'.
23730
23731 2010-10-23  Bruno Haible  <bruno@clisp.org>
23732
23733         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
23734         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
23735         Reported by Eric Blake.
23736
23737 2010-10-23  Bruno Haible  <bruno@clisp.org>
23738
23739         Tests: Fix LOCALE_JA on MirBSD 10.
23740         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
23741         to an UTF-8 locale.
23742         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
23743         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
23744         Reported by Eric Blake.
23745
23746 2010-10-21  Bruno Haible  <bruno@clisp.org>
23747
23748         nl_langinfo test: Avoid test failure on NetBSD 5.
23749         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
23750         Reported by Eric Blake.
23751
23752 2010-10-21  Eric Blake  <eblake@redhat.com>
23753
23754         c-stack: work around libsigsegv 2.8 bug
23755         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
23756         overflow on at least PowerPC64.
23757
23758 2010-10-17  Bruno Haible  <bruno@clisp.org>
23759
23760         userspec: Drop redundant file.
23761         * modules/userspec (Files): Remove lib/inttostr.h.
23762
23763 2010-10-17  Bruno Haible  <bruno@clisp.org>
23764
23765         nl_langinfo tests: Silence some warnings.
23766         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
23767         Reported by Jim Meyering.
23768
23769 2010-10-17  Bruno Haible  <bruno@clisp.org>
23770
23771         Make use of GCC's attribute __alloc_size__.
23772         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
23773         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
23774         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
23775         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
23776         __alloc_size__.
23777         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
23778         Suggested by Jim Meyering.
23779
23780 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
23781
23782         bootstrap: anchor .gitignore entries.
23783         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
23784         with...
23785         (insert_vc_ignore): ... this new function, which prepends `/' to
23786         all .gitignore entries before passing them to
23787         insert_sorted_if_absent.
23788
23789 2010-10-16  Bruno Haible  <bruno@clisp.org>
23790
23791         nextafter: Fix configure check.
23792         * modules/nextafter (configure.ac): Correct expected prototype.
23793
23794 2010-10-16  Bruno Haible  <bruno@clisp.org>
23795
23796         termios: Update documentation.
23797         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
23798
23799 2010-10-16  Bruno Haible  <bruno@clisp.org>
23800
23801         tests: Make them compile with TinyCC.
23802         * tests/test-strstr.c (main): Remove parentheses around array
23803         initializer.
23804
23805 2010-10-15  Eric Blake  <eblake@redhat.com>
23806
23807         ignore-value: make header idempotent
23808         * lib/ignore-value.h: Add double-inclusion guards.
23809         Reported by Stefan Berger.
23810
23811 2010-10-15  Jim Meyering  <meyering@redhat.com>
23812
23813         GNUmakefile: handle "stable" target, not "major"
23814         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
23815         lists in maint.mk and announce-gen.  Without this, "make stable"
23816         would fail to ensure that $(VERSION) is up to date.
23817
23818 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
23819
23820         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
23821         & co.
23822
23823 2010-10-14  Bruno Haible  <bruno@clisp.org>
23824
23825         vasnprintf: Don't set errno to 0.
23826         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
23827         block that sets it to 0.
23828         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
23829
23830 2010-10-14  Bruno Haible  <bruno@clisp.org>
23831
23832         socketlib: Fix.
23833         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
23834         gl_PREREQ_SYS_H_WINSOCK2.
23835         Reported by Ian Beckwith <ianb@erislabs.net>.
23836
23837 2010-10-13  Jim Meyering  <meyering@redhat.com>
23838
23839         test-select-stdin.c: avoid warn_unused_result warnings
23840         * tests/test-select-stdin.c: Include "macros.h".
23841         ASSERT that read and fflush succeed.
23842
23843 2010-10-13  Jim Meyering  <meyering@redhat.com>
23844
23845         git-version-gen: do require git-VC'd files in cwd
23846         * build-aux/git-version-gen: Reject a git version string
23847         if there are no commits associated with the current directory.
23848         This avoids an unlikely false-positive (unrelated dir whose parent
23849         repository also contains a tag matching v*), as pointed out
23850         by Giuseppe Scrivano in
23851         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
23852
23853 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
23854
23855         argv-iter: omit nonconforming declaration
23856         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
23857         enum arg_iter_err declaration, which doesn't conform to C99.
23858         Solaris 10 cc warns about this.
23859
23860 2010-10-13  Eric Blake  <eblake@redhat.com>
23861
23862         termios: fix compilation on mingw
23863         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
23864         (gl_TERMIOS_H): Adjust it on mingw.
23865         * modules/termios (Makefile.am): Substitute new key.
23866         * lib/termios.in.h (includes): Make include_next conditional.
23867         * doc/posix-headers/termios.texi (termios.h): Update
23868         documentation.
23869         Reported by Daniel P. Berrange.
23870
23871 2010-10-13  Jim Meyering  <meyering@redhat.com>
23872
23873         git-version-gen: don't require that .git/ be in the current dir
23874         * build-aux/git-version-gen: Adjust this script so that it works
23875         when run from any working directory beneath the top-level .git/-
23876         containing directory.  Inspired by a patch from Giuseppe Scrivano,
23877         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
23878
23879         test-select: avoid warn_unused_result warnings
23880         * tests/test-select.c: Include "macros.h".
23881         ASSERT that each call to read, write, and pipe succeeds.
23882         While not technically required, also check each "close".
23883         * modules/select-tests (Files): Add tests/macros.h.
23884
23885         test-symlinkat: remove declaration of unused local
23886         * tests/test-symlinkat.c (main): Remove unused local, "buf".
23887
23888         test-inttostr: avoid shadowing warnings
23889         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
23890         and use malloc rather than the stack for the same reason as
23891         mentioned in the comment justifying the other allocation.
23892
23893 2010-10-11  Bruno Haible  <bruno@clisp.org>
23894
23895         stdlib: Allow multiple gnulib generated replacements to coexist.
23896         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
23897         Reported by Sam Steingold <sds@gnu.org>.
23898
23899 2010-10-11  Jim Meyering  <meyering@redhat.com>
23900
23901         fix a documentation typo
23902         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
23903
23904 2010-10-11  Eric Blake  <eblake@redhat.com>
23905
23906         futimens: work around Solaris 11 bug
23907         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
23908         * tests/test-futimens.h (test_futimens): Enhance, rather than
23909         weaken test.
23910         * doc/posix-functions/futimens.texi (futimens): Document the bug.
23911
23912 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
23913
23914         Indentation.
23915         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
23916         higher-level operators more to the left.
23917
23918 2010-10-11  Jim Meyering  <meyering@redhat.com>
23919
23920         test-futimens: avoid unwarranted test failure on Solaris 5.11
23921         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
23922         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
23923         because it tries to dereference the NULL name argument.
23924
23925 2010-10-11  Bruno Haible  <bruno@clisp.org>
23926
23927         Indentation.
23928         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
23929         indentation.
23930
23931 2010-10-11  Jim Meyering  <meyering@redhat.com>
23932
23933         spawn.in.h: make indentation consistent with parentheses
23934         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
23935         Make indentation consistent with parentheses.
23936
23937 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
23938
23939         Fix mismatched parens in previous commit
23940         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
23941         parens.
23942
23943 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
23944
23945         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
23946
23947         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
23948         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
23949         * lib/malloca.c: Include "verify.h".
23950         (verify1): Remove, replacing with a verify call.
23951         * lib/relocwrapper.c (verify1): Likewise.
23952         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
23953         Likewise.
23954         * modules/malloca (Depends-on): Add 'verify'.
23955         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
23956         * modules/vasnprintf (Depends-on): Add 'verify'.
23957         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
23958         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
23959         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
23960         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
23961         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
23962         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
23963         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
23964
23965         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
23966
23967         Formerly the style was sometimes 2*X - 1, because the C standard
23968         was wrongly thought to disallow ?: in integral constant expressions.
23969         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
23970         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
23971         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
23972         * lib/stdint.in.h (_verify_intmax_size): Likewise.
23973         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
23974         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
23975         verify that time_t cannot be floating.
23976
23977 2010-10-08  Eric Blake  <eblake@redhat.com>
23978
23979         time: enforce recent POSIX ruling that time_t is integral
23980         * lib/time.in.h (__time_t_must_be_integral): Detect any
23981         problematic systems, allowing the rest of gnulib to assume POSIX.
23982
23983 2010-10-08  Jim Meyering  <meyering@redhat.com>
23984
23985         fdopendir: fix a bug on systems lacking openat and /proc support
23986         OpenBSD 4.7 is one such system.  The most noticeable effect was
23987         failure of any application making nontrivial use of fts: rm, du,
23988         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
23989           ./rm: traversal failed: `a': Bad file descriptor
23990         Debugging that, you see that even though FD 6 was closed just
23991         prior to the opendir call in fd_clone_opendir, its resulting
23992         dir->dd_fd was 8, rather than the expected value of 6:
23993
23994         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
23995         93                close (fd);
23996         (gdb) n
23997         94                dir = fd_clone_opendir (dupfd);
23998         (gdb) n
23999         95                saved_errno = errno;
24000         (gdb) p dir->dd_fd
24001         $11 = 8
24002
24003         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
24004         The problem is that on OpenBSD, fd_clone_opendir has to resort
24005         to using the old-style save/restore CWD mechanism, due to its
24006         lack of openat/proc support, and *that* would steal the FD (6)
24007         that opendir was supposed to use.
24008
24009         The fix is to squirrel away the desired FD so that save_cwd uses a
24010         different one, and then free the dest FD right before calling opendir.
24011         That guarantees opendir will use the required file descriptor.
24012
24013         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
24014
24015 2010-10-08  Bruno Haible  <bruno@clisp.org>
24016
24017         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
24018         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
24019
24020 2010-10-08  Bruno Haible  <bruno@clisp.org>
24021
24022         nanosleep: Make replacement POSIX compliant.
24023         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
24024         is out of range.
24025         Reported by Jim Meyering.
24026
24027 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
24028
24029         bootstrap: add hook for altering gnulib.mk, for Bison
24030         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
24031         the Bison bootstrapping process can rewrite file names and variables
24032         in this file before later parts of 'bootstrap' use the file.
24033         Bison wants to include lib/gnulib.mk from the top-level makefile,
24034         so it needs the file names in this file to be relative to the top
24035         level, not relative to lib; plus it needs variable names to be
24036         rewritten.
24037         (slurp): Use the new function.
24038
24039         bootstrap: reformat for readability
24040         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
24041
24042 2010-10-08  Eric Blake  <eblake@redhat.com>
24043
24044         docs: update cygwin progress
24045         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
24046         1.7.7.
24047         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
24048         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
24049         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
24050         * doc/posix-functions/carg.texi (carg): Likewise.
24051         * doc/posix-functions/cargf.texi (cargf): Likewise.
24052         * doc/posix-functions/casin.texi (casin): Likewise.
24053         * doc/posix-functions/casinf.texi (casinf): Likewise.
24054         * doc/posix-functions/casinh.texi (casinh): Likewise.
24055         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
24056         * doc/posix-functions/catan.texi (catan): Likewise.
24057         * doc/posix-functions/catanf.texi (catanf): Likewise.
24058         * doc/posix-functions/catanh.texi (catanh): Likewise.
24059         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
24060         * doc/posix-functions/ccos.texi (ccos): Likewise.
24061         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
24062         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
24063         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
24064         * doc/posix-functions/cexp.texi (cexp): Likewise.
24065         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
24066         * doc/posix-functions/cimag.texi (cimag): Likewise.
24067         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
24068         * doc/posix-functions/clog.texi (clog): Likewise.
24069         * doc/posix-functions/clogf.texi (clogf): Likewise.
24070         * doc/posix-functions/conj.texi (conj): Likewise.
24071         * doc/posix-functions/conjf.texi (conjf): Likewise.
24072         * doc/posix-functions/cpow.texi (cpow): Likewise.
24073         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
24074         * doc/posix-functions/cproj.texi (cproj): Likewise.
24075         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
24076         * doc/posix-functions/creal.texi (creal): Likewise.
24077         * doc/posix-functions/crealf.texi (crealf): Likewise.
24078         * doc/posix-functions/csin.texi (csin): Likewise.
24079         * doc/posix-functions/csinf.texi (csinf): Likewise.
24080         * doc/posix-functions/csinh.texi (csinh): Likewise.
24081         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
24082         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
24083         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
24084         * doc/posix-functions/ctan.texi (ctan): Likewise.
24085         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
24086         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
24087         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
24088         * doc/posix-headers/complex.texi (complex.h): Likewise.
24089
24090 2010-10-07  Jim Meyering  <meyering@redhat.com>
24091
24092         parse-datetime: avoid compilation failure on OpenBSD 4.7
24093         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
24094         This works around a compilation failure on OpenBSD 4.7:
24095         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
24096
24097 2010-10-07  Eric Blake  <eblake@redhat.com>
24098
24099         docs: update cygwin progress
24100         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
24101         1.7.6.
24102         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
24103         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
24104         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
24105         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
24106         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
24107         Likewise.
24108         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
24109         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
24110         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
24111         Likewise.
24112         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
24113         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
24114         Likewise.
24115         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
24116         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
24117         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
24118         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
24119         Likewise.
24120         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
24121         Likewise.
24122         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
24123
24124         docs: update parse-datetime history
24125         * doc/parse-datetime.texi (Authors of parse_datetime): Better
24126         documentation of this function's history and alternatives.
24127
24128         cygwin: use more robust version check
24129         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
24130         exclude an eventual cygwin 1.9.1.
24131         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
24132         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
24133         (gl_FUNC_STRCASESTR): Likewise.
24134         Reported by Bruno Haible.
24135
24136 2010-10-06  Bruno Haible  <bruno@clisp.org>
24137
24138         string, sys_select: Avoid #including large headers unless necessary.
24139         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
24140         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
24141         OSF/1, BeOS, Haiku.
24142         Reported by Jim Meyering.
24143
24144 2010-10-05  Eric Blake  <eblake@redhat.com>
24145
24146         memmem, strstr, strcasestr: fix bug with long periodic needle
24147         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
24148         periodic needle having false positive.
24149         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
24150         and cygwin 1.7.7.
24151         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
24152         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
24153         (gl_FUNC_STRCASESTR): Likewise.
24154         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
24155         * tests/test-memmem.c (main): Expose the bug.
24156         * tests/test-strcasestr.c (main): Likewise.
24157         * tests/test-strstr.c (main): Likewise.
24158         * tests/test-c-strcasestr.c (main): Likewise.
24159         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
24160         * doc/posix-functions/strstr.texi (strstr): Likewise.
24161         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
24162         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
24163
24164 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
24165
24166         parse-datetime: do some more renaming
24167         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
24168         parse_datetime, not get_date.  Mention the renaming.
24169         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
24170         in comments.
24171         * m4/bison.m4: Likewise.
24172
24173 2010-10-05  Eric Blake  <eblake@redhat.com>
24174
24175         parse-datetime: better name than get_date
24176         * NEWS: Reword the deprecation notice.
24177         * modules/get_date: Rename to modules/parse-datetime.
24178         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
24179         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
24180         * lib/get_date.y: Rename to lib/parse-datetime.y.
24181         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
24182         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
24183         * doc/getdate.texi: Provide fallback wrapper.
24184         * lib/getdate.h: Move guts, and wrap...
24185         * lib/parse-datetime.h: ...new file.
24186         * lib/parse-datetime.y (get_date): Rename...
24187         (parse_datetime): ...to this.
24188         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
24189         (gl_PARSE_DATETIME): ...to this.
24190         * doc/posix-functions/getdate.texi (get_date): Provide fallback
24191         documentation.
24192         * modules/getdate (Files): Provide fallback docs and header.
24193         (Notice, Depends-on): Update references.
24194         * tests/test-parse-datetime.c: Likewise.
24195         * DEPENDENCIES: Likewise.
24196         * MODULES.html.sh (Date and time <time.h>): Likewise.
24197         * doc/parse-datetime.texi (Date input formats)
24198         (Authors of parse_datetime): Likewise.
24199         * modules/parse-datetime (Files, configure.ac, Makefile.am)
24200         (Include): Likewise.
24201         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
24202         * gnulib-tool: Likewise.
24203         * m4/bison.m4 (gl_BISON): Likewise.
24204         Suggested by Bruno Haible.
24205
24206 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
24207
24208         more ports to Solaris tr, which needs [] around ranges
24209         * gnulib-tool: Solaris tr needs [] around ranges.
24210         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
24211         * tests/test-pipe-filter-gi1.c (main): Likewise.
24212         * tests/test-pipe-filter-ii1.c (main): Likewise.
24213
24214 2010-10-05  Eric Blake  <eblake@redhat.com>
24215
24216         bootstrap: fix Solaris regression
24217         * build-aux/bootstrap (check_versions): Solaris tr still needs []
24218         around ranges.
24219         Reported by Pádraig Brady.
24220
24221         bootstrap: work with pkg-config
24222         * build-aux/bootstrap (check_versions): Also transliterate - in
24223         prerequisite name.
24224         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
24225         prerequisites that were already found, to avoid confusion.
24226         Reported by Justin Clift.
24227
24228         faccessat: remove unused wrappers
24229         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
24230         presence of these wrappers dragged in -lgen on Solaris.
24231         Reported by Clemens Brogi; fix suggested by Paul Eggert.
24232
24233 2010-10-05  Jim Meyering  <meyering@redhat.com>
24234
24235         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
24236         * Makefile (sc_pragma_columns): New syntax-check rule.
24237
24238 2010-10-04  Bruno Haible  <bruno@clisp.org>
24239
24240         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
24241         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
24242         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
24243         Reported by Bruce Korb and Eric Blake.
24244
24245 2010-10-04  Bruno Haible  <bruno@clisp.org>
24246
24247         threadlib: Make option --with-libpth-prefix work.
24248         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
24249         use $LIBPTH, not just -lpth.
24250
24251 2010-10-04  Bruno Haible  <bruno@clisp.org>
24252
24253         Avoid line length limitation from HP NonStop system header files.
24254         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
24255         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
24256         * lib/ctype.in.h: Likewise.
24257         * lib/dirent.in.h: Likewise.
24258         * lib/errno.in.h: Likewise.
24259         * lib/fcntl.in.h: Likewise.
24260         * lib/float.in.h: Likewise.
24261         * lib/getopt.in.h: Likewise.
24262         * lib/iconv.in.h: Likewise.
24263         * lib/inttypes.in.h: Likewise.
24264         * lib/langinfo.in.h: Likewise.
24265         * lib/locale.in.h: Likewise.
24266         * lib/math.in.h: Likewise.
24267         * lib/netdb.in.h: Likewise.
24268         * lib/netinet_in.in.h: Likewise.
24269         * lib/poll.in.h: Likewise.
24270         * lib/pthread.in.h: Likewise.
24271         * lib/pty.in.h: Likewise.
24272         * lib/sched.in.h: Likewise.
24273         * lib/se-selinux.in.h: Likewise.
24274         * lib/search.in.h: Likewise.
24275         * lib/signal.in.h: Likewise.
24276         * lib/spawn.in.h: Likewise.
24277         * lib/stdarg.in.h: Likewise.
24278         * lib/stddef.in.h: Likewise.
24279         * lib/stdint.in.h: Likewise.
24280         * lib/stdio.in.h: Likewise.
24281         * lib/stdlib.in.h: Likewise.
24282         * lib/string.in.h: Likewise.
24283         * lib/strings.in.h: Likewise.
24284         * lib/sys_file.in.h: Likewise.
24285         * lib/sys_ioctl.in.h: Likewise.
24286         * lib/sys_select.in.h: Likewise.
24287         * lib/sys_socket.in.h: Likewise.
24288         * lib/sys_stat.in.h: Likewise.
24289         * lib/sys_time.in.h: Likewise.
24290         * lib/sys_times.in.h: Likewise.
24291         * lib/sys_utsname.in.h: Likewise.
24292         * lib/sys_wait.in.h: Likewise.
24293         * lib/sysexits.in.h: Likewise.
24294         * lib/termios.in.h: Likewise.
24295         * lib/time.in.h: Likewise.
24296         * lib/unistd.in.h: Likewise.
24297         * lib/wchar.in.h: Likewise.
24298         * lib/wctype.in.h: Likewise.
24299         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
24300         * modules/ctype (Makefile.am): Likewise.
24301         * modules/dirent (Makefile.am): Likewise.
24302         * modules/errno (Makefile.am): Likewise.
24303         * modules/fcntl-h (Makefile.am): Likewise.
24304         * modules/float (Makefile.am): Likewise.
24305         * modules/getopt-posix (Makefile.am): Likewise.
24306         * modules/iconv-h (Makefile.am): Likewise.
24307         * modules/inttypes (Makefile.am): Likewise.
24308         * modules/langinfo (Makefile.am): Likewise.
24309         * modules/locale (Makefile.am): Likewise.
24310         * modules/math (Makefile.am): Likewise.
24311         * modules/netdb (Makefile.am): Likewise.
24312         * modules/netinet_in (Makefile.am): Likewise.
24313         * modules/poll-h (Makefile.am): Likewise.
24314         * modules/pthread (Makefile.am): Likewise.
24315         * modules/pty (Makefile.am): Likewise.
24316         * modules/sched (Makefile.am): Likewise.
24317         * modules/search (Makefile.am): Likewise.
24318         * modules/selinux-h (Makefile.am): Likewise.
24319         * modules/signal (Makefile.am): Likewise.
24320         * modules/spawn (Makefile.am): Likewise.
24321         * modules/stdarg (Makefile.am): Likewise.
24322         * modules/stddef (Makefile.am): Likewise.
24323         * modules/stdint (Makefile.am): Likewise.
24324         * modules/stdio (Makefile.am): Likewise.
24325         * modules/stdlib (Makefile.am): Likewise.
24326         * modules/string (Makefile.am): Likewise.
24327         * modules/strings (Makefile.am): Likewise.
24328         * modules/sys_file (Makefile.am): Likewise.
24329         * modules/sys_ioctl (Makefile.am): Likewise.
24330         * modules/sys_select (Makefile.am): Likewise.
24331         * modules/sys_socket (Makefile.am): Likewise.
24332         * modules/sys_stat (Makefile.am): Likewise.
24333         * modules/sys_time (Makefile.am): Likewise.
24334         * modules/sys_times (Makefile.am): Likewise.
24335         * modules/sys_utsname (Makefile.am): Likewise.
24336         * modules/sys_wait (Makefile.am): Likewise.
24337         * modules/sysexits (Makefile.am): Likewise.
24338         * modules/termios (Makefile.am): Likewise.
24339         * modules/time (Makefile.am): Likewise.
24340         * modules/unistd (Makefile.am): Likewise.
24341         * modules/wchar (Makefile.am): Likewise.
24342         * modules/wctype (Makefile.am): Likewise.
24343
24344 2010-10-04  Bruno Haible  <bruno@clisp.org>
24345
24346         read-file tests: Avoid a test failure on NonStop Kernel.
24347         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
24348         a regular file.
24349         Reported by Joachim Schmitz <schmitz@hp.com>.
24350
24351 2010-10-03  Bruno Haible  <bruno@clisp.org>
24352
24353         gnulib-tool: Fixes for --create-testdir with --libtool.
24354         * gnulib-tool (func_get_automake_snippet): Don't augment
24355         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
24356         an executable.
24357         (func_create_testdir): Handle module 'alloca' like func_import.
24358         Reported by Bruce Korb <bruce.korb@gmail.com>.
24359
24360 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
24361
24362         Avoid some lines longer than 80 characters.
24363         * lib/stdint.in.h: Break long comment lines.
24364         * lib/math.in.h: Likewise.
24365         (_GL_NUM_UINT_WORDS): New macro, for readability.
24366         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
24367         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
24368         * lib/stdlib.in.h: Likewise.
24369         * lib/spawn.in.h: Likewise.
24370         * lib/sys_socket.in.h: Update an URL.
24371         * lib/sys_stat.in.h: Break long line.
24372
24373 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
24374
24375         Improve pmccabe2html.
24376         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
24377         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
24378         when the sources change. Remove the line in the HTML about "Used
24379         ranges" (which implied that there might be other unused ranges),
24380         rename "Resume" to "Summary" (easier to understand for more users).
24381         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
24382         styles, and some unnecessary blank lines.
24383
24384 2010-10-03  Bruno Haible  <bruno@clisp.org>
24385             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
24386
24387         acl: Add support for ACLs on NonStop Kernel.
24388         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
24389         Check whether the function aclsort() exists.
24390         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
24391         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
24392         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
24393         (acl_nontrivial [HAVE_ACLSORT]: New function.
24394         (file_has_acl): Implement for NonStop Kernel.
24395         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
24396         (qset_acl): Implement for NonStop Kernel.
24397         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
24398         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
24399         (main): Implement for NonStop Kernel.
24400         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
24401         Kernel. Handle this flavor.
24402         * tests/test-set-mode-acl.sh: Likewise.
24403         * tests/test-copy-acl.sh: Likewise.
24404         * tests/test-copy-file.sh: Likewise.
24405
24406 2010-10-03  Bruno Haible  <bruno@clisp.org>
24407
24408         Info about ACLs on NonStop Kernel.
24409         * doc/acl-resources.txt: Add info about NonStop Kernel.
24410         References by Joachim Schmitz <schmitz@hp.com>.
24411
24412 2010-10-02  Bruno Haible  <bruno@clisp.org>
24413
24414         Define missing EDQUOT on NonStop Kernel.
24415         * lib/errno.in.h (EDQUOT): Assign a value if missing.
24416         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
24417         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
24418         missing.
24419         * doc/posix-headers/errno.texi: Mention the NSK bug.
24420         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
24421         Reported by Joachim Schmitz <schmitz@hp.com>.
24422
24423 2010-10-02  Bruno Haible  <bruno@clisp.org>
24424
24425         Update doc for POSIX:2008.
24426         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
24427         Update URL of POSIX specification.
24428
24429 2010-10-02  Bruno Haible  <bruno@clisp.org>
24430
24431         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
24432         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
24433         from gnulib, not from Automake.
24434
24435 2010-10-02  Bruno Haible  <bruno@clisp.org>
24436
24437         New module 'system-posix'.
24438         * modules/system-posix: New file.
24439         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
24440         module is present.
24441         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
24442         GNULIB_SYSTEM_POSIX.
24443         * modules/stdlib (Depends-on): Remove sys_wait.
24444         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
24445         * doc/posix-functions/system.texi: Mention the new module.
24446         * doc/posix-headers/stdlib.texi: Likewise.
24447         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
24448         define test_sys_wait_macros to a no-op.
24449         Reported by Sam Steingold <sds@gnu.org>.
24450
24451 2010-09-30  Bruno Haible  <bruno@clisp.org>
24452
24453         More renaming from 'getdate' to 'get_date'.
24454         * doc/get_date.texi: Renamed from doc/getdate.texi.
24455         * modules/get_date (Files): Update.
24456         * MODULES.html.sh (Date and time <time.h>): Update.
24457         * DEPENDENCIES: Update.
24458         * gnulib-tool: Update comment.
24459         * m4/bison.m4 (gl_BISON): Likewise.
24460         * m4/get_date.m4 (gl_GET_DATE): Likewise.
24461
24462 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
24463
24464         bootstrap: support ACLOCAL_FLAGS during aclocal
24465         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
24466         can add additional -I dir for third-party .m4 files.
24467
24468 2010-09-30  Eric Blake  <eblake@redhat.com>
24469
24470         bootstrap: use glibtoolize on MacOS
24471         * build-aux/bootstrap (check_versions): Convert libtool into
24472         libtoolize.
24473         (tool search): Move libtool check earlier, and look for
24474         glibtoolize for MacOS.
24475         (gnulib_tool_options): Auto-add --libtool when appropriate.
24476         Reported by Justin Clift.
24477
24478         poll: fix typo that broke test on MacOS
24479         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
24480         Reported by Justin Clift.
24481
24482         getdate: rename to get_date
24483         Note: getdate.h is not renamed, to minimize client impact.
24484         * modules/getdate: Mark obsolete.  Move old contents...
24485         * modules/get_date: ...to new module name.
24486         * modules/getdate-tests: Move...
24487         * modules/get_date-tests: ...here.
24488         * m4/getdate.m4: Move...
24489         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
24490         * lib/getdate.y: Move...
24491         * lib/get_date.y: ...here.
24492         * tests/test-getdate.c: Move...
24493         * tests/test-get_date.c: ...here.
24494         * doc/posix-functions/getdate.texi (getdate): Update name.
24495         * NEWS: Mention the change.
24496
24497 2010-09-29  Bruno Haible  <bruno@clisp.org>
24498
24499         Separate the module 'waitpid' from the module 'sys_wait'.
24500         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
24501         present.
24502         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
24503         gl_MODULE_INDICATOR_FOR_TESTS.
24504         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
24505         * modules/sys_wait (Depends-on): Remove waitpid.
24506         (Makefile.am): Substitute GNULIB_WAITPID.
24507         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
24508         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
24509         signature only if the 'waitpid' module is present.
24510         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
24511         * NEWS: Mention the change.
24512         * modules/grantpt (Depends-on): Add waitpid.
24513         * modules/wait-process (Depends-on): Likewise.
24514
24515 2010-09-29  Bruno Haible  <bruno@clisp.org>
24516
24517         More tests for module 'sys_wait'.
24518         * modules/sys_wait-c++-tests: New file.
24519         * tests/test-sys_wait-c++.cc: New file.
24520         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
24521         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
24522
24523 2010-09-29  Bruno Haible  <bruno@clisp.org>
24524
24525         New module 'waitpid'.
24526         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
24527         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
24528         Don't include <process.h>.
24529         (waitpid): Declare only, using modern idiom.
24530         * m4/waitpid.m4: New file.
24531         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
24532         * modules/waitpid: New file.
24533         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
24534         (Makefile.am): Update.
24535         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
24536
24537 2010-09-28  Bruno Haible  <bruno@clisp.org>
24538
24539         poll: Assume ANSI C.
24540         * lib/poll.c (poll): Use an ANSI C declaration.
24541
24542 2010-09-28  Bruno Haible  <bruno@clisp.org>
24543
24544         poll-h: Create poll.h on all platforms.
24545         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
24546         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
24547         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
24548         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
24549         (gl_REPLACE_POLL_H): Don't set POLL_H.
24550         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
24551         * modules/poll-h (Depends-on): Add include_next.
24552         (Makefile.am): Create poll.h unconditionally. Substitute also
24553         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
24554
24555 2010-09-28  Bruno Haible  <bruno@clisp.org>
24556
24557         Tests for module 'poll-h'.
24558         * modules/poll-h-c++-tests: New file.
24559         * tests/test-poll-h-c++.cc: New file.
24560
24561         Tests for module 'poll-h'.
24562         * modules/poll-h-tests: New file.
24563         * tests/test-poll-h.c: New file.
24564
24565 2010-09-28  Bruno Haible  <bruno@clisp.org>
24566
24567         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
24568         * modules/poll-h (Depends-on): Add 'extensions'.
24569
24570 2010-09-28  Bruno Haible  <bruno@clisp.org>
24571
24572         New module 'poll-h'.
24573         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
24574         (poll): Use modern idiom.
24575         * modules/poll-h: New file.
24576         * modules/poll (Files): Remove lib/poll.in.h.
24577         (Depends-on): Add poll-h.
24578         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
24579         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
24580         * m4/poll_h.m4: New file.
24581         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
24582         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
24583         and invoke gl_REPLACE_POLL_H.
24584         * lib/poll.c: Use common idiom.
24585         * tests/test-poll.c: Likewise.
24586         * doc/posix-headers/poll.texi: Mention the poll-h module.
24587         Suggested by Eric Blake.
24588
24589 2010-09-26  Bruno Haible  <bruno@clisp.org>
24590
24591         sys_wait: Implement WSTOPSIG.
24592         * lib/sys_wait.in.h (WSTOPSIG): New macro.
24593         Reported by Simon Josefsson.
24594
24595 2010-09-26  Simon Josefsson  <simon@josefsson.org>
24596
24597         stdlib, sys_wait: Avoid compilation error on mingw.
24598         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
24599
24600 2010-09-26  Bruno Haible  <bruno@clisp.org>
24601
24602         stdlib tests: Avoid code duplication.
24603         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
24604         * modules/sys_wait-tests (Files): Likewise.
24605         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
24606         * tests/test-stdlib.c: Include test-sys_wait.h.
24607         (main): Invoke test_sys_wait_macros.
24608         * tests/test-sys_wait.c: Include test-sys_wait.h.
24609         (main): Invoke test_sys_wait_macros.
24610
24611 2010-09-25  Simon Josefsson  <simon@josefsson.org>
24612
24613         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
24614         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
24615         sure Windows sockets are working before calling getaddrinfo.
24616         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
24617         * doc/gnulib.texi (Windows sockets): Fix typo.
24618
24619 2010-09-25  Bruno Haible  <bruno@clisp.org>
24620
24621         Tests for module 'regex-quote'.
24622         * modules/regex-quote-tests: New file.
24623         * tests/test-regex-quote.c: New file.
24624
24625         New module 'regex-quote'.
24626         * lib/regex-quote.h: New file.
24627         * lib/regex-quote.c: New file.
24628         * modules/regex-quote: New file.
24629         Suggested by Reuben Thomas <rrt@sc3d.org>.
24630
24631 2010-09-24  Bruno Haible  <bruno@clisp.org>
24632
24633         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
24634         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
24635
24636 2010-09-23  Bruno Haible  <bruno@clisp.org>
24637
24638         setenv: Relax license.
24639         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
24640         Blake.
24641         Requested by Eric Blake.
24642
24643 2010-09-22  Bruno Haible  <bruno@clisp.org>
24644
24645         termios: Relax license.
24646         * modules/termios (License): Change to LGPLv2+.
24647         Requested by Eric Blake.
24648
24649 2010-09-22  Bruno Haible  <bruno@clisp.org>
24650
24651         threadlib: Allow the package to change the default to 'no'.
24652         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
24653         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
24654         Reported by Paul Eggert.
24655
24656 2010-09-22  Pádraig Brady  <P@draigbrady.com>
24657             Bruno Haible  <bruno@clisp.org>
24658
24659         Fix endless loop in mbmemcasecoll.
24660         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
24661         byte.
24662         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
24663
24664 2010-09-22  Bruno Haible  <bruno@clisp.org>
24665
24666         Tests for module 'memcoll'.
24667         * modules/memcoll-tests: New file.
24668         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
24669
24670         memcoll, xmemcoll: Clarify size vs. length.
24671         * modules/memcoll.c (memcoll0): Clarify specification.
24672         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
24673         passed to collate_error.
24674
24675 2010-09-22  Bruno Haible  <bruno@clisp.org>
24676
24677         Tests for module 'memcasecmp'.
24678         * modules/memcasecmp-tests: New file.
24679         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
24680
24681 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
24682
24683         * lib/pthread.in.h: Add split double-inclusion guard, and include
24684         system <pthread.h> if there is one.  Use @@-style as in other
24685         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
24686         pthread.h doesn't.
24687         (pthread_mutexattr_destroy, pthread_mutexattr_init):
24688         (pthread_mutexattr_settype, pthread_mutex_trylock):
24689         New static inline functions, if there's no system <pthread.h>.
24690         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
24691         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
24692         Approximate with mutexes if the system lacks spinlocks, as in
24693         MacOS.
24694         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
24695         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
24696         @@-style.  Check for spinlocks separately.
24697         (gl_PTHREAD_DEFAULTS): New macro.
24698         * modules/pthread: Redo to use a more typical style for in.h files.
24699
24700 2010-09-21  Eric Blake  <eblake@redhat.com>
24701
24702         net_if: enhance tests
24703         * tests/test-net_if.c (main): Move signature checks earlier.
24704         Print failures to stderr.
24705         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
24706         Document the bug that we do not yet fix.
24707
24708 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
24709
24710         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
24711         about gnulib, not GSS.
24712
24713 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
24714
24715         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
24716         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
24717         for Emacs.
24718         * build-aux/pmccabe2html: Make Makefile.am example code more
24719         cut-and-paste friendly.
24720
24721 2010-09-21  Simon Josefsson  <simon@josefsson.org>
24722
24723         * tests/test-net_if.c: New file.
24724         * modules/net_if-tests: New file.
24725
24726 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
24727
24728         pthread: add pthread_spin_destroy
24729         * lib/pthread.in.h (pthread_spin_destroy): New function.
24730
24731 2010-09-19  Bruno Haible  <bruno@clisp.org>
24732
24733         gnulib-tool: Fix --help output.
24734         * gnulib-tool (func_usage): Fix help message.
24735         Reported by Reuben Thomas <rrt@sc3d.org>.
24736
24737 2010-09-18  Jim Meyering  <meyering@redhat.com>
24738
24739         maint.mk: avoid unexpanded \n in two diagnostics
24740         * top/maint.mk (sc_prohibit_always_true_header_tests):
24741         Don't use a literal \n in a halt=... assignment.  It would not be
24742         expanded, and the two \n bytes would appear in the diagnostic output
24743         rather than the desired newline.  Use halt=$$(printf ... instead.
24744         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
24745
24746 2010-09-18  Bruno Haible  <bruno@clisp.org>
24747
24748         netinet_in: Doc tweak.
24749         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
24750         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
24751
24752 2010-09-18  Jim Meyering  <meyering@redhat.com>
24753
24754         init.sh: correct an outdated comment
24755         * tests/init.sh (create_exe_shims_):  s/function/alias/
24756
24757         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
24758         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
24759         a file named "*.exe" is removed between the glob expansion and the
24760         processing of that oddly named file.
24761
24762 2010-09-17  Eric Blake  <eblake@redhat.com>
24763
24764         mirbsd: add some more support
24765         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
24766         in BSD family.
24767         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
24768         devices as OpenBSD.
24769         * m4/host-os.m4 (mirbsd): Add MirBSD.
24770
24771         tests: fix unportable assumption on sys/wait.h
24772         * tests/test-sys_wait.c (main): Relax test.
24773         * tests/test-stdlib.c (main): Likewise.
24774
24775         init.sh: accomodate directory with no .exes
24776         * tests/init.sh: Accomodate directory containing only scripts.
24777
24778         tests: avoid compiler warning
24779         * tests/test-stdlib.c (main): Use the variable.
24780
24781         fdutimens, fdutimensat: update signature, again
24782         * lib/utimens.h (gl_futimens): Delete, and move signature...
24783         (fdutimens): ...here.
24784         (fdutimensat): Rearrange signature.
24785         (lutimensat): Rename variable for clarity.
24786         * lib/fdutimensat.c (fdutimensat): Update signature.
24787         * lib/utimens.c (fdutimens): Likewise.
24788         (gl_futimens): Delete.
24789         (utimens, lutimens): Update callers.
24790         * lib/futimens.c (futimens): Likewise.
24791         * tests/test-fdutimensat.c: Likewise.
24792         * tests/test-utimens.c: Likewise.
24793         * tests/test-futimens.h: Update comment.
24794         * NEWS: Mention this.
24795         Suggested by Paul Eggert.
24796
24797 2010-09-17  Bruno Haible  <bruno@clisp.org>
24798
24799         Take over the maintenance of some older macros from Autoconf.
24800         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
24801         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
24802         GNU Autoconf.
24803         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
24804         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
24805
24806 2010-09-17  Eric Blake  <eblake@redhat.com>
24807
24808         fdutimensat: drop atflag validation
24809         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
24810         with valid fd, to close a race scenario where futimens is
24811         unsupported and FILE was replaced by a symlink.
24812         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
24813         accordingly.
24814         Suggested by Paul Eggert.
24815
24816 2010-09-16  Bruno Haible  <bruno@clisp.org>
24817
24818         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
24819         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
24820
24821 2010-09-16  Bruno Haible  <bruno@clisp.org>
24822
24823         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
24824         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
24825         login_tty exists.
24826         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
24827
24828 2010-09-16  Bruno Haible  <bruno@clisp.org>
24829
24830         login_tty: Make the replacement code work on BSD systems.
24831         * lib/login_tty.c: Include <sys/ioctl.h>.
24832         (login_tty): Use ioctl TIOCSCTTY when available.
24833         * modules/login_tty (Depends-on): Add sys_ioctl.
24834         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
24835
24836 2010-09-16  Bruno Haible  <bruno@clisp.org>
24837
24838         login_tty: Stricter unit test.
24839         * modules/login_tty-tests (Depends-on): Add tcgetsid.
24840         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
24841         and tcgetsid() after login_tty.
24842         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
24843
24844 2010-09-16  Bruno Haible  <bruno@clisp.org>
24845
24846         New module 'tcgetsid'.
24847         * lib/tcgetsid.c: New file.
24848         * m4/tcgetsid.m4: New file.
24849         * modules/tcgetsid: New file.
24850         * modules/termios (Depends-on): Add c++defs, warn-on-use.
24851         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
24852         GNULIB_TCGETSID, HAVE_TCGETSID.
24853         * lib/termios.in.h: Include <sys/types.h>.
24854         (tcgetsid): New declaration.
24855         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
24856         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
24857         * doc/posix-functions/tcgetsid.texi: Mention the new module.
24858         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
24859
24860 2010-09-16  Bruno Haible  <bruno@clisp.org>
24861
24862         Tests for module 'termios'.
24863         * modules/termios-c++-tests: New file.
24864         * modules/termios-tests: New file.
24865         * tests/test-termios-c++.cc: New file.
24866         * tests/test-termios.c: New file.
24867
24868         New module 'termios'.
24869         * modules/termios: New file.
24870         * lib/termios.in.h: New file.
24871         * m4/termios_h.m4: New file.
24872         * doc/posix-headers/termios.texi: Mention the new module.
24873
24874 2010-09-16  Eric Blake  <eblake@redhat.com>
24875
24876         fdutimensat: add an atflag parameter
24877         * lib/fdutimensat.c (fdutimensat): Add new parameter.
24878         * lib/utimens.h (fdutimensat): Update prototype.
24879         * tests/test-fdutimensat.c: Adjust test to match.
24880         * NEWS: Document the change.
24881         Suggested by Paul Eggert.
24882
24883 2010-09-16  Bruno Haible  <bruno@clisp.org>
24884
24885         Fix typos in comments.
24886         * lib/striconveh.h: Fix typo in comment.
24887         * lib/login_tty.c (login_tty): Likewise.
24888
24889 2010-09-15  Bruno Haible  <bruno@clisp.org>
24890
24891         stdlib: clarify MirBSD WEXITSTATUS bug
24892         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
24893         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
24894
24895 2010-09-15  Eric Blake  <eblake@redhat.com>
24896
24897         stdlib: work around MirBSD WEXITSTATUS bug
24898         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
24899         * modules/stdlib (Depends-on): Add sys_wait.
24900         * tests/test-sys_wait.c (main): Enhance test.
24901         * tests/test-stdlib.c (main): Likewise.
24902         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
24903
24904         docs: mention MacOS issue with WEXITSTATUS(constant)
24905         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
24906         issue.
24907         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
24908
24909         strnlen: add tests
24910         * modules/strnlen-tests: New file.
24911         * tests/test-strnlen.c: Likewise.
24912
24913 2010-09-14  Bruno Haible  <bruno@clisp.org>
24914
24915         unistr/base: Avoid link errors when module 'libunistring' is also used.
24916         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
24917         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
24918         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
24919         Declare also when HAVE_LIBUNISTRING is set.
24920         Reported by Pádraig Brady <P@draigbrady.com>.
24921
24922 2010-09-14  Eric Blake  <eblake@redhat.com>
24923
24924         test-rawmemchr: make more robust
24925         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
24926         (Depends-on, configure.ac): Add needed prerequisites to use it.
24927         * modules/memchr-tests (Files, Depends-on, configure.ac):
24928         Likewise, to avoid implicit reliance on memchr module prereqs.
24929         * tests/test-memchr.c (main): Ensure proper masking.
24930         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
24931         reads.
24932
24933         memchr: detect glibc Alpha bug
24934         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
24935         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
24936         Alpha.
24937         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
24938         * tests/test-memchr.c (main): Enhance test.
24939         Reported by Nelson H. F. Beebe.
24940
24941 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
24942
24943         fts, getcwd, glob: audit for dirfd returning -1
24944         * lib/fts.c (opendir): Remove #define; no longer used.
24945         (opendirat): New arg PDIR_FD.  All callers changed.
24946         (fts_build, _opendir2): Use new opendirat to avoid the need for
24947         dirfd, or for checking whether dirfd returns a negative value.
24948         Don't use opendir; always use openat followed by fdopendir.
24949         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
24950         it.
24951         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
24952         returns -1 here.
24953         * modules/fts (Depends-on): Remove dirfd.
24954         * modules/getcwd (Depends-on): Likewise.
24955
24956 2010-09-13  Eric Blake  <eblake@redhat.com>
24957
24958         float: fix broken MirBSD header
24959         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
24960         * doc/posix-headers/float.texi (float.h): Document it.
24961
24962 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
24963
24964         fts: use O_NOFOLLOW to avoid race condition when opening a directory
24965         * lib/fts.c (opendirat): New arg extra_flags.
24966         (__opendir2): Use it to avoid following symlinks when opening
24967         a directory, if symlinks are not supposed to be followed.  See
24968         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
24969
24970         fdopendir: preserve argument fd before returning
24971         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
24972         (fdopendir_with_dup, fd_clone_opendir): New static functions.
24973         (fdopendir): Use them, arranging for FD to be open to the same
24974         directory that it was when it started.  (It might be temporarily
24975         closed while fdopendir is running, so this not thread- or
24976         signal-safe.)  Be careful to do the right thing even when file
24977         descriptors are scarce and dup fails with errno == EMFILE.  See
24978         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
24979
24980 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
24981
24982         regex: Pass the system regex if its only problem is 32-bit regoff_t.
24983         * NEWS: Document change.
24984         * m4/regex.m4: Disable test for regoff_t size.
24985
24986 2010-09-13  Jim Meyering  <meyering@redhat.com>
24987
24988         fts: don't operate on an invalid file descriptor after failed dup
24989         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
24990         negative file descriptor.
24991
24992 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
24993
24994         savedir: add streamsavedir, deprecate fdsavedir
24995         * NEWS: Mention deprecation of fdsavedir.
24996         * lib/savedir.c (streamsavedir): New extern function, whose name
24997         ends in "savedir" to be consistent with the others.  This differs
24998         from savedirstream in that it doesn't close its argument.  The
24999         next version of GNU tar will use this instead of fdsavedir, to
25000         avoid some race conditions and conserve file descriptors.
25001         (savedirstream): Reimplement as a wrapper around streamsavedir.
25002         (fdsavedir): Add a comment deprecating this function.  As far as
25003         I know, only GNU tar used it, and GNU tar doesn't need it any more.
25004         * lib/savedir.h (streamsavedir): New decl.
25005         (fdsavedir): Add a comment deprecating this.
25006
25007 2010-09-10  Bruno Haible  <bruno@clisp.org>
25008
25009         langinfo: Fix last commit.
25010         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
25011         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
25012         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25013
25014 2010-09-10  Bruno Haible  <bruno@clisp.org>
25015
25016         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
25017         * lib/progreloc.c (O_EXEC): Define fallback.
25018
25019 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
25020
25021         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
25022         * NEWS: Document recent changes to fcntl-h.
25023         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
25024         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
25025         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
25026         Similarly for O_SEARCH; this last was already true, but not documented.
25027         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
25028         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
25029         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
25030         Likewise.
25031         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
25032         is zero, not whether it is defined.
25033         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
25034         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
25035         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
25036
25037 2010-09-10  Bruno Haible  <bruno@clisp.org>
25038
25039         langinfo, nl_langinfo: Fix for IRIX 5.3.
25040         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
25041         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
25042         HAVE_LANGINFO_YESEXPR.
25043         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
25044         HAVE_LANGINFO_YESEXPR.
25045         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
25046         HAVE_LANGINFO_T_FMT_AMPM is 0.
25047         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
25048         HAVE_LANGINFO_YESEXPR is 0.
25049         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
25050         NOEXPR.
25051         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
25052         * doc/posix-functions/nl_langinfo.texi: Likewise.
25053         Reported by Eric Blake.
25054
25055 2010-09-10  Bruno Haible  <bruno@clisp.org>
25056
25057         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
25058         * doc/glibc-functions/login_tty.texi: Mention the include file problem
25059         on FreeBSD 8.0 and OpenBSD 4.6.
25060         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
25061         * m4/pty_h.m4 (gl_PTY_H): Likewise.
25062         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
25063         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
25064         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
25065         ac_includes_default.
25066         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
25067
25068 2010-09-09  Eric Blake  <eblake@redhat.com>
25069
25070         strsignal: work around NetBSD bug
25071         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
25072         * lib/string.in.h (includes): Likewise.
25073         * doc/posix-functions/strsignal.texi (strsignal): Document the
25074         bug.
25075         Reported by Nelson H. F. Beebe.
25076
25077         gnulib-tool: work with NetBSD /bin/sh
25078         * gnulib-tool (func_cache_var, func_cache_lookup_module)
25079         (func_get_description, func_get_comment, func_get_status)
25080         (func_get_notice, func_get_applicability, func_get_filelist)
25081         (func_get_dependencies, func_get_autoconf_early_snippet)
25082         (func_get_autoconf_snippet, func_get_automake_snippet)
25083         (func_get_include_directive, func_get_link_directive)
25084         (func_get_license, func_get_maintainer, func_import): Avoid
25085         shell syntax errors from parsing syntax extensions.
25086
25087 2010-09-09  Bruno Haible  <bruno@clisp.org>
25088
25089         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
25090         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
25091         a reliable way to determine whether the 'alias' command works.
25092
25093 2010-09-08  Jim Meyering  <meyering@redhat.com>
25094
25095         init.sh: penalize a set-x-impaired shell; don't disqualify it
25096         * tests/init.sh: Too many shells corrupt application stderr when
25097         you set -x, so we can't afford to disqualify them, since at least
25098         on Irix-6.5, that would disqualify all bourne shells.
25099         Instead, use a two-pass approach.
25100         On the first pass, try to find a shell that meets the stricter
25101         condition that set -x does not corrupt stderr.
25102         If no shell meets the stricter condition, retest each candidate
25103         shell, but without that extra condition.  Finally, when
25104         VERBOSE=yes is requested and set -x might cause trouble, simply
25105         issue a warning and refrain from enabling debug output.
25106
25107 2010-09-08  Eric Blake  <eblake@redhat.com>
25108
25109         unsetenv: fix OpenBSD bug
25110         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
25111         * doc/posix-functions/unsetenv.texi (unsetenv): Update
25112         documentation.
25113         Reported by Jim Meyering.
25114
25115         strtod: work around IRIX 6.5 bug
25116         * lib/strtod.c (strtod): Reparse number on shorter string if
25117         exponent parse was invalid.
25118         * tests/test-strtod.c (main): Add check for "0x1p 2".
25119         Reported by Tom G. Christensen.
25120
25121         getopt: optimize previous patch
25122         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
25123         empty variable.  Speed up awk script.
25124         Reported by Paolo Bonzini.
25125
25126 2010-09-08  Jim Meyering  <meyering@redhat.com>
25127
25128         test.sh: disqualify shells for which set -x corrupts stderr
25129         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
25130         and OpenBSD 4.7.  They make it so with "set -x", environment settings
25131         appear in stderr output.  For example, this command:
25132             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
25133         prints "P=1" on those two systems:
25134
25135 2010-09-08  Bruno Haible  <bruno@clisp.org>
25136
25137         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
25138         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
25139         commands, because some shells ignore redirections when there is an
25140         error in the command lookup.
25141         Reported by Eric Blake.
25142
25143 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
25144
25145         * lib/regex.h: Fix a mention of `regex_compile' (should be
25146         `re_compile_pattern').
25147         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
25148         (re_set_registers): Correct name of parameter in comment.
25149
25150         * doc/regex.texi: Add documentation for missing syntax flags.
25151         Remove commented-out documentation of defunct syntax option
25152         RE_NO_EMPTY_ALTS.
25153         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
25154         Add documentation of re_set_registers.
25155         Document trick to re-use a pattern buffer by setting fastmap manually.
25156         Update documentation of struct re_pattern_buffer per public members.
25157         Uncomment documentation of equivalence class operators and
25158         collating symbol operators, since they are now implemented,
25159         Explain leftmost-longest matching in relation to alternatives.
25160         Tidy documentation of substring matching.
25161         Remove POSIX documentation, which is done better in
25162         glibc, and refer the reader there. Keep BSD API documentation, as
25163         that is not readily available elsewhere.
25164
25165 2010-09-07  Eric Blake  <eblake@redhat.com>
25166
25167         getopt: handle POSIXLY_CORRECT set but not exported
25168         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
25169         export state of POSIXLY_CORRECT, due to bash set -o posix.
25170         Reported by Dustin J. Mitchell.
25171
25172 2010-09-05  Bruno Haible  <bruno@clisp.org>
25173
25174         gnulib-tool: Highlight the changed options.
25175         * gnulib-tool (func_usage): Display the --import, --add-import,
25176         --remove-import explanations in bold font.
25177
25178 2010-09-06  Karl Berry  <karl@gnu.org>
25179
25180         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
25181
25182 2010-09-05  Bruno Haible  <bruno@clisp.org>
25183
25184         uniwidth/width: Update comment.
25185         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
25186         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
25187
25188 2010-09-05  Bruno Haible  <bruno@clisp.org>
25189
25190         isinf, isnan: Relax license.
25191         * modules/isinf (License): Change from GPL to LGPL, with consent from
25192         Ben Pfaff.
25193         * modules/isnan (License): Likewise.
25194         Requested by Ludovic Courtès.
25195
25196 2010-09-04  Bruno Haible  <bruno@clisp.org>
25197
25198         gnulib-tool: Help migration from --import to --add-import or --update.
25199         * gnulib-tool: Emit a verbose error message when --import is used
25200         without any module name.
25201
25202 2010-09-04  Bruno Haible  <bruno@clisp.org>
25203
25204         Update doc about gnulib-tool.
25205         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
25206         'gnulib-tool --update' in more detail.
25207         Reported by Eric Blake.
25208
25209 2010-09-04  Bruno Haible  <bruno@clisp.org>
25210
25211         gnulib-tool: Change --import. New options --add/remove-import.
25212         * gnulib-tool: New options --add-import, --remove-import.
25213         (func_usage): Document them.
25214         (have_associative): Define always.
25215         (func_import): In import mode, don't merge the specified settings with
25216         the cached settings. Implement remove-import mode.
25217         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
25218         Explain when to use them versus --import.
25219         (Simple update): Use --add-import instead of --import.
25220         * NEWS: Mention the change.
25221
25222 2010-09-04  Bruno Haible  <bruno@clisp.org>
25223
25224         * doc/gnulib-tool.texi (Initial import): Update paragraph about
25225         separate gnulib.mk.
25226
25227 2010-09-04  Bruno Haible  <bruno@clisp.org>
25228
25229         gnulib-tool: Don't talk about CVS any more.
25230         * gnulib-tool (func_usage, func_import): Write "version control"
25231         instead of CVS.
25232
25233 2010-09-04  Jim Meyering  <meyering@redhat.com>
25234
25235         maint.mk: avoid obscure sc_copyright_check failure in coreutils
25236         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
25237         false positives (whose names may be ill-chosen) when searching
25238         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
25239         would cause a false-positive.
25240
25241         avoid coreutils "make distcheck" failure
25242         Coreutils tests with an absolute build directory name that contains
25243         a space.  Not quoting this directory name caused a failure.
25244         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
25245         * tests/test-vc-list-files-cvs.sh: Likewise.
25246
25247 2010-09-04  Bruno Haible  <bruno@clisp.org>
25248
25249         gnulib-tool: Avoid error when run in a package without Makefile.am.
25250         * gnulib-tool: When collecting the m4dirs in a package that does not
25251         have a Makefile.am, eliminate those directories that contain no
25252         gnulib-cache.m4. Fix expression that counts these directories.
25253
25254 2010-09-04  Bruno Haible  <bruno@clisp.org>
25255
25256         update-copyright test: Improve output when perl is missing or too old.
25257         * tests/test-update-copyright.sh: Move test of Perl version down after
25258         the test whether Perl exists. Provide an explanation relating Perl's
25259         error message to Automake's SKIP: message.
25260
25261 2010-09-04  Bruno Haible  <bruno@clisp.org>
25262
25263         Don't augment PATH in TESTS_ENVIRONMENT.
25264         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
25265         set abs_aux_dir instead of augmenting PATH.
25266         * modules/vc-list-files-tests (Makefile.am): Likewise.
25267         * tests/test-update-copyright.sh: Augment PATH here.
25268         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
25269         path_prepend_.
25270         * tests/test-vc-list-files-git.sh: Likewise.
25271
25272 2010-09-04  Jim Meyering  <meyering@redhat.com>
25273
25274         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
25275         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
25276
25277 2010-09-04  Bruno Haible  <bruno@clisp.org>
25278
25279         strdup: Fix compilation error in C++ mode.
25280         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
25281         the macro.
25282
25283 2010-09-04  Bruno Haible  <bruno@clisp.org>
25284
25285         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
25286         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
25287         macro into a function.
25288         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25289
25290 2010-09-04  Bruno Haible  <bruno@clisp.org>
25291
25292         Set PATH_SEPARATOR the same way autoconf does.
25293         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
25294         the value of PATH_SEPARATOR the same way autoconf-generated configure
25295         scripts do.
25296         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
25297         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
25298
25299 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
25300
25301         Set PATH_SEPARATOR the same way autoconf does.
25302         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
25303         the same way autoconf-generated configure scripts do.
25304         * posix-modules: Likewise.
25305
25306 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
25307
25308         hash: fix safe_hasher const typo
25309         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
25310         const; otherwise, there is a type error later.
25311
25312 2010-09-02  Jim Meyering  <meyering@redhat.com>
25313
25314         test-update-copyright.sh: require perl 5.8.0
25315         * tests/test-update-copyright.sh: Require 5.8.0,
25316         which Tom G. Christensen has confirmed is adequate,
25317         while 5.6.1 is not.
25318
25319 2010-09-02  Eric Blake  <eblake@redhat.com>
25320
25321         tests: init.sh improvements for re-exec'ing with zsh
25322         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
25323         -vx through shell re-exec.
25324         Reported by Tom G. Christensen.
25325
25326         wctype: fix typo in previous commit
25327         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
25328         Reported by Ludovic Courtès.
25329
25330 2010-09-02  Jim Meyering  <meyering@redhat.com>
25331
25332         test-update-copyright.sh: skip test if Perl is too old
25333         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
25334         Reported by Tom G. Christensen.
25335
25336 2010-09-02  Bruno Haible  <bruno@clisp.org>
25337
25338         wctype: Avoid compilation error on IRIX 6.5.30.
25339         * lib/wctype.in.h (iswblank): Declare with a replacement if
25340         REPLACE_ISWBLANK is set.
25341         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
25342         declared. Set REPLACE_ISWBLANK.
25343         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
25344         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
25345         * doc/posix-headers/wctype.texi: Likewise.
25346         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25347
25348 2010-09-01  Bruno Haible  <bruno@clisp.org>
25349
25350         New module 'socketlib'.
25351         * modules/socketlib: New file.
25352         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
25353         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
25354         * modules/sockets (Depends-on): Add socketlib.
25355         Suggested by Sam Steingold <sds@gnu.org>.
25356
25357 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
25358
25359         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
25360
25361         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
25362         when one needs search access to a directory but not read access.
25363         On systems where it is available, it works in some cases where
25364         O_RDONLY does not, namely on directories that are searchable but
25365         not readable, and which need only to be searchable.  If O_SEARCH
25366         is not available, fall back to the traditional method of using
25367         O_RDONLY.
25368
25369         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
25370         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
25371         when opening a directory that needs only to be searchable.
25372         * lib/chdir-safer.c (chdir_no_follow): Likewise.
25373         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
25374         * lib/openat-proc.c (openat_proc_name): Likewise.
25375         * lib/openat.c (openat_needs_fchdir): Likewise.
25376         * lib/save-cwd.c (save_cwd): Likewise.
25377         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
25378
25379 2010-08-28  Bruno Haible  <bruno@clisp.org>
25380
25381         New module 'host-cpu-c-abi'.
25382         * modules/host-cpu-c-abi: New file.
25383         * m4/host-cpu-c-abi.m4: New file, based on part of
25384         clisp/src/m4/general.m4.
25385         Requested by Sam Steingold <sds@gnu.org>.
25386
25387 2010-08-31  Eric Blake  <eblake@redhat.com>
25388         and Jim Meyering  <meyering@redhat.com>
25389
25390         hash: factor, and guard against misbehaving hasher function
25391         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
25392         of table->hasher's return value.  Also protect against a hash value
25393         so large that adding it to table->bucket results in a NULL pointer.
25394         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
25395         Use it in place of open-coded check-and-abort.
25396
25397 2010-08-30  Bruno Haible  <bruno@clisp.org>
25398
25399         hash: silence spurious clang warning
25400         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
25401         Reported by Eric Blake.
25402
25403 2010-08-30  Eric Blake  <eblake@redhat.com>
25404
25405         strstr, memmem, strcasestr: avoid leaked shell message
25406         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
25407         FreeBSD.
25408         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25409         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
25410
25411         tests: silence clang warning
25412         * tests/test-malloca.c (do_allocation): Avoid dead store.
25413
25414 2010-08-29  Bruno Haible  <bruno@clisp.org>
25415
25416         gettext: Fix recent mistake.
25417         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
25418
25419 2010-08-29  Bruno Haible  <bruno@clisp.org>
25420
25421         selinux-h: Offer a --without-selinux option.
25422         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
25423         --without-selinux was specified, skip all tests and define
25424         HAVE_SELINUX_SELINUX_H to 0.
25425         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
25426         set LIB_SELINUX to empty.
25427         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
25428         gl_LIBSELINUX. If --without-selinux was specified, replace
25429         selinux/context.h.
25430         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
25431
25432 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25433             Bruno Haible  <bruno@clisp.org>
25434
25435         Make the module 'realloc-gnu' work again on AIX and OSF/1.
25436         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
25437         of HAVE_REALLOC.
25438         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
25439         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
25440         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
25441         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
25442
25443 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25444             Bruno Haible  <bruno@clisp.org>
25445
25446         Make the module 'calloc-gnu' work again on AIX and OSF/1.
25447         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
25448         HAVE_CALLOC.
25449         * lib/xmalloc.c: Update accordingly.
25450         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
25451         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
25452         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
25453
25454 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25455             Bruno Haible  <bruno@clisp.org>
25456
25457         Make the module 'malloc-gnu' work again on AIX and OSF/1.
25458         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
25459         HAVE_MALLOC.
25460         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
25461         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
25462         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
25463
25464 2010-08-29  Bruno Haible  <bruno@clisp.org>
25465
25466         Update modules list.
25467         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
25468         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
25469         (String handling <string.h>): Add astrxfrm.
25470         (File system functions): Add readlinkat.
25471
25472 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25473
25474         Tests for module 'realloc-gnu'.
25475         * modules/realloc-gnu-tests: New file.
25476         * tests/test-realloc-gnu.c: New file.
25477
25478         Tests for module 'calloc-gnu'.
25479         * modules/calloc-gnu-tests: New file.
25480         * tests/test-calloc-gnu.c: New file.
25481
25482         Tests for module 'malloc-gnu'.
25483         * modules/malloc-gnu-tests: New file.
25484         * tests/test-malloc-gnu.c: New file.
25485
25486 2010-08-28  Bruno Haible  <bruno@clisp.org>
25487
25488         Rename module 'realloc' -> 'realloc-gnu'.
25489         * modules/realloc-gnu: New file, copied from modules/realloc.
25490         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
25491         obsolete.
25492         * modules/mgetgroups (Depends-on): Update.
25493         * doc/posix-functions/realloc.texi: Update.
25494         * NEWS: Mention the change.
25495
25496         Rename module 'calloc' -> 'calloc-gnu'.
25497         * modules/calloc-gnu: New file, copied from modules/calloc.
25498         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
25499         obsolete.
25500         * doc/posix-functions/calloc.texi: Update.
25501         * NEWS: Mention the change.
25502
25503         Rename module 'malloc' -> 'malloc-gnu'.
25504         * modules/malloc-gnu: New file, copied from modules/malloc.
25505         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
25506         obsolete.
25507         * modules/argp (Depends-on): Update.
25508         * modules/regex (Depends-on): Update.
25509         * doc/posix-functions/malloc.texi: Update.
25510         * NEWS: Mention the change.
25511
25512 2010-08-28  Eric Blake  <eblake@redhat.com>
25513
25514         pread, pwrite: add missing dependency
25515         * modules/pread (Depends-on): Add extensions.
25516         * modules/pwrite (Depends-on): Likewise.
25517
25518 2010-08-28  Bruno Haible  <bruno@clisp.org>
25519
25520         unistr/u*-strchr: Fix tests dependencies.
25521         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
25522         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
25523         Reported by Ian Beckwith <ianb@erislabs.net>.
25524
25525 2010-08-28  Bruno Haible  <bruno@clisp.org>
25526
25527         read-file: Don't occupy too much unused memory.
25528         * lib/read-file.c (fread_file): Shrink the buffer at the end.
25529
25530 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
25531             Eric Blake  <eblake@redhat.com>
25532             Bruno Haible  <bruno@clisp.org>
25533
25534         read-file: Avoid memory reallocations with regular files.
25535         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
25536         (fread_file): With regular files, use the remaining length as the
25537         initial buffer size.  Check against overflow.
25538         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
25539         sys_stat.
25540
25541 2010-08-28  Bruno Haible  <bruno@clisp.org>
25542
25543         ftello: Relax license.
25544         * modules/ftello (License): Relax to LGPLv2+.
25545         Reported by Eric Blake.
25546
25547 2010-08-28  Bruno Haible  <bruno@clisp.org>
25548
25549         Avoid relocwrapper link errors due to gnulib replacement functions.
25550         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
25551         function.
25552         Reported by Ben Pfaff <blp@cs.stanford.edu>.
25553
25554 2010-08-28  Bruno Haible  <bruno@clisp.org>
25555
25556         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
25557         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
25558         defined.
25559         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
25560         Suggested by Eric Blake.
25561
25562 2010-08-28  Bruno Haible  <bruno@clisp.org>
25563
25564         sys_socket, netdb: Ensure socklen_t gets defined.
25565         * modules/sys_socket (Depends-on): Add socklen.
25566         * modules/netdb (Depends-on): Likewise.
25567         * modules/getaddrinfo (Depends-on): Remove socklen.
25568         * modules/getsockopt (Depends-on): Likewise.
25569         * modules/setsockopt (Depends-on): Likewise.
25570         * tests/test-sys_socket.c: Check that socklen_t is defined.
25571         * tests/test-netdb.c: Likewise.
25572         * m4/socklen.m4: Update comments.
25573         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25574
25575 2010-08-27  Eric Blake  <eblake@redhat.com>
25576
25577         login_tty: add missing dependency
25578         * modules/login_tty (Depends-on): Add pty.
25579
25580 2010-08-26  Eric Blake  <eblake@redhat.com>
25581
25582         lib-symbol-versions: fix m4 quoting
25583         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
25584         format for AC_LINK_IFELSE.
25585
25586         glob: fix compile test
25587         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
25588
25589         btowc: fix missing file
25590         * modules/btowc (Files): Also ship locale-fr.m4.
25591
25592         lseek: fix link test
25593         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
25594         AC_LINK_IFELSE.
25595
25596         include_next: silence autoconf 2.68 warning
25597         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
25598         AC_COMPILE_IFELSE as special.
25599         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
25600         autoconf < 2.68.
25601
25602         acl: fix compilation test
25603         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
25604         AC_COMPILE_IFELSE.
25605
25606 2010-08-26  Bruno Haible  <bruno@clisp.org>
25607
25608         Modernize AC_TRY_RUN invocations.
25609         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
25610         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
25611         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
25612         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
25613         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
25614         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
25615         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
25616         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
25617         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
25618         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
25619         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
25620         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
25621         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
25622         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
25623         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
25624         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
25625         gl_MBRLEN_NUL_RETVAL): Likewise.
25626         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
25627         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
25628         Likewise.
25629         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
25630         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
25631         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
25632         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
25633         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
25634         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
25635         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
25636         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
25637         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
25638         Likewise.
25639         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
25640         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
25641         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
25642         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
25643         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
25644         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
25645         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
25646         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
25647         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
25648         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
25649
25650 2010-08-26  Bruno Haible  <bruno@clisp.org>
25651
25652         Modernize AC_TRY_LINK invocations.
25653         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
25654         AC_TRY_LINK.
25655         * m4/argp.m4 (gl_ARGP): Likewise.
25656         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
25657         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
25658         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
25659         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
25660         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
25661         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
25662         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
25663         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
25664         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
25665         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
25666         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
25667         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
25668         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
25669         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
25670         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
25671         * m4/hostent.m4 (gl_HOSTENT): Likewise.
25672         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
25673         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
25674         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
25675         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
25676         Likewise.
25677         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
25678         Likewise.
25679         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
25680         Likewise.
25681         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
25682         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
25683         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
25684         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
25685         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
25686         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
25687         * m4/servent.m4 (gl_SERVENT): Likewise.
25688         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
25689         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
25690         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
25691         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
25692         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
25693         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
25694         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
25695         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
25696         * modules/tsearch-tests (configure.ac): Likewise.
25697
25698 2010-08-26  Bruno Haible  <bruno@clisp.org>
25699
25700         Modernize AC_TRY_COMPILE invocations.
25701         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
25702         AC_TRY_COMPILE.
25703         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
25704         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
25705         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
25706         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
25707         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
25708         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
25709         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
25710         * m4/lock.m4 (gl_LOCK): Likewise.
25711         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
25712         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
25713         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
25714         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
25715         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
25716         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
25717         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
25718         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
25719         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
25720         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
25721         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
25722         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
25723         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
25724         extraneous semicolon.
25725
25726 2010-08-26  Jim Meyering  <meyering@redhat.com>
25727
25728         stat-time: relax license LGPL
25729         * modules/stat-time (License): Change from GPL to LGPL,
25730         with consent from all contributors, for use in libguile.
25731         Requested by Ludovic Courtès.
25732
25733 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
25734
25735         poll: return immediately on POLLHUP.
25736         * lib/poll.c (poll): Always set timeout before wait_timeout is
25737         computed.
25738
25739 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25740
25741         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
25742         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
25743         rmdir ("dir/.//"), unlinkat.
25744
25745 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
25746
25747         stdbool: avoid spurious failure with modern xlc
25748         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
25749
25750 2010-08-24  Bruno Haible  <bruno@clisp.org>
25751
25752         getloadavg: simplify code
25753         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
25754         gl_have_func. Update comments.
25755
25756 2010-08-24  Eric Blake  <eblake@redhat.com>
25757
25758         getloadavg: don't define SVR4 on cygwin
25759         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
25760         only define SVR4 when -lkvm is required.
25761         Reported by Yaakov Selkowitz.
25762
25763 2010-08-24  Bruno Haible  <bruno@clisp.org>
25764
25765         priv-set: fix comment
25766         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
25767
25768 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
25769
25770         priv-set: fix comments
25771         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
25772         to match code, as suggested by David Bartley in:
25773         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
25774
25775 2010-08-23  Eric Blake  <eblake@redhat.com>
25776
25777         stdbool: avoid rejecting clang
25778         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
25779         * tests/test-stdbool.c: Enable more tests if using the system
25780         <stdbool.h> instead of the gnulib replacement.
25781         (main): Move xlc bug test to a runtime test for all compilers.
25782         Reported by Anders Kaseorg.
25783
25784         argz: fix shell quoting issue
25785         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
25786         Reported by Charles Wilson.
25787
25788 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
25789             Erik Faye-Lund <kusmabite@gmail.com>
25790
25791         poll, select: handle ERROR_BROKEN_PIPE.
25792         * lib/poll.c (win32_compute_revents): Return POLLHUP when
25793         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
25794         * lib/select.c (win32_compute_revents): Do not mark a pipe
25795         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
25796
25797 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
25798
25799         fts: allow compilation with C++
25800         * lib/fts_.h: Specify extern "C" linkage with C++.
25801
25802 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25803
25804         Fix gnulib-tool sed script de-commentation for AIX sed.
25805         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
25806         sed.
25807
25808 2010-08-17  Eric Blake  <eblake@redhat.com>
25809
25810         test-stddef: test for (some) offsetof bugs
25811         * tests/test-stddef.c: Enhance test to ensure correct type of
25812         offsetof.
25813         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
25814         that we are not fixing at this time.
25815
25816 2010-08-15  Bruno Haible  <bruno@clisp.org>
25817
25818         stpncpy: Allow stpncpy to be defined as a macro.
25819         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
25820         if it's already correctly declared.
25821         * lib/string.in.h (stpncpy): Undefine before redefining.
25822         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
25823
25824 2010-08-14  Bruno Haible  <bruno@clisp.org>
25825
25826         Rename module 'memxfrm' to 'amemxfrm'.
25827         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
25828         (amemxfrm): Renamed from memxfrm.
25829         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
25830         (amemxfrm): Renamed from memxfrm.
25831         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
25832         * NEWS: Mention the change.
25833         * MODULES.html.sh (String handling <string.h>): Update.
25834         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
25835         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
25836         * lib/unicase/u16-casexfrm.c: Likewise.
25837         * lib/unicase/u32-casexfrm.c: Likewise.
25838         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
25839         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
25840         * lib/uninorm/u16-normxfrm.c: Likewise.
25841         * lib/uninorm/u32-normxfrm.c: Likewise.
25842         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
25843         memxfrm.
25844         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
25845         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
25846         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
25847         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
25848         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
25849         Suggested by Paul Eggert.
25850
25851 2010-08-14  Bruno Haible  <bruno@clisp.org>
25852
25853         Tests for module 'astrxfrm'.
25854         * modules/astrxfrm-tests: New file.
25855         * tests/test-astrxfrm.c: New file.
25856
25857         New module 'astrxfrm'.
25858         * lib/astrxfrm.h: New file.
25859         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
25860         * modules/astrxfrm: New file.
25861
25862 2010-08-14  Reuben Thomas <rrt@sc3d.org>
25863
25864         regex: Tweak doc.
25865         * doc/regex.texi (Overview): Don't mention regex.c.
25866         (GNU Regular Expression Compiling): Likewise.
25867         (Match-end-of-line Operator): Mention 'not_eol'.
25868
25869 2010-08-14  Brian Gough  <bjg@gnu.org>
25870             Bruno Haible  <bruno@clisp.org>
25871
25872         git-merge-changelog: add doc relating to use with bzr and hg.
25873         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
25874
25875 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
25876
25877         pthread: fix pthread.h creation for srcdir != builddir
25878         * modules/pthread (Makefile.am): Fix the rule to work also in a
25879         non-srcdir build.
25880
25881 2010-08-13  Karl Berry  <karl@gnu.org>
25882
25883         * doc/regex.texi (Predefined Syntaxes): @smallexample.
25884         * doc/posix-*/*: force line break before @url of POSIX
25885         specifications.
25886         Suggested by Werner Lemberg.
25887
25888 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
25889
25890         strtod: fix const diagnostic
25891         * lib/strtod.c (strtod): Don't assign const char * to char *,
25892         as this elicits a warning from GCC when warnings are enabled.
25893
25894 2010-08-10  Pádraig Brady <P@draigbrady.com>
25895         and Eric Blake  <eblake@redhat.com>
25896
25897         copy-acl: ignore ENOTSUP on HP-UX
25898         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
25899         so that it is available for HP-UX.
25900         * lib/copy-acl.c (qcopy_acl): Use it.
25901         Reported by Patrick M. Callahan.
25902
25903 2010-08-10  Eric Blake  <eblake@redhat.com>
25904
25905         open, chown: relax license
25906         * modules/open (License): Change to LGPLv2+, with consent by all
25907         authors, for use in augeas.
25908         * modules/chown (License): Likewise.
25909         * modules/lchown (Likewise): Likewise.
25910         Requested by Adam Stokes.
25911
25912 2010-08-09  Karl Berry  <karl@gnu.org>
25913
25914         * build-aux/ar-lib: new file, import from Automake.
25915         * config/srclist.txt: autocheck for updates.
25916
25917 2010-08-09  Eric Blake  <eblake@redhat.com>
25918
25919         readlinkat: adjust client modules
25920         * modules/areadlinkat (Depends-on): Use readlinkat, not
25921         symlinkat.
25922         * modules/areadlinkat-with-size (Depends-on): Likewise.
25923
25924         mknod: be more vocal about danger of running tests as root
25925         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
25926         root, since that is just asking for problems.
25927         Suggested by Bruno Haible, based on a report by Rainer Tammer.
25928
25929         readlinkat: split into its own module
25930         * modules/symlinkat: Split readlinkat...
25931         * modules/readlinkat: ...into separate module.
25932         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
25933         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
25934         * lib/symlinkat.c (readlinkat): Move...
25935         * lib/readlinkat.c: ...into new file.
25936         * modules/symlinkat-tests: Split readlinkat test...
25937         * modules/readlinkat-tests: ...into separate module.
25938         * tests/test-symlinkat.c: Split...
25939         * tests/test-readlinkat.c: ...into new file.
25940         * NEWS: Document the split.
25941         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
25942         * lib/unistd.in.h (readlinkat): Likewise.
25943         Suggested by Bruno Haible.
25944
25945 2010-08-08  Bruno Haible  <bruno@clisp.org>
25946
25947         memxfrm: Speed up.
25948         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
25949         that usually only one call to strxfrm is necessary for each string
25950         part.
25951         Reported by Paul Eggert <eggert@cs.ucla.edu>.
25952
25953 2010-08-07  Karl Berry  <karl@gnu.org>
25954
25955         * doc/posix-headers/limits.texi,
25956         * doc/posix-functions/malloc.texi,
25957         * doc/posix-functions/strsignal.texi: missing @item.
25958         * doc/ld-version-script.texi: spurious leading i.
25959         * doc/regex.texi (Interval Operators): no commas inside @var.
25960
25961 2010-08-01  Bruno Haible  <bruno@clisp.org>
25962
25963         Integrate the regex documentation.
25964         * doc/gnulib.texi: Define 'cn' index.
25965         (Regular expressions): New a chapter that includes regex.texi and
25966         regexprops-generic.texi.
25967         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
25968         syntax.
25969
25970         Whitespace cleanup.
25971         * doc/regex.texi: Remove trailing spaces.
25972
25973         Add regex documentation.
25974         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
25975         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
25976         Written by Kathy A. Hargreaves and Karl Berry.
25977
25978 2010-08-01  Bruno Haible  <bruno@clisp.org>
25979
25980         link: Update documentation.
25981         * doc/posix-functions/link.texi: Update regarding Solaris.
25982
25983 2010-07-31  Bruno Haible  <bruno@clisp.org>
25984
25985         Update modules list.
25986         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
25987         (String handling <string.h>): Add memcmp2, memxfrm.
25988         (Container data structures): Add xlist, xsublist, xoset.
25989         (Core language properties): Add alignof, unused-parameter.
25990         (Process control, Numeric conversion functions <stdlib.h>): Renamed
25991         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
25992         (Unibyte characters <ctype.h>): New section.
25993         (String handling <string.h>): New section.
25994         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
25995         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
25996         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
25997         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
25998         tan, tanh, tanl, y0, y1, yn.
25999         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
26000         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
26001         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
26002         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
26003         unlockpt, vdprintf, vdprintf-posix.
26004         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
26005         (File system functions): Add concat-filename, sys_file, sys_ioctl,
26006         xconcat-filename.
26007         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
26008         getdtablesize, pipe2, pipe2-safer.
26009         (Security): New section.
26010         (Networking functions): Add accept4.
26011         (Signal handling): Add sigpipe.
26012         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
26013         mbmemcasecoll.
26014         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
26015         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
26016         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
26017         pipe-filter-ii.
26018         (Misc): Add argp-version-etc, login_tty, parse-duration.
26019
26020 2010-07-31  Bruno Haible  <bruno@clisp.org>
26021
26022         Improve doc in MODULES.html.
26023         * modules/linkat (Description): Add the word "function".
26024         * modules/mkfifo (Description): Likewise.
26025         * modules/mknod (Description): Likewise.
26026         * modules/remove (Description): Likewise.
26027         * modules/renameat (Description): Likewise.
26028         * modules/stat (Description): Likewise.
26029         * modules/symlink (Description): Likewise.
26030         * modules/unlink (Description): Likewise.
26031
26032 2010-07-31  Bruno Haible  <bruno@clisp.org>
26033
26034         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
26035         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
26036         option --enable/disable-c++ instead of --enable/disable-cxx.
26037         * NEWS: Mention the change.
26038
26039 2010-07-31  Bruno Haible  <bruno@clisp.org>
26040
26041         readlink, areadlink: Relax test a bit.
26042         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
26043         alternative to ENOTDIR.
26044         * tests/test-areadlink.h (test_areadlink): Likewise.
26045         Reported by Rainer Tammer.
26046
26047 2010-07-31  Bruno Haible  <bruno@clisp.org>
26048
26049         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
26050         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
26051         character, perform the search using U_STRCHR.
26052         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
26053         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
26054         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
26055         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
26056         Suggested by Paolo Bonzini.
26057
26058 2010-07-31  Bruno Haible  <bruno@clisp.org>
26059
26060         unistr/u*-strstr: Fix dependencies.
26061         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
26062         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
26063         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
26064
26065 2010-07-31  Bruno Haible  <bruno@clisp.org>
26066
26067         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
26068         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
26069         the beginning of the loop.
26070         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
26071         cases in 'switch' statement.
26072
26073         unistr/u8-strchr: Fix several bugs.
26074         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
26075         the string. When not found, return NULL, not a pointer near the end.
26076
26077         More tests for unistr/u8-strchr.
26078         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
26079         that the function does not read past the first occurrence of the byte
26080         being searched.
26081         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
26082         * tests/unistr/test-u16-strchr.c (main): New function.
26083         * tests/unistr/test-u32-strchr.c (main): New function.
26084
26085 2010-07-31  Bruno Haible  <bruno@clisp.org>
26086
26087         posix-modules: Ignore backup files of documentation files.
26088         * posix-modules: grep only through files named *.texi.
26089
26090 2010-07-31  Bruno Haible  <bruno@clisp.org>
26091
26092         symlinkat: Fix documentation.
26093         * doc/posix-functions/readlinkat.texi: Fix module name.
26094
26095 2010-07-31  Bruno Haible  <bruno@clisp.org>
26096
26097         fchownat: Replace also when chown has the trailing slash bug.
26098         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
26099         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
26100         introduced on 2010-04-10.
26101         Reported by Rainer Tammer.
26102
26103 2010-07-31  Bruno Haible  <bruno@clisp.org>
26104
26105         linkat: Work around AIX 7.1 bug.
26106         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
26107         whether linkat handles trailing slash correctly. If not, replace linkat
26108         and define LINKAT_TRAILING_SLASH_BUG.
26109         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
26110         check whether (fd1,file1) points to a directory if file1 or file2 ends
26111         in a slash. Code taken from lib/link.c.
26112         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
26113         Reported by Rainer Tammer.
26114
26115 2010-07-31  Bruno Haible  <bruno@clisp.org>
26116
26117         Correctly determine whether pow is available in libc on AIX 7 with xlc.
26118         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
26119         This disables an xlc optimization that was causing wrong test results.
26120         Reported by Rainer Tammer.
26121
26122 2010-07-31  Bruno Haible  <bruno@clisp.org>
26123
26124         iconv: Work around AIX 6.1..7.1 bug.
26125         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
26126         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
26127         cross-compiling, guess no on all versions of AIX.
26128         Reported by Rainer Tammer.
26129
26130 2010-07-31  Bruno Haible  <bruno@clisp.org>
26131
26132         readlink: Relax test a bit.
26133         * tests/test-readlink.h (test_readlink): Allow different errno value
26134         when readlink is called with a file name that ends in / and refers to
26135         a file.
26136         Suggested by Eric Blake.
26137         Reported by Rainer Tammer.
26138
26139 2010-07-31  Bruno Haible  <bruno@clisp.org>
26140
26141         copysign: Does not require -lm on glibc systems.
26142         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
26143         gl_COMMON_DOUBLE_MATHFUNC.
26144         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
26145
26146 2010-07-31  Bruno Haible  <bruno@clisp.org>
26147
26148         duplocale: Work around AIX 7.1 bug.
26149         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
26150         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
26151         * lib/duplocale.c (rpl_duplocale): Update comment.
26152         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
26153         Reported by Rainer Tammer.
26154
26155 2010-07-30  Bruno Haible  <bruno@clisp.org>
26156
26157         dirfd: Avoid link error on AIX 7.1.
26158         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
26159         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
26160         exist, set REPLACE_DIRFD.
26161         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
26162         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
26163         * doc/posix-functions/dirfd.texi: Update.
26164         Reported by Rainer Tammer.
26165
26166 2010-07-30  Eric Blake  <eblake@redhat.com>
26167
26168         strtod: next round of AIX fixes
26169         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
26170         exponent.
26171         * tests/test-strtod.c (main): Enhance tests.
26172         * doc/posix-functions/strtod.texi (strtod): Document next bug.
26173         Reported by Rainer Tammer.
26174
26175         futimens: fix configure check
26176         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
26177         Reported by Bruno Haible.
26178
26179 2010-07-30  Bruno Haible  <bruno@clisp.org>
26180
26181         getline: Update regarding AIX.
26182         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
26183         Reported by Rainer Tammer.
26184
26185 2010-07-30  Bruno Haible  <bruno@clisp.org>
26186
26187         wcwidth: Drop replacement on AIX 7.
26188         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
26189         AIX 7.
26190         Reported by Rainer Tammer.
26191
26192 2010-07-30  Bruno Haible  <bruno@clisp.org>
26193
26194         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
26195         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
26196         a 'char *'.
26197         Reported by Rainer Tammer.
26198
26199 2010-07-30  Bruno Haible  <bruno@clisp.org>
26200
26201         unlink: Update regarding AIX.
26202         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
26203         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
26204         Reported by Rainer Tammer.
26205
26206 2010-07-30  Bruno Haible  <bruno@clisp.org>
26207
26208         symlink: Update regarding AIX.
26209         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
26210         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
26211         Reported by Rainer Tammer.
26212
26213 2010-07-30  Bruno Haible  <bruno@clisp.org>
26214
26215         strndup: Update regarding AIX.
26216         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
26217         AIX 7.
26218         Reported by Rainer Tammer.
26219
26220 2010-07-30  Bruno Haible  <bruno@clisp.org>
26221
26222         stat: Update regarding AIX.
26223         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
26224         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
26225         Reported by Rainer Tammer.
26226
26227 2010-07-30  Bruno Haible  <bruno@clisp.org>
26228
26229         truncl: Fix autoconf test.
26230         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
26231         whether truncl works.
26232         Reported by Rainer Tammer.
26233
26234 2010-07-30  Bruno Haible  <bruno@clisp.org>
26235
26236         round: Update regarding AIX.
26237         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
26238         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
26239         Reported by Rainer Tammer.
26240
26241 2010-07-30  Bruno Haible  <bruno@clisp.org>
26242
26243         rename: Update regarding AIX.
26244         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
26245         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
26246         Reported by Rainer Tammer.
26247
26248 2010-07-30  Bruno Haible  <bruno@clisp.org>
26249
26250         printf.m4: Update regarding AIX.
26251         * m4/printf.m4: Update comments regarding AIX.
26252         Reported by Rainer Tammer.
26253
26254 2010-07-30  Bruno Haible  <bruno@clisp.org>
26255
26256         iconv: Update regarding AIX.
26257         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
26258         AIX 7.
26259         Reported by Rainer Tammer.
26260
26261 2010-07-30  Bruno Haible  <bruno@clisp.org>
26262
26263         getopt: Update regarding AIX.
26264         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
26265         no on AIX.
26266         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
26267         Reported by Rainer Tammer.
26268
26269 2010-07-30  Bruno Haible  <bruno@clisp.org>
26270
26271         ldexpl; Update regarding AIX.
26272         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
26273         on AIX 7.
26274         Reported by Rainer Tammer.
26275
26276 2010-07-30  Bruno Haible  <bruno@clisp.org>
26277
26278         frexpl: Update regarding AIX.
26279         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
26280         on AIX 7.
26281         Reported by Rainer Tammer.
26282
26283 2010-07-30  Bruno Haible  <bruno@clisp.org>
26284
26285         open, fopen: Update regarding AIX.
26286         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
26287         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
26288         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
26289         * doc/posix-functions/fopen.texi: Likewise.
26290         Reported by Rainer Tammer.
26291
26292 2010-07-30  Bruno Haible  <bruno@clisp.org>
26293
26294         chown: Update doc regarding AIX.
26295         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
26296         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
26297         Reported by Rainer Tammer.
26298
26299 2010-07-30  Eric Blake  <eblake@redhat.com>
26300
26301         strtod: fix bug in replacement function on AIX
26302         * lib/strtod.c (strtod): Special case broken "0x" parse in
26303         underlying strtod.
26304         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
26305         * doc/posix-functions/strtod.texi (strtod): Likewise.
26306         Reported by Rainer Tammer.
26307
26308 2010-07-30  Bruno Haible  <bruno@clisp.org>
26309
26310         mbrlen: Fix cross-compilation guess for AIX.
26311         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
26312         guess. Leftover from 2008-12-22.
26313
26314 2010-07-30  Bruno Haible  <bruno@clisp.org>
26315
26316         mbrtowc: Fix cross-compilation guess for AIX.
26317         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
26318         guess. Leftover from 2008-12-21.
26319
26320 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
26321
26322         init.sh: work around trap limitation of some shells
26323         * tests/init.sh (setup_): Move exit trap outside of shell function.
26324
26325 2010-07-29  Eric Blake  <eblake@redhat.com>
26326
26327         strtod: aid debugging
26328         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
26329         understanding why strtod is rejected.
26330
26331 2010-07-28  Bruno Haible  <bruno@clisp.org>
26332
26333         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
26334         * lib/unistr/u8-chr.c: Include <string.h>.
26335         * tests/unistr/test-u8-chr.c: Likewise.
26336         * tests/unistr/test-u16-chr.c: Likewise.
26337         * tests/unistr/test-u32-chr.c: Likewise.
26338         * tests/unistr/test-u8-strchr.c: Likewise.
26339         * tests/unistr/test-u16-strchr.c: Likewise.
26340         * tests/unistr/test-u32-strchr.c: Likewise.
26341         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
26342         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
26343         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
26344         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
26345
26346 2010-07-28  Bruno Haible  <bruno@clisp.org>
26347
26348         Use spaces for indentation, not tabs.
26349         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
26350
26351 2010-07-27  Bruno Haible  <bruno@clisp.org>
26352
26353         mbspcasecmp: Fix function specification.
26354         * lib/string.in.h (mbspcasecmp): Fix specification comment.
26355         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
26356         Reported by Eric Blake <eblake@redhat.com>.
26357
26358 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
26359
26360         timespec: use cast and not conditional, as truncation isn't possible
26361         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
26362         instead of a conditional.  Comment about the situation in more detail.
26363         This undoes most of the 2009-10-29 patch.
26364
26365 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
26366
26367         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
26368         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
26369         * lib/unistr/u8-strchr.c: Likewise.
26370         * modules/unistr/u8-chr: Depend on memchr.
26371
26372         unistr/u*-strchr: add tests
26373         * modules/unistr/u8-strchr-tests: New file.
26374         * modules/unistr/u16-strchr-tests: New file.
26375         * modules/unistr/u32-strchr-tests: New file.
26376         * tests/unistr/test-strchr.h: New file.
26377         * tests/unistr/test-u8-strchr.c: New file.
26378         * tests/unistr/test-u16-strchr.c: New file.
26379         * tests/unistr/test-u32-strchr.c: New file.
26380
26381         unistr/u*-chr: test multibyte sequences more
26382         * tests/unistr/test-chr.h: Do complete testing of the characters in the
26383         test vector.
26384         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
26385         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
26386         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
26387
26388         unistr/u*-chr: test multibyte sequences
26389         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
26390
26391         unistr/u*-chr: prepare for multibyte tests
26392         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
26393         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
26394         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
26395         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
26396         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
26397         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
26398
26399 2010-07-18  Bruno Haible  <bruno@clisp.org>
26400
26401         unistr/u8-strchr: Optimize non-ASCII argument case.
26402         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
26403         because the first byte often matches anyway.
26404         Reported by Pádraig Brady <P@draigbrady.com>.
26405
26406 2010-07-15  Karl Berry  <karl@gnu.org>
26407
26408         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
26409
26410 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
26411
26412         getcwd: on Solaris, work better if ancestors are inaccessible
26413         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
26414         buffer and size, try again with a large buffer.  This works better
26415         on Solaris, since its getcwd succeeds even if the path to the root
26416         is inaccessible, and this is helpful in common cases such as .zfs
26417         hidden directories.  Problem reported by J Chapman Flack in
26418         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
26419         Use system getcwd if it's declared, not merely if it's partly
26420         working; use the partly-working test only to avoid needless effort
26421         if the system getcwd fails.
26422         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
26423         comment that was already obsolete and is now even more obsolete.
26424         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
26425         now might call strdup.
26426
26427 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
26428
26429         pthread: Add enough so that coreutils/src/sort.c compiles.
26430         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
26431         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
26432         gnulib. Include <sched.h> and <time.h>, as per POSIX.
26433         Include <sys/types.h>, in case it defines pthread_t.
26434         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
26435         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
26436         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
26437         (pthread_rwlockattr_t, pthread_spinlock_t):
26438         New typedefs, if HAVE_PTHREAD_T is not defined.
26439         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
26440         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
26441         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
26442         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
26443         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
26444         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
26445         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
26446         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
26447         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
26448         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
26449         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
26450         New macros.
26451         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
26452         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
26453         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
26454         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
26455         (pthread_spin_unlock): New dummy functions.
26456         (pthread_create): Return EAGAIN; don't set errno.
26457         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
26458         require AC_C_INLINE.
26459         * modules/pthread (Depends-on): Add sched, time.
26460         (pthread.h): Use AM_V_GEN.
26461
26462 2010-07-13  Bruno Haible  <bruno@clisp.org>
26463
26464         striconveh: Don't malloc memory if the result buffer is sufficient.
26465         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
26466         buffer if its size is sufficient.
26467         Reported by Ludovic Courtès <ludo@gnu.org>.
26468
26469 2010-07-13  Bruno Haible  <bruno@clisp.org>
26470
26471         strtod: Add safety check.
26472         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
26473
26474 2010-07-12  Bruno Haible  <bruno@clisp.org>
26475
26476         Unify tests that set gl_cv_func_ldexpl_no_libm.
26477         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
26478         gl_FUNC_LDEXPL.
26479         (gl_FUNC_LDEXPL): Invoke it.
26480         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
26481
26482 2010-07-12  Bruno Haible  <bruno@clisp.org>
26483
26484         Unify tests that set gl_cv_func_ldexp_no_libm.
26485         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
26486         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
26487         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
26488         (configure.ac): Simply invoke gl_FUNC_LDEXP.
26489         * modules/strtod (Files): Add m4/ldexp.m4.
26490
26491 2010-07-12  Bruno Haible  <bruno@clisp.org>
26492
26493         Unify tests that set gl_cv_func_frexpl_no_libm.
26494         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
26495         gl_FUNC_FREXPL_NO_LIBM.
26496         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
26497         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
26498
26499 2010-07-12  Bruno Haible  <bruno@clisp.org>
26500
26501         Unify tests that set gl_cv_func_frexp_no_libm.
26502         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
26503         gl_FUNC_FREXP_NO_LIBM.
26504         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
26505         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
26506
26507 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
26508
26509         memcoll: clarify sizes versus lengths, document better, and tweak perf
26510         * lib/memcoll.c (strcoll_loop, memcoll0):
26511         Improve quality of descriptive comments.  Name variables
26512         consistently as to whether they are lengths (which do not include
26513         terminating null) versus sizes (which do).
26514         * lib/xmemcoll.c (xmemcoll0): Likewise.
26515         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
26516         returned when s1size == 0; this is easier to compile and saves
26517         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
26518
26519 2010-07-12  Bruno Haible  <bruno@clisp.org>
26520
26521         Tests for module '_Exit'.
26522         * modules/_Exit-tests: New file.
26523         * tests/test-_Exit.sh: New file.
26524         * tests/test-_Exit.c: New file.
26525
26526         New module '_Exit'.
26527         * lib/stdlib.in.h (__attribute__): New macro.
26528         (_Exit): New declaration.
26529         * lib/_Exit.c: New file.
26530         * m4/_Exit.m4: New file.
26531         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
26532         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
26533         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
26534         * modules/_Exit: New file.
26535         * tests/test-stdlib-c++.cc (_Exit): Check signature.
26536         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
26537
26538 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
26539
26540         strtod: make it more-accurate typically, and don't require libm
26541         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
26542         Include limits.h.  Don't include string.h.
26543         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
26544         (locale_isspace): New function, so that no casts are needed to
26545         check whether *s is a space.
26546         (ldexp): Provide an unused dummy if not available.
26547         (scale_radix_exp, parse_number, underlying_strtod): New functions.
26548         (strtod): Use them.  This implementation prefers to use the
26549         underlying strtod if available, falling back on our own code
26550         only to fix known bugs.  This is more likely to produce an
26551         accurate result.  Also, it avoids the use of libm functions.
26552         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
26553         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
26554         was absent, but it caused a test failure with coreutils.
26555         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
26556         with libm.
26557         * modules/strtod (Makefile.am, Link): libm is no longer needed.
26558         * modules/strtod-tests (Makefile.am): Likewise.
26559
26560 2010-07-11  Pádraig Brady  <P@draigBrady.com>
26561             Bruno Haible  <bruno@clisp.org>
26562
26563         unistr/u8-strchr: Optimize ASCII argument case.
26564         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
26565
26566 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
26567
26568         (x)memcoll: minor tweaks
26569         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
26570         is after the type that it qualifies.
26571         (memcoll0): Likewise.
26572         * lib/memcoll.h (memcoll0): Likewise.
26573         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
26574         * lib/xmemcoll.h (xmemcoll0): Likewise.
26575         * lib/memcoll.c (memcoll0): Correct the comment.  This function
26576         differs from memcoll in that the NUL byte is part of the argument.
26577         Omit the abort-checks, as performance is a real issue here.  Plus,
26578         the checks were wrong anyway (an off-by-one error).  Omit local
26579         variable 'diff', as it's a bit clearer that way.
26580         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
26581         no longer needed.
26582
26583 2010-07-08  Chen Guo <chenguo4@yahoo.com>
26584
26585         (x)memcoll: speedup when input is known to be NUL delimited
26586         * lib/memcoll.c: Include stdlib.
26587         (memcoll0): New function.
26588         (strcoll_loop): New function, refactored for use in both memcoll
26589         and memcoll0.
26590         * lib/memcoll.h (memcoll0): Add prototype.
26591         * lib/xmemcoll.c (xmemcoll0): New function.
26592         (collate_error): New function, refactored for use in both xmemcoll
26593         and xmemcoll0.
26594         * lib/xmemcoll.h (xmemcoll0): Add prototype.
26595         * m4/memcoll.m4: add inline invocation.
26596
26597 2010-07-06  Pádraig Brady  <P@draigBrady.com>
26598
26599         * build-aux/bootstrap: Remove any local translations
26600         from the translation project synchronization directory,
26601         so that local only translations are not distributed.
26602
26603 2010-07-04  Bruno Haible  <bruno@clisp.org>
26604
26605         fsusage: Clarify which code applies to which platforms.
26606         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
26607         platform.
26608         * lib/fsusage.c (get_fs_usage): Likewise.
26609
26610 2010-07-04  Bruno Haible  <bruno@clisp.org>
26611
26612         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
26613         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
26614         Reported by Martin Lambers <marlam@marlam.de>.
26615
26616 2010-07-04  Jim Meyering  <meyering@redhat.com>
26617
26618         hash: once again explicitly disallow insertion of NULL
26619         * lib/hash.c (hash_insert0): Reinstate just-removed test:
26620         inserting a NULL pointer cannot work with these functions.
26621         Add a comment with details.
26622         This reverts part of the 2010-07-01 commit, 5bef1a35
26623         "hash: extend module to deal with non-pointer keys".
26624
26625 2010-07-01  Bruno Haible  <bruno@clisp.org>
26626
26627         stdbool: Update doc.
26628         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
26629         Info from Christian Weisgerber <naddy@mips.inka.de>.
26630
26631 2010-07-01  Jim Meyering  <meyering@redhat.com>
26632
26633         hash: extend module to deal with non-pointer keys
26634         * lib/hash.c (hash_insert0): New interface, much like hash_insert
26635         but that allows insertion of non-pointer entries.
26636         Do not disallow an ENTRY value of NULL.
26637         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
26638         * lib/hash.h (hash_insert0): Declare.
26639
26640 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
26641
26642         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
26643         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
26644         not present (i.e. with autoconf 2.59 and when using gettextize, not
26645         gnulib), require AC_GNU_SOURCE instead.
26646
26647 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
26648
26649         idpriv-drop: Fix tests.
26650         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
26651         not to the test-idpriv-droptemp program.
26652
26653 2010-06-29  Bruno Haible  <bruno@clisp.org>
26654
26655         string: Fix syntax error with g++ 2.96.
26656         * lib/string.in.h (__pure__): Remove definition.
26657         (_GL_ATTRIBUTE_PURE): New macro.
26658         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
26659         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
26660         Reported by Christian Weisgerber <naddy@mips.inka.de>.
26661
26662 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
26663
26664         unitypes: Fix bug introduced on 2010-05-18.
26665         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
26666
26667 2010-06-22  Eric Blake  <eblake@redhat.com>
26668
26669         memmem: slight optimization
26670         * lib/str-two-way.h (critical_factorization): Update comments.
26671         Reduce work during factorization phase.
26672         Reported by Carlos Bueno <carlos@bueno.org>.
26673
26674 2010-06-21  Bruno Haible  <bruno@clisp.org>
26675
26676         Fix HAVE_CALLOC_POSIX misnomer.
26677         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
26678         !HAVE_CALLOC_POSIX.
26679         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
26680         HAVE_CALLOC_POSIX.
26681         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
26682         instead of HAVE_CALLOC_POSIX.
26683         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
26684         HAVE_CALLOC_POSIX.
26685
26686         Use modern idiom for calloc() replacement.
26687         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
26688         AC_FUNC_CALLOC.
26689         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
26690         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
26691         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
26692         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
26693         (gl_REPLACE_CALLOC): New macro.
26694
26695 2010-06-21  Bruno Haible  <bruno@clisp.org>
26696
26697         Fix HAVE_REALLOC_POSIX misnomer.
26698         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
26699         !HAVE_REALLOC_POSIX.
26700         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
26701         HAVE_REALLOC_POSIX.
26702         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
26703         instead of HAVE_REALLOC_POSIX.
26704         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
26705         HAVE_REALLOC_POSIX.
26706
26707         Use modern idiom for realloc() replacement.
26708         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
26709         AC_FUNC_REALLOC.
26710         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
26711         Autoconf's AC_FUNC_REALLOC.
26712         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
26713         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
26714         (gl_REPLACE_REALLOC): New macro.
26715         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
26716
26717 2010-06-21  Bruno Haible  <bruno@clisp.org>
26718
26719         Fix HAVE_MALLOC_POSIX misnomer.
26720         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
26721         !HAVE_MALLOC_POSIX.
26722         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
26723         HAVE_MALLOC_POSIX.
26724         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
26725         instead of HAVE_MALLOC_POSIX.
26726         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
26727         HAVE_MALLOC_POSIX.
26728
26729         Use modern idiom for malloc() replacement.
26730         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
26731         AC_FUNC_MALLOC.
26732         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
26733         Autoconf's AC_FUNC_MALLOC.
26734         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
26735         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
26736         (gl_REPLACE_MALLOC): New macro.
26737         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
26738
26739 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
26740
26741         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
26742         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
26743         This macro takes 3 arguments, not 4.
26744
26745 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
26746
26747         ipv6: fix detection under mingw
26748         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
26749         in6_addr.
26750
26751 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
26752
26753         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
26754         that strtod() works when cross-compiling to a glibc version known
26755         to work.
26756
26757 2010-06-15  Bruno Haible  <bruno@clisp.org>
26758
26759         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
26760
26761 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
26762
26763         select: Correct timeout.
26764         * lib/select.c (rpl_select): Compute wait_timeout correctly.
26765
26766 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
26767
26768         git-version-gen: init shell var to avoid env var influence
26769         * build-aux/git-version-gen (v): Init shell var to empty.
26770
26771 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
26772
26773         priv-set: Don't assume that priv.h exists merely because getppriv does.
26774         See Jan Andersen's bug report about AIX 5L in
26775         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
26776         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
26777         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
26778         * lib/priv-set.h: Likewise.
26779         * tests/test-priv-set.c: Likewise.
26780
26781 2010-06-13  Bruno Haible  <bruno@clisp.org>
26782
26783         relocatable: Make it easier to test whether to install wrappers.
26784         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
26785         RELOCATABLE_VIA_WRAPPER.
26786
26787 2010-06-13  Bruno Haible  <bruno@clisp.org>
26788
26789         gnulib-tool: Display specified modules and dependencies differently.
26790         * gnulib-tool (func_show_module_list): New function.
26791         (func_import, func_create_testdir): Invoke it.
26792         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
26793
26794 2010-06-13  Bruno Haible  <bruno@clisp.org>
26795
26796         gnulib-tool: Align code of func_import and func_create_testdir.
26797         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
26798         specified_modules.
26799
26800 2010-06-12  Jim Meyering  <meyering@redhat.com>
26801
26802         test-inttostr: avoid spurious failure on Solaris 9
26803         * tests/test-inttostr.c (main): Skip the test when snprintf fails
26804         to accept "%ju".  Reported by Bruno Haible.
26805
26806 2010-06-11  Jim Meyering  <meyering@redhat.com>
26807
26808         test-sys_socket: mark variables as used more readably
26809         * tests/test-sys_socket.c (main): Mark otherwise unused variables
26810         as "used" explicitly via (void) statement casts.  This is more
26811         readable than using them in an artificial return expression.
26812         Suggestion from Bruno Haible.
26813
26814 2010-06-11  Bruno Haible  <bruno@clisp.org>
26815
26816         Avoid some more warnings from "gcc -Wwrite-strings".
26817         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
26818         to 'const char *'.
26819         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
26820         * tests/test-c-strcasestr.c (main): Likewise.
26821         * tests/test-mbscasestr1.c (main): Likewise.
26822         * tests/test-mbscasestr2.c (main): Likewise.
26823         * tests/test-memmem.c (main): Likewise.
26824         * tests/test-strstr.c (main): Likewise.
26825         * tests/test-strcasestr.c (main): Likewise.
26826
26827 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26828
26829         init.sh: change framework_failure_ to fail with status 99, not 1
26830         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
26831         automake's parallel-tests rule that this is an unexpected failure,
26832         even if the test is listed in XFAIL_TESTS.
26833
26834 2010-06-11  Jim Meyering  <meyering@redhat.com>
26835
26836         test-inttostr: avoid warnings about 4-6KB literal strings
26837         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
26838         Include "macros.h", for its definition of ASSERT.
26839         (CK): s/assert/ASSERT/
26840         * modules/inttostr-tests (Files): Add macros.h.
26841
26842         init.sh: don't use $ME_ or skip_ before they are defined
26843         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
26844         their first uses.  Also hoist their companions: warn_, fail_,
26845         framework_failure_, $stderr_fileno.  Prompted by a patch from
26846         Stefano Lattarini.
26847
26848         test-sys_socket: avoid set-but-not-used warnings from gcc
26849         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
26850         avoid warning about set-but-not-used variables.
26851
26852         test-xvasprintf: avoid 'const' discard warnings
26853         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
26854         "const" when assigning from literal strings.
26855         (test_xasprintf): Add "void" in function argument list to placate
26856         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
26857
26858         tests: avoid compilation warnings in argmatch and exclude tests...
26859         in packages that define ARGMATCH_DIE_DECL, like coreutils.
26860         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
26861         Since it always exits, declare with the "noreturn" attribute.
26862         * tests/test-argmatch.c: Likewise.
26863
26864         tests: avoid 'const' discard warnings in mbsstr tests
26865         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
26866         * tests/test-mbsstr2.c (main): Likewise.
26867
26868         test-verify: avoid warning from gcc's -Wmissing-declarations
26869         * tests/test-verify.c (function): Declare to be static.
26870
26871         test-inttostr.c: include <string.h> for use of strcmp
26872         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
26873
26874         test-linkat: avoid failed assertion on "other" architectures
26875         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
26876         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
26877         sparc: https://bugs.launchpad.net/bugs/591968
26878
26879 2010-06-11  Jim Meyering  <meyering@redhat.com>
26880
26881         printf.m4: avoid autoconf's "Expanded Before Required" warning
26882         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
26883         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
26884         autoconf warning.
26885
26886 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
26887
26888         Replacement header templates are now named with ".in", not "_".
26889         * doc/gnulib-intro.texi: Correct.
26890
26891 2010-06-10  Jim Meyering  <meyering@redhat.com>
26892
26893         inttostr-tests: depend on snprintf, not snprintf-posix
26894         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
26895         snprintf-posix, to avoid this aclocal failure:
26896           missing file gnulib-tests/vasnprintf.c
26897           configure.ac:45: error: expected source file, required through \
26898           AC_LIBSOURCES, not found
26899
26900 2010-06-10  Jim Meyering  <meyering@redhat.com>
26901
26902         inttostr: add a new function, inttostr, and tests
26903         The namesake function was not available.  The existence of the
26904         template file, inttostr.c makes its addition nontrivial.
26905         * lib/anytostr.c: Rename from inttostr.c.
26906         (anytostr): Rename from inttostr.
26907         * lib/inttostr.c: New file.
26908         * modules/inttostr (Files): Add anytostr.c.
26909         (Makefile.am): Set lib_SOURCES instead of ...
26910         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
26911         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
26912         * lib/offtostr.c: Likewise.
26913         * lib/uinttostr.c: Likewise.
26914         * lib/umaxtostr.c: Likewise.
26915         * modules/inttostr-tests: New file.
26916         * tests/test-inttostr.c: New file.  Test these functions.
26917
26918 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
26919             Bruno Haible  <bruno@clisp.org>
26920
26921         Add "Extending Gnulib" chapter to manual.
26922         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
26923         chapter.
26924         (Extending Gnulib): New chapter.
26925         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
26926         chapter.
26927
26928 2010-06-09  Bruno Haible  <bruno@clisp.org>
26929
26930         Avoid relocwrapper link errors due to gnulib replacement functions.
26931         * lib/areadlink.c: Use the system's malloc, realloc functions.
26932         (areadlink): Set errno to ENOMEM explicitly.
26933         * modules/areadlink (Depends-on): Remove malloc-posix.
26934         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26935
26936 2010-06-09  Bruno Haible  <bruno@clisp.org>
26937
26938         Avoid relocwrapper link errors due to gnulib replacement functions.
26939         * lib/canonicalize-lgpl.c: Use the system's malloc function.
26940         * lib/malloca.c: Likewise.
26941         * lib/relocatable.c: Likewise.
26942         * lib/progreloc.c: Use the system's malloc, sprintf functions.
26943         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
26944         * lib/setenv.c: Use the system's malloc, realloc functions.
26945         * lib/strerror.c: Use the system's sprintf function.
26946         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26947
26948 2010-06-04  Bruno Haible  <bruno@clisp.org>
26949
26950         Prefer documented low-level autoconf macro names.
26951         * m4/lib-link.m4: Use m4_translit instead of translit.
26952         * m4/environ.m4: Likewise.
26953         * m4/mathfunc.m4: Likewise.
26954         * m4/onceonly.m4: Likewise.
26955         * m4/stdint.m4: Likewise.
26956         Suggested by Eric Blake.
26957
26958 2010-06-04  Martin Lambers  <marlam@marlam.de>
26959             Bruno Haible  <bruno@clisp.org>
26960
26961         havelib: Allow library names with '+' characters.
26962         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
26963         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
26964
26965 2010-06-09  Bruno Haible  <bruno@clisp.org>
26966
26967         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
26968         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
26969         realloc failed.
26970
26971 2010-06-08  Peter Simons  <simons@cryp.to>
26972
26973         maint.mk: make the news-check rule more configurable
26974         * top/maint.mk (news-check-lines-spec): New variable.
26975         (news-check): Use "sed -n 1,10p" in place of "head".
26976
26977 2010-06-07  Jim Meyering  <meyering@redhat.com>
26978
26979         do-release-commit-and-tag: fix typo in --help
26980         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
26981
26982         regex: avoid new dead-code warning with gcc-4.6.0
26983         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
26984         if-block containing a while-loop.  It's been unused for at least
26985         5 years.
26986
26987 2010-06-05  Bruno Haible  <bruno@clisp.org>
26988
26989         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
26990         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
26991
26992 2010-06-04  Bruno Haible  <bruno@clisp.org>
26993
26994         Update to GNU gettext 0.18.1.
26995         * modules/gettext (configure.ac): Require gettext infrastructure from
26996         version 0.18.1.
26997
26998 2010-06-03  Bruno Haible  <bruno@clisp.org>
26999
27000         Don't use AC_LIBOBJ with file names in subdirectories.
27001         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
27002         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
27003         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
27004         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
27005         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
27006         gl_LIBUNISTRING_LIBSOURCE.
27007         (Makefile.am): Augment lib_SOURCES here, conditionally.
27008         * NEWS: Drop requirement for Automake option 'subdir-objects'.
27009
27010 2010-06-03  Bruno Haible  <bruno@clisp.org>
27011
27012         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
27013         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
27014         expansion does not end with a newline.
27015         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
27016         unnecessary newline.
27017
27018 2010-06-03  Bruno Haible  <bruno@clisp.org>
27019
27020         Reduce dependencies.
27021         * tests/test-quotearg.h: New file, extracted from
27022         tests/test-quotearg.c.
27023         * tests/test-quotearg-simple.c: New file, extracted from
27024         tests/test-quotearg.c.
27025         * tests/test-quotearg.c: Don't include <ctype.h>.
27026         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
27027         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
27028         use_quote_double_quotes, use_quotearg_colon): Moved to
27029         tests/test-quotearg.h.
27030         (results_g, flag_results, custom_quotes, custom_results): Moved
27031         to tests/test-quotearg-simple.c.
27032         (main): Moved the part that does not depend on gettext to
27033         tests/test-quotearg-simple.c. Return 77 if the test cannot be
27034         performed.
27035         * modules/quotearg-simple: New file.
27036         * modules/quotearg-simple-tests: New file.
27037         * modules/quotearg (Depends-on): Add quotearg-simple.
27038         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
27039         (Files): Add tests/test-quotearg.h.
27040         Reported by Paolo Bonzini.
27041
27042 2010-06-03  Bruno Haible  <bruno@clisp.org>
27043
27044         Reduce dependencies.
27045         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
27046
27047 2010-06-03  Bruno Haible  <bruno@clisp.org>
27048
27049         time: Undefine more broken macros.
27050         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
27051         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
27052         Reported by Eric Blake.
27053
27054 2010-06-03  Bruno Haible  <bruno@clisp.org>
27055
27056         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
27057         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
27058         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
27059         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
27060         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
27061         Reported by Ludovic Courtès <ludo@gnu.org>.
27062
27063 2010-06-02  Eric Blake  <eblake@redhat.com>
27064
27065         time: work with mingw + pthreads-win32 library
27066         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
27067         if timespec is defined only in pthread.h.
27068         * modules/time (Makefile.am): Substitute it.
27069         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
27070         <pthread.h>, when needed.
27071         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
27072         from the library.
27073
27074 2010-05-31  Bruno Haible  <bruno@clisp.org>
27075
27076         Avoid expanding two macros in the wrong order.
27077         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
27078         gl_LIBUNISTRING if it is defined.
27079         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
27080         autoconf >= 2.64.
27081         Reported by Ludovic Courtès <ludo@gnu.org>.
27082
27083 2010-05-27  Jim Meyering  <meyering@redhat.com>
27084
27085         maint.mk: also prohibit "#undef" of always-defined symbols
27086         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
27087         Allow more than one space before the symbol name.
27088         (sc_prohibit_always-defined_macros): Use grep's -E, now that
27089         the regexp uses alternation.
27090
27091 2010-05-26  Eric Blake  <eblake@redhat.com>
27092
27093         maint.mk: avoid echo -e
27094         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
27095         Convert all uses of echo -* to printf.
27096         Reported by Matthias Bolte.
27097
27098 2010-05-25  Bruno Haible  <bruno@clisp.org>
27099
27100         Update to GNU gettext 0.18, part 2.
27101         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
27102         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
27103
27104 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27105
27106         Add missing include in test-pwrite.c.
27107         * tests/test-pwrite.c: Include string.h, for strcmp.
27108
27109 2010-05-24  Bruno Haible  <bruno@clisp.org>
27110
27111         * NEWS: Mention requirement for Automake option 'subdir-objects'.
27112
27113 2010-05-24  Bruno Haible  <bruno@clisp.org>
27114
27115         Don't use conversion with transliteration in u{8,16,32}_strcoll.
27116         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
27117         iconveh_error argument.
27118         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
27119         U_STRCONV_TO_LOCALE.
27120         * lib/unistr/u16-strcoll.c: Likewise.
27121         * lib/unistr/u32-strcoll.c: Likewise.
27122         * modules/unistr/u8-strcoll (Depends-on): Add
27123         uniconv/u8-strconv-to-enc, localcharset. Remove
27124         uniconv/u8-strconv-to-locale.
27125         (configure.ac): Bump version number.
27126         * modules/unistr/u16-strcoll (Depends-on): Add
27127         uniconv/u16-strconv-to-enc, localcharset. Remove
27128         uniconv/u16-strconv-to-locale.
27129         (configure.ac): Bump version number.
27130         * modules/unistr/u32-strcoll (Depends-on): Add
27131         uniconv/u32-strconv-to-enc, localcharset. Remove
27132         uniconv/u32-strconv-to-locale.
27133         (configure.ac): Bump version number.
27134
27135 2010-05-24  Bruno Haible  <bruno@clisp.org>
27136
27137         Avoid a test failure on NetBSD 5.0.
27138         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
27139         an iconv() bug.
27140
27141 2010-05-24  Bruno Haible  <bruno@clisp.org>
27142
27143         Adjust #include directive style.
27144         * modules/regex (Includes): Recommend to write <regex.h>.
27145
27146 2010-05-24  Bruno Haible  <bruno@clisp.org>
27147
27148         regex: Don't require alloca.
27149         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
27150         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
27151         only inside if (0).
27152
27153 2010-05-23  Jim Meyering  <meyering@redhat.com>
27154
27155         test-renameat.c: include <sys/stat.h>
27156         * tests/test-renameat.c: Include <sys/stat.h>; required for
27157         definition of S_IS* macros.
27158
27159 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
27160
27161         Update maintainer documentation for 'relocatable-prog' module.
27162         * doc/relocatable-maint.texi: Update.
27163         Comments by Bruno Haible.
27164
27165 2010-05-23  Bruno Haible  <bruno@clisp.org>
27166
27167         git-merge-changelog: Enable --split-merged-entry by default.
27168         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
27169         (usage): Don't mention this option any more.
27170         Reported by Ralf Wildenhues.
27171
27172 2010-05-23  Jim Meyering  <meyering@redhat.com>
27173
27174         test-pwrite: do not leave behind a test file named "out"
27175         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
27176         The trivial-looking use of init.sh is really necessary.
27177         It ensures that the temporary file, "out", is created in
27178         a temporary directory, and removed upon termination.
27179         * tests/test-pwrite.sh: Re-add file.
27180         * modules/pwrite-tests: Reference it.
27181
27182 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27183
27184         Fix output redirection buglet in init.sh.
27185         * tests/init.sh: Fix redirection of stderr.
27186
27187 2010-05-20  Simon Josefsson  <simon@josefsson.org>
27188
27189         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
27190
27191 2010-05-17  Simon Josefsson  <simon@josefsson.org>
27192
27193         * modules/valgrind-tests: New file.
27194         * m4/valgrind-tests.m4: New file.
27195         * doc/valgrind-tests.texi: New file.
27196         * doc/gnulib.texi (Running self-tests under valgrind): New
27197         section.
27198
27199 2010-05-19  Bruno Haible  <bruno@clisp.org>
27200
27201         Clean up dead code in recent commit.
27202         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
27203         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
27204         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
27205         Suggested by Paolo Bonzini.
27206
27207 2010-05-19  Bruno Haible  <bruno@clisp.org>
27208
27209         Avoid valgrind error reports from libunistring.
27210         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
27211         * modules/libunistring (Files): Add it.
27212         * modules/libunistring-optional (Files): Likewise.
27213
27214 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
27215             Bruno Haible  <bruno@clisp.org>
27216
27217         New module 'libunistring-optional'.
27218         * modules/libunistring-optional: New file.
27219         * m4/libunistring-base.m4: New file.
27220         * m4/libunistring-optional.m4: New file.
27221         * lib/unicase.in.h: Renamed from lib/unicase.h.
27222         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
27223         * lib/unictype.in.h: Renamed from lib/unictype.h.
27224         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
27225         * lib/uniname.in.h: Renamed from lib/uniname.h.
27226         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
27227         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
27228         * lib/unistr.in.h: Renamed from lib/unistr.h.
27229         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
27230         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
27231         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
27232         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
27233         gl_LIBUNISTRING. If the library was found, determine the installed
27234         version and set LIBUNISTRING_VERSION.
27235         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
27236         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
27237         handle a configuration option --with-included-libunistring.
27238         * modules/libunistring (Files): Add m4/absolute-header.m4.
27239         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
27240         Add m4/libunistring-base.m4.
27241         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27242         (Makefile.am): Build unicase.h from unicase.in.h.
27243         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
27244         Add m4/libunistring-base.m4.
27245         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27246         (Makefile.am): Build uniconv.h from uniconv.in.h.
27247         * modules/unictype/base (Files): Use unictype.in.h instead of
27248         unictype.h. Add m4/libunistring-base.m4.
27249         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27250         (Makefile.am): Build unictype.h from unictype.in.h.
27251         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
27252         Add m4/libunistring-base.m4.
27253         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27254         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
27255         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
27256         Add m4/libunistring-base.m4.
27257         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27258         (Makefile.am): Build uniname.h from uniname.in.h.
27259         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
27260         Add m4/libunistring-base.m4.
27261         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27262         (Makefile.am): Build uninorm.h from uninorm.in.h.
27263         * modules/unistdio/base (Files): Use unistdio.in.h instead of
27264         unistdio.h. Add m4/libunistring-base.m4.
27265         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27266         (Makefile.am): Build unistdio.h from unistdio.in.h.
27267         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
27268         Add m4/libunistring-base.m4.
27269         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27270         (Makefile.am): Build unistr.h from unistr.in.h.
27271         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
27272         Add m4/libunistring-base.m4.
27273         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27274         (Makefile.am): Build unitypes.h from unitypes.in.h.
27275         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
27276         Add m4/libunistring-base.m4.
27277         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27278         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
27279         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
27280         uniwidth.h. Add m4/libunistring-base.m4.
27281         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
27282         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
27283         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
27284         instead of augmenting lib_SOURCES.
27285         * modules/unicase/empty-suffix-context: Likewise.
27286         * modules/unicase/locale-language: Likewise.
27287         * modules/unicase/tolower: Likewise.
27288         * modules/unicase/totitle: Likewise.
27289         * modules/unicase/toupper: Likewise.
27290         * modules/unicase/u8-casecmp: Likewise.
27291         * modules/unicase/u8-casecoll: Likewise.
27292         * modules/unicase/u8-casefold: Likewise.
27293         * modules/unicase/u8-casexfrm: Likewise.
27294         * modules/unicase/u8-ct-casefold: Likewise.
27295         * modules/unicase/u8-ct-tolower: Likewise.
27296         * modules/unicase/u8-ct-totitle: Likewise.
27297         * modules/unicase/u8-ct-toupper: Likewise.
27298         * modules/unicase/u8-is-cased: Likewise.
27299         * modules/unicase/u8-is-casefolded: Likewise.
27300         * modules/unicase/u8-is-lowercase: Likewise.
27301         * modules/unicase/u8-is-titlecase: Likewise.
27302         * modules/unicase/u8-is-uppercase: Likewise.
27303         * modules/unicase/u8-prefix-context: Likewise.
27304         * modules/unicase/u8-suffix-context: Likewise.
27305         * modules/unicase/u8-tolower: Likewise.
27306         * modules/unicase/u8-totitle: Likewise.
27307         * modules/unicase/u8-toupper: Likewise.
27308         * modules/unicase/u16-casecmp: Likewise.
27309         * modules/unicase/u16-casecoll: Likewise.
27310         * modules/unicase/u16-casefold: Likewise.
27311         * modules/unicase/u16-casexfrm: Likewise.
27312         * modules/unicase/u16-ct-casefold: Likewise.
27313         * modules/unicase/u16-ct-tolower: Likewise.
27314         * modules/unicase/u16-ct-totitle: Likewise.
27315         * modules/unicase/u16-ct-toupper: Likewise.
27316         * modules/unicase/u16-is-cased: Likewise.
27317         * modules/unicase/u16-is-casefolded: Likewise.
27318         * modules/unicase/u16-is-lowercase: Likewise.
27319         * modules/unicase/u16-is-titlecase: Likewise.
27320         * modules/unicase/u16-is-uppercase: Likewise.
27321         * modules/unicase/u16-prefix-context: Likewise.
27322         * modules/unicase/u16-suffix-context: Likewise.
27323         * modules/unicase/u16-tolower: Likewise.
27324         * modules/unicase/u16-totitle: Likewise.
27325         * modules/unicase/u16-toupper: Likewise.
27326         * modules/unicase/u32-casecmp: Likewise.
27327         * modules/unicase/u32-casecoll: Likewise.
27328         * modules/unicase/u32-casefold: Likewise.
27329         * modules/unicase/u32-casexfrm: Likewise.
27330         * modules/unicase/u32-ct-casefold: Likewise.
27331         * modules/unicase/u32-ct-tolower: Likewise.
27332         * modules/unicase/u32-ct-totitle: Likewise.
27333         * modules/unicase/u32-ct-toupper: Likewise.
27334         * modules/unicase/u32-is-cased: Likewise.
27335         * modules/unicase/u32-is-casefolded: Likewise.
27336         * modules/unicase/u32-is-lowercase: Likewise.
27337         * modules/unicase/u32-is-titlecase: Likewise.
27338         * modules/unicase/u32-is-uppercase: Likewise.
27339         * modules/unicase/u32-prefix-context: Likewise.
27340         * modules/unicase/u32-suffix-context: Likewise.
27341         * modules/unicase/u32-tolower: Likewise.
27342         * modules/unicase/u32-totitle: Likewise.
27343         * modules/unicase/u32-toupper: Likewise.
27344         * modules/unicase/ulc-casecmp: Likewise.
27345         * modules/unicase/ulc-casecoll: Likewise.
27346         * modules/unicase/ulc-casexfrm: Likewise.
27347         * modules/uniconv/u8-conv-from-enc: Likewise.
27348         * modules/uniconv/u8-conv-to-enc: Likewise.
27349         * modules/uniconv/u8-strconv-from-enc: Likewise.
27350         * modules/uniconv/u8-strconv-from-locale: Likewise.
27351         * modules/uniconv/u8-strconv-to-enc: Likewise.
27352         * modules/uniconv/u8-strconv-to-locale: Likewise.
27353         * modules/uniconv/u16-conv-from-enc: Likewise.
27354         * modules/uniconv/u16-conv-to-enc: Likewise.
27355         * modules/uniconv/u16-strconv-from-enc: Likewise.
27356         * modules/uniconv/u16-strconv-from-locale: Likewise.
27357         * modules/uniconv/u16-strconv-to-enc: Likewise.
27358         * modules/uniconv/u16-strconv-to-locale: Likewise.
27359         * modules/uniconv/u32-conv-from-enc: Likewise.
27360         * modules/uniconv/u32-conv-to-enc: Likewise.
27361         * modules/uniconv/u32-strconv-from-enc: Likewise.
27362         * modules/uniconv/u32-strconv-from-locale: Likewise.
27363         * modules/uniconv/u32-strconv-to-enc: Likewise.
27364         * modules/uniconv/u32-strconv-to-locale: Likewise.
27365         * modules/unictype/bidicategory-byname: Likewise.
27366         * modules/unictype/bidicategory-name: Likewise.
27367         * modules/unictype/bidicategory-of: Likewise.
27368         * modules/unictype/bidicategory-test: Likewise.
27369         * modules/unictype/block-list: Likewise.
27370         * modules/unictype/block-test: Likewise.
27371         * modules/unictype/category-C: Likewise.
27372         * modules/unictype/category-Cc: Likewise.
27373         * modules/unictype/category-Cf: Likewise.
27374         * modules/unictype/category-Cn: Likewise.
27375         * modules/unictype/category-Co: Likewise.
27376         * modules/unictype/category-Cs: Likewise.
27377         * modules/unictype/category-L: Likewise.
27378         * modules/unictype/category-Ll: Likewise.
27379         * modules/unictype/category-Lm: Likewise.
27380         * modules/unictype/category-Lo: Likewise.
27381         * modules/unictype/category-Lt: Likewise.
27382         * modules/unictype/category-Lu: Likewise.
27383         * modules/unictype/category-M: Likewise.
27384         * modules/unictype/category-Mc: Likewise.
27385         * modules/unictype/category-Me: Likewise.
27386         * modules/unictype/category-Mn: Likewise.
27387         * modules/unictype/category-N: Likewise.
27388         * modules/unictype/category-Nd: Likewise.
27389         * modules/unictype/category-Nl: Likewise.
27390         * modules/unictype/category-No: Likewise.
27391         * modules/unictype/category-P: Likewise.
27392         * modules/unictype/category-Pc: Likewise.
27393         * modules/unictype/category-Pd: Likewise.
27394         * modules/unictype/category-Pe: Likewise.
27395         * modules/unictype/category-Pf: Likewise.
27396         * modules/unictype/category-Pi: Likewise.
27397         * modules/unictype/category-Po: Likewise.
27398         * modules/unictype/category-Ps: Likewise.
27399         * modules/unictype/category-S: Likewise.
27400         * modules/unictype/category-Sc: Likewise.
27401         * modules/unictype/category-Sk: Likewise.
27402         * modules/unictype/category-Sm: Likewise.
27403         * modules/unictype/category-So: Likewise.
27404         * modules/unictype/category-Z: Likewise.
27405         * modules/unictype/category-Zl: Likewise.
27406         * modules/unictype/category-Zp: Likewise.
27407         * modules/unictype/category-Zs: Likewise.
27408         * modules/unictype/category-and: Likewise.
27409         * modules/unictype/category-and-not: Likewise.
27410         * modules/unictype/category-byname: Likewise.
27411         * modules/unictype/category-name: Likewise.
27412         * modules/unictype/category-none: Likewise.
27413         * modules/unictype/category-of: Likewise.
27414         * modules/unictype/category-or: Likewise.
27415         * modules/unictype/category-test: Likewise.
27416         * modules/unictype/combining-class: Likewise.
27417         * modules/unictype/ctype-alnum: Likewise.
27418         * modules/unictype/ctype-alpha: Likewise.
27419         * modules/unictype/ctype-blank: Likewise.
27420         * modules/unictype/ctype-cntrl: Likewise.
27421         * modules/unictype/ctype-digit: Likewise.
27422         * modules/unictype/ctype-graph: Likewise.
27423         * modules/unictype/ctype-lower: Likewise.
27424         * modules/unictype/ctype-print: Likewise.
27425         * modules/unictype/ctype-punct: Likewise.
27426         * modules/unictype/ctype-space: Likewise.
27427         * modules/unictype/ctype-upper: Likewise.
27428         * modules/unictype/ctype-xdigit: Likewise.
27429         * modules/unictype/decimal-digit: Likewise.
27430         * modules/unictype/digit: Likewise.
27431         * modules/unictype/mirror: Likewise.
27432         * modules/unictype/numeric: Likewise.
27433         * modules/unictype/property-alphabetic: Likewise.
27434         * modules/unictype/property-ascii-hex-digit: Likewise.
27435         * modules/unictype/property-bidi-arabic-digit: Likewise.
27436         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
27437         * modules/unictype/property-bidi-block-separator: Likewise.
27438         * modules/unictype/property-bidi-boundary-neutral: Likewise.
27439         * modules/unictype/property-bidi-common-separator: Likewise.
27440         * modules/unictype/property-bidi-control: Likewise.
27441         * modules/unictype/property-bidi-embedding-or-override: Likewise.
27442         * modules/unictype/property-bidi-eur-num-separator: Likewise.
27443         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
27444         * modules/unictype/property-bidi-european-digit: Likewise.
27445         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
27446         * modules/unictype/property-bidi-left-to-right: Likewise.
27447         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
27448         * modules/unictype/property-bidi-other-neutral: Likewise.
27449         * modules/unictype/property-bidi-pdf: Likewise.
27450         * modules/unictype/property-bidi-segment-separator: Likewise.
27451         * modules/unictype/property-bidi-whitespace: Likewise.
27452         * modules/unictype/property-byname: Likewise.
27453         * modules/unictype/property-combining: Likewise.
27454         * modules/unictype/property-composite: Likewise.
27455         * modules/unictype/property-currency-symbol: Likewise.
27456         * modules/unictype/property-dash: Likewise.
27457         * modules/unictype/property-decimal-digit: Likewise.
27458         * modules/unictype/property-default-ignorable-code-point: Likewise.
27459         * modules/unictype/property-deprecated: Likewise.
27460         * modules/unictype/property-diacritic: Likewise.
27461         * modules/unictype/property-extender: Likewise.
27462         * modules/unictype/property-format-control: Likewise.
27463         * modules/unictype/property-grapheme-base: Likewise.
27464         * modules/unictype/property-grapheme-extend: Likewise.
27465         * modules/unictype/property-grapheme-link: Likewise.
27466         * modules/unictype/property-hex-digit: Likewise.
27467         * modules/unictype/property-hyphen: Likewise.
27468         * modules/unictype/property-id-continue: Likewise.
27469         * modules/unictype/property-id-start: Likewise.
27470         * modules/unictype/property-ideographic: Likewise.
27471         * modules/unictype/property-ids-binary-operator: Likewise.
27472         * modules/unictype/property-ids-trinary-operator: Likewise.
27473         * modules/unictype/property-ignorable-control: Likewise.
27474         * modules/unictype/property-iso-control: Likewise.
27475         * modules/unictype/property-join-control: Likewise.
27476         * modules/unictype/property-left-of-pair: Likewise.
27477         * modules/unictype/property-line-separator: Likewise.
27478         * modules/unictype/property-logical-order-exception: Likewise.
27479         * modules/unictype/property-lowercase: Likewise.
27480         * modules/unictype/property-math: Likewise.
27481         * modules/unictype/property-non-break: Likewise.
27482         * modules/unictype/property-not-a-character: Likewise.
27483         * modules/unictype/property-numeric: Likewise.
27484         * modules/unictype/property-other-alphabetic: Likewise.
27485         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
27486         * modules/unictype/property-other-grapheme-extend: Likewise.
27487         * modules/unictype/property-other-id-continue: Likewise.
27488         * modules/unictype/property-other-id-start: Likewise.
27489         * modules/unictype/property-other-lowercase: Likewise.
27490         * modules/unictype/property-other-math: Likewise.
27491         * modules/unictype/property-other-uppercase: Likewise.
27492         * modules/unictype/property-paired-punctuation: Likewise.
27493         * modules/unictype/property-paragraph-separator: Likewise.
27494         * modules/unictype/property-pattern-syntax: Likewise.
27495         * modules/unictype/property-pattern-white-space: Likewise.
27496         * modules/unictype/property-private-use: Likewise.
27497         * modules/unictype/property-punctuation: Likewise.
27498         * modules/unictype/property-quotation-mark: Likewise.
27499         * modules/unictype/property-radical: Likewise.
27500         * modules/unictype/property-sentence-terminal: Likewise.
27501         * modules/unictype/property-soft-dotted: Likewise.
27502         * modules/unictype/property-space: Likewise.
27503         * modules/unictype/property-terminal-punctuation: Likewise.
27504         * modules/unictype/property-test: Likewise.
27505         * modules/unictype/property-titlecase: Likewise.
27506         * modules/unictype/property-unassigned-code-value: Likewise.
27507         * modules/unictype/property-unified-ideograph: Likewise.
27508         * modules/unictype/property-uppercase: Likewise.
27509         * modules/unictype/property-variation-selector: Likewise.
27510         * modules/unictype/property-white-space: Likewise.
27511         * modules/unictype/property-xid-continue: Likewise.
27512         * modules/unictype/property-xid-start: Likewise.
27513         * modules/unictype/property-zero-width: Likewise.
27514         * modules/unictype/scripts: Likewise.
27515         * modules/unictype/syntax-c-ident: Likewise.
27516         * modules/unictype/syntax-c-whitespace: Likewise.
27517         * modules/unictype/syntax-java-ident: Likewise.
27518         * modules/unictype/syntax-java-whitespace: Likewise.
27519         * modules/unilbrk/u8-possible-linebreaks: Likewise.
27520         * modules/unilbrk/u8-width-linebreaks: Likewise.
27521         * modules/unilbrk/u16-possible-linebreaks: Likewise.
27522         * modules/unilbrk/u16-width-linebreaks: Likewise.
27523         * modules/unilbrk/u32-possible-linebreaks: Likewise.
27524         * modules/unilbrk/u32-width-linebreaks: Likewise.
27525         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
27526         * modules/unilbrk/ulc-width-linebreaks: Likewise.
27527         * modules/uniname/uniname: Likewise.
27528         * modules/uninorm/canonical-decomposition: Likewise.
27529         * modules/uninorm/composition: Likewise.
27530         * modules/uninorm/decomposing-form: Likewise.
27531         * modules/uninorm/decomposition: Likewise.
27532         * modules/uninorm/filter: Likewise.
27533         * modules/uninorm/nfc: Likewise.
27534         * modules/uninorm/nfd: Likewise.
27535         * modules/uninorm/nfkc: Likewise.
27536         * modules/uninorm/nfkd: Likewise.
27537         * modules/uninorm/u8-normalize: Likewise.
27538         * modules/uninorm/u8-normcmp: Likewise.
27539         * modules/uninorm/u8-normcoll: Likewise.
27540         * modules/uninorm/u8-normxfrm: Likewise.
27541         * modules/uninorm/u16-normalize: Likewise.
27542         * modules/uninorm/u16-normcmp: Likewise.
27543         * modules/uninorm/u16-normcoll: Likewise.
27544         * modules/uninorm/u16-normxfrm: Likewise.
27545         * modules/uninorm/u32-normalize: Likewise.
27546         * modules/uninorm/u32-normcmp: Likewise.
27547         * modules/uninorm/u32-normcoll: Likewise.
27548         * modules/uninorm/u32-normxfrm: Likewise.
27549         * modules/unistdio/u8-asnprintf: Likewise.
27550         * modules/unistdio/u8-asprintf: Likewise.
27551         * modules/unistdio/u8-snprintf: Likewise.
27552         * modules/unistdio/u8-sprintf: Likewise.
27553         * modules/unistdio/u8-u8-asnprintf: Likewise.
27554         * modules/unistdio/u8-u8-asprintf: Likewise.
27555         * modules/unistdio/u8-u8-snprintf: Likewise.
27556         * modules/unistdio/u8-u8-sprintf: Likewise.
27557         * modules/unistdio/u8-u8-vasnprintf: Likewise.
27558         * modules/unistdio/u8-u8-vasprintf: Likewise.
27559         * modules/unistdio/u8-u8-vsnprintf: Likewise.
27560         * modules/unistdio/u8-u8-vsprintf: Likewise.
27561         * modules/unistdio/u8-vasnprintf: Likewise.
27562         * modules/unistdio/u8-vasprintf: Likewise.
27563         * modules/unistdio/u8-vsnprintf: Likewise.
27564         * modules/unistdio/u8-vsprintf: Likewise.
27565         * modules/unistdio/u16-asnprintf: Likewise.
27566         * modules/unistdio/u16-asprintf: Likewise.
27567         * modules/unistdio/u16-snprintf: Likewise.
27568         * modules/unistdio/u16-sprintf: Likewise.
27569         * modules/unistdio/u16-u16-asnprintf: Likewise.
27570         * modules/unistdio/u16-u16-asprintf: Likewise.
27571         * modules/unistdio/u16-u16-snprintf: Likewise.
27572         * modules/unistdio/u16-u16-sprintf: Likewise.
27573         * modules/unistdio/u16-u16-vasnprintf: Likewise.
27574         * modules/unistdio/u16-u16-vasprintf: Likewise.
27575         * modules/unistdio/u16-u16-vsnprintf: Likewise.
27576         * modules/unistdio/u16-u16-vsprintf: Likewise.
27577         * modules/unistdio/u16-vasnprintf: Likewise.
27578         * modules/unistdio/u16-vasprintf: Likewise.
27579         * modules/unistdio/u16-vsnprintf: Likewise.
27580         * modules/unistdio/u16-vsprintf: Likewise.
27581         * modules/unistdio/u32-asnprintf: Likewise.
27582         * modules/unistdio/u32-asprintf: Likewise.
27583         * modules/unistdio/u32-snprintf: Likewise.
27584         * modules/unistdio/u32-sprintf: Likewise.
27585         * modules/unistdio/u32-u32-asnprintf: Likewise.
27586         * modules/unistdio/u32-u32-asprintf: Likewise.
27587         * modules/unistdio/u32-u32-snprintf: Likewise.
27588         * modules/unistdio/u32-u32-sprintf: Likewise.
27589         * modules/unistdio/u32-u32-vasnprintf: Likewise.
27590         * modules/unistdio/u32-u32-vasprintf: Likewise.
27591         * modules/unistdio/u32-u32-vsnprintf: Likewise.
27592         * modules/unistdio/u32-u32-vsprintf: Likewise.
27593         * modules/unistdio/u32-vasnprintf: Likewise.
27594         * modules/unistdio/u32-vasprintf: Likewise.
27595         * modules/unistdio/u32-vsnprintf: Likewise.
27596         * modules/unistdio/u32-vsprintf: Likewise.
27597         * modules/unistdio/ulc-asnprintf: Likewise.
27598         * modules/unistdio/ulc-asprintf: Likewise.
27599         * modules/unistdio/ulc-fprintf: Likewise.
27600         * modules/unistdio/ulc-snprintf: Likewise.
27601         * modules/unistdio/ulc-sprintf: Likewise.
27602         * modules/unistdio/ulc-vasnprintf: Likewise.
27603         * modules/unistdio/ulc-vasprintf: Likewise.
27604         * modules/unistdio/ulc-vfprintf: Likewise.
27605         * modules/unistdio/ulc-vsnprintf: Likewise.
27606         * modules/unistdio/ulc-vsprintf: Likewise.
27607         * modules/unistr/u8-check: Likewise.
27608         * modules/unistr/u8-chr: Likewise.
27609         * modules/unistr/u8-cmp: Likewise.
27610         * modules/unistr/u8-cmp2: Likewise.
27611         * modules/unistr/u8-cpy: Likewise.
27612         * modules/unistr/u8-cpy-alloc: Likewise.
27613         * modules/unistr/u8-endswith: Likewise.
27614         * modules/unistr/u8-mblen: Likewise.
27615         * modules/unistr/u8-mbsnlen: Likewise.
27616         * modules/unistr/u8-mbtouc: Likewise.
27617         * modules/unistr/u8-mbtouc-unsafe: Likewise.
27618         * modules/unistr/u8-mbtoucr: Likewise.
27619         * modules/unistr/u8-move: Likewise.
27620         * modules/unistr/u8-next: Likewise.
27621         * modules/unistr/u8-prev: Likewise.
27622         * modules/unistr/u8-set: Likewise.
27623         * modules/unistr/u8-startswith: Likewise.
27624         * modules/unistr/u8-stpcpy: Likewise.
27625         * modules/unistr/u8-stpncpy: Likewise.
27626         * modules/unistr/u8-strcat: Likewise.
27627         * modules/unistr/u8-strchr: Likewise.
27628         * modules/unistr/u8-strcmp: Likewise.
27629         * modules/unistr/u8-strcoll: Likewise.
27630         * modules/unistr/u8-strcpy: Likewise.
27631         * modules/unistr/u8-strcspn: Likewise.
27632         * modules/unistr/u8-strdup: Likewise.
27633         * modules/unistr/u8-strlen: Likewise.
27634         * modules/unistr/u8-strmblen: Likewise.
27635         * modules/unistr/u8-strmbtouc: Likewise.
27636         * modules/unistr/u8-strncat: Likewise.
27637         * modules/unistr/u8-strncmp: Likewise.
27638         * modules/unistr/u8-strncpy: Likewise.
27639         * modules/unistr/u8-strnlen: Likewise.
27640         * modules/unistr/u8-strpbrk: Likewise.
27641         * modules/unistr/u8-strrchr: Likewise.
27642         * modules/unistr/u8-strspn: Likewise.
27643         * modules/unistr/u8-strstr: Likewise.
27644         * modules/unistr/u8-strtok: Likewise.
27645         * modules/unistr/u8-to-u16: Likewise.
27646         * modules/unistr/u8-to-u32: Likewise.
27647         * modules/unistr/u8-uctomb: Likewise.
27648         * modules/unistr/u16-check: Likewise.
27649         * modules/unistr/u16-chr: Likewise.
27650         * modules/unistr/u16-cmp: Likewise.
27651         * modules/unistr/u16-cmp2: Likewise.
27652         * modules/unistr/u16-cpy: Likewise.
27653         * modules/unistr/u16-cpy-alloc: Likewise.
27654         * modules/unistr/u16-endswith: Likewise.
27655         * modules/unistr/u16-mblen: Likewise.
27656         * modules/unistr/u16-mbsnlen: Likewise.
27657         * modules/unistr/u16-mbtouc: Likewise.
27658         * modules/unistr/u16-mbtouc-unsafe: Likewise.
27659         * modules/unistr/u16-mbtoucr: Likewise.
27660         * modules/unistr/u16-move: Likewise.
27661         * modules/unistr/u16-next: Likewise.
27662         * modules/unistr/u16-prev: Likewise.
27663         * modules/unistr/u16-set: Likewise.
27664         * modules/unistr/u16-startswith: Likewise.
27665         * modules/unistr/u16-stpcpy: Likewise.
27666         * modules/unistr/u16-stpncpy: Likewise.
27667         * modules/unistr/u16-strcat: Likewise.
27668         * modules/unistr/u16-strchr: Likewise.
27669         * modules/unistr/u16-strcmp: Likewise.
27670         * modules/unistr/u16-strcoll: Likewise.
27671         * modules/unistr/u16-strcpy: Likewise.
27672         * modules/unistr/u16-strcspn: Likewise.
27673         * modules/unistr/u16-strdup: Likewise.
27674         * modules/unistr/u16-strlen: Likewise.
27675         * modules/unistr/u16-strmblen: Likewise.
27676         * modules/unistr/u16-strmbtouc: Likewise.
27677         * modules/unistr/u16-strncat: Likewise.
27678         * modules/unistr/u16-strncmp: Likewise.
27679         * modules/unistr/u16-strncpy: Likewise.
27680         * modules/unistr/u16-strnlen: Likewise.
27681         * modules/unistr/u16-strpbrk: Likewise.
27682         * modules/unistr/u16-strrchr: Likewise.
27683         * modules/unistr/u16-strspn: Likewise.
27684         * modules/unistr/u16-strstr: Likewise.
27685         * modules/unistr/u16-strtok: Likewise.
27686         * modules/unistr/u16-to-u32: Likewise.
27687         * modules/unistr/u16-to-u8: Likewise.
27688         * modules/unistr/u16-uctomb: Likewise.
27689         * modules/unistr/u32-check: Likewise.
27690         * modules/unistr/u32-chr: Likewise.
27691         * modules/unistr/u32-cmp: Likewise.
27692         * modules/unistr/u32-cmp2: Likewise.
27693         * modules/unistr/u32-cpy: Likewise.
27694         * modules/unistr/u32-cpy-alloc: Likewise.
27695         * modules/unistr/u32-endswith: Likewise.
27696         * modules/unistr/u32-mblen: Likewise.
27697         * modules/unistr/u32-mbsnlen: Likewise.
27698         * modules/unistr/u32-mbtouc: Likewise.
27699         * modules/unistr/u32-mbtouc-unsafe: Likewise.
27700         * modules/unistr/u32-mbtoucr: Likewise.
27701         * modules/unistr/u32-move: Likewise.
27702         * modules/unistr/u32-next: Likewise.
27703         * modules/unistr/u32-prev: Likewise.
27704         * modules/unistr/u32-set: Likewise.
27705         * modules/unistr/u32-startswith: Likewise.
27706         * modules/unistr/u32-stpcpy: Likewise.
27707         * modules/unistr/u32-stpncpy: Likewise.
27708         * modules/unistr/u32-strcat: Likewise.
27709         * modules/unistr/u32-strchr: Likewise.
27710         * modules/unistr/u32-strcmp: Likewise.
27711         * modules/unistr/u32-strcoll: Likewise.
27712         * modules/unistr/u32-strcpy: Likewise.
27713         * modules/unistr/u32-strcspn: Likewise.
27714         * modules/unistr/u32-strdup: Likewise.
27715         * modules/unistr/u32-strlen: Likewise.
27716         * modules/unistr/u32-strmblen: Likewise.
27717         * modules/unistr/u32-strmbtouc: Likewise.
27718         * modules/unistr/u32-strncat: Likewise.
27719         * modules/unistr/u32-strncmp: Likewise.
27720         * modules/unistr/u32-strncpy: Likewise.
27721         * modules/unistr/u32-strnlen: Likewise.
27722         * modules/unistr/u32-strpbrk: Likewise.
27723         * modules/unistr/u32-strrchr: Likewise.
27724         * modules/unistr/u32-strspn: Likewise.
27725         * modules/unistr/u32-strstr: Likewise.
27726         * modules/unistr/u32-strtok: Likewise.
27727         * modules/unistr/u32-to-u16: Likewise.
27728         * modules/unistr/u32-to-u8: Likewise.
27729         * modules/unistr/u32-uctomb: Likewise.
27730         * modules/uniwbrk/u8-wordbreaks: Likewise.
27731         * modules/uniwbrk/u16-wordbreaks: Likewise.
27732         * modules/uniwbrk/u32-wordbreaks: Likewise.
27733         * modules/uniwbrk/ulc-wordbreaks: Likewise.
27734         * modules/uniwbrk/wordbreak-property: Likewise.
27735         * modules/uniwidth/u8-strwidth: Likewise.
27736         * modules/uniwidth/u8-width: Likewise.
27737         * modules/uniwidth/u16-strwidth: Likewise.
27738         * modules/uniwidth/u16-width: Likewise.
27739         * modules/uniwidth/u32-strwidth: Likewise.
27740         * modules/uniwidth/u32-width: Likewise.
27741         * modules/uniwidth/width: Likewise.
27742         * modules/unicase/cased-tests (Makefile.am): Link all test programs
27743         with $(LIBUNISTRING).
27744         * modules/unicase/ignorable-tests: Likewise.
27745         * modules/unicase/locale-language-tests: Likewise.
27746         * modules/unicase/tolower-tests: Likewise.
27747         * modules/unicase/totitle-tests: Likewise.
27748         * modules/unicase/toupper-tests: Likewise.
27749         * modules/unicase/u8-casecmp-tests: Likewise.
27750         * modules/unicase/u8-casecoll-tests: Likewise.
27751         * modules/unicase/u8-casefold-tests: Likewise.
27752         * modules/unicase/u8-is-cased-tests: Likewise.
27753         * modules/unicase/u8-is-casefolded-tests: Likewise.
27754         * modules/unicase/u8-is-lowercase-tests: Likewise.
27755         * modules/unicase/u8-is-titlecase-tests: Likewise.
27756         * modules/unicase/u8-is-uppercase-tests: Likewise.
27757         * modules/unicase/u8-tolower-tests: Likewise.
27758         * modules/unicase/u8-totitle-tests: Likewise.
27759         * modules/unicase/u8-toupper-tests: Likewise.
27760         * modules/unicase/u16-casecmp-tests: Likewise.
27761         * modules/unicase/u16-casecoll-tests: Likewise.
27762         * modules/unicase/u16-casefold-tests: Likewise.
27763         * modules/unicase/u16-is-cased-tests: Likewise.
27764         * modules/unicase/u16-is-casefolded-tests: Likewise.
27765         * modules/unicase/u16-is-lowercase-tests: Likewise.
27766         * modules/unicase/u16-is-titlecase-tests: Likewise.
27767         * modules/unicase/u16-is-uppercase-tests: Likewise.
27768         * modules/unicase/u16-tolower-tests: Likewise.
27769         * modules/unicase/u16-totitle-tests: Likewise.
27770         * modules/unicase/u16-toupper-tests: Likewise.
27771         * modules/unicase/u32-casecmp-tests: Likewise.
27772         * modules/unicase/u32-casecoll-tests: Likewise.
27773         * modules/unicase/u32-casefold-tests: Likewise.
27774         * modules/unicase/u32-is-cased-tests: Likewise.
27775         * modules/unicase/u32-is-casefolded-tests: Likewise.
27776         * modules/unicase/u32-is-lowercase-tests: Likewise.
27777         * modules/unicase/u32-is-titlecase-tests: Likewise.
27778         * modules/unicase/u32-is-uppercase-tests: Likewise.
27779         * modules/unicase/u32-tolower-tests: Likewise.
27780         * modules/unicase/u32-totitle-tests: Likewise.
27781         * modules/unicase/u32-toupper-tests: Likewise.
27782         * modules/unicase/ulc-casecmp-tests: Likewise.
27783         * modules/unicase/ulc-casecoll-tests: Likewise.
27784         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
27785         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
27786         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
27787         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
27788         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
27789         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
27790         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
27791         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
27792         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
27793         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
27794         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
27795         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
27796         * modules/unictype/bidicategory-byname-tests: Likewise.
27797         * modules/unictype/bidicategory-name-tests: Likewise.
27798         * modules/unictype/bidicategory-of-tests: Likewise.
27799         * modules/unictype/bidicategory-test-tests: Likewise.
27800         * modules/unictype/block-list-tests: Likewise.
27801         * modules/unictype/block-of-tests: Likewise.
27802         * modules/unictype/block-test-tests: Likewise.
27803         * modules/unictype/category-C-tests: Likewise.
27804         * modules/unictype/category-Cc-tests: Likewise.
27805         * modules/unictype/category-Cf-tests: Likewise.
27806         * modules/unictype/category-Cn-tests: Likewise.
27807         * modules/unictype/category-Co-tests: Likewise.
27808         * modules/unictype/category-Cs-tests: Likewise.
27809         * modules/unictype/category-L-tests: Likewise.
27810         * modules/unictype/category-Ll-tests: Likewise.
27811         * modules/unictype/category-Lm-tests: Likewise.
27812         * modules/unictype/category-Lo-tests: Likewise.
27813         * modules/unictype/category-Lt-tests: Likewise.
27814         * modules/unictype/category-Lu-tests: Likewise.
27815         * modules/unictype/category-M-tests: Likewise.
27816         * modules/unictype/category-Mc-tests: Likewise.
27817         * modules/unictype/category-Me-tests: Likewise.
27818         * modules/unictype/category-Mn-tests: Likewise.
27819         * modules/unictype/category-N-tests: Likewise.
27820         * modules/unictype/category-Nd-tests: Likewise.
27821         * modules/unictype/category-Nl-tests: Likewise.
27822         * modules/unictype/category-No-tests: Likewise.
27823         * modules/unictype/category-P-tests: Likewise.
27824         * modules/unictype/category-Pc-tests: Likewise.
27825         * modules/unictype/category-Pd-tests: Likewise.
27826         * modules/unictype/category-Pe-tests: Likewise.
27827         * modules/unictype/category-Pf-tests: Likewise.
27828         * modules/unictype/category-Pi-tests: Likewise.
27829         * modules/unictype/category-Po-tests: Likewise.
27830         * modules/unictype/category-Ps-tests: Likewise.
27831         * modules/unictype/category-S-tests: Likewise.
27832         * modules/unictype/category-Sc-tests: Likewise.
27833         * modules/unictype/category-Sk-tests: Likewise.
27834         * modules/unictype/category-Sm-tests: Likewise.
27835         * modules/unictype/category-So-tests: Likewise.
27836         * modules/unictype/category-Z-tests: Likewise.
27837         * modules/unictype/category-Zl-tests: Likewise.
27838         * modules/unictype/category-Zp-tests: Likewise.
27839         * modules/unictype/category-Zs-tests: Likewise.
27840         * modules/unictype/category-and-not-tests: Likewise.
27841         * modules/unictype/category-and-tests: Likewise.
27842         * modules/unictype/category-byname-tests: Likewise.
27843         * modules/unictype/category-name-tests: Likewise.
27844         * modules/unictype/category-none-tests: Likewise.
27845         * modules/unictype/category-of-tests: Likewise.
27846         * modules/unictype/category-or-tests: Likewise.
27847         * modules/unictype/category-test-withtable-tests: Likewise.
27848         * modules/unictype/combining-class-tests: Likewise.
27849         * modules/unictype/ctype-alnum-tests: Likewise.
27850         * modules/unictype/ctype-alpha-tests: Likewise.
27851         * modules/unictype/ctype-blank-tests: Likewise.
27852         * modules/unictype/ctype-cntrl-tests: Likewise.
27853         * modules/unictype/ctype-digit-tests: Likewise.
27854         * modules/unictype/ctype-graph-tests: Likewise.
27855         * modules/unictype/ctype-lower-tests: Likewise.
27856         * modules/unictype/ctype-print-tests: Likewise.
27857         * modules/unictype/ctype-punct-tests: Likewise.
27858         * modules/unictype/ctype-space-tests: Likewise.
27859         * modules/unictype/ctype-upper-tests: Likewise.
27860         * modules/unictype/ctype-xdigit-tests: Likewise.
27861         * modules/unictype/decimal-digit-tests: Likewise.
27862         * modules/unictype/digit-tests: Likewise.
27863         * modules/unictype/mirror-tests: Likewise.
27864         * modules/unictype/numeric-tests: Likewise.
27865         * modules/unictype/property-alphabetic-tests: Likewise.
27866         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
27867         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
27868         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
27869         * modules/unictype/property-bidi-block-separator-tests: Likewise.
27870         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
27871         * modules/unictype/property-bidi-common-separator-tests: Likewise.
27872         * modules/unictype/property-bidi-control-tests: Likewise.
27873         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
27874         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
27875         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
27876         * modules/unictype/property-bidi-european-digit-tests: Likewise.
27877         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
27878         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
27879         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
27880         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
27881         * modules/unictype/property-bidi-pdf-tests: Likewise.
27882         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
27883         * modules/unictype/property-bidi-whitespace-tests: Likewise.
27884         * modules/unictype/property-byname-tests: Likewise.
27885         * modules/unictype/property-combining-tests: Likewise.
27886         * modules/unictype/property-composite-tests: Likewise.
27887         * modules/unictype/property-currency-symbol-tests: Likewise.
27888         * modules/unictype/property-dash-tests: Likewise.
27889         * modules/unictype/property-decimal-digit-tests: Likewise.
27890         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
27891         * modules/unictype/property-deprecated-tests: Likewise.
27892         * modules/unictype/property-diacritic-tests: Likewise.
27893         * modules/unictype/property-extender-tests: Likewise.
27894         * modules/unictype/property-format-control-tests: Likewise.
27895         * modules/unictype/property-grapheme-base-tests: Likewise.
27896         * modules/unictype/property-grapheme-extend-tests: Likewise.
27897         * modules/unictype/property-grapheme-link-tests: Likewise.
27898         * modules/unictype/property-hex-digit-tests: Likewise.
27899         * modules/unictype/property-hyphen-tests: Likewise.
27900         * modules/unictype/property-id-continue-tests: Likewise.
27901         * modules/unictype/property-id-start-tests: Likewise.
27902         * modules/unictype/property-ideographic-tests: Likewise.
27903         * modules/unictype/property-ids-binary-operator-tests: Likewise.
27904         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
27905         * modules/unictype/property-ignorable-control-tests: Likewise.
27906         * modules/unictype/property-iso-control-tests: Likewise.
27907         * modules/unictype/property-join-control-tests: Likewise.
27908         * modules/unictype/property-left-of-pair-tests: Likewise.
27909         * modules/unictype/property-line-separator-tests: Likewise.
27910         * modules/unictype/property-logical-order-exception-tests: Likewise.
27911         * modules/unictype/property-lowercase-tests: Likewise.
27912         * modules/unictype/property-math-tests: Likewise.
27913         * modules/unictype/property-non-break-tests: Likewise.
27914         * modules/unictype/property-not-a-character-tests: Likewise.
27915         * modules/unictype/property-numeric-tests: Likewise.
27916         * modules/unictype/property-other-alphabetic-tests: Likewise.
27917         * modules/unictype/property-other-default-ignorable-code-point-tests:
27918         Likewise.
27919         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
27920         * modules/unictype/property-other-id-continue-tests: Likewise.
27921         * modules/unictype/property-other-id-start-tests: Likewise.
27922         * modules/unictype/property-other-lowercase-tests: Likewise.
27923         * modules/unictype/property-other-math-tests: Likewise.
27924         * modules/unictype/property-other-uppercase-tests: Likewise.
27925         * modules/unictype/property-paired-punctuation-tests: Likewise.
27926         * modules/unictype/property-paragraph-separator-tests: Likewise.
27927         * modules/unictype/property-pattern-syntax-tests: Likewise.
27928         * modules/unictype/property-pattern-white-space-tests: Likewise.
27929         * modules/unictype/property-private-use-tests: Likewise.
27930         * modules/unictype/property-punctuation-tests: Likewise.
27931         * modules/unictype/property-quotation-mark-tests: Likewise.
27932         * modules/unictype/property-radical-tests: Likewise.
27933         * modules/unictype/property-sentence-terminal-tests: Likewise.
27934         * modules/unictype/property-soft-dotted-tests: Likewise.
27935         * modules/unictype/property-space-tests: Likewise.
27936         * modules/unictype/property-terminal-punctuation-tests: Likewise.
27937         * modules/unictype/property-test-tests: Likewise.
27938         * modules/unictype/property-titlecase-tests: Likewise.
27939         * modules/unictype/property-unassigned-code-value-tests: Likewise.
27940         * modules/unictype/property-unified-ideograph-tests: Likewise.
27941         * modules/unictype/property-uppercase-tests: Likewise.
27942         * modules/unictype/property-variation-selector-tests: Likewise.
27943         * modules/unictype/property-white-space-tests: Likewise.
27944         * modules/unictype/property-xid-continue-tests: Likewise.
27945         * modules/unictype/property-xid-start-tests: Likewise.
27946         * modules/unictype/property-zero-width-tests: Likewise.
27947         * modules/unictype/scripts-tests: Likewise.
27948         * modules/unictype/syntax-c-ident-tests: Likewise.
27949         * modules/unictype/syntax-c-whitespace-tests: Likewise.
27950         * modules/unictype/syntax-java-ident-tests: Likewise.
27951         * modules/unictype/syntax-java-whitespace-tests: Likewise.
27952         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
27953         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
27954         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
27955         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
27956         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
27957         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
27958         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
27959         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
27960         * modules/uniname/uniname-tests: Likewise.
27961         * modules/uninorm/canonical-decomposition-tests: Likewise.
27962         * modules/uninorm/compat-decomposition-tests: Likewise.
27963         * modules/uninorm/composition-tests: Likewise.
27964         * modules/uninorm/decomposing-form-tests: Likewise.
27965         * modules/uninorm/decomposition-tests: Likewise.
27966         * modules/uninorm/filter-tests: Likewise.
27967         * modules/uninorm/nfc-tests: Likewise.
27968         * modules/uninorm/nfd-tests: Likewise.
27969         * modules/uninorm/nfkc-tests: Likewise.
27970         * modules/uninorm/nfkd-tests: Likewise.
27971         * modules/uninorm/u8-normcmp-tests: Likewise.
27972         * modules/uninorm/u8-normcoll-tests: Likewise.
27973         * modules/uninorm/u16-normcmp-tests: Likewise.
27974         * modules/uninorm/u16-normcoll-tests: Likewise.
27975         * modules/uninorm/u32-normcmp-tests: Likewise.
27976         * modules/uninorm/u32-normcoll-tests: Likewise.
27977         * modules/unistdio/u8-asnprintf-tests: Likewise.
27978         * modules/unistdio/u8-vasnprintf-tests: Likewise.
27979         * modules/unistdio/u8-vasprintf-tests: Likewise.
27980         * modules/unistdio/u8-vsnprintf-tests: Likewise.
27981         * modules/unistdio/u8-vsprintf-tests: Likewise.
27982         * modules/unistdio/u16-asnprintf-tests: Likewise.
27983         * modules/unistdio/u16-vasnprintf-tests: Likewise.
27984         * modules/unistdio/u16-vasprintf-tests: Likewise.
27985         * modules/unistdio/u16-vsnprintf-tests: Likewise.
27986         * modules/unistdio/u16-vsprintf-tests: Likewise.
27987         * modules/unistdio/u32-asnprintf-tests: Likewise.
27988         * modules/unistdio/u32-vasnprintf-tests: Likewise.
27989         * modules/unistdio/u32-vasprintf-tests: Likewise.
27990         * modules/unistdio/u32-vsnprintf-tests: Likewise.
27991         * modules/unistdio/u32-vsprintf-tests: Likewise.
27992         * modules/unistdio/ulc-asnprintf-tests: Likewise.
27993         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
27994         * modules/unistdio/ulc-vasprintf-tests: Likewise.
27995         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
27996         * modules/unistdio/ulc-vsprintf-tests: Likewise.
27997         * modules/unistr/u8-check-tests: Likewise.
27998         * modules/unistr/u8-chr-tests: Likewise.
27999         * modules/unistr/u8-cmp-tests: Likewise.
28000         * modules/unistr/u8-cmp2-tests: Likewise.
28001         * modules/unistr/u8-cpy-alloc-tests: Likewise.
28002         * modules/unistr/u8-cpy-tests: Likewise.
28003         * modules/unistr/u8-mblen-tests: Likewise.
28004         * modules/unistr/u8-mbsnlen-tests: Likewise.
28005         * modules/unistr/u8-mbtouc-tests: Likewise.
28006         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
28007         * modules/unistr/u8-mbtoucr-tests: Likewise.
28008         * modules/unistr/u8-move-tests: Likewise.
28009         * modules/unistr/u8-next-tests: Likewise.
28010         * modules/unistr/u8-prev-tests: Likewise.
28011         * modules/unistr/u8-set-tests: Likewise.
28012         * modules/unistr/u8-stpcpy-tests: Likewise.
28013         * modules/unistr/u8-stpncpy-tests: Likewise.
28014         * modules/unistr/u8-strcat-tests: Likewise.
28015         * modules/unistr/u8-strcmp-tests: Likewise.
28016         * modules/unistr/u8-strcoll-tests: Likewise.
28017         * modules/unistr/u8-strcpy-tests: Likewise.
28018         * modules/unistr/u8-strdup-tests: Likewise.
28019         * modules/unistr/u8-strlen-tests: Likewise.
28020         * modules/unistr/u8-strmblen-tests: Likewise.
28021         * modules/unistr/u8-strmbtouc-tests: Likewise.
28022         * modules/unistr/u8-strncat-tests: Likewise.
28023         * modules/unistr/u8-strncmp-tests: Likewise.
28024         * modules/unistr/u8-strncpy-tests: Likewise.
28025         * modules/unistr/u8-strnlen-tests: Likewise.
28026         * modules/unistr/u8-to-u16-tests: Likewise.
28027         * modules/unistr/u8-to-u32-tests: Likewise.
28028         * modules/unistr/u8-uctomb-tests: Likewise.
28029         * modules/unistr/u16-check-tests: Likewise.
28030         * modules/unistr/u16-chr-tests: Likewise.
28031         * modules/unistr/u16-cmp-tests: Likewise.
28032         * modules/unistr/u16-cmp2-tests: Likewise.
28033         * modules/unistr/u16-cpy-alloc-tests: Likewise.
28034         * modules/unistr/u16-cpy-tests: Likewise.
28035         * modules/unistr/u16-mblen-tests: Likewise.
28036         * modules/unistr/u16-mbsnlen-tests: Likewise.
28037         * modules/unistr/u16-mbtouc-tests: Likewise.
28038         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
28039         * modules/unistr/u16-mbtoucr-tests: Likewise.
28040         * modules/unistr/u16-move-tests: Likewise.
28041         * modules/unistr/u16-next-tests: Likewise.
28042         * modules/unistr/u16-prev-tests: Likewise.
28043         * modules/unistr/u16-set-tests: Likewise.
28044         * modules/unistr/u16-stpcpy-tests: Likewise.
28045         * modules/unistr/u16-stpncpy-tests: Likewise.
28046         * modules/unistr/u16-strcat-tests: Likewise.
28047         * modules/unistr/u16-strcmp-tests: Likewise.
28048         * modules/unistr/u16-strcoll-tests: Likewise.
28049         * modules/unistr/u16-strcpy-tests: Likewise.
28050         * modules/unistr/u16-strdup-tests: Likewise.
28051         * modules/unistr/u16-strlen-tests: Likewise.
28052         * modules/unistr/u16-strmblen-tests: Likewise.
28053         * modules/unistr/u16-strmbtouc-tests: Likewise.
28054         * modules/unistr/u16-strncat-tests: Likewise.
28055         * modules/unistr/u16-strncmp-tests: Likewise.
28056         * modules/unistr/u16-strncpy-tests: Likewise.
28057         * modules/unistr/u16-strnlen-tests: Likewise.
28058         * modules/unistr/u16-to-u32-tests: Likewise.
28059         * modules/unistr/u16-to-u8-tests: Likewise.
28060         * modules/unistr/u16-uctomb-tests: Likewise.
28061         * modules/unistr/u32-check-tests: Likewise.
28062         * modules/unistr/u32-chr-tests: Likewise.
28063         * modules/unistr/u32-cmp-tests: Likewise.
28064         * modules/unistr/u32-cmp2-tests: Likewise.
28065         * modules/unistr/u32-cpy-alloc-tests: Likewise.
28066         * modules/unistr/u32-cpy-tests: Likewise.
28067         * modules/unistr/u32-mblen-tests: Likewise.
28068         * modules/unistr/u32-mbsnlen-tests: Likewise.
28069         * modules/unistr/u32-mbtouc-tests: Likewise.
28070         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
28071         * modules/unistr/u32-mbtoucr-tests: Likewise.
28072         * modules/unistr/u32-move-tests: Likewise.
28073         * modules/unistr/u32-next-tests: Likewise.
28074         * modules/unistr/u32-prev-tests: Likewise.
28075         * modules/unistr/u32-set-tests: Likewise.
28076         * modules/unistr/u32-stpcpy-tests: Likewise.
28077         * modules/unistr/u32-stpncpy-tests: Likewise.
28078         * modules/unistr/u32-strcat-tests: Likewise.
28079         * modules/unistr/u32-strcmp-tests: Likewise.
28080         * modules/unistr/u32-strcoll-tests: Likewise.
28081         * modules/unistr/u32-strcpy-tests: Likewise.
28082         * modules/unistr/u32-strdup-tests: Likewise.
28083         * modules/unistr/u32-strlen-tests: Likewise.
28084         * modules/unistr/u32-strmblen-tests: Likewise.
28085         * modules/unistr/u32-strmbtouc-tests: Likewise.
28086         * modules/unistr/u32-strncat-tests: Likewise.
28087         * modules/unistr/u32-strncmp-tests: Likewise.
28088         * modules/unistr/u32-strncpy-tests: Likewise.
28089         * modules/unistr/u32-strnlen-tests: Likewise.
28090         * modules/unistr/u32-to-u16-tests: Likewise.
28091         * modules/unistr/u32-to-u8-tests: Likewise.
28092         * modules/unistr/u32-uctomb-tests: Likewise.
28093         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
28094         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
28095         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
28096         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
28097         * modules/uniwidth/u8-strwidth-tests: Likewise.
28098         * modules/uniwidth/u8-width-tests: Likewise.
28099         * modules/uniwidth/u16-strwidth-tests: Likewise.
28100         * modules/uniwidth/u16-width-tests: Likewise.
28101         * modules/uniwidth/u32-strwidth-tests: Likewise.
28102         * modules/uniwidth/u32-width-tests: Likewise.
28103         * modules/uniwidth/width-tests: Likewise.
28104
28105 2010-05-18  Richard Jones  <rjones@redhat.com>
28106
28107         doc: users.txt: list hivex
28108         * users.txt: Add hivex.
28109
28110 2010-05-18  Richard Jones  <rjones@redhat.com>
28111
28112         doc: users.txt: list febootstrap
28113         * users.txt: Add febootstrap.
28114
28115 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
28116
28117         bootstrap: fix an error when gnulib is not used as a git submodule
28118         * build-aux/bootstrap (gnulib_path): If its length is zero then
28119         assign "gnulib" to it.
28120         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
28121
28122 2010-05-16  Bruno Haible  <bruno@clisp.org>
28123
28124         Avoid autoconf warnings about AM_ICONV.
28125         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
28126         2.64.
28127
28128 2010-05-16  Bruno Haible  <bruno@clisp.org>
28129
28130         absolute-header: Make the macro usable in more situations.
28131         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
28132         from gl_ABSOLUTE_HEADER.
28133         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
28134
28135 2010-05-16  James Youngman  <jay@gnu.org>
28136
28137         doc: update users.txt
28138         * users.txt: Add CSSC.
28139
28140 2010-05-16  Jim Meyering  <meyering@redhat.com>
28141
28142         init.sh: fix an error in the previous change; add more comments
28143         * tests/init.sh: Compare exit code in loop against 9, not 2.
28144         Patch by Bruno Haible.
28145         Make the two tests more similar by adding an empty "then" clause.
28146         Add comments.
28147
28148         init.sh: avoid unnecessary shell re-exec
28149         * tests/init.sh: Improve the re-exec-required check to first test the
28150         current shell.  If it passes the test, do not search for a shell that
28151         does pass, and do not re-exec.  This test is particularly contorted to
28152         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
28153         of $(...) evokes a syntax error and causes immediate shell exit with
28154         status 2.  Bruno Haible reported that the re-exec made it impossible
28155         to single-step through any init.sh-using script.
28156
28157 2010-05-16  Bruno Haible  <bruno@clisp.org>
28158
28159         Fix collision between gnulib's and libintl's printf replacements.
28160         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
28161         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
28162         (printf): When using GNU C, map the __printf__ function to rpl_printf
28163         via __asm__. When not using GNU C, define rpl_printf instead of
28164         __printf__.
28165         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
28166         commit.
28167         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
28168         commit.
28169         * m4/asm-underscore.m4: New file.
28170         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
28171         * modules/stdio (Files): Add m4/asm-underscore.m4.
28172         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
28173         Reported by Ben Pfaff.
28174
28175 2010-05-16  Bruno Haible  <bruno@clisp.org>
28176
28177         verify: Avoid skipping the test on openSUSE 11.0.
28178         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
28179
28180 2010-05-13  Bruno Haible  <bruno@clisp.org>
28181
28182         Avoid useless warnings from G++.
28183         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
28184         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
28185         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
28186
28187 2010-05-11  Jim Meyering  <meyering@redhat.com>
28188
28189         maint.mk: tweak preceding change
28190         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
28191         regexps tighter by anchoring at EOL, and make the new group "shy"
28192         for slightly decreased overhead.
28193
28194 2010-05-11  Eric Blake  <eblake@redhat.com>
28195
28196         maint.mk: gnulib doesn't guarantee NSIG
28197         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
28198
28199 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
28200
28201         test-pwrite.c: Remove unused variable declaration.
28202         * tests/test-pwrite.c (main): Remove read_buf declaration.
28203
28204         Remove useless test-pwrite.sh file.
28205         * tests/test-pwrite.sh: Delete file.
28206         * modules/pwrite-tests: Remove references.
28207         Reported by Bruno Haible.
28208
28209 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
28210
28211         init.sh: fix a typo
28212         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
28213
28214 2010-05-10  Jim Meyering  <meyering@redhat.com>
28215
28216         maint.mk: avoid using a temporary file in the always-defined-macros check
28217         * top/maint.mk (.re-defmac): Remove rule.
28218         (gl_trap_): Remove definition.
28219         (sc_prohibit_always-defined_macros): Rewrite not to create and
28220         depend on a temporary file.  Instead, depend on GNU grep's ability
28221         to read a list of regular expressions from stdin when given "-f -".
28222
28223 2010-05-09  Bruno Haible  <bruno@clisp.org>
28224
28225         Update to GNU gettext 0.18, part 1.
28226         * m4/gettext.m4: Update to GNU gettext 0.18.
28227         * m4/intl.m4: Likewise.
28228         * m4/po.m4: Likewise.
28229         * modules/gettext (Files): Add m4/fcntl-o.m4.
28230         (configure.ac): Require gettext infrastructure from version 0.18.
28231
28232 2010-05-09  Jim Meyering  <meyering@redhat.com>
28233
28234         init.sh: enable MALLOC_PERTURB_
28235         * tests/init.sh: Enable glibc's malloc-perturbing option.
28236
28237         maint.mk: improve sc_cross_check_PATH_usage_in_tests
28238         With my recent change in init.sh from the two-line form:
28239             -#   : ${srcdir=.}
28240             -#   . "$srcdir/init.sh"; path_prepend_ .
28241             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
28242         I noticed that using the one-line form would cause this test
28243         to fail with a false-positive, or to stop working altogether,
28244         depending on whether help-version changed or all the tests did.
28245         * top/maint.mk (_hv_regex): Remove this definition.
28246         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
28247         (_hv_regex_strong): Use a stronger regex to check for conformance.
28248         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
28249         Give a separate diagnostic for lack of conforming use.
28250
28251         maint.mk: prohibit definition of symbols defined by gnulib
28252         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
28253         definition of symbols defined by gnulib.
28254
28255 2010-05-09  Bruno Haible  <bruno@clisp.org>
28256
28257         acl: Avoid test failure on Cygwin-hosted mingw.
28258         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
28259
28260 2010-05-09  Bruno Haible  <bruno@clisp.org>
28261
28262         error: Use system's fcntl function.
28263         * lib/error.c (fcntl): Undefine.
28264
28265 2010-05-09  Jim Meyering  <meyering@redhat.com>
28266
28267         verify: adjust formatting to be more consistent
28268         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
28269         argument-list '('s, and after one comma.
28270
28271 2010-05-09  Bruno Haible  <bruno@clisp.org>
28272
28273         error: More reliable output on mingw.
28274         * lib/error.c: Include <windows.h>.
28275         (is_open): New function.
28276         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
28277         defined.
28278
28279 2010-05-09  Bruno Haible  <bruno@clisp.org>
28280
28281         vasnprintf: Fix syntax errors in libintl build on mingw.
28282         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
28283         pad_ourselves and prec_ourselves after use.
28284
28285 2010-05-08  Bruno Haible  <bruno@clisp.org>
28286
28287         * lib/config.charset: Update comments for Cygwin 1.7.
28288         * lib/localcharset.c: Likewise.
28289
28290 2010-05-07  Jim Meyering  <meyering@redhat.com>
28291
28292         init.sh: improve comments
28293         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
28294         . "${srcdir=.}/init.sh"; path_prepend_ .
28295         Add a note about path_prepend_ and the alternative of using
28296         TESTS_ENVIRONMENT.
28297
28298 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
28299
28300         exclude: Unescape hashed patterns in wildcard mode.
28301         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
28302         to the hash list.
28303         * tests/test-exclude8.sh: New test case.
28304         * modules/exclude-tests: Add new test.
28305
28306 2010-05-05  Eric Blake  <eblake@redhat.com>
28307
28308         verify: automate tests
28309         * modules/verify-tests: New module.
28310         * tests/test-verify.sh: New file.
28311         * tests/test-verify.c: Guard each negative test with a unique id.
28312         Also avoid warning about unused left hand of comma expressions.
28313
28314 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
28315
28316         Further improvements to verify.h, suggested by Eric Blake.
28317         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
28318         the GL_* versions, to avoid collision with OpenGL.
28319         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
28320         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
28321         than testing merely whether it's defined.
28322
28323         Modify verify.h to pacify gcc -Wredundant_decls.
28324         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
28325         These use the prefix "GL_" since they're likely to be useful elsewhere.
28326         We may need to break them out into a different .h file.
28327         (__COUNTER__): Define to 0 if the compiler doesn't support it.
28328         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
28329         of verify_function__.
28330
28331 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
28332
28333         Tests for module pwrite.
28334         * modules/pwrite-tests: New file.
28335         * tests/test-pwrite.sh: New file.
28336         * tests/test-pwrite.c: New file.
28337
28338         New module pwrite.
28339         * lib/unistd.in.h (pwrite): New declaration.
28340         * lib/pwrite.c: New file, from glibc with modifications.
28341         * m4/pwrite.m4: New file.
28342         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
28343         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
28344         REPLACE_PWRITE.
28345         * modules/pwrite: New file.
28346         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
28347         REPLACE_PWRITE.
28348         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
28349         * doc/posix-functions/pwrite.texi: Mention the new module.
28350
28351 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
28352
28353         pread: Update documentation.
28354         * doc/posix-functions/pread.texi: Mention the 'pread' module.
28355
28356 2010-05-04  Eric Blake  <eblake@redhat.com>
28357
28358         docs: update cygwin progress
28359         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
28360         this bug.
28361         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
28362         Added in cygwin 1.7.2.
28363         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
28364         Likewise.
28365         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
28366         Likewise.
28367         * doc/glibc-functions/dup3.texi (dup3): Likewise.
28368         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
28369         * doc/glibc-functions/accept4.texi (accept4): Likewise.
28370         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
28371         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
28372         Mention nproc module.
28373         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
28374         bug in cygwin 1.7.5 addition.
28375         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
28376         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
28377         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
28378         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
28379         1.7.5.
28380         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
28381         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
28382         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
28383         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
28384         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
28385         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
28386         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
28387         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
28388         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
28389         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
28390         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
28391         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
28392         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
28393         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
28394         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
28395         Likewise.
28396         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
28397         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
28398         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
28399         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
28400         Likewise.
28401         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
28402         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
28403         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
28404         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
28405         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
28406         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
28407         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
28408         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
28409         Likewise.
28410         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
28411         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
28412         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
28413         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
28414         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
28415         Likewise.
28416         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
28417         Likewise.
28418         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
28419         Likewise.
28420         * doc/glibc-functions/xdrrec_endofrecord.texi
28421         (xdrrec_endofrecord): Likewise.
28422         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
28423         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
28424         Likewise.
28425         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
28426         Likewise.
28427
28428 2010-05-04  Jim Meyering  <meyering@redhat.com>
28429
28430         gendocs.sh: make its "-s FILE" option more useful
28431         * build-aux/gendocs.sh: When honoring the -s FILE option, update
28432         $PACKAGE to reflect the probably-different basename of "FILE".
28433
28434 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
28435
28436         bootstrap: don't ignore download_po_files failure
28437         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
28438         failure.
28439
28440 2010-05-03  Jim Meyering  <meyering@redhat.com>
28441
28442         maint.mk: allow to pass options to gendocs.sh
28443         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
28444         (gendocs_options_): New overridable variable.
28445
28446         gnu-web-doc-update: don't ignore configure or build failure
28447         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
28448
28449         announce-gen: backslash-escape '@'s in --help output
28450         * build-aux/announce-gen: Fix syntax errors.
28451
28452         maint.mk, announce-gen: allow project-specific announcement mail headers
28453         * top/maint.mk (translation_project_): Define default.
28454         (announcement_Cc_, announcement_mail_headers_): Likewise.
28455         (announcement): Invoke announce-gen with new --mail-headers option.
28456         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
28457
28458         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
28459         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
28460         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
28461         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
28462         line in the "err2" output file when running "make check" in verbose
28463         mode (i.e., with set -x enabled).
28464
28465 2010-05-03  Bruno Haible  <bruno@clisp.org>
28466
28467         wctob: Fix for weird platforms.
28468         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
28469         argument value.
28470
28471 2010-05-03  Jim Meyering  <meyering@redhat.com>
28472
28473         maint.mk: prohibit unwarranted use of <strings.h>
28474         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
28475         strings.h in a file that does not also use strcasecmp, strncasecmp,
28476         ffs or ffsll.
28477
28478         maint.mk: remove obsolete comments
28479         * top/maint.mk: Remove stale, commented-out rules.
28480
28481 2010-05-02  Bruno Haible  <bruno@clisp.org>
28482
28483         wcwidth: Declare also when it's aliased.
28484         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
28485         macro.
28486
28487 2010-05-02  Bruno Haible  <bruno@clisp.org>
28488
28489         Fix regression from 2010-04-25.
28490         * gnulib-tool (func_modules_transitive_closure): Check the status of
28491         all modules, not only of the tests that are of the form foo-tests where
28492         foo is a module.
28493
28494 2010-05-02  Bruno Haible  <bruno@clisp.org>
28495
28496         wctob: Work around nasty Cygwin 1.7.2 bug.
28497         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
28498         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
28499
28500 2010-05-01  Bruno Haible  <bruno@clisp.org>
28501
28502         fpurge: Sharper test.
28503         * tests/test-fpurge.c (main): Add one more ftell check.
28504         * modules/fpurge-tests (Depends-on): Add ftell.
28505         Suggested by Eric Blake.
28506
28507 2010-05-01  Bruno Haible  <bruno@clisp.org>
28508
28509         ftello: Another test.
28510         * tests/test-ftello3.c: New file.
28511         * modules/ftello-tests (Files): Add it.
28512         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
28513         MOSTLYCLEANFILES.
28514
28515         ftell: Another test.
28516         * tests/test-ftell3.c: New file.
28517         * modules/ftell-tests (Files): Add it.
28518         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
28519         MOSTLYCLEANFILES.
28520
28521 2010-05-01  Bruno Haible  <bruno@clisp.org>
28522
28523         ftell, ftello: Work around Solaris bug.
28524         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
28525         * lib/ftello.c: Include stdio-impl.h.
28526         (ftello): On Solaris, when _IOWRT is set, compute the result without
28527         looking at _IOREAD.
28528         * modules/ftello (Files): Add lib/stdio-impl.h.
28529         * doc/posix-functions/ftell.texi: Mention Solaris bug.
28530         * doc/posix-functions/ftello.texi: Likewise.
28531         Reported by Eric Blake.
28532
28533 2010-05-01  Bruno Haible  <bruno@clisp.org>
28534
28535         freading: Adapt to special meaning of _IOREAD flag on Solaris.
28536         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
28537         the _IOWRT flag is also set.
28538
28539 2010-05-01  Bruno Haible  <bruno@clisp.org>
28540
28541         Fix doc about a HP-UX stdio bug.
28542         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
28543         * doc/posix-functions/ftello.texi: Likewise.
28544
28545 2010-05-01  Bruno Haible  <bruno@clisp.org>
28546
28547         lseek test: Fix failure on Solaris.
28548         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
28549         output.
28550
28551 2010-04-30  Jim Meyering  <meyering@redhat.com>
28552
28553         bootstrap: don't ignore failure to generate po*/Makevars
28554         * build-aux/bootstrap (with_gettext): Don't ignore failure
28555         to create po/Makevars or runtime-po/Makevars.
28556
28557 2010-04-29  Eric Blake  <eblake@redhat.com>
28558
28559         headers: relax license to LGPLv2+
28560         * modules/fcntl-h (License): Relax license.
28561         * modules/getopt-posix (License): Likewise.
28562         * modules/locale (License): Likewise.
28563         * modules/math (License): Likewise.
28564         * modules/pty (License): Likewise.
28565         * modules/sched (License): Likewise.
28566         * modules/search (License): Likewise.
28567         * modules/spawn (License): Likewise.
28568         * modules/stdarg (License): Likewise.
28569         * modules/sysexits (License): Likewise.
28570
28571 2010-04-29  Jim Meyering  <meyering@redhat.com>
28572
28573         inttypes: relax license to LGPLv2+
28574         * modules/inttypes (License): Relax license.
28575
28576 2010-04-29  Simon Josefsson  <simon@josefsson.org>
28577
28578         * top/maint.mk (indent): Run twice to produce idempotent results.
28579
28580 2010-04-28  Bruno Haible  <bruno@clisp.org>
28581
28582         getdate: Generate getdate.c in the source directory.
28583         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
28584         MOSTLYCLEANFILES.
28585         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
28586
28587 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
28588
28589         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
28590         is not declared as a const *; avoid warnings in that case.
28591
28592 2010-04-28  Eric Blake  <eblake@redhat.com>
28593
28594         canonicalize-lgpl: avoid compiler warning
28595         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
28596         declaration' / 'extraneous semicolon' warning with some compilers.
28597         Reported by Andreas Gruenbacher.
28598
28599 2010-04-28  Jim Meyering  <meyering@redhat.com>
28600
28601         init.sh: ensure a more reliable exit status when exiting via trap
28602         * tests/init.sh (setup_): Don't rely on $? in signal handler.
28603         Inspired by patches from Dmitry V. Levin.
28604         Also trap on signal 3 (SIGQUIT).
28605
28606 2010-04-27  Bruno Haible  <bruno@clisp.org>
28607
28608         Update doc about utimes().
28609         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
28610         'utimens' module.
28611         Reported by Andreas Gruenbacher <agruen@suse.de>.
28612
28613 2010-04-27  Eric Blake  <eblake@redhat.com>
28614
28615         full-read, full-write: relax license
28616         * modules/full-read (License): Drop to LGPLv2+.
28617         * modules/full-write (License): Likewise.
28618         * modules/safe-read (License): Likewise.
28619         * modules/safe-write (License): Likewise.
28620
28621         pthread: mention library for linking
28622         * modules/pthread (Link): Mention $(LIB_PTHREAD).
28623
28624 2010-04-27  Jim Meyering  <meyering@redhat.com>
28625
28626         maint.mk: fix a bug introduced in last change
28627         * top/maint.mk (gl_assured_headers_): Now that all names are on
28628         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
28629         is not anchored to end of word, it should be adequate.
28630
28631         maint.mk: avoid side-effect in latest syntax-check
28632         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
28633         to run commands via $(shell...), and hence to incur cost only when
28634         the new rule is actually run.
28635
28636         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
28637         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
28638         and use that to create a regexp used to detect all #if HAVE_..._H uses.
28639         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
28640         (gl_assured_headers_, az_, AZ_): Define.
28641         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
28642
28643 2010-04-26  Jim Meyering  <jim@meyering.net>
28644             Bruno Haible  <bruno@clisp.org>
28645
28646         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
28647         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
28648         Prompted by an exchange with Gilles Espinasse.
28649
28650 2010-04-26  Jim Meyering  <meyering@redhat.com>
28651
28652         git-version-gen: aesthetic tweak
28653         * build-aux/git-version-gen: Use "$nl" rather than a literal,
28654         so that the command remains on a single line.
28655
28656 2010-04-26  Eric Blake  <eblake@redhat.com>
28657
28658         git-version-gen: allow use on EBCDIC hosts
28659         * build-aux/git-version-gen (dirty): Use literal rather than tying
28660         ourselves to ascii.
28661         Reported by Steve Goetze.
28662
28663 2010-04-25  Bruno Haible  <bruno@clisp.org>
28664
28665         netdb: Add support for GNULIB_POSIXCHECK.
28666         * lib/netdb.in.h: Include warn-on-use.h.
28667         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
28668         functions are used when GNULIB_POSIXCHECK is defined and the
28669         getaddrinfo module is not in use.
28670         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
28671         freeaddrinfo, gai_strerror, getnameinfo are declared.
28672         * modules/netdb (Depends-on): Add warn-on-use.
28673         (Makefile.am): Include warn-on-use.h in netdb.h.
28674
28675 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
28676
28677         build: avoid "make check" failure without .git/ directory
28678         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
28679         there is no .git/ directory.
28680
28681 2010-04-25  Bruno Haible  <bruno@clisp.org>
28682
28683         ptsname: Fix misuse of ttyname_r.
28684         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
28685         of errno.
28686
28687 2010-04-25  Bruno Haible  <bruno@clisp.org>
28688
28689         ttyname_r: Make it work on Solaris 10.
28690         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
28691         if the system function has the POSIX declaration. Test whether the
28692         function fails if the buffer is less than 128 bytes large.
28693         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
28694         system's ttyname_r function. Provide a reasonably large buffer.
28695         * modules/ttyname_r (Depends-on): Add extensions.
28696         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
28697
28698 2010-04-25  Bruno Haible  <bruno@clisp.org>
28699
28700         Use the 'extensions' module for some more functions on Solaris.
28701         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
28702         module.
28703         * doc/posix-functions/ctime_r.texi: Likewise.
28704         * doc/posix-functions/getgrgid_r.texi: Likewise.
28705         * doc/posix-functions/getgrnam_r.texi: Likewise.
28706         * doc/posix-functions/getpwnam_r.texi: Likewise.
28707         * doc/posix-functions/getpwuid_r.texi: Likewise.
28708         * doc/posix-functions/readdir_r.texi: Likewise.
28709         * doc/posix-functions/sigwait.texi: Likewise.
28710         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
28711         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
28712
28713 2010-04-25  Bruno Haible  <bruno@clisp.org>
28714
28715         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
28716         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
28717         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
28718         * lib/ttyname_r.c: Include <limits.h>.
28719         (ttyname_r): Define using the system's ttyname_r function, if it exists
28720         and not on Solaris.
28721         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
28722         set.
28723         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
28724         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
28725         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
28726         Reported by Simon Josefsson.
28727
28728 2010-04-25  Bruno Haible  <bruno@clisp.org>
28729
28730         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
28731         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
28732         * doc/posix-functions/ctime_r.texi: Likewise.
28733         * doc/posix-functions/getgrgid_r.texi: Likewise.
28734         * doc/posix-functions/getgrnam_r.texi: Likewise.
28735         * doc/posix-functions/getlogin_r.texi: Likewise.
28736         * doc/posix-functions/getpwnam_r.texi: Likewise.
28737         * doc/posix-functions/getpwuid_r.texi: Likewise.
28738         * doc/posix-functions/readdir_r.texi: Likewise.
28739         * doc/posix-functions/sigwait.texi: Likewise.
28740         * doc/posix-functions/ttyname_r.texi: Likewise.
28741         Reported by Simon Josefsson.
28742
28743 2010-04-25  Bruno Haible  <bruno@clisp.org>
28744
28745         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
28746         * gnulib-tool (func_usage): Document that --with-*-tests options apply
28747         also to --create-testdir.
28748         (func_acceptable): Don't consider the status of *-tests modules here.
28749         (func_modules_transitive_closure): Consider it here, before including a
28750         test module.
28751         (func_import, func_create_testdir): Set inc_all_direct_tests,
28752         inc_all_indirect_tests.
28753         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
28754         --create-testdir and --create-megatestdir.
28755
28756 2010-04-25  Bruno Haible  <bruno@clisp.org>
28757
28758         gnulib-tool: Add --without-*-tests options.
28759         * gnulib-tool (func_usage): Document the --without-*-tests options.
28760         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
28761         excl_unportable_tests): New variables.
28762         Fail if they are specified with --import or --update.
28763         (func_acceptable): Respect the excl_*_tests variables.
28764         (func_import): Set the excl_*_tests variables to empty.
28765
28766 2010-04-25  Simon Josefsson  <simon@josefsson.org>
28767             Bruno Haible  <bruno@clisp.org>
28768
28769         Work around a MacOS X 10.4 bug with openpty.
28770         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
28771         * tests/test-openpty.c (main): Close the master side explicitly.
28772
28773 2010-04-25  Bruno Haible  <bruno@clisp.org>
28774
28775         strnlen: Fix a C++ test error on MacOS X and Solaris.
28776         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
28777         the function is not declared.
28778         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
28779         Simon Josefsson.
28780
28781 2010-04-24  Bruno Haible  <bruno@clisp.org>
28782
28783         Avoid a gcc warning.
28784         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
28785         of correct type for %08lx directive.
28786         Reported by Eric Blake.
28787
28788 2010-04-24  Bruno Haible  <bruno@clisp.org>
28789
28790         vasnprintf: Correct errno value in case of out-of-memory.
28791         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
28792         or sprintf. Use the errno value from SNPRINTF or sprintf.
28793         Reported by Ian Beckwith <ianb@erislabs.net>.
28794
28795 2010-04-24  Bruno Haible  <bruno@clisp.org>
28796
28797         ansi-c++-opt: Find correct compiler when cross-compiling.
28798         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
28799         AC_CHECK_PROGS.
28800         Reported by Simon Josefsson.
28801
28802 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
28803
28804         vc-list-files: Add support for subversion
28805         * build-aux/vc-list-files: Use "svn list" to generate the list of
28806         files controlled by subversion.
28807
28808 2010-04-23  Jim Meyering  <meyering@redhat.com>
28809
28810         vc-list-files tests: convert to use init.sh
28811         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
28812         path_prepend_.
28813         Use Exit, not exit.
28814         Use skip_ rather than open coding it.
28815         Remove trap set-up and compare definitions.
28816         * tests/test-vc-list-files-git.sh: Likewise.
28817         * modules/vc-list-files-tests (Files): Add tests/init.sh.
28818
28819 2010-04-22  Simon Josefsson  <simon@josefsson.org>
28820
28821         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
28822         backup files.
28823
28824 2010-04-21  Simon Josefsson  <simon@josefsson.org>
28825
28826         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
28827
28828 2010-04-20  Eric Blake  <eblake@redhat.com>
28829
28830         tests: be robust to ignored SIGPIPE
28831         * tests/test-select-in.sh: Consume all output.
28832         * tests/test-lseek.sh: Check correct exit status, while avoiding
28833         EPIPE.
28834
28835 2010-04-20  Simon Josefsson  <simon@josefsson.org>
28836             Bruno Haible  <bruno@clisp.org>
28837
28838         visibility: Don't use -fvisibility if it leads to a warning.
28839         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
28840         yes, don't pretend that visibility works if it leads to a warning.
28841         Reported by Mike Gran <spk121@yahoo.com>.
28842
28843 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
28844
28845         * build-aux/bootstrap: Use "git -h" for testing for supported options
28846         instead of "git --help".  The short-form option only shows a summary,
28847         and doesn't layout the full man page.  Grep for the full option name
28848         in the summary, too.
28849
28850 2010-04-19  Bruno Haible  <bruno@clisp.org>
28851
28852         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
28853         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
28854         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
28855         mention of RELOCATABLE_STRIP.
28856         Reported by Sylvain Beucler <beuc@beuc.net>.
28857
28858 2010-04-19  Bruno Haible  <bruno@clisp.org>
28859
28860         * lib/diffseq.h: Fix typo in comment.
28861         Reported by Eric Blake.
28862
28863 2010-04-19  Bruno Haible  <bruno@clisp.org>
28864
28865         ioctl: Move autoconf macro to a .m4 file.
28866         * m4/ioctl.m4: New file, extracted from modules/ioctl.
28867         * modules/ioctl (Files): Add it.
28868         (configure.ac): Simply invoke gl_FUNC_IOCTL.
28869         Reported by Ian Beckwith <ianb@erislabs.net>.
28870
28871 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
28872             Bruno Haible  <bruno@clisp.org>
28873
28874         diffseq: Accommodate use-case with abstract arrays.
28875         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
28876         is not defined.
28877         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
28878         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
28879
28880 2010-04-18  Bruno Haible  <bruno@clisp.org>
28881
28882         * doc/posix-headers/stdbool.texi: More precise wording.
28883
28884 2010-04-17  Jim Meyering  <meyering@redhat.com>
28885
28886         maint.mk: use gnu-style indentation in an embedded perl script
28887         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
28888         Rename variable: s/two/last_two_bytes/
28889
28890 2010-04-16  Eric Blake  <eblake@redhat.com>
28891
28892         test-stdbool: skip test that fails with Solaris CC
28893         * tests/test-stdbool.c (f): Skip test that causes compilation
28894         error under buggy C++ compiler.
28895         * lib/stdbool.in.h: Document the limitation.
28896         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
28897
28898         setenv: allow compilation with C++
28899         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
28900         register keyword.
28901
28902         stdint: allow test to pass with C++
28903         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
28904
28905         getopt: allow compilation with C++
28906         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
28907         struct.
28908         * lib/getopt.c (_getopt_internal_r): Use correct type.
28909         Reported by Dagobert Michelson, via Joel E. Denny.
28910
28911 2010-04-16  Bruno Haible  <bruno@clisp.org>
28912
28913         Override netdb.h always.
28914         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
28915         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
28916         Reported by Ludovic Courtès <ludo@gnu.org>.
28917
28918 2010-04-15  Bruno Haible  <bruno@clisp.org>
28919
28920         openpty: Fix mistake from 2010-03-21.
28921         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
28922         Reported by Simon Josefsson.
28923
28924 2010-04-15  Eric Blake  <eblake@redhat.com>
28925
28926         test-forkpty: fix expected signature
28927         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
28928         Reported by Simon Josefsson.
28929
28930 2010-04-15  Jim Meyering  <meyering@redhat.com>
28931
28932         maint.mk: texinfo_suffix_re_: correct the default regexp
28933         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
28934
28935         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
28936         make it configurable via texinfo_suffix_re_.
28937
28938 2010-04-14  Eric Blake  <eblake@redhat.com>
28939
28940         strtok_r: relax license to LGPLv2+
28941         * modules/strtok_r (License): Relax license.
28942         Reported by Matthias Bolte.
28943
28944 2010-04-14  Simon Josefsson  <simon@josefsson.org>
28945
28946         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
28947         version 1.4.4 by default instead of requiring the libgcrypt
28948         version used during build.  This makes it possible to use the
28949         application with older but still binary compatible libgcrypt
28950         versions.
28951
28952 2010-04-13  Eric Blake  <eblake@redhat.com>
28953
28954         getopt-gnu: match recent glibc fixes and posix ruling
28955         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
28956         '+' handling, when requesting extensions.
28957         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
28958         'W;' handling.
28959         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
28960         * doc/posix-functions/getopt.texi (getopt): Document this.
28961         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
28962         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
28963         Likewise.
28964
28965         getopt: merge bug fixes from glibc
28966         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
28967         diagnostics.  Honor '+:' correctly.  Reject ';'.
28968
28969         getopt-posix: detect MacOS bug
28970         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
28971         optind when missing a required argument.
28972         * doc/posix-functions/getopt.texi (getopt): Document the bug.
28973         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
28974         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
28975         Likewise.
28976
28977         getopt-posix: avoid spurious failure on Solaris
28978         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
28979         an indicator that setting optind=1 is sufficient for reset.
28980
28981         getopt-posix: avoid spurious failure on FreeBSD
28982         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
28983         in POSIX mode, since the m4 test uses it.
28984
28985         gnulib-tool: silence warning on BSD sh
28986         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
28987
28988 2010-04-13  Jim Meyering  <meyering@redhat.com>
28989
28990         doc: users.txt: GNU patch now uses gnulib
28991         * users.txt: Add patch.
28992
28993 2010-04-12  Jim Meyering  <meyering@redhat.com>
28994
28995         maint.mk: generate more concise timing data for syntax-check rules
28996         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
28997         " done" from each line that reports a syntax-check test duration.
28998
28999 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
29000
29001         git-version-gen: use "git update-index..." rather than "git status"
29002         * build-aux/git-version-gen: Use git update-index --refresh, not
29003         "git status".  With some versions of git, "git status" would fail
29004         to update the index and result in an unwarranted "-dirty" suffix.
29005
29006 2010-04-11  Jim Meyering  <meyering@redhat.com>
29007
29008         openat: correct formatting (no semantic change)
29009         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
29010         Suggested by Bruno Haible.
29011
29012 2010-04-11  Bruno Haible  <bruno@clisp.org>
29013
29014         Stricter declaration checking in testdirs.
29015         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
29016         If for_tests is true, augment AM_CPPFLAGS to define
29017         GNULIB_STRICT_CHECKING.
29018         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
29019         GNULIB_STRICT_CHECKING is defined, verify that the function is
29020         declared.
29021
29022 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
29023             Bruno Haible  <bruno@clisp.org>
29024
29025         libunistring: Improve configure output.
29026         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
29027         Don't say "consider installing GNU libunistring" when checking again
29028         with libiconv.
29029
29030 2010-04-11  Bruno Haible  <bruno@clisp.org>
29031
29032         libunistring: Correct value of $LTLIBUNISTRING.
29033         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
29034         correct the value of $LTLIBUNISTRING.
29035
29036 2010-04-11  Bruno Haible  <bruno@clisp.org>
29037
29038         havelib: Add static libraries to LIBS in the right order.
29039         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
29040         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
29041
29042 2010-04-11  Bruno Haible  <bruno@clisp.org>
29043
29044         libunistring: Detect libunistring also when it depends on libiconv.
29045         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
29046         the second AC_LIB_HAVE_LINKFLAGS invocation.
29047
29048 2010-04-11  James Youngman  <jay@gnu.org>
29049
29050         close-stream: declare local scalars to be "const"
29051         * lib/close-stream.c (close_stream): Make boolean variables const
29052         to document the fact that we set but do not change them.
29053
29054 2010-04-11  Bruno Haible  <bruno@clisp.org>
29055
29056         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
29057
29058 2010-04-11  Jim Meyering  <meyering@redhat.com>
29059
29060         maint.mk: don't include dist-check.mk
29061         * top/maint.mk: Remove bogus include directive.
29062
29063         maint.mk: improve empty-line-at-EOF check
29064         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
29065         solution, rather than tail+Perl-based one.  The latter would read
29066         a few kilobytes from the end of each file, and did not handle empty
29067         files properly.
29068
29069         maint.mk: print the elapsed time for each syntax-check rule
29070         * top/maint.mk (sc_m_rules_): Save start time in a file.
29071         (sc_z_rules_): New rules: remove temp file and print elapsed time.
29072         (local-check): Interpose the .z rules
29073
29074 2010-04-11  Jim Meyering  <meyering@redhat.com>
29075
29076         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
29077         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
29078         empty file with one that ends in an empty line.
29079
29080 2010-04-10  Bruno Haible  <bruno@clisp.org>
29081
29082         mkdir: Make it work on mingw64.
29083         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
29084         * lib/mkdir.c: Update comment.
29085         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
29086
29087 2010-04-10  Bruno Haible  <bruno@clisp.org>
29088
29089         Don't override improved macro from newer autoconf.
29090         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
29091         autoconf >= 2.62.
29092         Reported by Joel E. Denny <jdenny@clemson.edu>.
29093
29094 2010-04-10  Jim Meyering  <meyering@redhat.com>
29095
29096         maint.mk: new syntax-check rule: prohibit empty lines at end of file
29097         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
29098
29099         maint.mk: correct a diagnostic
29100         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
29101         in diagnostic; now use $prohibit.
29102
29103 2010-04-10  Bruno Haible  <address@hidden>
29104
29105         fchownat: Fix a C++ test error on Solaris 8.
29106         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
29107         the function does not exist.
29108
29109 2010-04-10  Bruno Haible  <bruno@clisp.org>
29110
29111         vasnprintf: Add more tests.
29112         * tests/test-vasnprintf-posix.c: Include <errno.h>.
29113         (test_function): Test converting an invalid wide string.
29114
29115         vasnprintf: Correct handling of unconvertible wide string arguments.
29116         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
29117         VASNPRINTF.
29118         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
29119         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
29120         smaller than the expected maximum need for the directive. Set errno to
29121         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
29122         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
29123         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
29124         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
29125         * modules/vasnprintf (Files): Add m4/printf.m4.
29126         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29127
29128 2010-04-10  Bruno Haible  <bruno@clisp.org>
29129
29130         vasnprintf: Fix crash in %ls directive.
29131         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
29132         string is passed as argument to %ls, with no precision and no width.
29133         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29134
29135 2010-04-10  Bruno Haible  <bruno@clisp.org>
29136
29137         vasnprintf: Fix multiple test failures on mingw.
29138         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
29139         _snprintf, or snwprintf, not _snwprintf.
29140
29141 2010-04-10  Bruno Haible  <bruno@clisp.org>
29142
29143         write: Fix a C++ test error on mingw.
29144         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
29145
29146 2010-04-10  Bruno Haible  <bruno@clisp.org>
29147
29148         vasnprintf test: Reduce code duplication.
29149         * tests/test-vasnprintf.c (test_function): New function, extracted from
29150         test_vasnprintf.
29151         (test_vasnprintf, test_asnprintf): Invoke it.
29152
29153 2010-04-10  Bruno Haible  <bruno@clisp.org>
29154
29155         strnlen: Fix warning in C++ mode on MacOS X.
29156         * lib/string.in.h (strnlen): Use the modern idiom.
29157         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
29158         defining strnlen as a macro already in <config.h>.
29159         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
29160         REPLACE_STRNLEN.
29161         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
29162         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29163
29164 2010-04-08  James Youngman  <jay@gnu.org>
29165
29166         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
29167         the example.
29168
29169 2010-04-09  Jim Meyering  <meyering@redhat.com>
29170
29171         maint.mk: print better diagnostic when there is no $(_hv_file)
29172         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
29173         announce that when $(_hv_file) (aka help-version) does not exist.
29174
29175         init.sh: run tr in the "C" locale to avoid multibyte interpretation
29176         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
29177         not try to interpret its random input bytes.  Jarno Rajahalme reported
29178         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
29179         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
29180         (mktempd_): Likewise, just in case.
29181
29182         ftruncate: add two years to projected module removal date: 2012
29183         * m4/ftruncate.m4: Adjust comments.
29184
29185         ftruncate: mark module as obsolete; even MinGW provides it, now
29186         * modules/ftruncate (Status): Obsolete.
29187         (Notice): Say that.
29188         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
29189         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
29190
29191 2010-04-08  Bruno Haible  <bruno@clisp.org>
29192
29193         Fix side effects from tests-related modules.
29194         * modules/dprintf-posix (Comment): New section.
29195         * modules/fprintf-posix (Comment): Likewise.
29196         * modules/obstack-printf-posix (Comment): Likewise.
29197         * modules/printf-posix (Comment): Likewise.
29198         * modules/snprintf-posix (Comment): Likewise.
29199         * modules/sprintf-posix (Comment): Likewise.
29200         * modules/vasnprintf-posix (Comment): Likewise.
29201         * modules/vasprintf-posix (Comment): Likewise.
29202         * modules/vdprintf-posix (Comment): Likewise.
29203         * modules/vfprintf-posix (Comment): Likewise.
29204         * modules/vprintf-posix (Comment): Likewise.
29205         * modules/vsnprintf-posix (Comment): Likewise.
29206         * modules/vsprintf-posix (Comment): Likewise.
29207         * modules/xprintf-posix (Comment): Likewise.
29208         * modules/xvasprintf-posix (Comment): Likewise.
29209         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
29210         * modules/floorf-tests (Depends-on): Likewise.
29211         * modules/round-tests (Depends-on): Likewise.
29212         * modules/roundf-tests (Depends-on): Likewise.
29213         * modules/trunc-tests (Depends-on): Likewise.
29214         * modules/truncf-tests (Depends-on): Likewise.
29215         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
29216         'fprintf-posix' module is not present.
29217         * tests/test-floorf2.c (check): Likewise.
29218         * tests/test-trunc2.c (check): Likewise.
29219         * tests/test-truncf2.c (check): Likewise.
29220         * tests/test-round2.c (equal): Likewise.
29221         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29222
29223 2010-04-07  Karl Berry  <karl@gnu.org>
29224
29225         * config/srclist.txt,
29226         * config/srclistvars.sh,
29227         * config/srclist-update: doc fixes.
29228
29229 2010-04-07  Jim Meyering  <meyering@redhat.com>
29230
29231         maint.mk: add a PATH crosschecking syntax-check rule
29232         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
29233         Useful if you use a test like the one in help-version (coreutils,
29234         diffutils, grep, gzip) that ensures $(VERSION) matches what is
29235         printed by prog --version.
29236
29237 2010-04-06  Bruno Haible  <bruno@clisp.org>
29238
29239         Fix link error on mingw.
29240         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
29241         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
29242
29243 2010-04-06  Bruno Haible  <bruno@clisp.org>
29244
29245         Assume rmdir exists.
29246         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
29247
29248 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
29249
29250         doc: update users.txt
29251         * users.txt: Add gcal.
29252
29253 2010-04-06  Jim Meyering  <meyering@redhat.com>
29254
29255         init.sh: simply unset TMPDIR rather than risking env -i
29256         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
29257         although it probably works fine on all Unix-based systems, some
29258         systems (Cygwin?) cannot tolerate a totally cleared environment.
29259         Suggestion from Eric Blake.
29260
29261 2010-04-06  Jim Meyering  <meyering@redhat.com>
29262
29263         init.sh: portability fix: use env's POSIX-specified -i option not -u
29264         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
29265         than unportable env -u.  Solaris 5.11's env lacks support for -u.
29266
29267 2010-04-05  Bruno Haible  <bruno@clisp.org>
29268
29269         btowc: Work around Cygwin 1.7.2 bug.
29270         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
29271         does not map NUL to 0.
29272         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
29273
29274 2010-04-05  Bruno Haible  <bruno@clisp.org>
29275
29276         Make the multithread modules work on Cygwin 1.7.2.
29277         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
29278         imported symbols can be declared weak, so that it returns "no" on
29279         Cygwin 1.7.2.
29280
29281 2010-04-05  Bruno Haible  <bruno@clisp.org>
29282
29283         Use the module 'strncat'.
29284         * modules/unistr/u8-strncat (Depends-on): Add strncat.
29285
29286         Tests for module 'strncat'.
29287         * modules/strncat-tests: New file.
29288         * tests/test-strncat.c: New file.
29289
29290         New module 'strncat'.
29291         * lib/string.in.h (strncat): New declaration.
29292         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
29293         * m4/strncat.m4: New file, based on m4/memchr.m4.
29294         * modules/strncat: New file.
29295         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
29296         is declared.
29297         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
29298         REPLACE_STRNCAT.
29299         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
29300         REPLACE_STRNCAT.
29301         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
29302         module.
29303         * tests/test-string-c++.cc: Check signature of strncat.
29304
29305 2010-04-05  Jim Meyering  <meyering@redhat.com>
29306
29307         xstrtoumax-tests: convert to use init.sh
29308         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
29309         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29310         Use Exit, not exit.
29311         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29312
29313         xstrtoimax-tests: convert to use init.sh
29314         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
29315         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29316         Use Exit, not exit.
29317         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29318
29319 2010-04-05  Bruno Haible  <bruno@clisp.org>
29320
29321         sys_socket: Avoid #define replacements in C++ mode.
29322         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
29323         warning to the function if possible, rather than #defining the symbol
29324         to a dysfunctional alias.
29325
29326 2010-04-05  Bruno Haible  <bruno@clisp.org>
29327
29328         fseeko: Fix C++ test error on mingw.
29329         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
29330         gl_FUNC_FSEEKO.
29331         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
29332         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
29333         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
29334         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
29335
29336 2010-04-05  Bruno Haible  <bruno@clisp.org>
29337
29338         duplocale: Improve test output.
29339         * tests/test-duplocale.c (main): Print reason for skipped test.
29340
29341 2010-04-05  Bruno Haible  <bruno@clisp.org>
29342
29343         Assume rmdir exists.
29344         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
29345         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
29346
29347 2010-04-05  Bruno Haible  <bruno@clisp.org>
29348
29349         Fix link error on Solaris 8 with cc.
29350         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
29351
29352 2010-04-05  Bruno Haible  <bruno@clisp.org>
29353
29354         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
29355         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
29356
29357 2010-04-05  Bruno Haible  <bruno@clisp.org>
29358
29359         vasprintf: Update documentation.
29360         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
29361
29362 2010-04-05  Bruno Haible  <bruno@clisp.org>
29363
29364         ptsname: Improve test.
29365         * tests/test-ptsname.c (main): Also try the various master names of BSD
29366         systems.
29367
29368 2010-04-05  Bruno Haible  <bruno@clisp.org>
29369
29370         memchr: Avoid a possible C++ test error.
29371         * lib/string.in.h (memchr): Provide declaration if function is missing.
29372         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
29373         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
29374         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
29375         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
29376
29377 2010-04-05  Bruno Haible  <bruno@clisp.org>
29378
29379         strtok_r: Improve idiom.
29380         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
29381         AC_LIBOBJ is used.
29382
29383 2010-04-05  Bruno Haible  <bruno@clisp.org>
29384
29385         strdup: Improve idiom.
29386         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
29387         AC_LIBOBJ is used.
29388         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
29389         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
29390         when AC_LIBOBJ is used.
29391
29392 2010-04-05  Bruno Haible  <bruno@clisp.org>
29393
29394         mbsinit, mbrtowc, wcrtomb: Improve idioms.
29395         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
29396         don't set REPLACE_MBSINIT to 1.
29397         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
29398         don't set REPLACE_MBRTOWC to 1.
29399         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
29400         exist, don't set REPLACE_MBSRTOWCS to 1.
29401         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
29402         exist, don't set REPLACE_MBSNRTOWCS to 1.
29403         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
29404         don't set REPLACE_WCRTOMB to 1.
29405         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
29406         exist, don't set REPLACE_WCSRTOMBS to 1.
29407         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
29408         exist, don't set REPLACE_WCSNRTOMBS to 1.
29409
29410 2010-04-05  Bruno Haible  <bruno@clisp.org>
29411
29412         ldexpl: Improve idiom.
29413         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
29414         make sure to set HAVE_DECL_LDEXPL to 0.
29415
29416 2010-04-05  Jim Meyering  <meyering@redhat.com>
29417
29418         xstrtol-tests: convert to use init.sh
29419         * modules/xstrtol-tests (Files): Add tests/init.sh.
29420         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29421         Use Exit, not exit.
29422         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29423
29424         atexit-tests: convert to use init.sh
29425         * modules/atexit-tests (Files): Add tests/init.sh.
29426         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
29427         Use Exit, not exit.
29428         Remove uses of $EXEEXT and "./" to run a program in the current dir.
29429
29430         init.sh: fix typo
29431         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
29432
29433         init.sh: make it easier for a test script to write to the tty, ...
29434         when using automake's parallel-tests mode.
29435         * tests/init.sh (stderr_fileno_): Define overridable variable.
29436         (warn_): New function, to use it.
29437         (fail_, skip_, framework_failure_): Use warn_.
29438
29439 2010-04-04  Bruno Haible  <bruno@clisp.org>
29440
29441         btowc: Avoid warning.
29442         * lib/btowc.c: Include <stdlib.h>.
29443         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
29444
29445 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
29446             Bruno Haible  <bruno@clisp.org>
29447
29448         wchar: Port to NetBSD 1.5.
29449         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
29450         * lib/wctype.in.h (WEOF): Likewise.
29451
29452 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
29453             Bruno Haible  <bruno@clisp.org>
29454
29455         Port extended stdio to NetBSD 1.5.
29456         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
29457         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
29458         older.
29459
29460 2010-04-04  Bruno Haible  <bruno@clisp.org>
29461
29462         string: Remove unused substitution.
29463         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
29464         HAVE_DECL_STRERROR.
29465         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
29466
29467 2010-04-04  Bruno Haible  <bruno@clisp.org>
29468
29469         strtod: Avoid a possible C++ test error.
29470         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
29471         set REPLACE_STRTOD.
29472
29473 2010-04-04  Bruno Haible  <bruno@clisp.org>
29474
29475         strerror: Update documentation.
29476         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
29477
29478 2010-04-04  Bruno Haible  <bruno@clisp.org>
29479
29480         stdio: Fix some C++ test errors on Solaris 8 with GCC.
29481         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
29482         _GL_CXXALIAS_SYS_CAST.
29483
29484 2010-04-04  Bruno Haible  <bruno@clisp.org>
29485
29486         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
29487         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
29488         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
29489         REPLACE_FREXPL to 1.
29490         * doc/posix-functions/frexpl.texi: Update documentation.
29491
29492 2010-04-04  Bruno Haible  <bruno@clisp.org>
29493
29494         math: Fix some C++ test errors on Solaris 8 and Cygwin.
29495         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
29496
29497 2010-04-04  Bruno Haible  <bruno@clisp.org>
29498
29499         Implement nanosleep for native Windows.
29500         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
29501
29502 2010-04-04  Bruno Haible  <bruno@clisp.org>
29503
29504         math: Fix some C++ test errors on Solaris 8.
29505         * lib/math.in.h (truncf, trunc): Use simpler idiom.
29506
29507 2010-04-04  Bruno Haible  <bruno@clisp.org>
29508
29509         math: Fix some C++ test errors on Cygwin.
29510         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
29511         truncl): Provide declaration if the system does not have it.
29512         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
29513         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
29514         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
29515         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
29516         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
29517         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
29518         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
29519         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
29520         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
29521         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
29522         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
29523         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
29524         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
29525         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
29526         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
29527         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
29528         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
29529         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
29530         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
29531         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
29532         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
29533         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
29534
29535 2010-04-04  Bruno Haible  <bruno@clisp.org>
29536
29537         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
29538         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
29539         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
29540         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
29541         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
29542         * m4/isinf.m4 (gl_ISINF): Likewise.
29543         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
29544
29545 2010-04-04  Bruno Haible  <bruno@clisp.org>
29546
29547         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
29548         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
29549
29550 2010-04-04  Bruno Haible  <bruno@clisp.org>
29551
29552         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
29553         * modules/tmpfile (configure.ac): Update.
29554
29555         tmpfile: Fix C++ test error on mingw.
29556         * lib/stdio.in.h (tmpfile): New declaration.
29557         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
29558         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
29559         * modules/tmpfile (Depends-on): Add stdio.
29560         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
29561         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
29562         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
29563         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
29564         REPLACE_TMPFILE.
29565         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
29566
29567 2010-04-04  Bruno Haible  <bruno@clisp.org>
29568
29569         ioctl: Fix C++ test error on mingw.
29570         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
29571         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
29572         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
29573
29574 2010-04-03  Bruno Haible  <bruno@clisp.org>
29575
29576         wcwidth: Fix C++ test error on mingw.
29577         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
29578         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
29579         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
29580
29581 2010-04-03  Bruno Haible  <bruno@clisp.org>
29582
29583         nanosleep: Fix C++ test error on mingw.
29584         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
29585         * lib/time.in.h (nanosleep): Use modern idiom.
29586         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
29587         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
29588         REPLACE_NANOSLEEP to 1.
29589         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
29590         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
29591
29592 2010-04-03  Bruno Haible  <bruno@clisp.org>
29593
29594         strptime: Fix C++ test error on mingw.
29595         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
29596         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
29597         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
29598         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
29599         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
29600         not REPLACE_STRPTIME.
29601         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
29602         REPLACE_STRPTIME.
29603
29604 2010-04-03  Bruno Haible  <bruno@clisp.org>
29605
29606         timegm: Fix C++ test error on mingw.
29607         * lib/time.in.h (timegm): Use modern idiom.
29608         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
29609         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
29610         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
29611         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
29612
29613 2010-04-03  Bruno Haible  <bruno@clisp.org>
29614
29615         timegm: Assume declaration if function exists.
29616         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
29617         if it exists. Don't clobber ac_cv_func_timegm.
29618
29619 2010-04-03  Bruno Haible  <bruno@clisp.org>
29620
29621         time_r: Fix C++ test error on mingw.
29622         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
29623         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
29624         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
29625         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
29626         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
29627
29628 2010-04-03  Bruno Haible  <bruno@clisp.org>
29629
29630         time_r: Minor updates.
29631         * modules/time_r (Description): Mention the provided functions.
29632         * lib/time_r.c: Don't include <string.h>.
29633         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
29634         * doc/posix-functions/localtime_r.texi: Likewise.
29635
29636 2010-04-03  Bruno Haible  <bruno@clisp.org>
29637
29638         time: Fix regression introduced on 2010-03-08.
29639         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
29640         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
29641
29642 2010-04-03  Jim Meyering  <meyering@redhat.com>
29643
29644         maint.mk: don't silently disable project-specific syntax-check rules
29645         * top/maint.mk (_prohibit_regexp): Define, to help people realize
29646         that they need to convert their project-specific syntax-check rules
29647         to use the new _sc_search_regexp.
29648
29649 2010-04-03  Bruno Haible  <bruno@clisp.org>
29650
29651         fchdir: Fix regression introduced on 2010-03-08.
29652         * lib/unistd.in.h (fchdir): Fix declaration.
29653         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
29654         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
29655         REPLACE_FCHDIR.
29656         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
29657         REPLACE_FCHDIR.
29658
29659 2010-04-03  Bruno Haible  <bruno@clisp.org>
29660
29661         getpagesize: Fix C++ test error on mingw.
29662         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
29663         system does not declare the function.
29664         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
29665         declared.
29666         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
29667         HAVE_DECL_GETPAGESIZE.
29668         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
29669
29670 2010-04-03  Bruno Haible  <bruno@clisp.org>
29671
29672         stdio: Make C++ tests work on mingw.
29673         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
29674         does not declare the function.
29675
29676 2010-04-03  Bruno Haible  <bruno@clisp.org>
29677
29678         ftello: Fix C++ test error on mingw.
29679         * lib/stdio.in.h (ftello): Use modern idiom.
29680         * lib/ftello.c (ftello): Renamed from rpl_ftello.
29681         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
29682         is missing and that it needs to be replaced.
29683         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
29684         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
29685         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
29686
29687 2010-04-03  Bruno Haible  <bruno@clisp.org>
29688
29689         fseeko: Fix C++ test error on mingw.
29690         * lib/stdio.in.h (fseeko): Use modern idiom.
29691         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
29692         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
29693         is missing and that it needs to be replaced.
29694         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
29695         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
29696         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
29697
29698 2010-04-03  Bruno Haible  <bruno@clisp.org>
29699
29700         mkstemp: Fix C++ test error on mingw.
29701         * lib/stdlib.in.h (mkstemp): Use modern idiom.
29702         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
29703         function is missing and that it needs to be replaced.
29704         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
29705         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
29706
29707 2010-04-03  Bruno Haible  <bruno@clisp.org>
29708
29709         stpncpy: Fix C++ test error on mingw.
29710         * lib/string.in.h (stpncpy): Use modern idiom.
29711         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
29712         function is missing and that it needs to be replaced.
29713         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
29714         REPLACE_STPNCPY.
29715         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
29716
29717 2010-04-03  Bruno Haible  <bruno@clisp.org>
29718
29719         sys_stat: Fix C++ test error on mingw.
29720         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
29721         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
29722
29723 2010-04-03  Bruno Haible  <bruno@clisp.org>
29724
29725         pty: Update doc.
29726         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
29727
29728 2010-04-03  Bruno Haible  <bruno@clisp.org>
29729
29730         unistd: Fix C++ test error on mingw.
29731         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
29732
29733 2010-04-03  Bruno Haible  <bruno@clisp.org>
29734
29735         Update doc regarding mingw.
29736         * doc/glibc-functions/openpty.texi: Update regarding mingw.
29737         * doc/glibc-functions/login_tty.texi: Likewise.
29738         * doc/glibc-functions/forkpty.texi: Likewise.
29739
29740 2010-04-03  Bruno Haible  <bruno@clisp.org>
29741
29742         stdlib: Avoid compilation failure of c-strtold on mingw.
29743         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
29744
29745 2010-04-03  Bruno Haible  <bruno@clisp.org>
29746
29747         locale: Make C++ tests work on Cygwin and mingw.
29748         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
29749         cannot provide the function.
29750         Reported by Simon Josefsson.
29751
29752 2010-04-03  Bruno Haible  <bruno@clisp.org>
29753
29754         localename: Port to MacOS X 10.6.
29755         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
29756         memory layout of the locales in MacOS X 10.6 as well.
29757         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
29758
29759 2010-04-02  Bruno Haible  <bruno@clisp.org>
29760
29761         gnulib-tool: Ensure that long-running tests are executed last.
29762         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
29763         running tests after the one for the other tests.
29764
29765 2010-04-02  Bruno Haible  <bruno@clisp.org>
29766
29767         gnulib-tool: Ensure the tests in the main directory are executed first.
29768         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
29769         start with the current directory.
29770
29771 2010-04-02  Bruno Haible  <bruno@clisp.org>
29772
29773         Tests for module 'havelib', moved here from GNU gettext.
29774         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
29775         modifications.
29776         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
29777         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
29778         with modifications.
29779         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
29780         modifications.
29781         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
29782         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
29783         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
29784         with modifications.
29785         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
29786         with modifications.
29787         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
29788         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
29789         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
29790         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
29791         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
29792         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
29793         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
29794         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
29795         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
29796         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
29797         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
29798         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
29799         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
29800         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
29801         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
29802         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
29803         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
29804         with modifications.
29805         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
29806         with modifications.
29807         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
29808         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
29809         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
29810         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
29811         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
29812         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
29813         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
29814         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
29815         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
29816         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
29817         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
29818         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
29819         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
29820         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
29821         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
29822         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
29823         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
29824         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
29825         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
29826         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
29827         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
29828         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
29829         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
29830         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
29831         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
29832         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
29833         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
29834         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
29835         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
29836         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
29837         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
29838         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
29839         * tests/havelib/rpathx/rpathx.c: New file, from
29840         gettext/autoconf-lib-link.
29841         * tests/havelib/rpathx/Makefile.am: New file, from
29842         gettext/autoconf-lib-link.
29843         * tests/havelib/rpathx/configure.ac: New file, from
29844         gettext/autoconf-lib-link with modifications.
29845         * tests/havelib/rpathy/rpathy.c: New file, from
29846         gettext/autoconf-lib-link.
29847         * tests/havelib/rpathy/Makefile.am: New file, from
29848         gettext/autoconf-lib-link.
29849         * tests/havelib/rpathy/configure.ac: New file, from
29850         gettext/autoconf-lib-link with modifications.
29851         * tests/havelib/rpathz/rpathz.c: New file, from
29852         gettext/autoconf-lib-link.
29853         * tests/havelib/rpathz/Makefile.am: New file, from
29854         gettext/autoconf-lib-link.
29855         * tests/havelib/rpathz/configure.ac: New file, from
29856         gettext/autoconf-lib-link with modifications.
29857         * tests/havelib/rpathlx/usex.c: New file, from
29858         gettext/autoconf-lib-link.
29859         * tests/havelib/rpathlx/Makefile.am: New file, from
29860         gettext/autoconf-lib-link.
29861         * tests/havelib/rpathlx/configure.ac: New file, from
29862         gettext/autoconf-lib-link with modifications.
29863         * tests/havelib/rpathly/usey.c: New file, from
29864         gettext/autoconf-lib-link.
29865         * tests/havelib/rpathly/Makefile.am: New file, from
29866         gettext/autoconf-lib-link.
29867         * tests/havelib/rpathly/configure.ac: New file, from
29868         gettext/autoconf-lib-link with modifications.
29869         * tests/havelib/rpathlz/usez.c: New file, from
29870         gettext/autoconf-lib-link.
29871         * tests/havelib/rpathlz/Makefile.am: New file, from
29872         gettext/autoconf-lib-link.
29873         * tests/havelib/rpathlz/configure.ac: New file, from
29874         gettext/autoconf-lib-link with modifications.
29875         * tests/havelib/rpathlyx/usey.c: New file, from
29876         gettext/autoconf-lib-link.
29877         * tests/havelib/rpathlyx/Makefile.am: New file, from
29878         gettext/autoconf-lib-link.
29879         * tests/havelib/rpathlyx/configure.ac: New file, from
29880         gettext/autoconf-lib-link with modifications.
29881         * tests/havelib/rpathlzyx/usez.c: New file, from
29882         gettext/autoconf-lib-link.
29883         * tests/havelib/rpathlzyx/Makefile.am: New file, from
29884         gettext/autoconf-lib-link.
29885         * tests/havelib/rpathlzyx/configure.ac: New file, from
29886         gettext/autoconf-lib-link with modifications.
29887         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
29888         with modifications.
29889
29890 2010-04-02  Bruno Haible  <bruno@clisp.org>
29891
29892         gnulib-tool: Create distributed built sources also for the tests.
29893         * gnulib-tool (func_create_testdir): Also generate distributed built
29894         sources in the tests directory.
29895
29896 2010-04-02  Bruno Haible  <bruno@clisp.org>
29897
29898         gnulib-tool: Obey user's environment variables.
29899         * gnulib-tool (func_create_testdir): When creating built sources,
29900         respect the environment variables for autoconf, automake, etc. given by
29901         the user.
29902
29903 2010-04-02  Bruno Haible  <bruno@clisp.org>
29904
29905         gnulib-tool: Provide the value of --m4-base to modules.
29906         * gnulib-tool (func_import, func_create_testdir): Emit a definition
29907         of gl_m4_base.
29908
29909 2010-04-02  Eric Blake  <eblake@redhat.com>
29910
29911         maint.mk: fix some fallout
29912         * NEWS: Document the incompatible change, and its effect on cfg.mk.
29913         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
29914
29915 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
29916
29917         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
29918         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
29919         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
29920         (sc_cast_of_x_alloc_return_value): Likewise.
29921         (sc_cast_of_alloca_return_value): Likewise.
29922         (sc_space_tab): Likewise.
29923         (sc_prohibit_atoi_atof): Likewise.
29924         (sc_prohibit_magic_number_exit): Likewise.
29925         (sc_error_exit_success): Likewise.
29926         (sc_file_system): Likewise.
29927         (sc_prohibit_have_config_h): Likewise.
29928         (sc_require_config_h): Likewise.
29929         (sc_prohibit_HAVE_MBRTOWC): Likewise.
29930         (sc_obsolete_symbols): Likewise.
29931         (sc_changelog): Likewise.
29932         (sc_program_name): Likewise.
29933         (sc_the_the): Likewise.
29934         (sc_trailing_blank): Likewise.
29935         (sc_two_space_separator_in_usage): Likewise.
29936         (sc_useless_cpp_parens): Likewise.
29937         (sc_GPL_version): Likewise.
29938         (sc_GFDL_version): Likewise.
29939         (sc_texinfo_acronym): Likewise.
29940         (sc_prohibit_cvs_keyword): Likewise.
29941         (sc_prohibit_stat_st_blocks): Likewise.
29942         (sc_prohibit_S_IS_definition): Likewise.
29943         (sc_redundant_const): Likewise.
29944         (sc_makefile_TAB_only_indentation): Likewise.
29945         (sc_m4_quote_check): Likewise.
29946         (sc_makefile_path_separator_check): Likewise.
29947         (sc_copyright_check): Likewise.
29948         (sc_Wundef_boolean): Likewise.
29949         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
29950
29951         maint.mk: match 0 or more whitespace-before-function-call '('
29952         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
29953         that have zero or two-and-more spaces between the function name
29954         and the open parenthesis.
29955         (sc_error_message_warn_fatal): Likewise.
29956         (sc_error_message_uppercase): Likewise.
29957         (sc_error_message_period): Likewise.
29958
29959 2010-03-31  Eric Blake  <eblake@redhat.com>
29960
29961         maint.mk: check for [ as well as test
29962         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
29963         Based on a libvirt report by Matthias Bolte.
29964
29965         gnumakefile: don't squelch _version output
29966         * top/GNUmakefile (_version): Create one-shot dependency rather
29967         than using $(shell) when version must be regenerated.
29968         (_autoreconf): Run verbosely, by default.
29969
29970         sys_time: avoid compiler warnings
29971         * lib/sys_time.in.h (includes): Ensure gcc pragma is
29972         unconditional, fixing regression from 2010-03-29.
29973         Reported by Simon Josefsson.
29974
29975 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
29976
29977         maint.mk: s/_header_without_use/_sc_header_without_use/
29978         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
29979         (sc_prohibit_assert_without_use): Use the new name.
29980         (sc_prohibit_close_stream_without_use): Likewise.
29981         (sc_prohibit_getopt_without_use): Likewise.
29982         (sc_prohibit_quotearg_without_use): Likewise.
29983         (sc_prohibit_quote_without_use): Likewise.
29984         (sc_prohibit_long_options_without_use): Likewise.
29985         (sc_prohibit_inttostr_without_use): Likewise.
29986         (sc_prohibit_ignore_value_without_use): Likewise.
29987         (sc_prohibit_error_without_use): Likewise.
29988         (sc_prohibit_xalloc_without_use): Likewise.
29989         (sc_prohibit_hash_without_use): Likewise.
29990         (sc_prohibit_hash_pjw_without_use): Likewise.
29991         (sc_prohibit_safe_read_without_use): Likewise.
29992         (sc_prohibit_argmatch_without_use): Likewise.
29993         (sc_prohibit_canonicalize_without_use): Likewise.
29994         (sc_prohibit_root_dev_ino_without_use): Likewise.
29995         (sc_prohibit_openat_without_use): Likewise.
29996         (sc_prohibit_c_ctype_without_use): Likewise.
29997         (sc_prohibit_signal_without_use): Likewise.
29998         (sc_prohibit_intprops_without_use): Likewise.
29999
30000 2010-03-30  Eric Blake  <eblake@redhat.com>
30001
30002         maint: improve module indicators
30003         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
30004         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
30005         columns, and avoid extra macro expansion.
30006
30007         fdopendir: work around FreeBSD bug
30008         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
30009         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
30010         * modules/dirent (Makefile.am): Substitute it.
30011         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
30012         declaration.
30013         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
30014         fix.
30015         Reported by Christian Weisgerber <naddy@mips.inka.de>.
30016
30017 2010-03-29  Bruno Haible  <bruno@clisp.org>
30018
30019         Emit #pragma system_header after the inclusion guard, not before.
30020         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
30021         guard that spans the entire file, not before. This enables an
30022         optimization in GCC's preprocessor.
30023         * lib/ctype.in.h: Likewise.
30024         * lib/dirent.in.h: Likewise.
30025         * lib/errno.in.h: Likewise.
30026         * lib/float.in.h: Likewise.
30027         * lib/getopt.in.h: Likewise.
30028         * lib/iconv.in.h: Likewise.
30029         * lib/langinfo.in.h: Likewise.
30030         * lib/locale.in.h: Likewise.
30031         * lib/math.in.h: Likewise.
30032         * lib/netdb.in.h: Likewise.
30033         * lib/netinet_in.in.h: Likewise.
30034         * lib/pty.in.h: Likewise.
30035         * lib/sched.in.h: Likewise.
30036         * lib/se-selinux.in.h: Likewise.
30037         * lib/search.in.h: Likewise.
30038         * lib/spawn.in.h: Likewise.
30039         * lib/stdarg.in.h: Likewise.
30040         * lib/stdint.in.h: Likewise.
30041         * lib/string.in.h: Likewise.
30042         * lib/strings.in.h: Likewise.
30043         * lib/sys_file.in.h: Likewise.
30044         * lib/sys_ioctl.in.h: Likewise.
30045         * lib/sys_time.in.h: Likewise.
30046         * lib/sys_times.in.h: Likewise.
30047         * lib/sys_utsname.in.h: Likewise.
30048         * lib/sys_wait.in.h: Likewise.
30049         * lib/sysexits.in.h: Likewise.
30050         * lib/wctype.in.h: Likewise.
30051
30052 2010-03-28  James Youngman  <jay@gnu.org>
30053
30054         save-cwd: don't leak a file descriptor when the caller execs.
30055         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
30056         saved file descriptor.
30057         * modules/save-cwd (Depends-on): Depend on cloexec.
30058
30059 2010-03-29  Bruno Haible  <bruno@clisp.org>
30060
30061         Remove vestiges of fts-lgpl module.
30062         * lib/fts_.h: Assume GNULIB_FTS is 1.
30063         * lib/fts.c: Likewise.
30064         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
30065
30066 2010-03-28  Bruno Haible  <bruno@clisp.org>
30067
30068         Fix definition of tests witness macro.
30069         * gnulib-tool (func_import): Fix definition of witness macro.
30070
30071 2010-03-28  Bruno Haible  <bruno@clisp.org>
30072
30073         Fix ioctl's protoype on glibc systems.
30074         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
30075         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
30076         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
30077         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
30078         signature. If not, arrange to replace the ioctl function.
30079         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
30080         REPLACE_IOCTL.
30081         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
30082         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
30083         Reported by Ludovic Courtès <ludo@gnu.org>.
30084
30085 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
30086
30087         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
30088         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
30089         made it so grep -r --include=GLOB* ... did not work.
30090
30091 2010-03-26  Jim Meyering  <meyering@redhat.com>
30092             Eric Blake  <eblake@redhat.com>
30093
30094         maint.mk: prohibit use of test's -o and -a operators
30095         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
30096
30097 2010-03-28  Bruno Haible  <bruno@clisp.org>
30098
30099         Remove unused GNULIB_XYZ macro definitions.
30100         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
30101         invocation.
30102
30103 2010-03-28  Bruno Haible  <bruno@clisp.org>
30104
30105         Mark privileged tests modules.
30106         * modules/idpriv-drop-tests (Status): New section.
30107         * modules/idpriv-droptemp-tests (Status): New section.
30108
30109 2010-03-28  Bruno Haible  <bruno@clisp.org>
30110
30111         Split C++ tests into separate tests modules.
30112         * modules/dirent-c++-tests: New file, extracted from
30113         modules/dirent-tests.
30114         * modules/dirent-tests: Depend on it.
30115         * modules/fcntl-h-c++-tests: New file, extracted from
30116         modules/fcntl-h-tests.
30117         * modules/fcntl-h-tests: Depend on it.
30118         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
30119         * modules/glob-tests: Depend on it.
30120         * modules/iconv-h-c++-tests: New file, extracted from
30121         modules/iconv-h-tests.
30122         * modules/iconv-h-tests: Depend on it.
30123         * modules/langinfo-c++-tests: New file, extracted from
30124         modules/langinfo-tests.
30125         * modules/langinfo-tests: Depend on it.
30126         * modules/locale-c++-tests: New file, extracted from
30127         modules/locale-tests.
30128         * modules/locale-tests: Depend on it.
30129         * modules/math-c++-tests: New file, extracted from modules/math-tests.
30130         * modules/math-tests: Depend on it.
30131         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
30132         * modules/pty-tests: Depend on it.
30133         * modules/search-c++-tests: New file, extracted from
30134         modules/search-tests.
30135         * modules/search-tests: Depend on it.
30136         * modules/signal-c++-tests: New file, extracted from
30137         modules/signal-tests.
30138         * modules/signal-tests: Depend on it.
30139         * modules/spawn-c++-tests: New file, extracted from
30140         modules/spawn-tests.
30141         * modules/spawn-tests: Depend on it.
30142         * modules/stdio-c++-tests: New file, extracted from
30143         modules/stdio-tests.
30144         * modules/stdio-tests: Depend on it.
30145         * modules/stdlib-c++-tests: New file, extracted from
30146         modules/stdlib-tests.
30147         * modules/stdlib-tests: Depend on it.
30148         * modules/string-c++-tests: New file, extracted from
30149         modules/string-tests.
30150         * modules/string-tests: Depend on it.
30151         * modules/sys_ioctl-c++-tests: New file, extracted from
30152         modules/sys_ioctl-tests.
30153         * modules/sys_ioctl-tests: Depend on it.
30154         * modules/sys_select-c++-tests: New file, extracted from
30155         modules/sys_select-tests.
30156         * modules/sys_select-tests: Depend on it.
30157         * modules/sys_socket-c++-tests: New file, extracted from
30158         modules/sys_socket-tests.
30159         * modules/sys_socket-tests: Depend on it.
30160         * modules/sys_stat-c++-tests: New file, extracted from
30161         modules/sys_stat-tests.
30162         * modules/sys_stat-tests: Depend on it.
30163         * modules/sys_time-c++-tests: New file, extracted from
30164         modules/sys_time-tests.
30165         * modules/sys_time-tests: Depend on it.
30166         * modules/time-c++-tests: New file, extracted from modules/time-tests.
30167         * modules/time-tests: Depend on it.
30168         * modules/unistd-c++-tests: New file, extracted from
30169         modules/unistd-tests.
30170         * modules/unistd-tests: Depend on it.
30171         * modules/wchar-c++-tests: New file, extracted from
30172         modules/wchar-tests.
30173         * modules/wchar-tests: Depend on it.
30174         * modules/wctype-c++-tests: New file, extracted from
30175         modules/wctype-tests.
30176         * modules/wctype-tests: Depend on it.
30177         Reported by Simon Josefsson.
30178
30179 2010-03-28  Bruno Haible  <bruno@clisp.org>
30180
30181         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
30182         * gnulib-tool (func_exists_module): New function, extracted from
30183         func_verify_module.
30184         (func_verify_module): Use it.
30185         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
30186         'foo' only if 'foo' exists.
30187         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
30188         module.
30189
30190 2010-03-28  Bruno Haible  <bruno@clisp.org>
30191
30192         gnulib-tool: Add support for special categories of tests.
30193         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
30194         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
30195         (func_usage): Document them.
30196         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
30197         inc_unportable_tests, inc_all_tests): New variables.
30198         (func_acceptable): Consider these variables.
30199         (func_modules_transitive_closure): Make it work when the 'Status' field
30200         consists of multiple words.
30201         (func_import): Store and restore the values of inc_cxx_tests,
30202         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
30203         inc_all_tests in gnulib-comp.m4.
30204         (func_create_testdir): Set inc_all_tests to true.
30205         * doc/gnulib.texi (Extra tests modules): New section.
30206         Suggested by Jim Meyering.
30207
30208 2010-03-28  Bruno Haible  <bruno@clisp.org>
30209
30210         ansi-c++-opt: Allow turning off the C++ build by default.
30211         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
30212         gl_CXX_CHOICE_DEFAULT_NO is defined.
30213         Requested by Eric Blake.
30214
30215 2010-03-28  Bruno Haible  <bruno@clisp.org>
30216
30217         unistd: Avoid #define replacements in C++ mode.
30218         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
30219         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
30220         setsockopt, shutdown, select): In C++, attach a warning to the function
30221         if possible, rather than #defining the symbol to a dysfunctional alias.
30222         Reported by John W. Eaton <jwe@gnu.org>.
30223
30224 2010-03-28  Bruno Haible  <bruno@clisp.org>
30225
30226         Fix link errors on mingw.
30227         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
30228         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
30229         $(LIBSOCKET).
30230         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
30231         $(LIBSOCKET).
30232
30233 2010-03-28  Bruno Haible  <bruno@clisp.org>
30234             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30235
30236         lib-ignore: Determine different options for different compilers.
30237         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
30238         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
30239         Add comments.
30240         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
30241         * NEWS: Mention the change.
30242
30243 2010-03-27  Bruno Haible  <bruno@clisp.org>
30244
30245         Remove unused GNULIB_XYZ macro definitions.
30246         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
30247         * modules/fseek (configure.ac): Likewise.
30248         * modules/ioctl (configure.ac): Likewise.
30249         * modules/open (configure.ac): Likewise.
30250         * modules/stdlib-safer (configure.ac): Likewise.
30251
30252 2010-03-27  Bruno Haible  <bruno@clisp.org>
30253
30254         Add a remark about certain modules.
30255         * modules/malloc (Comment): New section.
30256         * modules/realloc (Comment): Likewise.
30257         * modules/sigpipe (Comment): Likewise.
30258
30259 2010-03-27  Bruno Haible  <bruno@clisp.org>
30260
30261         Resolve conflict between the two kinds of module indicators.
30262         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
30263         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
30264         * modules/canonicalize (configure.ac): Invoke
30265         gl_MODULE_INDICATOR_FOR_TESTS.
30266         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
30267         GNULIB_XYZ.
30268         * tests/test-dirent-c++.cc: Likewise.
30269         * tests/test-dirent-safer.c: Likewise.
30270         * tests/test-dup2.c: Likewise.
30271         * tests/test-fchdir.c: Likewise.
30272         * tests/test-fcntl-h-c++.cc: Likewise.
30273         * tests/test-getopt.c: Likewise.
30274         * tests/test-getopt.h: Likewise.
30275         * tests/test-langinfo-c++.cc: Likewise.
30276         * tests/test-locale-c++.cc: Likewise.
30277         * tests/test-math-c++.cc: Likewise.
30278         * tests/test-pty-c++.cc: Likewise.
30279         * tests/test-search-c++.cc: Likewise.
30280         * tests/test-signal-c++.cc: Likewise.
30281         * tests/test-spawn-c++.cc: Likewise.
30282         * tests/test-stdio-c++.cc: Likewise.
30283         * tests/test-stdlib-c++.cc: Likewise.
30284         * tests/test-string-c++.cc: Likewise.
30285         * tests/test-sys_ioctl-c++.cc: Likewise.
30286         * tests/test-sys_select-c++.cc: Likewise.
30287         * tests/test-sys_socket-c++.cc: Likewise.
30288         * tests/test-sys_stat-c++.cc: Likewise.
30289         * tests/test-sys_time-c++.cc: Likewise.
30290         * tests/test-time-c++.cc: Likewise.
30291         * tests/test-unistd-c++.cc: Likewise.
30292         * tests/test-wchar-c++.cc: Likewise.
30293         * tests/uninorm/test-u8-nfc.c: Likewise.
30294         * tests/uninorm/test-u8-nfd.c: Likewise.
30295         * tests/uninorm/test-u8-nfkc.c: Likewise.
30296         * tests/uninorm/test-u8-nfkd.c: Likewise.
30297         * tests/uninorm/test-u16-nfc.c: Likewise.
30298         * tests/uninorm/test-u16-nfd.c: Likewise.
30299         * tests/uninorm/test-u16-nfkc.c: Likewise.
30300         * tests/uninorm/test-u16-nfkd.c: Likewise.
30301         * tests/uninorm/test-u32-nfc.c: Likewise.
30302         * tests/uninorm/test-u32-nfc-big.c: Likewise.
30303         * tests/uninorm/test-u32-nfd.c: Likewise.
30304         * tests/uninorm/test-u32-nfd-big.c: Likewise.
30305         * tests/uninorm/test-u32-nfkc.c: Likewise.
30306         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
30307         * tests/uninorm/test-u32-nfkd.c: Likewise.
30308         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
30309         * tests/uninorm/test-u32-normalize-big.c: Likewise.
30310
30311 2010-03-27  Bruno Haible  <bruno@clisp.org>
30312
30313         Distinguish two kinds of module indicators.
30314         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
30315         gl_MODULE_INDICATOR.
30316         (gl_MODULE_INDICATOR): New macro.
30317         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
30318         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
30319         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
30320         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
30321         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
30322         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
30323         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
30324         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
30325         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
30326         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
30327         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
30328         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
30329         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
30330         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
30331         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
30332         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
30333         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
30334         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
30335         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
30336         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
30337         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
30338         * modules/cloexec (configure.ac): Likewise.
30339         * modules/getopt-gnu (configure.ac): Likewise.
30340         * modules/uninorm/u8-normalize (configure.ac): Likewise.
30341         * modules/uninorm/u16-normalize (configure.ac): Likewise.
30342         * modules/uninorm/u32-normalize (configure.ac): Likewise.
30343         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
30344
30345 2010-03-27  Bruno Haible  <bruno@clisp.org>
30346
30347         New module description field 'Comment'.
30348         * gnulib-tool: New option --extract-comment.
30349         (func_usage): Document it.
30350         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
30351         (func_get_comment): New function.
30352         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
30353
30354 2010-03-27  Bruno Haible  <bruno@clisp.org>
30355
30356         Addendum to 2010-02-07 commit.
30357         * gnulib-tool (func_usage): Document --extract-applicability option.
30358
30359 2010-03-27  Bruno Haible  <bruno@clisp.org>
30360
30361         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
30362         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
30363         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
30364         rather than link errors.
30365
30366 2010-03-27  Bruno Haible  <bruno@clisp.org>
30367
30368         Avoid side effects from tests-related modules on the compilation of lib.
30369         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
30370         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
30371         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
30372         parameter. Emit into AM_CPPFLAGS a definition of the designated C
30373         macro.
30374         (func_import): Define a witness macro. Assign it a value that depends
30375         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
30376         tests-related modules.
30377         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
30378         Reported by Jim Meyering.
30379
30380 2010-03-27  Bruno Haible  <bruno@clisp.org>
30381
30382         Factorize common .m4 code.
30383         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
30384         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
30385         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
30386         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
30387         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
30388         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
30389         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
30390         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
30391         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
30392         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
30393         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
30394         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
30395         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
30396         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
30397         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
30398         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
30399         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
30400         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
30401         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
30402         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
30403         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
30404         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
30405         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
30406         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
30407         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
30408         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
30409         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
30410         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
30411         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
30412         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
30413         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
30414         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
30415
30416 2010-03-27  Bruno Haible  <bruno@clisp.org>
30417
30418         Fix a compilation error on Cygwin with g++ >= 4.3.
30419         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
30420         if it is undefined or if we alias it to chmod.
30421         (lstat): Don't warn about the use of this function if it is undefined
30422         or if we alias it to stat.
30423         Reported by Simon Josefsson.
30424
30425 2010-03-27  Bruno Haible  <bruno@clisp.org>
30426
30427         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
30428         * modules/getlogin (configure.ac): Update.
30429
30430         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
30431         * modules/getlogin_r (configure.ac): Update.
30432
30433         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
30434         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
30435         * modules/inet_ntop (configure.ac): Update.
30436
30437         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
30438         * modules/inet_pton (configure.ac): Update.
30439
30440         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
30441         * modules/mbslen (configure.ac): Update.
30442
30443         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
30444         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
30445         * modules/forkpty (configure.ac): Update.
30446         * modules/openpty (configure.ac): Update.
30447
30448 2010-03-26  Simon Josefsson  <simon@josefsson.org>
30449
30450         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
30451         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
30452
30453 2010-03-25  Eric Blake  <eblake@redhat.com>
30454
30455         maint: use pragma consistently across replacement headers
30456         * lib/ctype.in.h (system_header): Hoist for consistent placement.
30457         * lib/dirent.in.h (system_header): Likewise.
30458         * lib/errno.in.h (system_header): Likewise.
30459         * lib/float.in.h (system_header): Likewise.
30460         * lib/getopt.in.h (system_header): Likewise.
30461         * lib/iconv.in.h (system_header): Likewise.
30462         * lib/inttypes.in.h (system_header): Likewise.
30463         * lib/langinfo.in.h (system_header): Likewise.
30464         * lib/locale.in.h (system_header): Likewise.
30465         * lib/math.in.h (system_header): Likewise.
30466         * lib/netdb.in.h (system_header): Likewise.
30467         * lib/netinet_in.in.h (system_header): Likewise.
30468         * lib/pty.in.h (system_header): Likewise.
30469         * lib/sched.in.h (system_header): Likewise.
30470         * lib/se-selinux.in.h (system_header): Likewise.
30471         * lib/search.in.h (system_header): Likewise.
30472         * lib/spawn.in.h (system_header): Likewise.
30473         * lib/stdarg.in.h (system_header): Likewise.
30474         * lib/stdint.in.h (system_header): Likewise.
30475         * lib/string.in.h (system_header): Likewise.
30476         * lib/strings.in.h (system_header): Likewise.
30477         * lib/sys_file.in.h (system_header): Likewise.
30478         * lib/sys_ioctl.in.h (system_header): Likewise.
30479         * lib/sys_socket.in.h (system_header): Likewise.
30480         * lib/sys_times.in.h (system_header): Likewise.
30481         * lib/sys_utsname.in.h (system_header): Likewise.
30482         * lib/sys_wait.in.h (system_header): Likewise.
30483         * lib/sysexits.in.h (system_header): Likewise.
30484         * lib/unistd.in.h (system_header): Likewise.
30485         * lib/wctype.in.h (system_header): Likewise.
30486
30487         arpa/inet: fix mingw compilation warning
30488         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
30489         Reported by Matthew Bolte.
30490
30491 2010-03-25  Bruno Haible  <bruno@clisp.org>
30492
30493         Avoid collision between gnulib wrapper and libintl wrapper.
30494         * lib/printf.c (printf): Don't define if a printf wrapper is already
30495         defined in intl/printf.c.
30496         Reported by Michel Boaventura <michel@michelboaventura.com>.
30497
30498 2010-03-25  Bruno Haible  <bruno@clisp.org>
30499
30500         Use ANSI C.
30501         * lib/readutmp.h (getutent): Provide ANSI C prototype.
30502
30503 2010-03-25  Bruno Haible  <bruno@clisp.org>
30504
30505         Minor formatting changes.
30506         * lib/acosl.c: Insert space before function argument list.
30507         * lib/argz.c: Likewise.
30508         * lib/asinl.c: Likewise.
30509         * lib/expl.c: Likewise.
30510         * lib/gen-uni-tables.c: Likewise.
30511         * lib/gettext.h: Likewise.
30512         * lib/glthread/lock.h: Likewise.
30513         * lib/tanl.c: Likewise.
30514         * lib/uniname/uniname.c: Likewise.
30515         * tests/test-idpriv-drop.c: Likewise.
30516         * tests/test-idpriv-droptemp.c: Likewise.
30517         * tests/test-lock.c: Likewise.
30518         * tests/test-tls.c: Likewise.
30519         * lib/argp-help.c: Insert space before function-like macro argument
30520         list.
30521         * lib/memcmp.c: Likewise.
30522         * tests/test-base64.c: Likewise.
30523         * lib/localename.c: Insert space before sizeof's argument list.
30524         * lib/safe-alloc.h: Likewise.
30525         * lib/file-set.h: Insert space before macro argument list.
30526         * tests/test-argp.c: Likewise.
30527         * lib/argp-namefrob.h: Insert space before function parameter list.
30528         * lib/getaddrinfo.c: Likewise.
30529         * lib/netdb.in.h: Likewise.
30530         * lib/parse-duration.h: Likewise.
30531         * lib/parse-duration.c: Likewise.
30532         * lib/poll.c: Likewise.
30533         * lib/select.c: Likewise.
30534         * lib/trim.h: Likewise.
30535         * tests/test-usleep.c: Likewise.
30536         * lib/ldexpl.c: Insert space before function parameter list and before
30537         function argument list.
30538         * lib/logl.c: Likewise.
30539         * lib/sqrtl.c: Likewise.
30540         * lib/trim.c: Likewise.
30541         * lib/cosl.c: Use GNU style indentation. Insert space before function
30542         argument list.
30543         * lib/sinl.c: Likewise.
30544         * lib/tsearch.c: Insert space after 'for'.
30545         Reported by Jim Meyering.
30546
30547 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
30548
30549         * maint.mk (sc_Wundef_boolean): Check for the presence of the
30550         config header before grepping, as it's not present before
30551         autoreconf/configure are run.  Reported by Simon Josefsson.
30552
30553 2010-03-23  Bruno Haible  <bruno@clisp.org>
30554
30555         pt_chown: Make it work with automake < 1.11.
30556         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
30557         Reported by Simon Josefsson.
30558
30559 2010-03-23  Bruno Haible  <bruno@clisp.org>
30560
30561         pt_chown: Don't depend on GPLed modules.
30562         * lib/pt_chown.c: Don't include idpriv.h.
30563         (main): Don't drop privileges.
30564         * modules/pt_chown (Depends-on): Remove idpriv-drop.
30565         Reported by Simon Josefsson.
30566
30567 2010-03-24  Simon Josefsson  <simon@josefsson.org>
30568
30569         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
30570         suggestions from karl@freefriends.org (Karl Berry).
30571
30572 2010-03-22  Eric Blake  <eblake@redhat.com>
30573
30574         gethostname: further tweaks
30575         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
30576         are overriding gethostname.
30577         Suggested by Bruno Haible.
30578
30579 2010-03-21  Bruno Haible  <bruno@clisp.org>
30580
30581         Fix comments.
30582         * lib/forkpty.c (rpl_forkpty): Fix comment.
30583         * lib/openpty.c (rpl_openpty): Likewise.
30584         Reported by Eric Blake.
30585
30586 2010-03-22  Eric Blake  <eblake@redhat.com>
30587
30588         gethostname: fix build on mingw
30589         * lib/unistd.in.h (includes): Work around fact that mingw
30590         <winsock2.h> re-includes <unistd.h>, by avoiding any
30591         redeclarations if we are being included by <winsock2.h>.
30592         Reported by Matthias Bolte.
30593
30594 2010-03-21  Bruno Haible  <bruno@clisp.org>
30595
30596         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
30597         * lib/forkpty.c (forkpty): New replacement function, from glibc with
30598         modifications.
30599         * lib/pty.in.h (forkpty): Update declaration. Add comments.
30600         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
30601         provide the replacement.
30602         * modules/forkpty (Depends-on): Add openpty, login_tty.
30603         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
30604         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
30605         * doc/glibc-functions/forkpty.texi: More supported platforms.
30606         * config/srclist.txt: Add forkpty.c (commented).
30607
30608 2010-03-21  Bruno Haible  <bruno@clisp.org>
30609
30610         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
30611         (Makefile.am): Verify that PTY_LIB is defined.
30612
30613         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
30614
30615 2010-03-21  Bruno Haible  <bruno@clisp.org>
30616
30617         Tests for module 'login_tty'.
30618         * modules/login_tty-tests: New file.
30619         * tests/test-login_tty.c: New file.
30620
30621         New module 'login_tty'.
30622         * lib/login_tty.c: New file.
30623         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
30624         * modules/login_tty: New file.
30625         * doc/glibc-functions/login_tty.texi: Mention the new module.
30626
30627 2010-03-21  Bruno Haible  <bruno@clisp.org>
30628
30629         login_tty: Documentation.
30630         * doc/glibc-functions/login_tty.texi: New file.
30631         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
30632
30633 2010-03-21  Bruno Haible  <bruno@clisp.org>
30634
30635         pty: Consistent macro naming.
30636         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
30637         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
30638         * modules/pty (configure.ac): Update.
30639
30640 2010-03-21  Bruno Haible  <bruno@clisp.org>
30641
30642         Tests for openpty: Make stricter.
30643         * tests/test-openpty.c (main): Add test of canonical processing and
30644         erase.
30645         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
30646
30647         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
30648         * lib/openpty.c (openpty): New replacement function.
30649         * lib/pty.in.h: Include <termios.h>.
30650         (openpty): Update declaration. Add comments.
30651         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
30652         is not declared, arrange to provide the replacement. Check for _getpty
30653         and posix_openpt.
30654         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
30655         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
30656         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
30657         * modules/pty-tests (test_pty_c___LDADD): New variable.
30658         * doc/glibc-functions/openpty.texi: More supported platforms.
30659
30660 2010-03-21  Bruno Haible  <bruno@clisp.org>
30661
30662         setenv: Tweaks.
30663         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
30664         the test program.
30665         * doc/posix-functions/setenv.texi: Update platforms list.
30666
30667 2010-03-21  Bruno Haible  <bruno@clisp.org>
30668
30669         New module 'unlockpt'.
30670         * lib/unlockpt.c: New file, from glibc with modifications.
30671         * m4/unlockpt.m4: New file.
30672         * modules/unlockpt: New file.
30673         * lib/stdlib.in.h (unlockpt): New declaration.
30674         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
30675         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
30676         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
30677         HAVE_UNLOCKPT.
30678         * doc/posix-functions/unlockpt.texi: Mention the new module.
30679         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
30680         * config/srclist.txt: Add unlockpt.c (commented).
30681
30682 2010-03-21  Jim Meyering  <meyering@redhat.com>
30683
30684         maint.mk: prohibit inclusion of "intprops.h" without use
30685         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
30686
30687 2010-03-21  Bruno Haible  <bruno@clisp.org>
30688
30689         New module 'grantpt'.
30690         * lib/grantpt.c: New file, from glibc with modifications.
30691         * m4/grantpt.m4: New file.
30692         * modules/grantpt: New file.
30693         * lib/stdlib.in.h (grantpt): New declaration.
30694         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
30695         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
30696         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
30697         HAVE_GRANTPT.
30698         * doc/posix-functions/grantpt.texi: Mention the new module.
30699         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
30700         * config/srclist.txt: Add grantpt.c (commented).
30701
30702 2010-03-21  Bruno Haible  <bruno@clisp.org>
30703
30704         New module 'pt_chown'.
30705         * lib/pt_chown.c: New file, from glibc with modifications.
30706         * lib/pty-private.h: New file, from glibc with modifications.
30707         * modules/pt_chown: New file.
30708         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
30709
30710 2010-03-21  Bruno Haible  <bruno@clisp.org>
30711
30712         Tests for module 'ptsname'.
30713         * modules/ptsname-tests: New file.
30714         * tests/test-ptsname.c: New file.
30715
30716         New module 'ptsname'.
30717         * lib/ptsname.c: New file, from glibc with modifications.
30718         * m4/ptsname.m4: New file.
30719         * modules/ptsname: New file.
30720         * lib/stdlib.in.h (ptsname): New declaration.
30721         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
30722         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
30723         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
30724         HAVE_PTSNAME.
30725         * doc/posix-functions/ptsname.texi: Mention the new module.
30726         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
30727         * config/srclist.txt: Add ptsname.c (commented).
30728
30729 2010-03-21  Bruno Haible  <bruno@clisp.org>
30730
30731         Tests for module 'ttyname_r'.
30732         * modules/ttyname_r-tests: New file.
30733         * tests/test-ttyname_r.c: New file.
30734
30735         New module 'ttyname_r'.
30736         * lib/ttyname_r.c: New file.
30737         * m4/ttyname_r.m4: New file.
30738         * modules/ttyname_r: New file.
30739         * lib/unistd.in.h (ttyname_r): New declaration.
30740         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
30741         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
30742         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
30743         HAVE_TTYNAME_R.
30744         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
30745         * doc/posix-functions/ttyname_r.texi: Mention the new module.
30746
30747 2010-03-20  Bruno Haible  <bruno@clisp.org>
30748
30749         signal: Undefine macro definitions in C++ mode.
30750         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
30751         sigfillset): Undefine macro definitions from the system header in C++
30752         mode.
30753         Reported by John W. Eaton <jwe@gnu.org>.
30754
30755 2010-03-20  Bruno Haible  <bruno@clisp.org>
30756
30757         Ensure no #include statements inside extern "C" { ... }.
30758         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
30759         contain #include statements.
30760         * lib/time.in.h: Likewise.
30761
30762 2010-03-20  Bruno Haible  <bruno@clisp.org>
30763
30764         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
30765         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
30766         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
30767         Reported by John W. Eaton <jwe@gnu.org>.
30768
30769 2010-03-20  Bruno Haible  <bruno@clisp.org>
30770
30771         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
30772         Reported by Jim Meyering.
30773
30774 2010-03-20  Bruno Haible  <bruno@clisp.org>
30775
30776         pipe: Set errno upon failure.
30777         * lib/pipe.h: Specify that when -1 is returned, errno is set.
30778         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
30779         errno value in error message.
30780
30781 2010-03-20  Bruno Haible  <bruno@clisp.org>
30782             Jim Meyering  <meyering@redhat.com>
30783
30784         lchown: Avoid "unused variable" warning.
30785         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
30786
30787 2010-03-20  Bruno Haible  <bruno@clisp.org>
30788
30789         Work around unlink() bug on MacOS X 10.5.6.
30790         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
30791         attempting to unlink a parent directory.
30792         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
30793         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
30794         activate for the replacement function.
30795         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
30796
30797 2010-03-20  Bruno Haible  <bruno@clisp.org>
30798
30799         Fix link errors on Solaris 8.
30800         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
30801         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
30802
30803 2010-03-19  Jim Meyering  <meyering@redhat.com>
30804
30805         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
30806         The _LIBC implementation of build_range_exp correctly honors the
30807         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
30808         However, the non-_LIBC implementation would ignore that syntax-bit
30809         flag and return REG_ERANGE unconditionally.
30810         This change makes it honor that flag.
30811         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
30812         Make two pointer parameters "const".
30813         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
30814         (parse_bracket_exp): Update caller.
30815
30816         regex.m4: correct the reversed range endpoint ([b-a]) test
30817         * m4/regex.m4: When requiring that [b-a] evoke failure,
30818         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
30819         test pass once again for x86-based systems.
30820
30821 2010-03-19  Bruno Haible  <bruno@clisp.org>
30822
30823         scandir: Fix link error on Solaris 8.
30824         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
30825         macros.
30826
30827 2010-03-19  Bruno Haible  <bruno@clisp.org>
30828
30829         getusershell: Fix documentation.
30830         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
30831         module.
30832         * doc/glibc-functions/setusershell.texi: Likewise.
30833
30834         getusershell: Provide declaration, missing on Solaris 9.
30835         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
30836         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
30837         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
30838         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
30839         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
30840         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
30841         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
30842         HAVE_GETUSERSHELL.
30843         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
30844
30845 2010-03-19  Bruno Haible  <bruno@clisp.org>
30846
30847         wctype: Provide iswblank function.
30848         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
30849         exists and is fine.
30850         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
30851         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
30852         * tests/test-wctype.c (main): Re-enable the iswblank tests.
30853         * doc/posix-functions/iswblank.texi: Update.
30854
30855 2010-03-19  Bruno Haible  <bruno@clisp.org>
30856
30857         Tests of module 'pty' in C++ mode.
30858         * modules/pty-tests: New file.
30859         * tests/test-pty-c++.cc: New file.
30860         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
30861
30862 2010-03-19  Eric Blake  <eblake@redhat.com>
30863
30864         logb: fix documentation
30865         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
30866         1.5 declaration bug.
30867
30868         forkpty, openpty: prefer glibc's const-safe prototype
30869         * lib/forkpty.c (rpl_forkpty): New file.
30870         * lib/openpty.c (rpl_openpty): Likewise.
30871         * modules/forkpty (Files): Distribute it.
30872         * modules/openpty (Files): Likewise.
30873         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
30874         check...
30875         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
30876         replacement for for non-const BSD signature.
30877         * modules/pty (Makefile.am): Substitute witnesses.
30878         * lib/pty.in.h (forkpty, openpty): Declare replacements.
30879         * tests/test-forkpty.c: Update signature check.
30880         * tests/test-openpty.c: Likewise.
30881         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
30882         * doc/glibc-functions/openpty.texi (openpty): Likewise.
30883
30884         forkpty, openpty: split functions into new modules
30885         * modules/pty (Makefile.am): Substitute new witnesses.
30886         (Libraries): Move library detection...
30887         * modules/forkpty: ...into new module.
30888         * modules/openpty: Another new module.
30889         * modules/pty-tests: Rename and split...
30890         * modules/forkpty-tests: ...to this...
30891         * modules/openpty-tests: ...and this.
30892         * tests/test-pty.c: Rename and split...
30893         * tests/test-forkpty.c: ...to this...
30894         * tests/test-openpty.c: ...and this.
30895         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
30896         (gl_PTY): Split library searching...
30897         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
30898         (gl_FORKPTY, gl_OPENPTY): New macros.
30899         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
30900         * NEWS: Mention the split.
30901         * MODULES.html.sh (Misc): Document the modules.
30902         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
30903         * doc/glibc-functions/openpty.texi (openpty): Likewise.
30904
30905         pty: improve replacement header
30906         * lib/pty.in.h: New file.
30907         * modules/pty (Files): Ship it.
30908         (Makefile.am): Always build replacement.
30909         * m4/pty.m4: Rename...
30910         * m4/pty_h.m4: ...to this.
30911         (gl_PTY): Modernize setting of witness macros; update check of
30912         forkpty to take proper advantage of cache.
30913         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
30914
30915         getopt: avoid compiler warning
30916         * lib/getopt.c (attribute_hidden): Remove unused macro.
30917
30918 2010-03-18  Bruno Haible  <bruno@clisp.org>
30919
30920         Fix link errors on Solaris 8.
30921         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
30922         * modules/search-tests (test_search_c___LDADD): Likewise.
30923         * modules/signal-tests (test_signal_c___LDADD): Likewise.
30924         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
30925         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
30926         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
30927         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
30928         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
30929         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
30930
30931 2010-03-18  Bruno Haible  <bruno@clisp.org>
30932
30933         Fix bug introduced on 2010-03-14.
30934         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
30935         (gl_SPAWN_H): Require it.
30936         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
30937         Reported by Simon Josefsson.
30938
30939 2010-03-18  Bruno Haible  <bruno@clisp.org>
30940
30941         Fix typo introduced on 2009-12-31.
30942         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
30943         posix_spawn_file_actions_adddup2.
30944
30945 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
30946         and Eric Blake  <eblake@redhat.com>
30947
30948         test-vc-list-files-git: make more robust
30949         * tests/test-vc-list-files-git.sh: Unset problematic environment
30950         variables.  Chain commands together.
30951
30952 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
30953
30954         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
30955         `AC_CHECK_DECL' invocation.
30956
30957 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
30958
30959         * lib/inttostr.c (inttostr): Make sure the invocation of verify
30960         appears before executable statements. Suggested by Petr Sumbera
30961         <Petr.Sumbera@Sun.COM>.
30962
30963 2010-03-14  Bruno Haible  <bruno@clisp.org>
30964
30965         * tests/test-flock.c (test_exclusive): Comment out a test that causes
30966         portability problems. Instead use a simpler test.
30967         (main): Check that invalid arguments are rejected only on Linux.
30968
30969 2010-03-14  Bruno Haible  <bruno@clisp.org>
30970
30971         Fix bug introduced on 2009-12-31.
30972         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
30973         gl_PREREQ_SYS_H_WINSOCK2 always.
30974         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
30975         SYS_SOCKET_H variable.
30976         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
30977         Update comments.
30978         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
30979         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
30980         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
30981         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
30982         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
30983
30984 2010-03-14  Bruno Haible  <bruno@clisp.org>
30985
30986         Fix values returned by sinl, cosl.
30987         * lib/trigl.h: Add specification comments.
30988         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
30989         that combines the values from the precomputed table with the values of
30990         the Chebyshev polynomials.
30991
30992 2010-03-14  Bruno Haible  <bruno@clisp.org>
30993
30994         Fix compilation error when modules 'posix_spawn[p]' are not used.
30995         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
30996         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
30997
30998 2010-03-14  Bruno Haible  <bruno@clisp.org>
30999
31000         Fix compilation error on mingw when module 'time_r' is not used.
31001         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
31002         is 1.
31003         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
31004         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
31005         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
31006         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
31007
31008 2010-03-14  Bruno Haible  <bruno@clisp.org>
31009
31010         Fix compilation error with Sun C.
31011         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
31012         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
31013         instead of GCC specific ULONG_LONG_MAX.
31014         * lib/xstrtoll.c: Likewise.
31015         * lib/xstrtoull.c: Likewise.
31016
31017 2010-03-13  Bruno Haible  <bruno@clisp.org>
31018
31019         Allow the user to disable C++ code and tests.
31020         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
31021         (gl_PROG_ANSI_CXX): Require it.
31022
31023 2010-03-13  Bruno Haible  <bruno@clisp.org>
31024
31025         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
31026         cases.
31027
31028 2010-03-13  Bruno Haible  <bruno@clisp.org>
31029
31030         Test that gnulib does not break the standard C++ headers.
31031         * tests/test-locale-c++2.cc: New file.
31032         * modules/locale-tests (Files): Add it.
31033         (Makefile.am): Compile it for test-locale-c++.
31034         * tests/test-math-c++2.cc: New file.
31035         * modules/math-tests (Files): Add it.
31036         (Makefile.am): Compile it for test-math-c++.
31037         * tests/test-signal-c++2.cc: New file.
31038         * modules/signal-tests (Files): Add it.
31039         (Makefile.am): Compile it for test-signal-c++.
31040         * tests/test-stdio-c++2.cc: New file.
31041         * modules/stdio-tests (Files): Add it.
31042         (Makefile.am): Compile it for test-stdio-c++.
31043         * tests/test-stdlib-c++2.cc: New file.
31044         * modules/stdlib-tests (Files): Add it.
31045         (Makefile.am): Compile it for test-stdlib-c++.
31046         * tests/test-string-c++2.cc: New file.
31047         * modules/string-tests (Files): Add it.
31048         (Makefile.am): Compile it for test-string-c++.
31049         * tests/test-time-c++2.cc: New file.
31050         * modules/time-tests (Files): Add it.
31051         (Makefile.am): Compile it for test-time-c++.
31052         Reported by John W. Eaton <jwe@gnu.org>.
31053
31054 2010-03-13  Bruno Haible  <bruno@clisp.org>
31055
31056         * gnulib-tool (func_usage): Clarify which options are available for
31057         --create-testdir and --create-megatestdir.
31058
31059 2010-03-13  Bruno Haible  <bruno@clisp.org>
31060
31061         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
31062         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
31063         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
31064         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
31065         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
31066         when appropriate.
31067         Reported by Jim Meyering.
31068
31069 2010-03-12  Simon Josefsson  <simon@josefsson.org>
31070
31071         * gnulib-tool (func_import): Explain origin of code.
31072
31073 2010-03-12  Bruno Haible  <bruno@clisp.org>
31074
31075         Fix problem with automake's definition of CXXLINK.
31076         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
31077         Reported by Simon Josefsson and Ludovic Courtès.
31078
31079 2010-03-12  Bruno Haible  <bruno@clisp.org>
31080
31081         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
31082         stable releases.
31083
31084 2010-03-11  Bruno Haible  <bruno@clisp.org>
31085
31086         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
31087         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
31088         whether the system provides one variant or multiple variants of the
31089         function.
31090         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
31091         C++ compilers.
31092         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
31093         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
31094         Reported by Jim Meyering.
31095
31096 2010-03-09  Simon Josefsson  <simon@josefsson.org>
31097
31098         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
31099
31100 2010-03-08  Bruno Haible  <bruno@clisp.org>
31101
31102         gnulib-tool: Add support for --libtool in --create-testdir.
31103         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
31104         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
31105
31106 2010-03-08  Eric Blake  <eblake@redhat.com>
31107
31108         gnulib-tool.texi: mention possibility of git submodule
31109         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
31110         submodules.
31111         * doc/.gitignore: Ignore another generated file.
31112
31113 2010-03-08  Karl Berry  <karl@gnu.org>
31114
31115         * doc/gnulib-tool.texi (VCS Issues): Mention third option
31116         of committing gnulib files while skipping others.
31117
31118 2010-03-07  Bruno Haible  <bruno@clisp.org>
31119
31120         Tests of module 'wctype' in C++ mode.
31121         * tests/test-wctype-c++.cc: New file.
31122         * modules/wctype-tests (Files): Add it and tests/signature.h.
31123         (Depends-on): Add ansi-c++-opt.
31124         (Makefile.am): Arrange to compile and run test-wctype-c++.
31125
31126         Tests of module 'wchar' in C++ mode.
31127         * tests/test-wchar-c++.cc: New file.
31128         * modules/wchar-tests (Files): Add it and tests/signature.h.
31129         (Depends-on): Add ansi-c++-opt.
31130         (Makefile.am): Arrange to compile and run test-wchar-c++.
31131         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
31132         gl_MODULE_INDICATOR.
31133
31134         Tests of module 'unistd' in C++ mode.
31135         * tests/test-unistd-c++.cc: New file.
31136         * modules/unistd-tests (Files): Add it and tests/signature.h.
31137         (Depends-on): Add ansi-c++-opt.
31138         (Makefile.am): Arrange to compile and run test-unistd-c++.
31139         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
31140         gl_MODULE_INDICATOR.
31141
31142         Tests of module 'time' in C++ mode.
31143         * tests/test-time-c++.cc: New file.
31144         * modules/time-tests (Files): Add it and tests/signature.h.
31145         (Depends-on): Add ansi-c++-opt.
31146         (Makefile.am): Arrange to compile and run test-time-c++.
31147         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31148
31149         Tests of module 'sys_time' in C++ mode.
31150         * tests/test-sys_time-c++.cc: New file.
31151         * modules/sys_time-tests (Files): Add it and tests/signature.h.
31152         (Depends-on): Add ansi-c++-opt.
31153         (Makefile.am): Arrange to compile and run test-sys_time-c++.
31154         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
31155         gl_MODULE_INDICATOR.
31156
31157         Tests of module 'sys_stat' in C++ mode.
31158         * tests/test-sys_stat-c++.cc: New file.
31159         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
31160         (Depends-on): Add ansi-c++-opt.
31161         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
31162         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
31163         gl_MODULE_INDICATOR.
31164
31165         Tests of module 'sys_socket' in C++ mode.
31166         * tests/test-sys_socket-c++.cc: New file.
31167         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
31168         (Depends-on): Add ansi-c++-opt.
31169         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
31170         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
31171         gl_MODULE_INDICATOR.
31172
31173         Tests of module 'sys_select' in C++ mode.
31174         * tests/test-sys_select-c++.cc: New file.
31175         * modules/sys_select-tests (Files): Add it and tests/signature.h.
31176         (Depends-on): Add ansi-c++-opt.
31177         (Makefile.am): Arrange to compile and run test-sys_select-c++.
31178         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
31179         gl_MODULE_INDICATOR.
31180
31181         Tests of module 'sys_ioctl' in C++ mode.
31182         * tests/test-sys_ioctl-c++.cc: New file.
31183         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
31184         (Depends-on): Add ansi-c++-opt.
31185         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
31186         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
31187         gl_MODULE_INDICATOR.
31188
31189         Tests of module 'string' in C++ mode.
31190         * tests/test-string-c++.cc: New file.
31191         * modules/string-tests (Files): Add it and tests/signature.h.
31192         (Depends-on): Add ansi-c++-opt.
31193         (Makefile.am): Arrange to compile and run test-string-c++.
31194         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
31195         gl_MODULE_INDICATOR.
31196
31197         Tests of module 'stdlib' in C++ mode.
31198         * tests/test-stdlib-c++.cc: New file.
31199         * modules/stdlib-tests (Files): Add it and tests/signature.h.
31200         (Depends-on): Add ansi-c++-opt.
31201         (Makefile.am): Arrange to compile and run test-stdlib-c++.
31202         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
31203         gl_MODULE_INDICATOR.
31204
31205         Tests of module 'stdio' in C++ mode.
31206         * tests/test-stdio-c++.cc: New file.
31207         * modules/stdio-tests (Files): Add it and tests/signature.h.
31208         (Depends-on): Add ansi-c++-opt.
31209         (Makefile.am): Arrange to compile and run test-stdio-c++.
31210         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
31211         gl_MODULE_INDICATOR.
31212
31213         Tests of module 'spawn' in C++ mode.
31214         * tests/test-spawn-c++.cc: New file.
31215         * modules/spawn-tests (Files): Add it and tests/signature.h.
31216         (Depends-on): Add ansi-c++-opt.
31217         (Makefile.am): Arrange to compile and run test-spawn-c++.
31218         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
31219         gl_MODULE_INDICATOR.
31220
31221         Tests of module 'signal' in C++ mode.
31222         * tests/test-signal-c++.cc: New file.
31223         * modules/signal-tests (Files): Add it and tests/signature.h.
31224         (Depends-on): Add ansi-c++-opt.
31225         (Makefile.am): Arrange to compile and run test-signal-c++.
31226         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
31227         gl_MODULE_INDICATOR.
31228
31229         Tests of module 'search' in C++ mode.
31230         * tests/test-search-c++.cc: New file.
31231         * modules/search-tests (Files): Add it and tests/signature.h.
31232         (Depends-on): Add ansi-c++-opt.
31233         (Makefile.am): Arrange to compile and run test-search-c++.
31234         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
31235         gl_MODULE_INDICATOR.
31236
31237         Tests of module 'math' in C++ mode.
31238         * tests/test-math-c++.cc: New file.
31239         * modules/math-tests (Files): Add it and tests/signature.h.
31240         (Depends-on): Add ansi-c++-opt.
31241         (Makefile.am): Arrange to compile and run test-math-c++.
31242         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
31243
31244         Tests of module 'locale' in C++ mode.
31245         * tests/test-locale-c++.cc: New file.
31246         * modules/locale-tests (Files): Add it and tests/signature.h.
31247         (Depends-on): Add ansi-c++-opt.
31248         (Makefile.am): Arrange to compile and run test-locale-c++.
31249         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
31250         gl_MODULE_INDICATOR.
31251
31252         Tests of module 'langinfo' in C++ mode.
31253         * tests/test-langinfo-c++.cc: New file.
31254         * modules/langinfo-tests (Files): Add it and tests/signature.h.
31255         (Depends-on): Add ansi-c++-opt.
31256         (Makefile.am): Arrange to compile and run test-langinfo-c++.
31257         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
31258         gl_MODULE_INDICATOR.
31259
31260         Tests of module 'iconv-h' in C++ mode.
31261         * tests/test-iconv-h-c++.cc: New file.
31262         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
31263         (Depends-on): Add ansi-c++-opt.
31264         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
31265
31266         Tests of module 'glob' in C++ mode.
31267         * tests/test-glob-c++.cc: New file.
31268         * modules/glob-tests (Files): Add it.
31269         (Depends-on): Add ansi-c++-opt.
31270         (Makefile.am): Arrange to compile and run test-glob-c++.
31271
31272         Tests of module 'fcntl-h' in C++ mode.
31273         * tests/test-fcntl-h-c++.cc: New file.
31274         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
31275         (Depends-on): Add ansi-c++-opt.
31276         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
31277         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
31278         gl_MODULE_INDICATOR.
31279
31280         Tests of module 'dirent' in C++ mode.
31281         * tests/test-dirent-c++.cc: New file.
31282         * modules/dirent-tests (Files): Add it and tests/signature.h.
31283         (Depends-on): Add ansi-c++-opt.
31284         (Makefile.am): Arrange to compile and run test-dirent-c++.
31285         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
31286         gl_MODULE_INDICATOR.
31287
31288         New module 'ansi-c++-opt'.
31289         * modules/ansi-c++-opt: New file.
31290         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
31291
31292         Document C++ namespace mode.
31293         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
31294
31295         wctype: Avoid #define replacements in C++ mode.
31296         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
31297         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
31298         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
31299         In C++, define a namespaced alias symbol.
31300         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
31301         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
31302         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
31303         rule.
31304
31305         wchar: Avoid #define replacements in C++ mode.
31306         * lib/wchar.in.h: Include c++defs.h.
31307         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
31308         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
31309         symbol.
31310         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
31311         * modules/wchar (Depends-on): Add c++defs.
31312         (Makefile.am): Update wchar.h rule.
31313
31314         unistd: Avoid #define replacements in C++ mode.
31315         * lib/unistd.in.h: Include c++defs.h.
31316         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
31317         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
31318         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
31319         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
31320         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
31321         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
31322         symbol.
31323         (environ): Update.
31324         * modules/unistd (Depends-on): Add c++defs.
31325         (Makefile.am): Update unistd.h rule.
31326
31327         time: Avoid #define replacements in C++ mode.
31328         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
31329         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
31330         define a namespaced alias symbol.
31331         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
31332         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
31333         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
31334         * modules/time (Depends-on): Add c++defs, warn-on-use.
31335         (Makefile.am): Update time.h rule.
31336         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
31337         * modules/nanosleep (configure.ac): Likewise.
31338         * modules/strptime (configure.ac): Likewise.
31339         * modules/timegm (configure.ac): Likewise.
31340
31341         sys_time: Avoid #define replacements in C++ mode.
31342         * lib/sys_time.in.h: Include c++defs.h.
31343         (gettimeofday): In C++, define a namespaced alias symbol.
31344         * modules/sys_time (Depends-on): Add c++defs.
31345         (Makefile.am): Update sys/time.h rule.
31346
31347         sys_stat: Avoid #define replacements in C++ mode.
31348         * lib/sys_stat.in.h: Include c++defs.h.
31349         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
31350         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
31351         namespaced alias symbol.
31352         In C++, define a namespaced alias symbol.
31353         * modules/sys_stat (Depends-on): Add c++defs.
31354         (Makefile.am): Update sys/stat.h rule.
31355
31356         sys_socket: Avoid #define replacements in C++ mode.
31357         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
31358         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
31359         definitions also when the system has a <sys/socket.h>.
31360         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
31361         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
31362         In C++, define a namespaced alias symbol.
31363         * modules/sys_socket (Depends-on): Add c++defs.
31364         (Makefile.am): Update sys/socket.h rule.
31365
31366         sys_select: Avoid #define replacements in C++ mode.
31367         * lib/sys_select.in.h: Include c++defs.h. Enable the function
31368         definitions also when the system has a <sys/select.h>.
31369         (select): In C++, define a namespaced alias symbol.
31370         * modules/sys_select (Depends-on): Add c++defs.
31371         (Makefile.am): Update sys/select.h rule.
31372
31373         sys_ioctl: Avoid #define replacements in C++ mode.
31374         * lib/sys_ioctl.in.h: Include c++defs.h.
31375         (ioctl): In C++, define a namespaced alias symbol.
31376         * modules/sys_ioctl (Depends-on): Add c++defs.
31377         (Makefile.am): Update sys/ioctl.h rule.
31378
31379         string: Avoid #define replacements in C++ mode.
31380         * lib/string.in.h: Include c++defs.h.
31381         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
31382         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
31383         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
31384         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
31385         strsignal, strverscmp): In C++, define a namespaced alias symbol.
31386         * modules/string (Depends-on): Add c++defs.
31387         (Makefile.am): Update string.h rule.
31388
31389         stdlib: Avoid #define replacements in C++ mode.
31390         * lib/stdlib.in.h: Include c++defs.h.
31391         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
31392         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
31393         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
31394         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
31395         symbol.
31396         * modules/stdlib (Depends-on): Add c++defs.
31397         (Makefile.am): Update stdlib.h rule.
31398
31399         stdio: Avoid #define replacements in C++ mode.
31400         * lib/stdio.in.h: Include c++defs.h.
31401         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
31402         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
31403         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
31404         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
31405         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
31406         namespaced alias symbol.
31407         * modules/stdio (Depends-on): Add c++defs.
31408         (Makefile.am): Update stdio.h rule.
31409
31410         spawn: Avoid #define replacements in C++ mode.
31411         * lib/spawn.in.h: Include c++defs.h.
31412         (posix_spawn, posix_spawnp, posix_spawnattr_init,
31413         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
31414         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
31415         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
31416         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
31417         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
31418         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
31419         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
31420         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
31421         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
31422         In C++, define a namespaced alias symbol.
31423         * modules/spawn (Depends-on): Add c++defs.
31424         (Makefile.am): Update spawn.h rule.
31425
31426         signal: Avoid #define replacements in C++ mode.
31427         * lib/signal.in.h: Include c++defs.h.
31428         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
31429         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
31430         namespaced alias symbol.
31431         * modules/signal (Depends-on): Add c++defs.
31432         (Makefile.am): Update signal.h rule.
31433
31434         search: Avoid #define replacements in C++ mode.
31435         * lib/search.in.h: Include c++defs.h.
31436         (_gl_search_compar_fn, _gl_search_action_fn): New types.
31437         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
31438         symbol.
31439         * modules/search (Depends-on): Add c++defs.
31440         (Makefile.am): Update search.h rule.
31441
31442         math: Avoid #define replacements in C++ mode.
31443         * lib/math.in.h: Include c++defs.h.
31444         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
31445         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
31446         trunc, truncl): In C++, define a namespaced alias symbol.
31447         * modules/math (Depends-on): Add c++defs.
31448         (Makefile.am): Update math.h rule.
31449
31450         locale: Avoid #define replacements in C++ mode.
31451         * lib/locale.in.h: Include c++defs.h.
31452         (duplocale): In C++, define a namespaced alias symbol.
31453         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
31454         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
31455         * modules/locale (Depends-on): Add c++defs.
31456         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
31457
31458         langinfo: Avoid #define replacements in C++ mode.
31459         * lib/langinfo.in.h: Include c++defs.h.
31460         (nl_langinfo): In C++, define a namespaced alias symbol.
31461         * modules/langinfo (Depends-on): Add c++defs.
31462         (Makefile.am): Update langinfo.h rule.
31463
31464         iconv-h: Avoid #define replacements in C++ mode.
31465         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
31466         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
31467         symbol.
31468         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
31469         whenever iconv is present.
31470         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
31471         (Makefile.am): Update iconv.h rule.
31472
31473         glob: Avoid #define replacements in C++ mode.
31474         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
31475         (_gl_glob_errfunc_fn): New type.
31476         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
31477         symbol.
31478         * modules/glob (Depends-on): Add c++defs, warn-on-use.
31479         (Makefile.am): Update glob.h rule.
31480
31481         fcntl-h: Avoid #define replacements in C++ mode.
31482         * lib/fcntl.in.h: Include c++defs.h.
31483         (fcntl, open, openat): In C++, define a namespaced alias symbol.
31484         * modules/fcntl-h (Depends-on): Add c++defs.
31485         (Makefile.am): Update fcntl.h rule.
31486
31487         dirent: Avoid #define replacements in C++ mode.
31488         * lib/dirent.in.h: Include c++defs.h.
31489         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
31490         namespaced alias symbol.
31491         (dirfd): Update declaration.
31492         * modules/dirent (Depends-on): Add c++defs.
31493         (Makefile.am): Update dirent.h rule.
31494
31495         ctype: Make it usable in C++ code.
31496         * lib/ctype.in.h: Include c++defs.h.
31497         (isblank): Declare as extern "C".
31498         * modules/ctype (Depends-on): Add c++defs.
31499         (Makefile.am): Update ctype.h rule.
31500
31501         New module 'c++defs'.
31502         * modules/c++defs: New file.
31503         * build-aux/c++defs.h: New file.
31504         Reported by John W. Eaton <jwe@gnu.org>.
31505
31506 2010-03-07  Bruno Haible  <bruno@clisp.org>
31507
31508         logb: Provide missing declaration for Cygwin.
31509         * lib/math.in.h (logb): New declaration.
31510         * m4/logb.m4: New file.
31511         * modules/logb (Files): Add m4/logb.m4.
31512         (Depends-on): Add math.
31513         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
31514         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
31515         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
31516         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
31517         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
31518
31519 2010-03-07  Bruno Haible  <bruno@clisp.org>
31520
31521         Fix test-cond link error.
31522         * tests/test-cond.c: Include <stdio.h>.
31523
31524 2010-03-07  Bruno Haible  <bruno@clisp.org>
31525
31526         Fix test-dirent-safer link error.
31527         * modules/dirent-safer-tests (Makefile.am): Define
31528         test_dirent_safer_LDADD.
31529
31530 2010-03-07  Bruno Haible  <bruno@clisp.org>
31531
31532         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
31533         among default module list.
31534
31535 2010-03-07  Bruno Haible  <bruno@clisp.org>
31536
31537         Fix link error on platforms with GNU libiconv.
31538         * modules/unistr/u8-strcoll-tests (Makefile): Define
31539         test_u8_strcoll_LDADD.
31540         * modules/unistr/u16-strcoll-tests (Makefile): Define
31541         test_u16_strcoll_LDADD.
31542         * modules/unistr/u32-strcoll-tests (Makefile): Define
31543         test_u32_strcoll_LDADD.
31544
31545 2010-03-07  Bruno Haible  <bruno@clisp.org>
31546
31547         Use POSIX declarations for socket functions.
31548         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
31549         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
31550         rpl_sendto): Change declaration to match POSIX.
31551         * lib/connect.c (rpl_connect): Likewise.
31552         * lib/accept.c (rpl_accept): Likewise.
31553         * lib/bind.c (rpl_bind): Likewise.
31554         * lib/getpeername.c (rpl_getpeername): Likewise.
31555         * lib/getsockname.c (rpl_getsockname): Likewise.
31556         * lib/recv.c (rpl_recv): Likewise.
31557         * lib/send.c (rpl_send): Likewise.
31558         * lib/recvfrom.c (rpl_recvfrom): Likewise.
31559         * lib/sendto.c (rpl_sendto): Likewise.
31560
31561 2010-03-06  Bruno Haible  <bruno@clisp.org>
31562
31563         Clarify access, euidaccess, faccessat.
31564         * doc/posix-functions/faccessat.texi: Mention security problem under
31565         "Other problems", not "Portability problems".
31566         * doc/posix-functions/access.texi: Likewise. Mention a related security
31567         problem.
31568         * doc/glibc-functions/euidaccess.texi: Mention security problems.
31569         * lib/euidaccess.c: Add comments about platforms.
31570         * lib/unistd.in.h (access, euidaccess): Add warnings.
31571
31572 2010-03-07  Bruno Haible  <bruno@clisp.org>
31573
31574         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
31575         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
31576         (POSIX_SPAWN_SETSCHEDULER): Likewise.
31577         (POSIX_SPAWN_USEVFORK): Define in a way that works when
31578         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
31579         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
31580         declare when POSIX_SPAWN_SETSCHEDULER is zero.
31581         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
31582         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
31583         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
31584         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
31585         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
31586         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
31587         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
31588         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
31589         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
31590         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
31591         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
31592         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
31593         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
31594         Likewise.
31595         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
31596         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
31597         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
31598         Likewise.
31599         * tests/test-spawn.c (main): Make it work when
31600         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
31601
31602 2010-03-07  Bruno Haible  <bruno@clisp.org>
31603
31604         Fix incorrect Makefile.am generation in German locale.
31605         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
31606         Execute sed command with character range in C locale.
31607
31608 2010-03-06  Bruno Haible  <bruno@clisp.org>
31609
31610         Tests for module 'iconv-h'.
31611         * modules/iconv-h-tests: New file.
31612         * tests/test-iconv-h.c: New file.
31613
31614         New module 'iconv-h'.
31615         * modules/iconv-h: New file.
31616         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
31617         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
31618         (configure.ac): Remove gl_ICONV_H.
31619         (Makefile.am): Remove rule for iconv.h.
31620
31621 2010-03-06  Bruno Haible  <bruno@clisp.org>
31622
31623         More consistent naming of *.m4 files.
31624         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
31625         * modules/wctype (Files): Update.
31626
31627         More consistent naming of *.m4 files.
31628         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
31629         * modules/wchar (Files): Update.
31630
31631 2010-03-06  Jim Meyering  <meyering@redhat.com>
31632
31633         euidaccess: relax license to LGPLv2+
31634         * modules/euidaccess (License): Relax to LGPLv2+.
31635
31636 2010-03-06  Bruno Haible  <bruno@clisp.org>
31637
31638         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
31639         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
31640         (Makefile.am): Augment lib_SOURCES instead.
31641
31642 2010-03-04  Jim Meyering  <meyering@redhat.com>
31643
31644         utime: remove obsolete module
31645         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
31646         unnecessary for years, and has been marked as obsolete for 10 months.
31647         * modules/utime: Remove file.
31648         * lib/utime.c: Remove file.
31649         * m4/utime.m4: Remove file.
31650         * m4/utimes-null.m4: Remove file.
31651         * doc/posix-functions/utime.texi (utime): Remove reference to
31652         the module.  Move the sole "fixed by gnulib" item into the
31653         "problems not fixed by Gnulib" list.
31654         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
31655
31656 2010-03-05  Simon Josefsson  <simon@josefsson.org>
31657
31658         * modules/exit (License): Relax license to LGPLv2+.
31659         (Status): Mark as obsolete.
31660         * NEWS: Mention deprecated 'exit' module.
31661         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
31662         of now obsolete 'exit'.
31663
31664 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31665
31666         fts-lgpl: remove unused module
31667         * modules/fts-lgpl: Remove.
31668         * MODULES.html.sh (func_all_modules): Adjust.
31669         * check-module (find_included_lib_files): Adjust.
31670         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
31671
31672 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
31673
31674         copy-acl: enhance Solaris ACL error handling
31675         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
31676         * lib/set-mode-acl.c (qset_acl): Likewise.
31677
31678 2010-03-02  Bruno Haible  <bruno@clisp.org>
31679
31680         spawn: Don't override the system defined values on FreeBSD 8.
31681         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
31682         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
31683         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
31684         if HAVE_POSIX_SPAWN is 1.
31685         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
31686
31687 2010-03-01  Bruno Haible  <bruno@clisp.org>
31688
31689         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
31690         regarding Automake.
31691
31692 2010-02-25  Bruno Haible  <bruno@clisp.org>
31693
31694         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
31695         * gnulib-tool: Define 'echo' as a function only before the ksh alias
31696         setting, not afterwards.
31697         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
31698
31699 2010-02-24  Eric Blake  <eblake@redhat.com>
31700
31701         bootstrap, git-version-gen: use timestamp
31702         * build-aux/git-version-gen (scriptversion): Force UTC.
31703         * build-aux/bootstrap (scriptversion): New variable.
31704
31705         bootstrap: allow older git
31706         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
31707         older than 1.6.4.  Requested by the libvirt project.
31708
31709 2010-02-23  Eric Blake  <eblake@redhat.com>
31710
31711         warn-on-use: work with old autoconf
31712         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
31713         AS_VAR semantics of autoconf 2.60.
31714         Reported by Bruno Haible.
31715
31716         bootstrap: improve some comments
31717         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
31718         clarification comments.
31719
31720         gettimeofday: provide correct function
31721         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
31722         when replacement is declared, otherwise provide gettimeofday.
31723         Reported by Michael Goffioul.
31724
31725 2010-02-23  Jim Meyering  <meyering@redhat.com>
31726
31727         lib-ignore: relax license to "unlimited", not LGPLv2+
31728         * modules/lib-ignore (License): Relax to "unlimited".
31729
31730 2010-02-23  Jim Meyering  <meyering@redhat.com>
31731
31732         lib-ignore: relax license to LGPLv2+
31733         * modules/lib-ignore (License): Relax to LGPLv2+.
31734
31735 2010-02-22  Eric Blake  <eblake@redhat.com>
31736
31737         lseek: avoid bash 3.2 broken pipe bug
31738         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
31739         warning from bash 3.2.
31740         Reported by Ben Pfaff, with analysis from Bruno Haible.
31741
31742         bootstrap: support non-FSF copyright holder
31743         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
31744         bootstrap.conf override of COPYRIGHT_HOLDER.
31745         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
31746
31747         bootstrap: interoperate with gettext 0.14.1
31748         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
31749
31750         bootstrap: allow for alternate submodule location
31751         * build-aux/bootstrap (gnulib_path): New variable; use instead of
31752         hardcoding submodule location.
31753         (gnulib_mk): Allow direct use of Makefile.am.
31754
31755         bootstrap: use GNULIB_SRCDIR to reduce disk usage
31756         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
31757         rather than reconfiguring where the submodule points.
31758
31759         gettimeofday: restore support for platforms that lack function
31760         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
31761         replacement if function is missing.
31762         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
31763         * modules/sys_time (Makefile.am): Substitute it.
31764         * lib/sys_time.in.h (gettimeofday): Check it.
31765         Reported by Michael Goffioul.
31766
31767 2010-02-21  Bruno Haible  <bruno@clisp.org>
31768
31769         * lib/stdio.in.h (obstack_printf): Fix typo.
31770
31771 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
31772
31773         vc-list-files: use bzr ls's -R option
31774         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
31775         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
31776
31777 2010-02-21  Jim Meyering  <meyering@redhat.com>
31778
31779         init.sh: fix EXEEXT shims to work also for names like test-prog
31780         * tests/init.sh: Re-exec a better shell, when needed.
31781         If the current shell lacks support for posix $(...), an init.sh-using
31782         test will now try to find a shell that supports that.  If EXEEXT is
31783         nonempty, we also require support for hyphen-in-alias-name and shell
31784         substitutions like ${var#glob}.  Failure to find such a shell results
31785         in a skipped test.
31786
31787 2010-02-21  Bruno Haible  <bruno@clisp.org>
31788
31789         Really work around around "broken pipe" error message from bash 3.2.
31790         * gnulib-tool (func_reset_sigpipe): Remove function.
31791         (echo): In bash 3.2, define to a function that uses printf.
31792         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
31793
31794 2010-02-20  Bruno Haible  <bruno@clisp.org>
31795
31796         Restore support for automake 1.9.6 with autoconf 2.61.
31797         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
31798         Reported by James Youngman <jay@gnu.org>.
31799
31800 2010-02-20  Bruno Haible  <bruno@clisp.org>
31801
31802         Improve *printf warning condition.
31803         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
31804         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
31805         and the function is overridden due to SIGPIPE emulation.
31806
31807 2010-02-20  Bruno Haible  <bruno@clisp.org>
31808
31809         * lib/stdio.in.h: Tweak comments.
31810
31811 2010-02-19  Bruno Haible  <bruno@clisp.org>
31812
31813         Make it easier to find modules. New gnulib-tool option '--find'.
31814         * gnulib-tool: New option --find.
31815         (func_usage): Document it.
31816         (func_sanitize_modulelist): New function, extracted from
31817         func_all_modules.
31818         (func_all_modules): Invoke it.
31819         * doc/gnulib-tool.texi (Which modules?): New node.
31820
31821 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
31822
31823         * lib/sys_select.in.h: Provide select replacement even if
31824         sys/select.h exists on a system, for Interix.
31825
31826 2010-02-18  Jim Meyering  <meyering@redhat.com>
31827
31828         init.sh: don't use $(...) just yet
31829         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
31830         to accommodate e.g., Solaris' /bin/sh.
31831
31832 2010-02-17  Bruno Haible  <bruno@clisp.org>
31833
31834         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
31835         Reported by Ludovic Courtès <ludo@gnu.org>.
31836
31837 2010-02-16  Simon Josefsson  <simon@josefsson.org>
31838
31839         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
31840         linking with -lintl.
31841
31842 2010-02-17  Simon Josefsson  <simon@josefsson.org>
31843
31844         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
31845         if not provided by the system's netdb.h.  Reported by
31846         ludo@gnu.org (Ludovic Courtès).
31847
31848 2010-02-15  Jim Meyering  <meyering@redhat.com>
31849
31850         init.sh: improve portability and efficiency
31851         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
31852         "dummy" in a for loop.
31853         Use '!', not '^' to select the complement of a character set used
31854         in a "case" statement.
31855         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
31856         Suggestions from Eric Blake.
31857
31858         init.sh: automatically accommodate programs with the .exe suffix
31859         Automatically arrange for an invocation of "prog" to execute the
31860         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
31861         may use the simpler "prog", yet still work when built on a system
31862         that requires specifying the added suffix.
31863         Do this by constructing a function named "prog" that invokes
31864         "prog.exe" for each .exe file in selected directories.
31865         * tests/init.sh (find_exe_basenames_): New function.
31866         (create_exe_shim_functions_): New function.
31867         (path_prepend_): Use it.
31868
31869         maint.mk: mark syntax-check sc_*.m rules as .PHONY
31870         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
31871         "make -t syntax-check" doesn't create a ton of sc_*.m files.
31872
31873 2010-02-14  Jim Meyering  <meyering@redhat.com>
31874
31875         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
31876         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
31877         (sc_prohibit_hash_pjw_without_use): New rule.
31878
31879         maint.mk: allow the default upload destination dir to be overridden
31880         * top/maint.mk (upload_dest_dir_): Define with a default that
31881         preserves the status quo.
31882         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
31883         Reported by Peter Simons.
31884
31885         maint.mk: prohibit inclusion of "hash.h" without_use
31886         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
31887
31888 2010-02-10  Jim Meyering  <meyering@redhat.com>
31889
31890         maint.mk: prohibit inclusion of "ignore-value.h" without_use
31891         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
31892
31893 2010-02-09  Eric Blake  <ebb9@byu.net>
31894         and Bruno Haible  <bruno@clisp.org>
31895
31896         obstack-printf-posix: ensure declaration
31897         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
31898         extracted from gl_FUNC_OBSTACK_PRINTF.
31899         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
31900         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
31901         Likewise.
31902         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
31903         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
31904         0.
31905
31906 2010-02-08  Bruno Haible  <bruno@clisp.org>
31907
31908         gnulib-tool: Fix typo in 2010-02-07 commit.
31909         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
31910         Reported by Eric Blake.
31911
31912 2010-02-07  Bruno Haible  <bruno@clisp.org>
31913
31914         gnulib-tool: Fix up caching patches.
31915         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
31916         option --no-cache. Use associative arrays when supported by the shell.
31917         (sed_comments): New variable.
31918         (modcache): Renamed from do_cache.
31919         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
31920         abbreviate unnecessarily.
31921         (have_associative): New variable.
31922         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
31923         way also for ksh and zsh.
31924         (func_init_sed_convert_to_cache_statements): New function, extracted
31925         from func_cache_lookup_module. Add support for associative arrays.
31926         Don't set the c_MODULE_cached variable here. Ignore all lines before
31927         the first field header. Remove only the final newline, not all trailing
31928         newlines. Support empty fields correctly. Limit the use of 'eval' to
31929         assignments.
31930         (func_get_description, func_get_status, func_get_notice,
31931         func_get_applicability, func_get_filelist, func_get_dependencies,
31932         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
31933         func_get_automake_snippet, func_get_include_directive,
31934         func_get_link_directive, func_get_license, func_get_maintainer):
31935         Update documentation. List the unoptimized code first. Add support for
31936         associative arrays. Limit the use of 'eval' to assignments.
31937         (func_get_applicability): Undo stylistic pessimisations.
31938         (func_get_automake_snippet, func_get_include_directive): Reduce code
31939         duplication.
31940         (func_modules_transitive_closure, func_modules_add_dummy,
31941         func_modules_notice, func_modules_to_filelist, func_add_file,
31942         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
31943         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
31944         func_create_testdir, func_create_megatestdir): Update documentation.
31945
31946 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31947
31948         * gnulib-tool (func_cache_lookup_module): Store the module name
31949         belonging to the cache variable; error out if two different
31950         module names map to the same cache variable name.
31951
31952 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31953
31954         gnulib-tool: Make caching optional.
31955         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
31956         Update matching short versions of --no-changelog.
31957         (func_usage): Update.
31958         (sed_extract_cache_prog): Renamed from ...
31959         (sed_extract_prog): ... this; revert to old extraction script.
31960         (func_get_description, func_get_status)
31961         (func_get_notice, func_get_applicability, func_get_filelist)
31962         (func_get_dependencies, func_get_autoconf_early_snippet)
31963         (func_get_autoconf_snippet, func_get_automake_snippet)
31964         (func_get_include_directive, func_get_link_directive)
31965         (func_get_license, func_get_maintainer): If $do_cache is false,
31966         use old, non-caching extraction scripts.
31967         Suggestion by Bruno Haible.
31968
31969 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31970
31971         gnulib-tool: cache module metainformation.
31972         * gnulib-tool (sed_extract_prog): Match newline before each
31973         header, and rewrite header to a shell variable suffix.
31974         (func_cache_var, func_cache_lookup_module): New functions,
31975         to turn a module name into a cache variable prefix, and to
31976         look up and cache module metainformation.
31977         (func_get_description, func_get_status)
31978         (func_get_notice, func_get_applicability, func_get_filelist)
31979         (func_get_dependencies, func_get_autoconf_early_snippet)
31980         (func_get_autoconf_snippet, func_get_automake_snippet)
31981         (func_get_include_directive, func_get_link_directive)
31982         (func_get_license, func_get_maintainer): Use
31983         func_cache_lookup_module.
31984
31985 2010-02-07  Bruno Haible  <bruno@clisp.org>
31986
31987         fnctl: Fix missing dependency.
31988         * modules/fcntl (Depends-on): Add getdtablesize.
31989         Reported by John W. Eaton <jwe@gnu.org>.
31990
31991 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
31992
31993         Argp: fix recognition of short alias options.
31994
31995         * lib/argp-parse.c (convert_options): Fix improper use of
31996         `|' between character values.
31997         * tests/test-argp.c (group1_option): New alias option
31998         --read (-r).
31999         (group1_parser): Special handling for 'r'.
32000         (test15): New test case.
32001         (test_fun): Add test15.
32002         * tests/test-argp-2.sh: Update expected --help and --usage
32003         outputs.
32004
32005 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
32006
32007         * tests/test-argp.c: Fix indentation.
32008
32009 2010-02-04  Eric Blake  <ebb9@byu.net>
32010
32011         gettimeofday: expose type of second argument
32012         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
32013         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
32014         * tests/test-gettimeofday.c: Use it to silence warning.
32015         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
32016         the issue.
32017
32018 2010-02-03  Jim Meyering  <meyering@redhat.com>
32019
32020         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
32021         * lib/regcomp.c (TYPE_SIGNED): Define.
32022         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
32023
32024         regcomp.c: avoid a new -Wshadow warning
32025         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
32026
32027 2010-02-01  Jim Meyering  <meyering@redhat.com>
32028
32029         removing useless parentheses in cpp #define directives
32030         For motivation, see commit c0221df4, "define STREQ(a,b)
32031         consistently, removing useless parentheses"
32032         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
32033         * lib/mountlist.c (MNT_IGNORE): Likewise.
32034         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
32035
32036 2010-02-01  Eric Blake  <ebb9@byu.net>
32037
32038         sys_time: use link-warning
32039         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
32040         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
32041         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
32042         * modules/sys_time (Depends-on): Add warn-on-use.
32043         (Makefile.am): Always build replacement.
32044         (configure.ac): Update substitutions.
32045         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
32046         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
32047         bother with SYS_TIME_H.
32048         * modules/gettimeofday (configure.ac): Declare indicator.
32049         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
32050         in use.
32051
32052         closein-tests: silence compiler warning
32053         * tests/test-closein.c (main): Ignore fread result.
32054         * modules/closein-tests (Depends-on): Add ignore-value.
32055
32056         tests: silence warning about system return
32057         * tests/test-areadlink-with-size.c (main): Ignore system result.
32058         * tests/test-areadlink.c (main): Likewise.
32059         * tests/test-areadlinkat-with-size.c (main): Likewise.
32060         * tests/test-areadlinkat.c (main): Likewise.
32061         * tests/test-canonicalize-lgpl.c (main): Likewise.
32062         * tests/test-canonicalize.c (main): Likewise.
32063         * tests/test-chown.c (main): Likewise.
32064         * tests/test-fchownat.c (main): Likewise.
32065         * tests/test-fdutimensat.c (main): Likewise.
32066         * tests/test-fstatat.c (main): Likewise.
32067         * tests/test-futimens.c (main): Likewise.
32068         * tests/test-lchown.c (main): Likewise.
32069         * tests/test-link.c (main): Likewise.
32070         * tests/test-linkat.c (main): Likewise.
32071         * tests/test-lstat.c (main): Likewise.
32072         * tests/test-mkdir.c (main): Likewise.
32073         * tests/test-mkdirat.c (main): Likewise.
32074         * tests/test-mkfifo.c (main): Likewise.
32075         * tests/test-mkfifoat.c (main): Likewise.
32076         * tests/test-mknod.c (main): Likewise.
32077         * tests/test-readlink.c (main): Likewise.
32078         * tests/test-remove.c (main): Likewise.
32079         * tests/test-rename.c (main): Likewise.
32080         * tests/test-renameat.c (main): Likewise.
32081         * tests/test-rmdir.c (main): Likewise.
32082         * tests/test-symlink.c (main): Likewise.
32083         * tests/test-symlinkat.c (main): Likewise.
32084         * tests/test-unlink.c (main): Likewise.
32085         * tests/test-unlinkat.c (main): Likewise.
32086         * tests/test-utimens.c (main): Likewise.
32087         * tests/test-utimensat.c (main): Likewise.
32088         * modules/areadlink-tests (Depends-on): Add ignore-value.
32089         * modules/areadlink-with-size-tests (Depends-on): Likewise.
32090         * modules/areadlinkat-tests (Depends-on): Likewise.
32091         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
32092         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
32093         * modules/canonicalize-tests (Depends-on): Likewise.
32094         * modules/chown-tests (Depends-on): Likewise.
32095         * modules/fdutimensat-tests (Depends-on): Likewise.
32096         * modules/futimens-tests (Depends-on): Likewise.
32097         * modules/lchown-tests (Depends-on): Likewise.
32098         * modules/link-tests (Depends-on): Likewise.
32099         * modules/linkat-tests (Depends-on): Likewise.
32100         * modules/lstat-tests (Depends-on): Likewise.
32101         * modules/mkdir-tests (Depends-on): Likewise.
32102         * modules/mkfifo-tests (Depends-on): Likewise.
32103         * modules/mkfifoat-tests (Depends-on): Likewise.
32104         * modules/mknod-tests (Depends-on): Likewise.
32105         * modules/openat-tests (Depends-on): Likewise.
32106         * modules/readlink-tests (Depends-on): Likewise.
32107         * modules/remove-tests (Depends-on): Likewise.
32108         * modules/rename-tests (Depends-on): Likewise.
32109         * modules/renameat-tests (Depends-on): Likewise.
32110         * modules/rmdir-tests (Depends-on): Likewise.
32111         * modules/symlink-tests (Depends-on): Likewise.
32112         * modules/symlinkat-tests (Depends-on): Likewise.
32113         * modules/unlink-tests (Depends-on): Likewise.
32114         * modules/utimens-tests (Depends-on): Likewise.
32115         * modules/utimensat-tests (Depends-on): Likewise.
32116
32117 2010-01-31  Bruno Haible  <bruno@clisp.org>
32118
32119         Perform the same test for many <math.h> functions.
32120         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
32121         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
32122         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
32123         of gl_MATHFUNC.
32124         * modules/acos (configure.ac): Likewise.
32125         * modules/asin (configure.ac): Likewise.
32126         * modules/atan (configure.ac): Likewise.
32127         * modules/atan2 (configure.ac): Likewise.
32128         * modules/cbrt (configure.ac): Likewise.
32129         * modules/copysign (configure.ac): Likewise.
32130         * modules/cos (configure.ac): Likewise.
32131         * modules/cosh (configure.ac): Likewise.
32132         * modules/erf (configure.ac): Likewise.
32133         * modules/erfc (configure.ac): Likewise.
32134         * modules/exp (configure.ac): Likewise.
32135         * modules/fmod (configure.ac): Likewise.
32136         * modules/hypot (configure.ac): Likewise.
32137         * modules/j0 (configure.ac): Likewise.
32138         * modules/j1 (configure.ac): Likewise.
32139         * modules/jn (configure.ac): Likewise.
32140         * modules/lgamma (configure.ac): Likewise.
32141         * modules/log (configure.ac): Likewise.
32142         * modules/log10 (configure.ac): Likewise.
32143         * modules/log1p (configure.ac): Likewise.
32144         * modules/pow (configure.ac): Likewise.
32145         * modules/remainder (configure.ac): Likewise.
32146         * modules/sin (configure.ac): Likewise.
32147         * modules/sinh (configure.ac): Likewise.
32148         * modules/tan (configure.ac): Likewise.
32149         * modules/tanh (configure.ac): Likewise.
32150         * modules/y0 (configure.ac): Likewise.
32151         * modules/y1 (configure.ac): Likewise.
32152         * modules/yn (configure.ac): Likewise.
32153         Suggested by Paolo Bonzini.
32154
32155 2010-01-31  Bruno Haible  <bruno@clisp.org>
32156
32157         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
32158
32159 2010-01-31  Bruno Haible  <bruno@clisp.org>
32160
32161         Work around getdelim() bug on FreeBSD 8.0.
32162         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
32163         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
32164         not work.
32165         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
32166         is 1.
32167         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
32168         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
32169         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
32170         a non-zero size.
32171         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
32172
32173 2010-01-31  Bruno Haible  <bruno@clisp.org>
32174
32175         Work around getline() bug on FreeBSD 8.0.
32176         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
32177         and a non-zero size.
32178         * tests/test-getline.c (main): Likewise.
32179         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
32180         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
32181
32182 2010-01-28  Eric Blake  <ebb9@byu.net>
32183
32184         regex: fix build failure
32185         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
32186         platforms.
32187
32188 2010-01-28  Jim Meyering  <meyering@redhat.com>
32189
32190         regex: do not ignore memory allocation failure
32191         * lib/regex_internal.c (create_cd_newstate): Detect
32192         re_node_set_init_copy failure.   Extracted from glibc commit
32193         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
32194
32195         regex: sync more white-space changes from libc
32196         * lib/regex_internal.c: White-space only changes.
32197         * lib/regexec.c: Likewise.
32198
32199         regex: add many uses of __attribute_warn_unused_result__
32200         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
32201         * lib/regexec.c: Likewise.
32202         Extracted from a messy glibc commit.
32203
32204         regcomp.c: spelling and merge-artifact from glibc
32205         * lib/regcomp.c: Merge remainder of glibc's
32206         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
32207
32208         regcomp.c: sync white-space changes from glibc
32209         * lib/regcomp.c: Merge to accommodate white space
32210         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
32211
32212         regcomp.c: do not ignore internal return values
32213         * lib/regcomp.c: Do not ignore internal return values.
32214         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
32215         but without its white-space changes and spelling fixes.
32216
32217         regex_internal.h: define __attribute_warn_unused_result__
32218         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
32219
32220         maint: add a syntax-check rule to check for vulnerable Makefile.in
32221         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
32222
32223 2010-01-27  Jim Meyering  <meyering@redhat.com>
32224
32225         ncftpput-ftp: clean up spaces
32226         * build-aux/ncftpput-ftp: Make Copyright line consistent.
32227         Remove trailing blanks.
32228
32229 2010-01-27  Simon Josefsson  <simon@josefsson.org>
32230
32231         * build-aux/git-version-gen: Fix copyright statement.
32232         * build-aux/gnupload: Likewise.
32233         * tests/test-arcfour.c: Likewise.
32234         * tests/test-arctwo.c: Likewise.
32235         * tests/test-count-one-bits.c: Likewise.
32236         * tests/test-crc.c: Likewise.
32237         * tests/test-des.c: Likewise.
32238         * tests/test-gc-arcfour.c: Likewise.
32239         * tests/test-gc-arctwo.c: Likewise.
32240         * tests/test-gc-des.c: Likewise.
32241         * tests/test-gc-hmac-md5.c: Likewise.
32242         * tests/test-gc-hmac-sha1.c: Likewise.
32243         * tests/test-gc-md2.c: Likewise.
32244         * tests/test-gc-md4.c: Likewise.
32245         * tests/test-gc-md5.c: Likewise.
32246         * tests/test-gc-pbkdf2-sha1.c: Likewise.
32247         * tests/test-gc-rijndael.c: Likewise.
32248         * tests/test-gc-sha1.c: Likewise.
32249         * tests/test-gc.c: Likewise.
32250         * tests/test-gethostname.c: Likewise.
32251         * tests/test-gettimeofday.c: Likewise.
32252         * tests/test-hash.c: Likewise.
32253         * tests/test-hmac-md5.c: Likewise.
32254         * tests/test-hmac-sha1.c: Likewise.
32255         * tests/test-md2.c: Likewise.
32256         * tests/test-md4.c: Likewise.
32257         * tests/test-md5.c: Likewise.
32258         * tests/test-memchr.c: Likewise.
32259         * tests/test-memchr2.c: Likewise.
32260         * tests/test-memcmp.c: Likewise.
32261         * tests/test-memmem.c: Likewise.
32262         * tests/test-memrchr.c: Likewise.
32263         * tests/test-rawmemchr.c: Likewise.
32264         * tests/test-read-file.c: Likewise.
32265         * tests/test-rijndael.c: Likewise.
32266         * tests/test-sockets.c: Likewise.
32267         * tests/test-strchrnul.c: Likewise.
32268         * tests/test-strstr.c: Likewise.
32269         * tests/test-strtod.c: Likewise.
32270         * build-aux/ncftpput-ftp: Likewise.
32271
32272 2010-01-26  Eric Blake  <ebb9@byu.net>
32273
32274         ignore-value: update recommended header name
32275         * modules/ignore-value (Include): Only use <> for headers that
32276         exist in glibc.
32277
32278 2010-01-26  Jim Meyering  <meyering@redhat.com>
32279
32280         test-userspec.c: avoid compiler warnings
32281         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
32282         and "initialization discards qualifiers..." warnings.
32283         Put the first "uid" in its own scope, and make char* members "const".
32284
32285 2010-01-25  Bruno Haible  <bruno@clisp.org>
32286
32287         gnulib-tool: Make warning diagnostics consistent.
32288         * gnulib-tool (func_warning): New function.
32289         Use it everywhere where gnulib-tool produces output to stderr and it is
32290         not a fatal error.
32291
32292 2010-01-25  Bruno Haible  <bruno@clisp.org>
32293
32294         Fix test dependencies.
32295         * modules/xstrtol-tests (Depends-on): Add inttypes.
32296         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
32297
32298 2010-01-25 Pádraig Brady <P@draigBrady.com>
32299
32300         syntax-check: detect incorrect boolean macro values in config.h
32301         * modules/maintainer-makefile (configure.ac): Parameterize the location
32302         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
32303         The logic is from Eric Blake and the location indicated by Jim Meyering.
32304         Note the more natural CONFIG_HEADER name is prohibited by automake
32305         for backwards compatibility reasons.
32306         * top/maint.mk (sc_Wundef_boolean): New rule.
32307
32308 2010-01-25  Jim Meyering  <meyering@redhat.com>
32309
32310         bootstrap: detect MacOS 10.6's shasum, too
32311         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
32312         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
32313
32314 2010-01-23  Jim Meyering  <meyering@redhat.com>
32315
32316         xstrtoll: new module
32317         * modules/xstrtoll: New file.
32318         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
32319         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
32320         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
32321         ./configure fails if you use this module and lack "long long".
32322         * modules/xstrtoll-tests: New module.
32323         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
32324         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
32325         new init.sh-based test framework.
32326
32327 2010-01-24  Bruno Haible  <bruno@clisp.org>
32328
32329         Tests for module 'yn'.
32330         * modules/yn-tests: New file.
32331         * tests/test-yn.c: New file.
32332
32333         Tests for module 'y1'.
32334         * modules/y1-tests: New file.
32335         * tests/test-y1.c: New file.
32336
32337         Tests for module 'y0'.
32338         * modules/y0-tests: New file.
32339         * tests/test-y0.c: New file.
32340
32341         Tests for module 'tanh'.
32342         * modules/tanh-tests: New file.
32343         * tests/test-tanh.c: New file.
32344
32345         Tests for module 'tan'.
32346         * modules/tan-tests: New file.
32347         * tests/test-tan.c: New file.
32348
32349         Tests for module 'sqrt'.
32350         * modules/sqrt-tests: New file.
32351         * tests/test-sqrt.c: New file.
32352
32353         Tests for module 'sinh'.
32354         * modules/sinh-tests: New file.
32355         * tests/test-sinh.c: New file.
32356
32357         Tests for module 'sin'.
32358         * modules/sin-tests: New file.
32359         * tests/test-sin.c: New file.
32360
32361         Tests for module 'rint'.
32362         * modules/rint-tests: New file.
32363         * tests/test-rint.c: New file.
32364
32365         Tests for module 'remainder'.
32366         * modules/remainder-tests: New file.
32367         * tests/test-remainder.c: New file.
32368
32369         Tests for module 'pow'.
32370         * modules/pow-tests: New file.
32371         * tests/test-pow.c: New file.
32372
32373         Tests for module 'nextafter'.
32374         * modules/nextafter-tests: New file.
32375         * tests/test-nextafter.c: New file.
32376
32377         Tests for module 'modf'.
32378         * modules/modf-tests: New file.
32379         * tests/test-modf.c: New file.
32380
32381         Tests for module 'logb'.
32382         * modules/logb-tests: New file.
32383         * tests/test-logb.c: New file.
32384
32385         Tests for module 'log1p'.
32386         * modules/log1p-tests: New file.
32387         * tests/test-log1p.c: New file.
32388
32389         Tests for module 'log10'.
32390         * modules/log10-tests: New file.
32391         * tests/test-log10.c: New file.
32392
32393         Tests for module 'log'.
32394         * modules/log-tests: New file.
32395         * tests/test-log.c: New file.
32396
32397         Tests for module 'lgamma'.
32398         * modules/lgamma-tests: New file.
32399         * tests/test-lgamma.c: New file.
32400
32401         Tests for module 'ldexp'.
32402         * modules/ldexp-tests: New file.
32403         * tests/test-ldexp.c: New file.
32404
32405         Tests for module 'jn'.
32406         * modules/jn-tests: New file.
32407         * tests/test-jn.c: New file.
32408
32409         Tests for module 'j1'.
32410         * modules/j1-tests: New file.
32411         * tests/test-j1.c: New file.
32412
32413         Tests for module 'j0'.
32414         * modules/j0-tests: New file.
32415         * tests/test-j0.c: New file.
32416
32417         Tests for module 'hypot'.
32418         * modules/hypot-tests: New file.
32419         * tests/test-hypot.c: New file.
32420
32421         Tests for module 'fmod'.
32422         * modules/fmod-tests: New file.
32423         * tests/test-fmod.c: New file.
32424
32425         Tests for module 'fabs'.
32426         * modules/fabs-tests: New file.
32427         * tests/test-fabs.c: New file.
32428
32429         Tests for module 'exp'.
32430         * modules/exp-tests: New file.
32431         * tests/test-exp.c: New file.
32432
32433         Tests for module 'erfc'.
32434         * modules/erfc-tests: New file.
32435         * tests/test-erfc.c: New file.
32436
32437         Tests for module 'erf'.
32438         * modules/erf-tests: New file.
32439         * tests/test-erf.c: New file.
32440
32441         Tests for module 'cosh'.
32442         * modules/cosh-tests: New file.
32443         * tests/test-cosh.c: New file.
32444
32445         Tests for module 'cos'.
32446         * modules/cos-tests: New file.
32447         * tests/test-cos.c: New file.
32448
32449         Tests for module 'copysign'.
32450         * modules/copysign-tests: New file.
32451         * tests/test-copysign.c: New file.
32452
32453         Tests for module 'cbrt'.
32454         * modules/cbrt-tests: New file.
32455         * tests/test-cbrt.c: New file.
32456
32457         Tests for module 'atan2'.
32458         * modules/atan2-tests: New file.
32459         * tests/test-atan2.c: New file.
32460
32461         Tests for module 'atan'.
32462         * modules/atan-tests: New file.
32463         * tests/test-atan.c: New file.
32464
32465         Tests for module 'asin'.
32466         * modules/asin-tests: New file.
32467         * tests/test-asin.c: New file.
32468
32469         Tests for module 'acos'.
32470         * modules/acos-tests: New file.
32471         * tests/test-acos.c: New file.
32472
32473 2010-01-24  Bruno Haible  <bruno@clisp.org>
32474
32475         Fix tests for common <math.h> functions.
32476         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
32477         code snippet that references the function pointer, rather than merely
32478         calling the function. Substitute the FUNC_LIBM variable.
32479         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
32480         * modules/acos (configure.ac): Likewise.
32481         * modules/asin (configure.ac): Likewise.
32482         * modules/atan (configure.ac): Likewise.
32483         * modules/atan2 (configure.ac): Likewise.
32484         * modules/cbrt (configure.ac): Likewise.
32485         * modules/copysign (configure.ac): Likewise.
32486         * modules/cos (configure.ac): Likewise.
32487         * modules/cosh (configure.ac): Likewise.
32488         * modules/erf (configure.ac): Likewise.
32489         * modules/erfc (configure.ac): Likewise.
32490         * modules/exp (configure.ac): Likewise.
32491         * modules/fabs (configure.ac): Likewise.
32492         * modules/fmod (configure.ac): Likewise.
32493         * modules/hypot (configure.ac): Likewise.
32494         * modules/j0 (configure.ac): Likewise.
32495         * modules/j1 (configure.ac): Likewise.
32496         * modules/jn (configure.ac): Likewise.
32497         * modules/ldexp (configure.ac): Likewise.
32498         * modules/lgamma (configure.ac): Likewise.
32499         * modules/log (configure.ac): Likewise.
32500         * modules/log10 (configure.ac): Likewise.
32501         * modules/log1p (configure.ac): Likewise.
32502         * modules/logb (configure.ac): Likewise.
32503         * modules/modf (configure.ac): Likewise.
32504         * modules/nextafter (configure.ac): Likewise.
32505         * modules/pow (configure.ac): Likewise.
32506         * modules/remainder (configure.ac): Likewise.
32507         * modules/rint (configure.ac): Likewise.
32508         * modules/sin (configure.ac): Likewise.
32509         * modules/sinh (configure.ac): Likewise.
32510         * modules/tan (configure.ac): Likewise.
32511         * modules/tanh (configure.ac): Likewise.
32512         * modules/y0 (configure.ac): Likewise.
32513         * modules/y1 (configure.ac): Likewise.
32514         * modules/yn (configure.ac): Likewise.
32515
32516 2010-01-24  Bruno Haible  <bruno@clisp.org>
32517
32518         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
32519         * tests/test-acosl.c (x): New variable.
32520         (main): Store argument in x and fetch it from x.
32521         * tests/test-asinl.c (x): New variable.
32522         (main): Store argument in x and fetch it from x.
32523         * tests/test-atanl.c (x): New variable.
32524         (main): Store argument in x and fetch it from x.
32525         * tests/test-cosl.c (x): New variable.
32526         (main): Store argument in x and fetch it from x.
32527         * tests/test-expl.c (x): New variable.
32528         (main): Store argument in x and fetch it from x.
32529         * tests/test-logl.c (x): New variable.
32530         (main): Store argument in x and fetch it from x.
32531         * tests/test-sinl.c (x): New variable.
32532         (main): Store argument in x and fetch it from x.
32533         * tests/test-sqrtl.c (x): New variable.
32534         (main): Store argument in x and fetch it from x.
32535         * tests/test-tanl.c (x): New variable.
32536         (main): Store argument in x and fetch it from x.
32537
32538 2010-01-24  Bruno Haible  <bruno@clisp.org>
32539
32540         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
32541         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
32542         assignments to the initial TESTS_ENVIRONMENT.
32543         * doc/gnulib.texi (Unit test modules): Document it.
32544         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
32545         TESTS_ENVIRONMENT.
32546         * modules/btowc-tests (Makefile.am): Likewise.
32547         * modules/c-stack-tests (Makefile.am): Likewise.
32548         * modules/c-strcase-tests (Makefile.am): Likewise.
32549         * modules/copy-file-tests (Makefile.am): Likewise.
32550         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
32551         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
32552         * modules/mbrtowc-tests (Makefile.am): Likewise.
32553         * modules/mbscasecmp-tests (Makefile.am): Likewise.
32554         * modules/mbscasestr-tests (Makefile.am): Likewise.
32555         * modules/mbschr-tests (Makefile.am): Likewise.
32556         * modules/mbscspn-tests (Makefile.am): Likewise.
32557         * modules/mbsinit-tests (Makefile.am): Likewise.
32558         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
32559         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
32560         * modules/mbspbrk-tests (Makefile.am): Likewise.
32561         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
32562         * modules/mbsrchr-tests (Makefile.am): Likewise.
32563         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
32564         * modules/mbsspn-tests (Makefile.am): Likewise.
32565         * modules/mbsstr-tests (Makefile.am): Likewise.
32566         * modules/nl_langinfo-tests (Makefile.am): Likewise.
32567         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
32568         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
32569         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
32570         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
32571         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
32572         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
32573         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
32574         * modules/wcrtomb-tests (Makefile.am): Likewise.
32575         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
32576         * modules/wcsrtombs-tests (Makefile.am): Likewise.
32577         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
32578         assignments from TESTS_ENVIRONMENT.
32579         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
32580         augmentation.
32581         * modules/argp-version-etc-tests (Makefile.am): Likewise.
32582         * modules/atexit-tests (Makefile.am): Likewise.
32583         * modules/binary-io-tests (Makefile.am): Likewise.
32584         * modules/closein-tests (Makefile.am): Likewise.
32585         * modules/dprintf-posix-tests (Makefile.am): Likewise.
32586         * modules/exclude-tests (Makefile.am): Likewise.
32587         * modules/fflush-tests (Makefile.am): Likewise.
32588         * modules/fpending-tests (Makefile.am): Likewise.
32589         * modules/fprintf-posix-tests (Makefile.am): Likewise.
32590         * modules/freadahead-tests (Makefile.am): Likewise.
32591         * modules/freadptr-tests (Makefile.am): Likewise.
32592         * modules/freadseek-tests (Makefile.am): Likewise.
32593         * modules/fseek-tests (Makefile.am): Likewise.
32594         * modules/fseeko-tests (Makefile.am): Likewise.
32595         * modules/ftell-tests (Makefile.am): Likewise.
32596         * modules/ftello-tests (Makefile.am): Likewise.
32597         * modules/idpriv-drop-tests (Makefile.am): Likewise.
32598         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
32599         * modules/lseek-tests (Makefile.am): Likewise.
32600         * modules/parse-duration-tests (Makefile.am): Likewise.
32601         * modules/perror-tests (Makefile.am): Likewise.
32602         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
32603         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
32604         * modules/pipe-tests (Makefile.am): Likewise.
32605         * modules/pread-tests (Makefile.am): Likewise.
32606         * modules/printf-posix-tests (Makefile.am): Likewise.
32607         * modules/select-tests (Makefile.am): Likewise.
32608         * modules/sigpipe-tests (Makefile.am): Likewise.
32609         * modules/tsearch-tests (Makefile.am): Likewise.
32610         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
32611         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
32612         * modules/uniname/uniname-tests (Makefile.am): Likewise.
32613         * modules/uniwidth/width-tests (Makefile.am): Likewise.
32614         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
32615         * modules/version-etc-tests (Makefile.am): Likewise.
32616         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
32617         * modules/vprintf-posix-tests (Makefile.am): Likewise.
32618         * modules/xalloc-die-tests (Makefile.am): Likewise.
32619         * modules/xprintf-posix-tests (Makefile.am): Likewise.
32620         * modules/xstrtoimax-tests (Makefile.am): Likewise.
32621         * modules/xstrtol-tests (Makefile.am): Likewise.
32622         * modules/xstrtoumax-tests (Makefile.am): Likewise.
32623         * modules/yesno-tests (Makefile.am): Likewise.
32624         Suggested by Jim Meyering.
32625
32626 2010-01-24  Bruno Haible  <bruno@clisp.org>
32627
32628         More documentation.
32629         * doc/gnulib.texi (Writing modules): New chapter.
32630         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
32631         the new chapter.
32632
32633 2010-01-24  Jim Meyering  <meyering@redhat.com>
32634
32635         maint.mk: do not prepend "./" after filtering
32636         * top/maint.mk (_prepend_srcdir_prefix): New variable
32637         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
32638         "./" when $(srcdir) is ".".
32639
32640         define STREQ(a,b) consistently, removing useless parentheses
32641         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
32642         since the only risk is that "a" or "b" contains an unparenthesized
32643         comma, but if either did that, STREQ would have 3 or more arguments.
32644         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
32645         * lib/fts.c (STREQ): Remove unnecessary parentheses.
32646         * lib/hash-triple.c (STREQ): Likewise.
32647         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
32648         * lib/getugroups.c (STREQ): Likewise.
32649
32650 2010-01-23  Jim Meyering  <meyering@redhat.com>
32651
32652         maint.mk: fix syntax-check in a non-srcdir build directory
32653         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
32654         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
32655
32656 2010-01-22  Jim Meyering  <meyering@redhat.com>
32657
32658         userspec: add unit tests
32659         * tests/test-userspec.c: New file.
32660         * modules/userspec-tests: Likewise.
32661
32662 2010-01-21  Jim Meyering  <meyering@redhat.com>
32663
32664         maint.mk: handle source file names containing "." robustly
32665         * top/maint.mk (_dot_escaped_srcdir): Define.
32666         (VC_LIST): Use it in LHS of sed substitution.
32667
32668 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
32669
32670         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
32671         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
32672         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
32673         from a non-srcdir build.
32674
32675 2010-01-20  Eric Blake  <ebb9@byu.net>
32676
32677         warn-on-use: use instead of link-warning
32678         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
32679         * modules/unistd (Depends-on, Makefile.am): Likewise.
32680         * modules/arpa_inet (Depends-on): Replace link-warning with
32681         warn-on-use.
32682         (Makefile.am): Update rules accordingly.
32683         * modules/ctype (Depends-on, Makefile.am): Likewise.
32684         * modules/dirent (Depends-on, Makefile.am): Likewise.
32685         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
32686         * modules/inttypes (Depends-on, Makefile.am): Likewise.
32687         * modules/langinfo (Depends-on, Makefile.am): Likewise.
32688         * modules/locale (Depends-on, Makefile.am): Likewise.
32689         * modules/math (Depends-on, Makefile.am): Likewise.
32690         * modules/search (Depends-on, Makefile.am): Likewise.
32691         * modules/signal (Depends-on, Makefile.am): Likewise.
32692         * modules/spawn (Depends-on, Makefile.am): Likewise.
32693         * modules/stdlib (Depends-on, Makefile.am): Likewise.
32694         * modules/string (Depends-on, Makefile.am): Likewise.
32695         * modules/strings (Depends-on, Makefile.am): Likewise.
32696         * modules/sys_file (Depends-on, Makefile.am): Likewise.
32697         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
32698         * modules/sys_select (Depends-on, Makefile.am): Likewise.
32699         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
32700         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
32701         * modules/sys_times (Depends-on, Makefile.am): Likewise.
32702         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
32703         * modules/wchar (Depends-on, Makefile.am): Likewise.
32704         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
32705         should be poisoned.
32706         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
32707         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
32708         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
32709         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
32710         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
32711         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
32712         * m4/math_h.m4 (gl_MATH_H): Likewise.
32713         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
32714         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
32715         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
32716         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
32717         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
32718         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
32719         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
32720         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
32721         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
32722         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
32723         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
32724         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
32725         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
32726         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
32727         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
32728         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32729         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
32730         GL_LINK_WARNING.
32731         * lib/ctype.in.h: Likewise.
32732         * lib/dirent.in.h: Likewise.
32733         * lib/fcntl.in.h: Likewise.
32734         * lib/inttypes.in.h: Likewise.
32735         * lib/langinfo.in.h: Likewise.
32736         * lib/locale.in.h: Likewise.
32737         * lib/math.in.h: Likewise.
32738         * lib/search.in.h: Likewise.
32739         * lib/signal.in.h: Likewise.
32740         * lib/spawn.in.h: Likewise.
32741         * lib/stdio.in.h: Likewise.
32742         * lib/stdlib.in.h: Likewise.
32743         * lib/string.in.h: Likewise.
32744         * lib/strings.in.h: Likewise.
32745         * lib/sys_file.in.h: Likewise.
32746         * lib/sys_ioctl.in.h: Likewise.
32747         * lib/sys_select.in.h: Likewise.
32748         * lib/sys_socket.in.h: Likewise.
32749         * lib/sys_stat.in.h: Likewise.
32750         * lib/sys_times.in.h: Likewise.
32751         * lib/sys_utsname.in.h: Likewise.
32752         * lib/unistd.in.h: Likewise.
32753         * lib/wchar.in.h: Likewise.
32754
32755 2010-01-20  Bruno Haible  <bruno@clisp.org>
32756
32757         Avoid duplicate -lm.
32758         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
32759         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
32760         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
32761         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
32762         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
32763         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
32764         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
32765         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
32766         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
32767         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
32768         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
32769         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
32770         Reported by Paolo Bonzini.
32771
32772 2010-01-19  Bruno Haible  <bruno@clisp.org>
32773
32774         langinfo, nl_langinfo: Relicense under LGPLv2+.
32775         * modules/langinfo (License): Change to LGPLv2+.
32776         * modules/nl_langinfo (License): Likewise.
32777         Patch by David Lutterkort <lutter@redhat.com>.
32778
32779 2010-01-19  Bruno Haible  <bruno@clisp.org>
32780
32781         Avoid compilation error with cc on OSF/1 5.1.
32782         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
32783         statement, not before.
32784         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32785
32786 2010-01-18  Bruno Haible  <bruno@clisp.org>
32787
32788         Avoid a link error due to the __printf__ symbol.
32789         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
32790         and 2.6.x.
32791         (__format__, __printf__): Remove definitions.
32792         * lib/argp-fmtstream.h: Likewise.
32793         * lib/argp.h: Likewise.
32794         * lib/error.h: Likewise.
32795         * lib/vasnprintf.h: Likewise.
32796         * lib/xprintf.h: Likewise.
32797         * lib/xvasprintf.h: Likewise.
32798         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32799
32800 2010-01-18  Bruno Haible  <bruno@clisp.org>
32801
32802         Tests for module 'tanl'.
32803         * modules/tanl-tests: New file.
32804         * tests/test-tanl.c: New file.
32805
32806         Tests for module 'sqrtl'.
32807         * modules/sqrtl-tests: New file.
32808         * tests/test-sqrtl.c: New file.
32809
32810         Tests for module 'sinl'.
32811         * modules/sinl-tests: New file.
32812         * tests/test-sinl.c: New file.
32813
32814         Tests for module 'logl'.
32815         * modules/logl-tests: New file.
32816         * tests/test-logl.c: New file.
32817
32818         Tests for module 'expl'.
32819         * modules/expl-tests: New file.
32820         * tests/test-expl.c: New file.
32821
32822         Tests for module 'cosl'.
32823         * modules/cosl-tests: New file.
32824         * tests/test-cosl.c: New file.
32825
32826         Tests for module 'atanl'.
32827         * modules/atanl-tests: New file.
32828         * tests/test-atanl.c: New file.
32829
32830         Tests for module 'asinl'.
32831         * modules/asinl-tests: New file.
32832         * tests/test-asinl.c: New file.
32833
32834         Tests for module 'acosl'.
32835         * modules/acosl-tests: New file.
32836         * tests/test-acosl.c: New file.
32837
32838         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
32839         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
32840         tanl): Use the standard gnulib idiom.
32841         * lib/cosl.c: Don't include trigl.c and sincosl.c.
32842         * lib/sinl.c: Likewise.
32843         * lib/tanl.c: Don't include trigl.c.
32844         (kernel_tanl): Make static.
32845         * lib/sincosl.c: Include trigl.h first.
32846         * lib/trigl.c: Likewise.
32847         * m4/acosl.m4: New file.
32848         * m4/asinl.m4: New file.
32849         * m4/atanl.m4: New file.
32850         * m4/cosl.m4: New file.
32851         * m4/expl.m4: New file.
32852         * m4/logl.m4: New file.
32853         * m4/sinl.m4: New file.
32854         * m4/sqrtl.m4: New file.
32855         * m4/tanl.m4: New file.
32856         * m4/mathl.m4: Remove file.
32857         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
32858         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
32859         Don't initialize GNULIB_MATHL.
32860         * modules/acosl: New file.
32861         * modules/asinl: New file.
32862         * modules/atanl: New file.
32863         * modules/cosl: New file.
32864         * modules/expl: New file.
32865         * modules/logl: New file.
32866         * modules/sinl: New file.
32867         * modules/sqrtl: New file.
32868         * modules/tanl: New file.
32869         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
32870         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
32871         substitute GNULIB_MATHL.
32872         * modules/mathl: Rewritten.
32873         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
32874         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
32875         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
32876         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
32877         * doc/posix-functions/expl.texi: Mention the 'expl' module.
32878         * doc/posix-functions/logl.texi: Mention the 'logl' module.
32879         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
32880         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
32881         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
32882
32883 2010-01-18  Bruno Haible  <bruno@clisp.org>
32884
32885         sqrt: Make gl_FUNC_SQRT requirable.
32886         * m4/sqrt.m4: New file.
32887         * modules/sqrt (Files): Add it.
32888         (configure.ac): Invoke gl_FUNC_SQRT.
32889
32890 2010-01-18  Bruno Haible  <bruno@clisp.org>
32891
32892         New modules for common <math.h> functions.
32893         * m4/mathfunc.m4: New file.
32894         * modules/acos: New file.
32895         * modules/asin: New file.
32896         * modules/atan: New file.
32897         * modules/atan2: New file.
32898         * modules/cbrt: New file.
32899         * modules/copysign: New file.
32900         * modules/cos: New file.
32901         * modules/cosh: New file.
32902         * modules/erf: New file.
32903         * modules/erfc: New file.
32904         * modules/exp: New file.
32905         * modules/fabs: New file.
32906         * modules/fmod: New file.
32907         * modules/hypot: New file.
32908         * modules/j0: New file.
32909         * modules/j1: New file.
32910         * modules/jn: New file.
32911         * modules/ldexp: New file.
32912         * modules/lgamma: New file.
32913         * modules/log: New file.
32914         * modules/log10: New file.
32915         * modules/log1p: New file.
32916         * modules/logb: New file.
32917         * modules/modf: New file.
32918         * modules/nextafter: New file.
32919         * modules/pow: New file.
32920         * modules/remainder: New file.
32921         * modules/rint: New file.
32922         * modules/sin: New file.
32923         * modules/sinh: New file.
32924         * modules/sqrt: New file.
32925         * modules/tan: New file.
32926         * modules/tanh: New file.
32927         * modules/y0: New file.
32928         * modules/y1: New file.
32929         * modules/yn: New file.
32930         * doc/posix-functions/acos.texi: Mention the 'acos' module.
32931         * doc/posix-functions/asin.texi: Mention the 'asin' module.
32932         * doc/posix-functions/atan.texi: Mention the 'atan' module.
32933         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
32934         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
32935         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
32936         * doc/posix-functions/cos.texi: Mention the 'cos' module.
32937         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
32938         * doc/posix-functions/erf.texi: Mention the 'erf' module.
32939         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
32940         * doc/posix-functions/exp.texi: Mention the 'exp' module.
32941         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
32942         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
32943         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
32944         * doc/posix-functions/j0.texi: Mention the 'j0' module.
32945         * doc/posix-functions/j1.texi: Mention the 'j1' module.
32946         * doc/posix-functions/jn.texi: Mention the 'jn' module.
32947         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
32948         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
32949         * doc/posix-functions/log.texi: Mention the 'log' module.
32950         * doc/posix-functions/log10.texi: Mention the 'log10' module.
32951         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
32952         * doc/posix-functions/logb.texi: Mention the 'logb' module.
32953         * doc/posix-functions/modf.texi: Mention the 'modf' module.
32954         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
32955         * doc/posix-functions/pow.texi: Mention the 'pow' module.
32956         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
32957         * doc/posix-functions/rint.texi: Mention the 'rint' module.
32958         * doc/posix-functions/sin.texi: Mention the 'sin' module.
32959         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
32960         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
32961         * doc/posix-functions/tan.texi: Mention the 'tan' module.
32962         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
32963         * doc/posix-functions/y0.texi: Mention the 'y0' module.
32964         * doc/posix-functions/y1.texi: Mention the 'y1' module.
32965         * doc/posix-functions/yn.texi: Mention the 'yn' module.
32966
32967 2010-01-18  Jim Meyering  <meyering@redhat.com>
32968
32969         ignore-value: relax license to LGPLv2+
32970         * modules/ignore-value (License): Relax to LGPLv2+.
32971
32972         getdate: don't leak when TZ contains two or more '"'s
32973         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
32974         double quote in TZ after the first one.
32975
32976         readtokens: do not leak internal token_lengths buffer
32977         * lib/readtokens.c (readtokens): Free the local, lengths,
32978         when the supplied "token_lengths" parameter is NULL.
32979
32980 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32981
32982         Fix a couple of missing LIBTHREAD link failures on AIX.
32983         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
32984         $(LIBTHREAD).
32985         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
32986
32987         Link test-poll against INET_PTON_LIB.
32988         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
32989         for inet_pton on Solaris 10.
32990
32991 2010-01-17  Bruno Haible  <bruno@clisp.org>
32992
32993         unistdio/*-sprintf: Fix typo in module description.
32994         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
32995         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
32996         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
32997         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
32998         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
32999         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
33000         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
33001         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33002
33003 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33004
33005         gnulib-tool: fix filelist for AIX, HP-UX ksh.
33006         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
33007         variables in shell case patterns, for AIX and HP-UX ksh.
33008
33009         Split large sed scripts, for HP-UX sed.
33010         * modules/stdio: Split sed scripts around 50 sed commands,
33011         to avoid HP-UX limit of 99 commands, in the near future.
33012         * modules/string: Likewise.
33013         * modules/unistd: Likewise.
33014
33015         gnulib-tool: avoid writing in the current directory.
33016         * gnulib-tool (func_emit_lib_Makefile_am)
33017         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
33018         not in the current directory, so concurrent gnulib-tool
33019         instances do not interfere.
33020
33021 2010-01-16  Jim Meyering  <meyering@redhat.com>
33022
33023         doc: update users.txt
33024         * users.txt: Add grep.
33025         (diffutils, gzip): Update URLs.
33026
33027 2010-01-12  Bruno Haible  <bruno@clisp.org>
33028
33029         posix_spawn: Avoid test failure on Cygwin.
33030         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
33031         characters.
33032         Reported by Simon Josefsson.
33033
33034 2010-01-12  Bruno Haible  <bruno@clisp.org>
33035
33036         * tests/test-cond.c (main): When skipping the test, show the reason.
33037
33038 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33039
33040         * lib/striconv.c (str_cd_iconv): Avoid if before free.
33041
33042 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33043
33044         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
33045         VC_LIST_ALWAYS_EXCLUDE_REGEX.
33046
33047 2010-01-12  Eric Blake  <ebb9@byu.net>
33048
33049         build: guarantee AS_VAR_IF
33050         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
33051         (gl_AS_VAR_IF): Move...
33052         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
33053         Reported by Simon Josefsson.
33054
33055 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33056
33057         * lib/stdio.in.h: Fix typo.
33058
33059 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33060
33061         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
33062         libgpg-error.
33063
33064 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33065
33066         * tests/test-xalloc-die.sh: Use $EXEEXT.
33067
33068 2010-01-12  Simon Josefsson  <simon@josefsson.org>
33069             Bruno Haible  <bruno@clisp.org>
33070
33071         getlogin, getlogin_r: Avoid test failure.
33072         * tests/test-getlogin.c: Include <stdio.h>.
33073         (main): Skip the test when the function fails because stdin is not a
33074         tty.
33075         * tests/test-getlogin_r.c: Include <stdio.h>.
33076         (main): Skip the test when the function fails because stdin is not a
33077         tty.
33078
33079 2010-01-11  Eric Blake  <ebb9@byu.net>
33080
33081         tests: avoid more large file warnings
33082         * tests/test-fflush.c: Avoid warning about ftell use.
33083         * tests/test-fseek.c: Avoid warning about fseek use.
33084
33085 2010-01-10  Bruno Haible  <bruno@clisp.org>
33086
33087         nproc: Work better on Linux when /proc and /sys are not mounted.
33088         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
33089         as lower bound when, on glibc/Linux systems,
33090         sysconf (_SC_NPROCESSORS_CONF) returns 1.
33091         Suggested by Pádraig Brady <P@draigbrady.com>.
33092         Reported by Dmitry V. Levin <ldv@altlinux.org>.
33093
33094         nproc: Refactor.
33095         * lib/nproc.c (num_processors_via_affinity_mask): New function,
33096         extracted from num_processors.
33097         (num_processors): Call it.
33098
33099 2010-01-11  Jim Meyering  <meyering@redhat.com>
33100
33101         utimecmp: avoid new warning from upcoming gcc-4.5.0
33102         * lib/utimecmp.c (BILLION): Define using #define rather than an
33103         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
33104
33105 2010-01-11  Eric Blake  <ebb9@byu.net>
33106
33107         math: add portability warnings for classification macros
33108         * modules/math (Depends-on): Add warn-on-use.
33109         (Makefile.am): Provide new substitutions.
33110         * m4/math_h.m4 (gl_MATH_H): Require inline.
33111         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
33112         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
33113         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
33114         implement warnings.
33115
33116         unistd: warn on use of environ without module
33117         * modules/unistd (Depends-on): Add warn-on-use.
33118         (Makefile.am): Provide new substitutions.
33119         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
33120         * lib/unistd.in.h (environ): Wrap with a warning helper function.
33121
33122         stdio: warn on suspicious uses
33123         * modules/stdio (Depends-on): Add warn-on-use.
33124         (Makefile.am): Provide new substitutions.
33125         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
33126         fseeko.
33127         * lib/stdio.in.h (gets): Always warn on use.
33128         (fseek, ftell): Adjust when warnings are issued, and honor
33129         _GL_NO_LARGE_FILES as a way to silence the warning.
33130         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
33131         any warning about large file offsets.
33132         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
33133         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
33134         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
33135         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
33136         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
33137         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
33138         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
33139         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
33140
33141         warn-on-use: new module
33142         * modules/warn-on-use: New file.
33143         * build-aux/warn-on-use.h: Likewise.
33144         * m4/warn-on-use.m4: Likewise.
33145         * MODULES.html.sh (Support for building): Mention it.
33146
33147 2010-01-10  Bruno Haible  <bruno@clisp.org>
33148
33149         Tests for module 'unistr/u32-strdup'.
33150         * modules/unistr/u32-strdup-tests: New file.
33151         * tests/unistr/test-u32-strdup.c: New file.
33152
33153         Tests for module 'unistr/u16-strdup'.
33154         * modules/unistr/u16-strdup-tests: New file.
33155         * tests/unistr/test-u16-strdup.c: New file.
33156
33157         Tests for module 'unistr/u8-strdup'.
33158         * modules/unistr/u8-strdup-tests: New file.
33159         * tests/unistr/test-u8-strdup.c: New file.
33160         * tests/unistr/test-strdup.h: New file.
33161
33162         Tests for module 'unistr/u32-strncmp'.
33163         * modules/unistr/u32-strncmp-tests: New file.
33164         * tests/unistr/test-u32-strncmp.c: New file.
33165
33166         Tests for module 'unistr/u16-strncmp'.
33167         * modules/unistr/u16-strncmp-tests: New file.
33168         * tests/unistr/test-u16-strncmp.c: New file.
33169
33170         Tests for module 'unistr/u8-strncmp'.
33171         * modules/unistr/u8-strncmp-tests: New file.
33172         * tests/unistr/test-u8-strncmp.c: New file.
33173         * tests/unistr/test-strncmp.h: New file.
33174
33175         Tests for module 'unistr/u32-strcoll'.
33176         * modules/unistr/u32-strcoll-tests: New file.
33177         * tests/unistr/test-u32-strcoll.c: New file.
33178
33179         Tests for module 'unistr/u16-strcoll'.
33180         * modules/unistr/u16-strcoll-tests: New file.
33181         * tests/unistr/test-u16-strcoll.c: New file.
33182
33183         Tests for module 'unistr/u8-strcoll'.
33184         * modules/unistr/u8-strcoll-tests: New file.
33185         * tests/unistr/test-u8-strcoll.c: New file.
33186
33187         Tests for module 'unistr/u32-strcmp'.
33188         * modules/unistr/u32-strcmp-tests: New file.
33189         * tests/unistr/test-u32-strcmp.c: New file.
33190         * tests/unistr/test-u32-strcmp.h: New file.
33191
33192         Tests for module 'unistr/u16-strcmp'.
33193         * modules/unistr/u16-strcmp-tests: New file.
33194         * tests/unistr/test-u16-strcmp.c: New file.
33195         * tests/unistr/test-u16-strcmp.h: New file.
33196
33197         Tests for module 'unistr/u8-strcmp'.
33198         * modules/unistr/u8-strcmp-tests: New file.
33199         * tests/unistr/test-u8-strcmp.c: New file.
33200         * tests/unistr/test-u8-strcmp.h: New file.
33201         * tests/unistr/test-strcmp.h: New file.
33202
33203         Tests for module 'unistr/u32-strncat'.
33204         * modules/unistr/u32-strncat-tests: New file.
33205         * tests/unistr/test-u32-strncat.c: New file.
33206
33207         Tests for module 'unistr/u16-strncat'.
33208         * modules/unistr/u16-strncat-tests: New file.
33209         * tests/unistr/test-u16-strncat.c: New file.
33210
33211         Tests for module 'unistr/u8-strncat'.
33212         * modules/unistr/u8-strncat-tests: New file.
33213         * tests/unistr/test-u8-strncat.c: New file.
33214         * tests/unistr/test-strncat.h: New file.
33215
33216         Tests for module 'unistr/u32-strcat'.
33217         * modules/unistr/u32-strcat-tests: New file.
33218         * tests/unistr/test-u32-strcat.c: New file.
33219
33220         Tests for module 'unistr/u16-strcat'.
33221         * modules/unistr/u16-strcat-tests: New file.
33222         * tests/unistr/test-u16-strcat.c: New file.
33223
33224         Tests for module 'unistr/u8-strcat'.
33225         * modules/unistr/u8-strcat-tests: New file.
33226         * tests/unistr/test-u8-strcat.c: New file.
33227         * tests/unistr/test-strcat.h: New file.
33228
33229         Tests for module 'unistr/u32-stpncpy'.
33230         * modules/unistr/u32-stpncpy-tests: New file.
33231         * tests/unistr/test-u32-stpncpy.c: New file.
33232
33233         Tests for module 'unistr/u16-stpncpy'.
33234         * modules/unistr/u16-stpncpy-tests: New file.
33235         * tests/unistr/test-u16-stpncpy.c: New file.
33236
33237         Tests for module 'unistr/u8-stpncpy'.
33238         * modules/unistr/u8-stpncpy-tests: New file.
33239         * tests/unistr/test-u8-stpncpy.c: New file.
33240         * tests/unistr/test-stpncpy.h: New file.
33241
33242         Tests for module 'unistr/u32-strncpy'.
33243         * modules/unistr/u32-strncpy-tests: New file.
33244         * tests/unistr/test-u32-strncpy.c: New file.
33245
33246         Tests for module 'unistr/u16-strncpy'.
33247         * modules/unistr/u16-strncpy-tests: New file.
33248         * tests/unistr/test-u16-strncpy.c: New file.
33249
33250         Tests for module 'unistr/u8-strncpy'.
33251         * modules/unistr/u8-strncpy-tests: New file.
33252         * tests/unistr/test-u8-strncpy.c: New file.
33253         * tests/unistr/test-strncpy.h: New file.
33254
33255         Tests for module 'unistr/u32-stpcpy'.
33256         * modules/unistr/u32-stpcpy-tests: New file.
33257         * tests/unistr/test-u32-stpcpy.c: New file.
33258
33259         Tests for module 'unistr/u16-stpcpy'.
33260         * modules/unistr/u16-stpcpy-tests: New file.
33261         * tests/unistr/test-u16-stpcpy.c: New file.
33262
33263         Tests for module 'unistr/u8-stpcpy'.
33264         * modules/unistr/u8-stpcpy-tests: New file.
33265         * tests/unistr/test-u8-stpcpy.c: New file.
33266         * tests/unistr/test-stpcpy.h: New file.
33267
33268         Tests for module 'unistr/u32-strcpy'.
33269         * modules/unistr/u32-strcpy-tests: New file.
33270         * tests/unistr/test-u32-strcpy.c: New file.
33271
33272         Tests for module 'unistr/u16-strcpy'.
33273         * modules/unistr/u16-strcpy-tests: New file.
33274         * tests/unistr/test-u16-strcpy.c: New file.
33275
33276         Tests for module 'unistr/u8-strcpy'.
33277         * modules/unistr/u8-strcpy-tests: New file.
33278         * tests/unistr/test-u8-strcpy.c: New file.
33279         * tests/unistr/test-strcpy.h: New file.
33280
33281         Tests for module 'unistr/u32-strnlen'.
33282         * modules/unistr/u32-strnlen-tests: New file.
33283         * tests/unistr/test-u32-strnlen.c: New file.
33284
33285         Tests for module 'unistr/u16-strnlen'.
33286         * modules/unistr/u16-strnlen-tests: New file.
33287         * tests/unistr/test-u16-strnlen.c: New file.
33288
33289         Tests for module 'unistr/u8-strnlen'.
33290         * modules/unistr/u8-strnlen-tests: New file.
33291         * tests/unistr/test-u8-strnlen.c: New file.
33292         * tests/unistr/test-strnlen.h: New file.
33293
33294         Tests for module 'unistr/u32-strlen'.
33295         * modules/unistr/u32-strlen-tests: New file.
33296         * tests/unistr/test-u32-strlen.c: New file.
33297
33298         Tests for module 'unistr/u16-strlen'.
33299         * modules/unistr/u16-strlen-tests: New file.
33300         * tests/unistr/test-u16-strlen.c: New file.
33301
33302         Tests for module 'unistr/u8-strlen'.
33303         * modules/unistr/u8-strlen-tests: New file.
33304         * tests/unistr/test-u8-strlen.c: New file.
33305
33306         Tests for module 'unistr/u32-prev'.
33307         * modules/unistr/u32-prev-tests: New file.
33308         * tests/unistr/test-u32-prev.c: New file.
33309
33310         Tests for module 'unistr/u16-prev'.
33311         * modules/unistr/u16-prev-tests: New file.
33312         * tests/unistr/test-u16-prev.c: New file.
33313
33314         Tests for module 'unistr/u8-prev'.
33315         * modules/unistr/u8-prev-tests: New file.
33316         * tests/unistr/test-u8-prev.c: New file.
33317
33318         Tests for module 'unistr/u32-next'.
33319         * modules/unistr/u32-next-tests: New file.
33320         * tests/unistr/test-u32-next.c: New file.
33321
33322         Tests for module 'unistr/u16-next'.
33323         * modules/unistr/u16-next-tests: New file.
33324         * tests/unistr/test-u16-next.c: New file.
33325
33326         Tests for module 'unistr/u8-next'.
33327         * modules/unistr/u8-next-tests: New file.
33328         * tests/unistr/test-u8-next.c: New file.
33329
33330         Tests for module 'unistr/u32-strmbtouc'.
33331         * modules/unistr/u32-strmbtouc-tests: New file.
33332         * tests/unistr/test-u32-strmbtouc.c: New file.
33333
33334         Tests for module 'unistr/u16-strmbtouc'.
33335         * modules/unistr/u16-strmbtouc-tests: New file.
33336         * tests/unistr/test-u16-strmbtouc.c: New file.
33337
33338         Tests for module 'unistr/u8-strmbtouc'.
33339         * modules/unistr/u8-strmbtouc-tests: New file.
33340         * tests/unistr/test-u8-strmbtouc.c: New file.
33341
33342         Tests for module 'unistr/u32-strmblen'.
33343         * modules/unistr/u32-strmblen-tests: New file.
33344         * tests/unistr/test-u32-strmblen.c: New file.
33345
33346         Tests for module 'unistr/u16-strmblen'.
33347         * modules/unistr/u16-strmblen-tests: New file.
33348         * tests/unistr/test-u16-strmblen.c: New file.
33349
33350         Tests for module 'unistr/u8-strmblen'.
33351         * modules/unistr/u8-strmblen-tests: New file.
33352         * tests/unistr/test-u8-strmblen.c: New file.
33353
33354         Tests for module 'unistr/u32-cpy-alloc'.
33355         * modules/unistr/u32-cpy-alloc-tests: New file.
33356         * tests/unistr/test-u32-cpy-alloc.c: New file.
33357
33358         Tests for module 'unistr/u16-cpy-alloc'.
33359         * modules/unistr/u16-cpy-alloc-tests: New file.
33360         * tests/unistr/test-u16-cpy-alloc.c: New file.
33361
33362         Tests for module 'unistr/u8-cpy-alloc'.
33363         * modules/unistr/u8-cpy-alloc-tests: New file.
33364         * tests/unistr/test-u8-cpy-alloc.c: New file.
33365         * tests/unistr/test-cpy-alloc.h: New file.
33366
33367         Tests for module 'unistr/u32-mbsnlen'.
33368         * modules/unistr/u32-mbsnlen-tests: New file.
33369         * tests/unistr/test-u32-mbsnlen.c: New file.
33370
33371         Tests for module 'unistr/u16-mbsnlen'.
33372         * modules/unistr/u16-mbsnlen-tests: New file.
33373         * tests/unistr/test-u16-mbsnlen.c: New file.
33374
33375         Tests for module 'unistr/u8-mbsnlen'.
33376         * modules/unistr/u8-mbsnlen-tests: New file.
33377         * tests/unistr/test-u8-mbsnlen.c: New file.
33378
33379         Tests for module 'unistr/u32-chr'.
33380         * modules/unistr/u32-chr-tests: New file.
33381         * tests/unistr/test-u32-chr.c: New file.
33382
33383         Tests for module 'unistr/u16-chr'.
33384         * modules/unistr/u16-chr-tests: New file.
33385         * tests/unistr/test-u16-chr.c: New file.
33386
33387         Tests for module 'unistr/u8-chr'.
33388         * modules/unistr/u8-chr-tests: New file.
33389         * tests/unistr/test-u8-chr.c: New file.
33390         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
33391
33392         Tests for module 'unistr/u32-cmp2'.
33393         * modules/unistr/u32-cmp2-tests: New file.
33394         * tests/unistr/test-u32-cmp2.c: New file.
33395
33396         Tests for module 'unistr/u16-cmp2'.
33397         * modules/unistr/u16-cmp2-tests: New file.
33398         * tests/unistr/test-u16-cmp2.c: New file.
33399
33400         Tests for module 'unistr/u8-cmp2'.
33401         * modules/unistr/u8-cmp2-tests: New file.
33402         * tests/unistr/test-u8-cmp2.c: New file.
33403         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
33404
33405         Tests for module 'unistr/u32-cmp'.
33406         * modules/unistr/u32-cmp-tests: New file.
33407         * tests/unistr/test-u32-cmp.c: New file.
33408
33409         Tests for module 'unistr/u16-cmp'.
33410         * modules/unistr/u16-cmp-tests: New file.
33411         * tests/unistr/test-u16-cmp.c: New file.
33412
33413         Tests for module 'unistr/u8-cmp'.
33414         * modules/unistr/u8-cmp-tests: New file.
33415         * tests/unistr/test-u8-cmp.c: New file.
33416         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
33417
33418         Tests for module 'unistr/u32-set'.
33419         * modules/unistr/u32-set-tests: New file.
33420         * tests/unistr/test-u32-set.c: New file.
33421
33422         Tests for module 'unistr/u16-set'.
33423         * modules/unistr/u16-set-tests: New file.
33424         * tests/unistr/test-u16-set.c: New file.
33425
33426         Tests for module 'unistr/u8-set'.
33427         * modules/unistr/u8-set-tests: New file.
33428         * tests/unistr/test-u8-set.c: New file.
33429         * tests/unistr/test-set.h: New file.
33430
33431         Tests for module 'unistr/u32-move'.
33432         * modules/unistr/u32-move-tests: New file.
33433         * tests/unistr/test-u32-move.c: New file.
33434
33435         Tests for module 'unistr/u16-move'.
33436         * modules/unistr/u16-move-tests: New file.
33437         * tests/unistr/test-u16-move.c: New file.
33438
33439         Tests for module 'unistr/u8-move'.
33440         * modules/unistr/u8-move-tests: New file.
33441         * tests/unistr/test-u8-move.c: New file.
33442         * tests/unistr/test-move.h: New file.
33443
33444         Tests for module 'unistr/u32-cpy'.
33445         * modules/unistr/u32-cpy-tests: New file.
33446         * tests/unistr/test-u32-cpy.c: New file.
33447
33448         Tests for module 'unistr/u16-cpy'.
33449         * modules/unistr/u16-cpy-tests: New file.
33450         * tests/unistr/test-u16-cpy.c: New file.
33451
33452         Tests for module 'unistr/u8-cpy'.
33453         * modules/unistr/u8-cpy-tests: New file.
33454         * tests/unistr/test-u8-cpy.c: New file.
33455         * tests/unistr/test-cpy.h: New file.
33456
33457 2010-01-09  Bruno Haible  <bruno@clisp.org>
33458
33459         Tests for module 'unistr/u32-uctomb'.
33460         * modules/unistr/u32-uctomb-tests: New file.
33461         * tests/unistr/test-u32-uctomb.c: New file.
33462
33463         Tests for module 'unistr/u16-uctomb'.
33464         * modules/unistr/u16-uctomb-tests: New file.
33465         * tests/unistr/test-u16-uctomb.c: New file.
33466
33467         Tests for module 'unistr/u8-uctomb'.
33468         * modules/unistr/u8-uctomb-tests: New file.
33469         * tests/unistr/test-u8-uctomb.c: New file.
33470
33471         Tests for module 'unistr/u32-mbtoucr'.
33472         * modules/unistr/u32-mbtoucr-tests: New file.
33473         * tests/unistr/test-u32-mbtoucr.c: New file.
33474
33475         Tests for module 'unistr/u16-mbtoucr'.
33476         * modules/unistr/u16-mbtoucr-tests: New file.
33477         * tests/unistr/test-u16-mbtoucr.c: New file.
33478
33479         Tests for module 'unistr/u8-mbtoucr'.
33480         * modules/unistr/u8-mbtoucr-tests: New file.
33481         * tests/unistr/test-u8-mbtoucr.c: New file.
33482
33483         Tests for module 'unistr/u32-mbtouc'.
33484         * modules/unistr/u32-mbtouc-tests: New file.
33485         * tests/unistr/test-u32-mbtouc.c: New file.
33486
33487         Tests for module 'unistr/u16-mbtouc'.
33488         * modules/unistr/u16-mbtouc-tests: New file.
33489         * tests/unistr/test-u16-mbtouc.c: New file.
33490
33491         Tests for module 'unistr/u8-mbtouc'.
33492         * modules/unistr/u8-mbtouc-tests: New file.
33493         * tests/unistr/test-u8-mbtouc.c: New file.
33494
33495         Tests for module 'unistr/u32-mbtouc-unsafe'.
33496         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
33497         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
33498         * tests/unistr/test-u32-mbtouc.h: New file.
33499
33500         Tests for module 'unistr/u16-mbtouc-unsafe'.
33501         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
33502         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
33503         * tests/unistr/test-u16-mbtouc.h: New file.
33504
33505         Tests for module 'unistr/u8-mbtouc-unsafe'.
33506         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
33507         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
33508         * tests/unistr/test-u8-mbtouc.h: New file.
33509
33510         Tests for module 'unistr/u32-mblen'.
33511         * modules/unistr/u32-mblen-tests: New file.
33512         * tests/unistr/test-u32-mblen.c: New file.
33513
33514         Tests for module 'unistr/u16-mblen'.
33515         * modules/unistr/u16-mblen-tests: New file.
33516         * tests/unistr/test-u16-mblen.c: New file.
33517
33518         Tests for module 'unistr/u8-mblen'.
33519         * modules/unistr/u8-mblen-tests: New file.
33520         * tests/unistr/test-u8-mblen.c: New file.
33521
33522         Tests for module 'unistr/u32-to-u16'.
33523         * modules/unistr/u32-to-u16-tests: New file.
33524         * tests/unistr/test-u32-to-u16.c: New file.
33525
33526         Tests for module 'unistr/u32-to-u8'.
33527         * modules/unistr/u32-to-u8-tests: New file.
33528         * tests/unistr/test-u32-to-u8.c: New file.
33529
33530         Tests for module 'unistr/u16-to-u32'.
33531         * modules/unistr/u16-to-u32-tests: New file.
33532         * tests/unistr/test-u16-to-u32.c: New file.
33533
33534         Tests for module 'unistr/u16-to-u8'.
33535         * modules/unistr/u16-to-u8-tests: New file.
33536         * tests/unistr/test-u16-to-u8.c: New file.
33537
33538         Tests for module 'unistr/u8-to-u32'.
33539         * modules/unistr/u8-to-u32-tests: New file.
33540         * tests/unistr/test-u8-to-u32.c: New file.
33541
33542         Tests for module 'unistr/u8-to-u16'.
33543         * modules/unistr/u8-to-u16-tests: New file.
33544         * tests/unistr/test-u8-to-u16.c: New file.
33545
33546         Tests for module 'unistr/u32-check'.
33547         * modules/unistr/u32-check-tests: New file.
33548         * tests/unistr/test-u32-check.c: New file.
33549
33550         Tests for module 'unistr/u16-check'.
33551         * modules/unistr/u16-check-tests: New file.
33552         * tests/unistr/test-u16-check.c: New file.
33553
33554         Tests for module 'unistr/u8-check'.
33555         * modules/unistr/u8-check-tests: New file.
33556         * tests/unistr/test-u8-check.c: New file.
33557
33558         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
33559         (category_equals): New function.
33560         (main): Add more tests.
33561         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
33562
33563         * tests/unictype/test-bidi_byname.c (main): Add more tests.
33564
33565 2010-01-10  Bruno Haible  <bruno@clisp.org>
33566
33567         unistr/u*-strcoll: Try harder to distinguish different strings.
33568         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
33569         compare s1 and s2 to see if they are different.
33570
33571 2010-01-10  Bruno Haible  <bruno@clisp.org>
33572
33573         unistr/u*-stpncpy: Fix the return value.
33574         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
33575         description of the return value consistent with stpncpy in glibc.
33576         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
33577         written non-NUL unit.
33578
33579 2010-01-10  Bruno Haible  <bruno@clisp.org>
33580
33581         unistr/u*-next: Add missing dependencies.
33582         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
33583         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
33584         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
33585
33586 2010-01-10  Bruno Haible  <bruno@clisp.org>
33587
33588         unistr/u8-mbsnlen: Fix return value for incomplete character.
33589         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
33590         u8_mblen.
33591         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
33592         Remove unistr/u8-mblen.
33593         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
33594         u16_mblen.
33595         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
33596         Remove unistr/u16-mblen.
33597
33598 2010-01-10  Bruno Haible  <bruno@clisp.org>
33599
33600         wchar: Fix compilation error when <wchar.h> is used from coreutils.
33601         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
33602         Reported by Brian Gough <bjg@gnu.org> and
33603         Chris Clayton <chris2553@googlemail.com> via
33604         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
33605
33606 2010-01-09  Bruno Haible  <bruno@clisp.org>
33607
33608         unistr/u16-to-u32: Reject invalid input.
33609         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
33610         u16_mbtouc.
33611         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
33612         Remove unistr/u16-mbtouc.
33613
33614         unistr/u16-to-u8: Reject invalid input.
33615         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
33616         u16_mbtouc.
33617         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
33618         Remove unistr/u16-mbtouc.
33619
33620         unistr/u8-to-u32: Reject invalid input.
33621         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
33622         u8_mbtouc.
33623         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
33624         Remove unistr/u8-mbtouc.
33625
33626         unistr/u8-to-u16: Reject invalid input.
33627         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
33628         u8_mbtouc.
33629         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
33630         Remove unistr/u8-mbtouc.
33631
33632 2010-01-09  Bruno Haible  <bruno@clisp.org>
33633
33634         Tests for module 'getlogin'.
33635         * modules/getlogin-tests: New file.
33636         * tests/test-getlogin.c: New file.
33637
33638         New module 'getlogin'.
33639         * lib/unistd.in.h (getlogin): New declaration.
33640         * lib/getlogin.c: New file.
33641         * m4/getlogin.m4: New file.
33642         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
33643         HAVE_GETLOGIN.
33644         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
33645         HAVE_GETLOGIN.
33646         * modules/getlogin: New file.
33647         * doc/posix-functions/getlogin.texi: Mention the new module.
33648         Reported by John W. Eaton <jwe@gnu.org>.
33649
33650 2010-01-09  Bruno Haible  <bruno@clisp.org>
33651
33652         getlogin_r: Support for native Windows.
33653         * lib/getlogin_r.c: Include <windows.h>
33654         (getlogin_r): Implement for native Windows.
33655         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
33656         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
33657         via John W. Eaton <jwe@gnu.org>.
33658
33659 2010-01-09  Bruno Haible  <bruno@clisp.org>
33660
33661         getlogin_r: Small fixes.
33662         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
33663         succeeds.
33664         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
33665         before testing whether getlogin_r is declared. No need to set
33666         HAVE_DECL_GETLOGIN_R to 1.
33667         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
33668
33669 2010-01-09  Bruno Haible  <bruno@clisp.org>
33670
33671         * lib/unistd.in.h (getlogin_r): Add comment.
33672
33673 2010-01-09  Bruno Haible  <bruno@clisp.org>
33674
33675         Tests for module 'getlogin_r'.
33676         * modules/getlogin_r-tests: New file.
33677         * tests/test-getlogin_r.c: New file.
33678
33679 2010-01-09  Jim Meyering  <meyering@redhat.com>
33680
33681         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
33682         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
33683         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
33684
33685 2010-01-08  Simon Josefsson  <simon@josefsson.org>
33686
33687         * lib/dup2.c (rpl_dup2): Improve comment.
33688
33689 2010-01-08  Eric Blake  <ebb9@byu.net>
33690
33691         maint.mk: allow packages to add makefile @@ exceptions
33692         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
33693         (sc_makefile_check): Rename...
33694         (sc_makefile_at_at_check): ...to this, and use hook.
33695
33696         dup2: work around mingw bug
33697         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
33698         Reported by Simon Josefsson.
33699
33700 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
33701
33702         glob: Fix C++ compilation.
33703         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
33704         C++.
33705
33706 2010-01-07  Bruno Haible  <bruno@clisp.org>
33707
33708         Fix indentation of wctype.in.h, broken since 2007-01-06.
33709         * lib/wctype.in.h: Fix indentation of preprocessor directives.
33710
33711 2010-01-07  Bruno Haible  <bruno@clisp.org>
33712
33713         mbslen: Avoid collision with system function.
33714         * lib/string.in.h [MirBSD]: Include <wchar.h>.
33715         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
33716         * m4/mbslen.m4: New file.
33717         * modules/mbslen (Files): Add it.
33718         (configure.ac): Invoke gl_MBSLEN.
33719         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
33720         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
33721         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
33722         via Ian Beckwith <ianb@erislabs.net>.
33723
33724 2010-01-07  Bruno Haible  <bruno@clisp.org>
33725
33726         dirent: Document the last fix.
33727         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
33728
33729 2010-01-07  Bruno Haible  <bruno@clisp.org>
33730
33731         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
33732         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
33733         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
33734         va_list are defined.
33735         * doc/posix-headers/stdio.texi: Document the bug of missing types.
33736         Reported by Eric Blake.
33737
33738 2010-01-07  Bruno Haible  <bruno@clisp.org>
33739
33740         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
33741         * modules/xlist (Depends-on): Add 'list',
33742         * modules/xoset (Depends-on): Add 'oset'.
33743         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33744
33745 2010-01-07  Bruno Haible  <bruno@clisp.org>
33746
33747         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
33748         * doc/posix-functions/strncasecmp.texi: Likewise.
33749
33750 2010-01-07  Bruno Haible  <bruno@clisp.org>
33751
33752         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
33753
33754 2010-01-07  John W. Eaton  <jwe@octave.org>
33755
33756         wctype: allow C++ use
33757         * lib/wctype.in.h: Add extern "C" block for C++.
33758
33759 2010-01-06  Eric Blake  <ebb9@byu.net>
33760
33761         maint.mk: detect incorrect GFDL usage
33762         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
33763
33764 2010-01-06  Jim Meyering  <meyering@redhat.com>
33765         and Eric Blake  <ebb9@byu.net>
33766
33767         maint.mk: ignore multi-line copyright in NEWS
33768         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
33769
33770 2010-01-06  Eric Blake  <ebb9@byu.net>
33771
33772         select: add missing dependency
33773         * modules/select-tests (Depends-on): Move sockets dependency...
33774         * modules/select (Depends-on): ...here.
33775         Reported by Ian Beckwith.
33776
33777         doc: regenerate INSTALL
33778         * doc/INSTALL: Reflect recent autoconf update.
33779         * doc/INSTALL.ISO: Likewise.
33780         * doc/INSTALL.UTF-8: Likewise.
33781
33782         pread: fix compilation on glibc
33783         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
33784         Reported by Ralf Wildenhues.
33785
33786         dirent: fix test failure
33787         * lib/dirent.in.h (includes): Guarantee ino_t.
33788         Reported by Ralf Wildenhues.
33789
33790 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
33791
33792         linkat, renameat: avoid bad free
33793         * lib/at-func2.c (at_func2): Fix typo.
33794         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
33795
33796 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33797
33798         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
33799         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
33800         to avoid failure of symlink test later.
33801
33802 2010-01-06  Eric Blake  <ebb9@byu.net>
33803
33804         stdio, unistd: guarantee ssize_t
33805         * lib/unistd.in.h (includes): Ensure that types required by POSIX
33806         2008 are exposed when needed.
33807         * lib/stdio.in.h (includes): Likewise.
33808         Reported by Ralf Wildenhues.
33809
33810 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
33811
33812         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
33813         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
33814         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
33815
33816 2010-01-06  Jim Meyering  <meyering@redhat.com>
33817
33818         readtokens: this module *does* require xalloc.h
33819         It uses only functions that were omitted by the old syntax-check rule.
33820         * lib/readtokens.c: Include "xalloc.h" once again.
33821         * modules/readtokens (Depends-on): Add xalloc.
33822         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
33823
33824 2010-01-05  Eric Blake  <ebb9@byu.net>
33825
33826         maint: support 'make announcement' from a VPATH build
33827         * top/maint.mk (announcement): Look for correct NEWS file.
33828
33829 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
33830
33831         utimens (fdutimens): ignore a negative FD, per contract
33832         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
33833         when we have a valid file descriptor.  Otherwise, using a brand
33834         new glibc (with just-patched futimens that now fails with EBADF)
33835         would cause this function to fail with ENOSYS.
33836         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
33837         See also http://bugzilla.redhat.com/552320.
33838
33839 2010-01-05  Eric Blake  <ebb9@byu.net>
33840
33841         strcase: document what it provides
33842         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
33843         gnulib module.
33844         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
33845         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
33846
33847 2010-01-05  Jim Meyering  <meyering@redhat.com>
33848
33849         maint: remove useless inclusions of "xalloc.h"
33850         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
33851         * lib/readtokens.c: Likewise.
33852         * lib/same.c: Likewise.
33853         * modules/getloadavg (Depends-on): Remove xalloc.
33854         * modules/readtokens: Likewise.
33855         * modules/same: Likewise.
33856
33857         maint.mk: include 4 more function names in alloca.h-checking regexp
33858         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
33859         regexp.  Before, we would give a false-positive (saying alloca.h
33860         is included unnecessarily) when the only uses involved omitted symbols.
33861
33862         xalloc.h: use consistent formatting
33863         * lib/xalloc.h: Move declarations to start in the first column.
33864
33865 2010-01-05  Eric Blake  <ebb9@byu.net>
33866
33867         mkdir: avoid xalloc
33868         * lib/mkdir.c (includes): Drop unused header.
33869         Reported by John W. Eaton.
33870
33871 2010-01-04  Jim Meyering  <meyering@redhat.com>
33872
33873         nl_langinfo: avoid configure-time syntax error
33874         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
33875         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
33876         the empty string.  Don't let that provoke a shell syntax error.
33877
33878         regcomp, regexec, fnmatch: avoid array bounds read error
33879         * lib/regcomp.c (build_equiv_class): From glibc:
33880         Use only the low 24 bits of a findidx return value as an index
33881         into the weights array.  Patch by Ulrich Drepper:
33882         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
33883         * lib/regexec.c (check_node_accept_bytes): Likewise.
33884         * lib/fnmatch_loop.c (FCT): Likewise.
33885
33886         regcomp: skip collseq lookup when there are no rules
33887         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
33888         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
33889
33890         regcomp: recognize ill-formed { } expressions
33891         * lib/regcomp.c (parse_dup_op): From glibc:
33892         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
33893
33894         regcomp: fix typo in comment
33895         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
33896         s/satisfy/satisfies/.
33897
33898         regcomp: sync from glibc: remove dead store
33899         * lib/regcomp.c (duplicate_node_closure): Remove useless
33900         search_duplicated_node call and dead store.
33901
33902         regcomp: sync from glibc; always use nl_langinfo
33903         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
33904         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
33905         * modules/regex (Depends-on): Add nl_langinfo.
33906
33907 2010-01-04  Eric Blake  <ebb9@byu.net>
33908
33909         fdopendir: fix configure test
33910         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
33911
33912 2010-01-01  Bruno Haible  <bruno@clisp.org>
33913
33914         wchar: Remove unused configure check.
33915         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
33916
33917 2010-01-01  Eric Blake  <ebb9@byu.net>
33918
33919         headers: make check of system header explicit
33920         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
33921         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
33922         ourselves.
33923         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
33924         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
33925         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
33926         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
33927         internals.
33928         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
33929         missing.
33930         Suggested by Bruno Haible.
33931
33932 2010-01-01  Jim Meyering  <meyering@redhat.com>
33933
33934         ChangeLog: tweak to eliminate unnecessary copyright line
33935         * ChangeLog: Remove a copyright line that was mistakenly updated
33936         by today's update-copyright run.  Reported by Eric Blake.
33937
33938         test-update-copyright: don't let envvar setting cause test failure
33939         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
33940
33941 2010-01-01  Bruno Haible  <bruno@clisp.org>
33942
33943         localename: Avoid gcc warning.
33944         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
33945         function if it is not used.
33946
33947 2010-01-01  Jim Meyering  <meyering@redhat.com>
33948
33949         update nearly all FSF copyright year lists to include 2010
33950         Use the same procedure as for 2009, outlined in
33951         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
33952
33953         version-etc: set COPYRIGHT_YEAR to 2010
33954         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
33955
33956 2009-12-31  Eric Blake  <ebb9@byu.net>
33957
33958         doc: correct availability of cygwin 1.5.x getopt
33959         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
33960         variables.
33961         * doc/posix-functions/opterr.texi (opterr): Likewise.
33962         * doc/posix-functions/optind.texi (optind): Likewise.
33963         * doc/posix-functions/optopt.texi (optopt): Likewise.
33964         * doc/posix-functions/tzname.texi (tzname): Likewise.
33965
33966         openat: update maintainer
33967         * modules/openat (Maintainer): Add myself.
33968
33969         utimens: avoid shadowing warning
33970         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
33971         buffers into one, to avoid shadowing, as well as avoiding a
33972         redundant stat.
33973         Reported by Jim Meyering.
33974
33975         test-dup2: avoid compiler warning
33976         * tests/test-dup2.c (is_inheritable): Only define if used.
33977
33978 2010-01-01  Bruno Haible  <bruno@clisp.org>
33979
33980         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
33981         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
33982         defined, use wctomb instead of wcrtomb.
33983
33984 2010-01-01  Bruno Haible  <bruno@clisp.org>
33985
33986         iconv: Reject native Solaris iconv.
33987         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
33988         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
33989
33990 2009-12-31  Bruno Haible  <bruno@clisp.org>
33991
33992         * tests/test-signal.c (main): Remove test of 'SIG'.
33993
33994 2009-12-31  Bruno Haible  <bruno@clisp.org>
33995
33996         spawn: Fix incomplete fix.
33997         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
33998         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
33999         warnings for GNULIB_POSIXCHECK again.
34000         Reported by Eric Blake.
34001
34002 2009-12-31  Bruno Haible  <bruno@clisp.org>
34003
34004         Avoid namespace pollution on glibc systems.
34005         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
34006         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
34007         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
34008         glibc systems.
34009
34010 2009-12-31  Bruno Haible  <bruno@clisp.org>
34011
34012         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
34013         (gl_REPLACE_WCHAR_H): Turn into a no-op.
34014         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
34015         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
34016         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
34017         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
34018         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
34019
34020 2009-12-31  Bruno Haible  <bruno@clisp.org>
34021
34022         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
34023         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
34024         afterwards.
34025
34026 2009-12-31  Bruno Haible  <bruno@clisp.org>
34027
34028         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
34029         SYS_UTSNAME_H.
34030
34031 2009-12-31  Bruno Haible  <bruno@clisp.org>
34032
34033         spawn: Fix misapplied patch.
34034         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
34035         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
34036         warnings for GNULIB_POSIXCHECK.
34037
34038 2009-12-31  Bruno Haible  <bruno@clisp.org>
34039
34040         times: Update after sys_times changed.
34041         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
34042         * modules/times (Files): Add it.
34043         (configure.ac): Invoke gl_FUNC_TIMES.
34044
34045 2009-12-31  Bruno Haible  <bruno@clisp.org>
34046
34047         Use AC_C_INLINE where necessary.
34048         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
34049         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
34050         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
34051         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
34052         * m4/mbfile.m4 (gl_MBFILE): Likewise.
34053         * m4/mbiter.m4 (gl_MBITER): Likewise.
34054         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
34055         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
34056         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
34057         * modules/u64 (configure.ac): Likewise.
34058
34059 2009-12-31  Bruno Haible  <bruno@clisp.org>
34060
34061         Use AC_C_INLINE instead of module 'inline' where possible.
34062         * modules/inline (Description): Clarify purpose.
34063         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
34064         * modules/count-one-bits (Depends-on): Remove inline.
34065         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
34066         * modules/openat (Depends-on): Remove inline.
34067         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
34068         instead of depending on module 'inline'.
34069         * modules/filevercmp (Depends-on, configure.ac): Likewise.
34070         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
34071         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
34072         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
34073         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
34074         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
34075         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
34076         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
34077         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
34078         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
34079         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
34080         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
34081         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
34082         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
34083         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
34084         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
34085         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
34086         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
34087         Likewise.
34088         * modules/unictype/property-ascii-hex-digit (Depends-on,
34089         configure.ac): Likewise.
34090         * modules/unictype/property-bidi-arabic-digit (Depends-on,
34091         configure.ac): Likewise.
34092         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
34093         configure.ac): Likewise.
34094         * modules/unictype/property-bidi-block-separator (Depends-on,
34095         configure.ac): Likewise.
34096         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
34097         configure.ac): Likewise.
34098         * modules/unictype/property-bidi-common-separator (Depends-on,
34099         configure.ac): Likewise.
34100         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
34101         Likewise.
34102         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
34103         configure.ac): Likewise.
34104         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
34105         configure.ac): Likewise.
34106         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
34107         configure.ac): Likewise.
34108         * modules/unictype/property-bidi-european-digit (Depends-on,
34109         configure.ac): Likewise.
34110         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
34111         configure.ac): Likewise.
34112         * modules/unictype/property-bidi-left-to-right (Depends-on,
34113         configure.ac): Likewise.
34114         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
34115         configure.ac): Likewise.
34116         * modules/unictype/property-bidi-other-neutral (Depends-on,
34117         configure.ac): Likewise.
34118         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
34119         Likewise.
34120         * modules/unictype/property-bidi-segment-separator (Depends-on,
34121         configure.ac): Likewise.
34122         * modules/unictype/property-bidi-whitespace (Depends-on,
34123         configure.ac): Likewise.
34124         * modules/unictype/property-combining (Depends-on, configure.ac):
34125         Likewise.
34126         * modules/unictype/property-composite (Depends-on, configure.ac):
34127         Likewise.
34128         * modules/unictype/property-currency-symbol (Depends-on,
34129         configure.ac): Likewise.
34130         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
34131         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
34132         Likewise.
34133         * modules/unictype/property-default-ignorable-code-point (Depends-on,
34134         configure.ac): Likewise.
34135         * modules/unictype/property-deprecated (Depends-on, configure.ac):
34136         Likewise.
34137         * modules/unictype/property-diacritic (Depends-on, configure.ac):
34138         Likewise.
34139         * modules/unictype/property-extender (Depends-on, configure.ac):
34140         Likewise.
34141         * modules/unictype/property-format-control (Depends-on, configure.ac):
34142         Likewise.
34143         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
34144         Likewise.
34145         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
34146         Likewise.
34147         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
34148         Likewise.
34149         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
34150         Likewise.
34151         * modules/unictype/property-hyphen (Depends-on, configure.ac):
34152         Likewise.
34153         * modules/unictype/property-id-continue (Depends-on, configure.ac):
34154         Likewise.
34155         * modules/unictype/property-id-start (Depends-on, configure.ac):
34156         Likewise.
34157         * modules/unictype/property-ideographic (Depends-on, configure.ac):
34158         Likewise.
34159         * modules/unictype/property-ids-binary-operator (Depends-on,
34160         configure.ac): Likewise.
34161         * modules/unictype/property-ids-trinary-operator (Depends-on,
34162         configure.ac): Likewise.
34163         * modules/unictype/property-ignorable-control (Depends-on,
34164         configure.ac): Likewise.
34165         * modules/unictype/property-iso-control (Depends-on, configure.ac):
34166         Likewise.
34167         * modules/unictype/property-join-control (Depends-on, configure.ac):
34168         Likewise.
34169         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
34170         Likewise.
34171         * modules/unictype/property-line-separator (Depends-on, configure.ac):
34172         Likewise.
34173         * modules/unictype/property-logical-order-exception (Depends-on,
34174         configure.ac): Likewise.
34175         * modules/unictype/property-lowercase (Depends-on, configure.ac):
34176         Likewise.
34177         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
34178         * modules/unictype/property-non-break (Depends-on, configure.ac):
34179         Likewise.
34180         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
34181         Likewise.
34182         * modules/unictype/property-numeric (Depends-on, configure.ac):
34183         Likewise.
34184         * modules/unictype/property-other-alphabetic (Depends-on,
34185         configure.ac): Likewise.
34186         * modules/unictype/property-other-default-ignorable-code-point
34187         (Depends-on, configure.ac): Likewise.
34188         * modules/unictype/property-other-grapheme-extend (Depends-on,
34189         configure.ac): Likewise.
34190         * modules/unictype/property-other-id-continue (Depends-on,
34191         configure.ac): Likewise.
34192         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
34193         Likewise.
34194         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
34195         Likewise.
34196         * modules/unictype/property-other-math (Depends-on, configure.ac):
34197         Likewise.
34198         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
34199         Likewise.
34200         * modules/unictype/property-paired-punctuation (Depends-on,
34201         configure.ac): Likewise.
34202         * modules/unictype/property-paragraph-separator (Depends-on,
34203         configure.ac): Likewise.
34204         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
34205         Likewise.
34206         * modules/unictype/property-pattern-white-space (Depends-on,
34207         configure.ac): Likewise.
34208         * modules/unictype/property-private-use (Depends-on, configure.ac):
34209         Likewise.
34210         * modules/unictype/property-punctuation (Depends-on, configure.ac):
34211         Likewise.
34212         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
34213         Likewise.
34214         * modules/unictype/property-radical (Depends-on, configure.ac):
34215         Likewise.
34216         * modules/unictype/property-sentence-terminal (Depends-on,
34217         configure.ac): Likewise.
34218         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
34219         Likewise.
34220         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
34221         * modules/unictype/property-terminal-punctuation (Depends-on,
34222         configure.ac): Likewise.
34223         * modules/unictype/property-titlecase (Depends-on, configure.ac):
34224         Likewise.
34225         * modules/unictype/property-unassigned-code-value (Depends-on,
34226         configure.ac): Likewise.
34227         * modules/unictype/property-unified-ideograph (Depends-on,
34228         configure.ac): Likewise.
34229         * modules/unictype/property-uppercase (Depends-on, configure.ac):
34230         Likewise.
34231         * modules/unictype/property-variation-selector (Depends-on,
34232         configure.ac): Likewise.
34233         * modules/unictype/property-white-space (Depends-on, configure.ac):
34234         Likewise.
34235         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
34236         Likewise.
34237         * modules/unictype/property-xid-start (Depends-on, configure.ac):
34238         Likewise.
34239         * modules/unictype/property-zero-width (Depends-on, configure.ac):
34240         Likewise.
34241         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
34242         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
34243         Likewise.
34244
34245 2009-12-31  Bruno Haible  <bruno@clisp.org>
34246
34247         Remove unnecessary AC_C_INLINE invocation.
34248         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
34249         since 2009-08-21.
34250
34251 2009-12-31  Jim Meyering  <meyering@redhat.com>
34252
34253         maint.mk: don't require explicit gpg_key_ID in cfg.mk
34254         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
34255         With this change, we can all remove the gpg_key_ID = ... definition
34256         from our respective cfg.mk files.
34257
34258         maint.mk: create announcement template in ~/, not in /tmp
34259         * top/maint.mk (emit_upload_commands): Adjust.
34260         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
34261         Remove temporary file, .ci-msg.
34262
34263 2009-12-31  Eric Blake  <ebb9@byu.net>
34264
34265         link-warning: always build headers with link warnings
34266         * modules/arpa_inet (Makefile.am): Always build replacement
34267         header.
34268         * modules/ctype (Makefile.am): Likewise.
34269         * modules/dirent (Makefile.am): Likewise.
34270         * modules/inttypes (Makefile.am): Likewise.
34271         * modules/langinfo (Makefile.am): Likewise.
34272         * modules/locale (Makefile.am): Likewise.
34273         * modules/spawn (Makefile.am): Likewise.
34274         * modules/sys_file (Makefile.am): Likewise.
34275         * modules/sys_ioctl (Makefile.am): Likewise.
34276         * modules/sys_select (Makefile.am): Likewise.
34277         * modules/sys_socket (Makefile.am): Likewise.
34278         * modules/sys_times (Makefile.am): Likewise.
34279         * modules/sys_utsname (Makefile.am): Likewise.
34280         * modules/sys_wait (Makefile.am): Likewise.
34281         * modules/wchar (Makefile.am): Likewise.
34282         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
34283         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
34284         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
34285         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
34286         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
34287         Likewise.
34288         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
34289         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
34290         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
34291         Likewise.
34292         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
34293         Likewise.
34294         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
34295         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
34296         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
34297         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
34298         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
34299         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
34300         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
34301         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
34302         (gl_WCHAR_H_DEFAULTS): Likewise.
34303
34304 2009-12-31  Eric Blake  <ebb9@byu.net>
34305
34306         signal, spawn: use link warnings
34307         * lib/signal.in.h (sigset_t): Make unconditional.
34308         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
34309         (sigpending, sigprocmask, sigaction): Add link warnings.
34310         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
34311         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
34312         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
34313         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
34314         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
34315         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
34316         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
34317         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
34318         (posix_spawn_file_actions_destroy)
34319         (posix_spawn_file_actions_addopen)
34320         (posix_spawn_file_actions_addclose)
34321         (posix_spawn_file_actions_adddup2): Likewise.
34322         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
34323         * tests/test-signal.c (main): Enhance test.
34324
34325         spawn: improve wrapper support
34326         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
34327         (gl_SPAWN_H_DEFAULTS): New defaults.
34328         * modules/spawn (Makefile.am): Substitute them.
34329         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
34330         Only declare if missing or broken.
34331
34332         sys_times, sys_utsname: use include_next
34333         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
34334         header.
34335         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
34336         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
34337         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
34338         * modules/sys_times (Depends-on): Add include_next.
34339         (Makefile.am): Substitute additional values.
34340         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
34341         * lib/sys_times.in.h (includes): Include native header, if
34342         available.
34343         * lib/sys_utsname.in.h (includes): Likewise.
34344         * tests/test-sys_times.c (main): Enhance test.
34345
34346         fdutimensat: revert prior patch
34347         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
34348         utimens.h.
34349         Reported by Bruno Haible.
34350
34351 2009-12-30  Eric Blake  <ebb9@byu.net>
34352
34353         sys_wait: drop link-warning dependency
34354         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
34355         link-warning efforts.
34356         * lib/sys_wait.in.h: Likewise.
34357
34358         fdutimensat: remove bogus dependency
34359         * modules/fdutimensat (Depends-on): Drop inline.
34360
34361         unistd: fix typo
34362         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
34363
34364 2009-12-30  Bruno Haible  <bruno@clisp.org>
34365
34366         Fix compilation error with Solaris cc.
34367         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
34368         * lib/unicase/u16-is-invariant.c: Likewise.
34369         * lib/unicase/u32-is-invariant.c: Likewise.
34370         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
34371
34372 2009-12-30  Bruno Haible  <bruno@clisp.org>
34373
34374         Fix test crash.
34375         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
34376         locales.
34377         Reported by Simon Josefsson <simon@josefsson.org>.
34378
34379 2009-12-30  Bruno Haible  <bruno@clisp.org>
34380
34381         Fix compilation error on most platforms.
34382         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
34383         Reported by Simon Josefsson <simon@josefsson.org>
34384         and Nelson H. F. Beebe <beebe@math.utah.edu>.
34385
34386 2009-12-30  Eric Blake  <ebb9@byu.net>
34387
34388         futimens, utimensat: work around ntfs-3g bug
34389         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
34390         a ctime bug is present, and expand workaround to cover ntfs-3g.
34391         * lib/utimens.c (fdutimens, lutimens): Likewise.
34392         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
34393         (validate_timespec): Adjust return value.
34394         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
34395         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
34396         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
34397
34398 2009-12-29  Eric Blake  <ebb9@byu.net>
34399
34400         link-warning: make usage consistent
34401         * modules/ctype (Depends-on): Add link-warning.
34402         (Makefile.am): Update rules accordingly.
34403         * modules/langinfo (Depends-on, Makefile.am): Likewise.
34404         * modules/locale (Depends-on, Makefile.am): Likewise.
34405         * modules/sys_file (Makefile.am): Likewise.
34406         * modules/getopt-posix (Makefile.am): Delete unused link warning
34407         efforts.
34408         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
34409         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
34410         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
34411         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
34412
34413         stdio: remove unused variables
34414         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
34415         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
34416         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
34417
34418         tests: test more substitute headers
34419         * modules/ctype-tests: New file.
34420         * modules/dirent-tests: Likewise.
34421         * modules/spawn-tests: Likewise.
34422         * modules/sys_file-tests: Likewise.
34423         * modules/sys_ioctl-tests: Likewise.
34424         * modules/sys_wait-tests: Likewise.
34425         * tests/test-ctype.c: Likewise.
34426         * tests/test-dirent.c: Likewise.
34427         * tests/test-spawn.c: Likewise.
34428         * tests/test-sys_file.c: Likewise.
34429         * tests/test-sys_ioctl.c: Likewise.
34430         * tests/test-sys_wait.c: Likewise.
34431         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
34432         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
34433         whether or not flock is in use.
34434
34435         tests: remove License section from module
34436         * modules/arpa_inet-tests: Remove unneeded section.
34437         * modules/byteswap-tests: Likewise.
34438         * modules/ceilf-tests: Likewise.
34439         * modules/ceill-tests: Likewise.
34440         * modules/crypto/des-tests: Likewise.
34441         * modules/crypto/gc-arcfour-tests: Likewise.
34442         * modules/crypto/gc-arctwo-tests: Likewise.
34443         * modules/crypto/gc-des-tests: Likewise.
34444         * modules/crypto/gc-hmac-md5-tests: Likewise.
34445         * modules/crypto/gc-hmac-sha1-tests: Likewise.
34446         * modules/crypto/gc-md2-tests: Likewise.
34447         * modules/crypto/gc-md4-tests: Likewise.
34448         * modules/crypto/gc-md5-tests: Likewise.
34449         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
34450         * modules/crypto/gc-rijndael-tests: Likewise.
34451         * modules/crypto/gc-sha1-tests: Likewise.
34452         * modules/crypto/gc-tests: Likewise.
34453         * modules/crypto/md2-tests: Likewise.
34454         * modules/crypto/md4-tests: Likewise.
34455         * modules/fcntl-h-tests: Likewise.
34456         * modules/floorf-tests: Likewise.
34457         * modules/floorl-tests: Likewise.
34458         * modules/frexp-nolibm-tests: Likewise.
34459         * modules/frexp-tests: Likewise.
34460         * modules/frexpl-nolibm-tests: Likewise.
34461         * modules/frexpl-tests: Likewise.
34462         * modules/getaddrinfo-tests: Likewise.
34463         * modules/inttypes-tests: Likewise.
34464         * modules/isfinite-tests: Likewise.
34465         * modules/isinf-tests: Likewise.
34466         * modules/ldexpl-tests: Likewise.
34467         * modules/locale-tests: Likewise.
34468         * modules/math-tests: Likewise.
34469         * modules/netdb-tests: Likewise.
34470         * modules/netinet_in-tests: Likewise.
34471         * modules/printf-frexp-tests: Likewise.
34472         * modules/printf-frexpl-tests: Likewise.
34473         * modules/priv-set-tests: Likewise.
34474         * modules/random_r-tests: Likewise.
34475         * modules/round-tests: Likewise.
34476         * modules/roundf-tests: Likewise.
34477         * modules/roundl-tests: Likewise.
34478         * modules/search-tests: Likewise.
34479         * modules/select-tests: Likewise.
34480         * modules/signal-tests: Likewise.
34481         * modules/stdbool-tests: Likewise.
34482         * modules/stddef-tests: Likewise.
34483         * modules/stdint-tests: Likewise.
34484         * modules/stdio-tests: Likewise.
34485         * modules/stdlib-tests: Likewise.
34486         * modules/string-tests: Likewise.
34487         * modules/strings-tests: Likewise.
34488         * modules/sys_select-tests: Likewise.
34489         * modules/sys_socket-tests: Likewise.
34490         * modules/sys_stat-tests: Likewise.
34491         * modules/sys_time-tests: Likewise.
34492         * modules/sys_utsname-tests: Likewise.
34493         * modules/sysexits-tests: Likewise.
34494         * modules/time-tests: Likewise.
34495         * modules/trunc-tests: Likewise.
34496         * modules/truncf-tests: Likewise.
34497         * modules/truncl-tests: Likewise.
34498         * modules/tsearch-tests: Likewise.
34499         * modules/unistd-tests: Likewise.
34500         * modules/wchar-tests: Likewise.
34501         * modules/wctype-tests: Likewise.
34502
34503         tests: fix license on several tests
34504         * tests/test-des.c: Update to GPLv3+.
34505         * tests/test-flock.c: Likewise.
34506         * tests/test-fsync.c: Likewise.
34507         * tests/test-futimens.h: Likewise.
34508         * tests/test-gc-arcfour.c: Likewise.
34509         * tests/test-gc-arctwo.c: Likewise.
34510         * tests/test-gc-des.c: Likewise.
34511         * tests/test-gc-hmac-md5.c: Likewise.
34512         * tests/test-gc-hmac-sha1.c: Likewise.
34513         * tests/test-gc-md2.c: Likewise.
34514         * tests/test-gc-md4.c: Likewise.
34515         * tests/test-gc-md5.c: Likewise.
34516         * tests/test-gc-pbkdf2-sha1.c: Likewise.
34517         * tests/test-gc-rijndael.c: Likewise.
34518         * tests/test-gc-sha1.c: Likewise.
34519         * tests/test-gc.c: Likewise.
34520         * tests/test-getcwd.c: Likewise.
34521         * tests/test-link.c: Likewise.
34522         * tests/test-link.h: Likewise.
34523         * tests/test-lutimens.h: Likewise.
34524         * tests/test-md2.c: Likewise.
34525         * tests/test-md4.c: Likewise.
34526         * tests/test-mkdir.h: Likewise.
34527         * tests/test-rename.c: Likewise.
34528         * tests/test-rename.h: Likewise.
34529         * tests/test-safe-alloc.c: Likewise.
34530         * tests/test-utimens-common.h: Likewise.
34531         * tests/test-utimens.h: Likewise.
34532
34533         maint: sync license texts
34534         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
34535         * doc/gpl-3.0.texi: Revert copyright year update.
34536         * doc/lgpl-3.0.texi: Likewise.
34537
34538 2009-12-29  Jim Meyering  <meyering@redhat.com>
34539
34540         update nearly all FSF copyright year lists to include 2009
34541         The files named by the following are exempted:
34542             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
34543               test -f "$dst" && { echo "$dst"; continue; }
34544               test -d "$dst" || continue
34545               echo "$dst"/$(basename "$src")
34546             done > exempt
34547             git ls-files tests/unictype >> exempt
34548         In the remaining files, convert to all-interval notation if
34549         - there is already at least one year interval like 2000-2003
34550         - the file is maintained by me
34551         - the file is in lib/uni*/, where that style already prevails
34552         Otherwise, use update-copyright's default.
34553
34554 2009-12-29  Simon Josefsson  <simon@josefsson.org>
34555         and Eric Blake  <ebb9@byu.net>
34556
34557         tests: don't require debug system() to pass
34558         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
34559         * tests/test-rmdir.h (test_rmdir_func): Likewise.
34560         * tests/test-unlink.h (test_unlink_func): Likewise.
34561         * tests/test-fstatat.c (main): ...into callers.
34562         * tests/test-lstat.c (main): Likewise.
34563         * tests/test-rmdir.c (main): Likewise.
34564         * tests/test-unlink.c (main): Likewise.
34565         * tests/test-unlinkat.c (main): Likewise.
34566         * tests/test-areadlink-with-size.c (main): Don't require a
34567         debug-only system call to pass, aiding cross-testing to mingw.
34568         * tests/test-areadlink.c (main): Likewise.
34569         * tests/test-areadlinkat-with-size.c (main): Likewise.
34570         * tests/test-areadlinkat.c (main): Likewise.
34571         * tests/test-canonicalize-lgpl.c (main): Likewise.
34572         * tests/test-canonicalize.c (main): Likewise.
34573         * tests/test-chown.c (main): Likewise.
34574         * tests/test-fchownat.c (main): Likewise.
34575         * tests/test-lchown.c (main): Likewise.
34576         * tests/test-fdutimensat.c (main): Likewise.
34577         * tests/test-futimens.c (main): Likewise.
34578         * tests/test-link.c (main): Likewise.
34579         * tests/test-linkat.c (main): Likewise.
34580         * tests/test-mkdir.c (main): Likewise.
34581         * tests/test-mkdirat.c (main): Likewise.
34582         * tests/test-mkfifo.c (main): Likewise.
34583         * tests/test-mkfifoat.c (main): Likewise.
34584         * tests/test-mknod.c (main): Likewise.
34585         * tests/test-readlink.c (main): Likewise.
34586         * tests/test-remove.c (main): Likewise.
34587         * tests/test-rename.c (main): Likewise.
34588         * tests/test-renameat.c (main): Likewise.
34589         * tests/test-symlink.c (main): Likewise.
34590         * tests/test-symlinkat.c (main): Likewise.
34591         * tests/test-utimens.c (main): Likewise.
34592         * tests/test-utimensat.c (main): Likewise.
34593
34594 2009-12-29  Simon Josefsson  <simon@josefsson.org>
34595
34596         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
34597         on $(UNUSED_PARAMETER_H) to avoid build failure.
34598
34599 2009-12-28  Jim Meyering  <meyering@redhat.com>
34600
34601         update-copyright: you may specify a max. line length other than 72
34602         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
34603
34604         maint: use consistent FSF copyright line syntax
34605         * lib/posixtm.c: Add missing comma in FSF copyright line.
34606         * lib/posixtm.h: Likewise.
34607         * lib/getugroups.c: Add missing ", Inc.".
34608
34609         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
34610         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
34611         FSF copyright line.  Remove trailing blanks.
34612
34613 2009-12-28  Eric Blake  <ebb9@byu.net>
34614
34615         test-dup2: reduce dependencies
34616         * modules/cloexec (Configure.ac): Set witness.
34617         * modules/dup2-tests (Depends-on): Drop cloexec.
34618         * tests/test-dup2.c (main): Skip portion of test if cloexec module
34619         not present.
34620         Suggested by Bruno Haible.
34621
34622 2009-12-26  Bruno Haible  <bruno@clisp.org>
34623
34624         Remove an unneeded dependency.
34625         * modules/fseterr (Depends-on): Remove dup2.
34626
34627 2009-12-26  Eric Blake  <ebb9@byu.net>
34628
34629         tests: use macros.h in more places
34630         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
34631         (ASSERT_STREAM): Provide default of stderr.
34632         * tests/test-dirent-safer.c: Include macros.h, using alternate
34633         stream for assertions.
34634         * tests/test-dup-safer.c: Likewise.
34635         * tests/test-freopen-safer.c: Likewise.
34636         * tests/test-getopt.c: Likewise.
34637         * tests/test-openat-safer.c: Likewise.
34638         * tests/test-pipe.c: Likewise.
34639         * tests/test-popen-safer.c: Likewise.
34640         * modules/dirent-safer-tests (Files): Include macros.h.
34641         * modules/unistd-safer-tests (Files): Likewise.
34642         * modules/freopen-safer-tests (Files): Likewise.
34643         * modules/getopt-posix-tests (Files): Likewise.
34644         * modules/openat-safer-tests (Files): Likewise.
34645         * modules/pipe-tests (Files): Likewise.
34646
34647 2009-12-26  Bruno Haible  <bruno@clisp.org>
34648
34649         javacomp: Portability fix.
34650         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
34651         that it also works on Solaris.
34652
34653 2009-12-26  Bruno Haible  <bruno@clisp.org>
34654
34655         localename: Fix storage allocation of gl_locale_name_thread's result.
34656         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
34657         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
34658         all platforms that have 'uselocale'.
34659         (gl_locale_name_thread_unsafe): New function, extracted from
34660         gl_locale_name_thread.
34661         (gl_locale_name_thread): Call struniq on all platforms that have
34662         'uselocale'.
34663         * tests/test-localename.c (test_locale_name_thread): Check that the
34664         resulting strings are permanently allocated.
34665         * modules/localename-tests (Depends-on): Add strdup.
34666
34667 2009-12-26  Bruno Haible  <bruno@clisp.org>
34668
34669         * tests/test-localename.c (categories): Fill in the strings.
34670
34671 2009-12-26  Jim Meyering  <meyering@redhat.com>
34672
34673         isdir: complete the removal of m4/isdir.m4
34674         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
34675
34676         isdir: clean up, since at least grep still uses it
34677         * lib/isdir.c: Include "isdir.h".
34678         (S_ISDIR): Remove now-unneeded definition.
34679         * modules/isdir (Files): Add lib/isdir.h.
34680         * lib/isdir.h: New file, with declaration.
34681         * m4/isdir.m4: Remove file -- unneeded.
34682
34683 2009-12-25  Bruno Haible  <bruno@clisp.org>
34684
34685         selinux-h: Make generated .h files standalone.
34686         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
34687         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
34688         * lib/se-selinux.in.h: Likewise.
34689         * modules/selinux-h (Depends-on): Add unused-parameter.
34690         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
34691         selinux/selinux.h and selinux/context.h.
34692         Suggested by Eric Blake.
34693
34694 2009-12-25  Bruno Haible  <bruno@clisp.org>
34695
34696         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
34697         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
34698         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
34699         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
34700         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
34701
34702 2009-12-24  Bruno Haible  <bruno@clisp.org>
34703
34704         openat: Fix warning.
34705         * lib/openat-proc.c: Include <unistd.h>.
34706
34707 2009-12-24  Bruno Haible  <bruno@clisp.org>
34708
34709         New module 'unused-parameter'.
34710         * build-aux/unused-parameter.h: New file, extracted from earlier
34711         gnulib-common.m4.
34712         * modules/unused-parameter: New file.
34713         * lib/unistr.h: Include unused-parameter.h.
34714         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
34715         _GL_UNUSED.
34716         * modules/unistr/base (Depends-on): Add unused-parameter.
34717
34718 2009-12-24  Bruno Haible  <bruno@clisp.org>
34719
34720         Add missing dependencies to 'extensions' module.
34721         * m4/extensions.m4: Add comment.
34722         * modules/accept4 (Depends-on): Add extensions.
34723         * modules/dup3 (Depends-on): Likewise.
34724         * modules/fcntl (Depends-on): Likewise.
34725         * modules/futimens (Depends-on): Likewise.
34726         * modules/mknod (Depends-on): Likewise.
34727         * modules/pipe2 (Depends-on): Likewise.
34728         * modules/stat-time (Depends-on): Likewise.
34729         * modules/strcasestr-simple (Depends-on): Likewise.
34730         * modules/strsignal (Depends-on): Likewise.
34731         * modules/utimensat (Depends-on): Likewise.
34732         * modules/localcharset (Depends-on): Likewise. Needed because of
34733         gl_FCNTL_O_FLAGS.
34734         * modules/wcrtomb (Depends-on): Likewise. Needed because of
34735         AC_TYPE_MBSTATE_T.
34736         * modules/wcsnrtombs (Depends-on): Likewise.
34737         * modules/wcsrtombs (Depends-on): Likewise.
34738
34739 2009-12-24  Bruno Haible  <bruno@clisp.org>
34740
34741         binary-io: Avoid gcc warning due to SET_BINARY.
34742         * lib/binary-io.h (SET_BINARY): Cast the result to void.
34743         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
34744
34745 2009-12-24  Bruno Haible  <bruno@clisp.org>
34746
34747         Avoid future namespace pollution on glibc systems.
34748         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
34749         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
34750         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
34751         glibc systems.
34752
34753 2009-12-24  Bruno Haible  <bruno@clisp.org>
34754
34755         Refactor common macros used in tests.
34756         * tests/macros.h: New file.
34757         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
34758         and/or <stdlib.h>, if appropriate.
34759         (ASSERT, SIZEOF): Remove macros.
34760         * tests/test-areadlink-with-size.c: Likewise.
34761         * tests/test-areadlinkat.c: Likewise.
34762         * tests/test-areadlinkat-with-size.c: Likewise.
34763         * tests/test-argmatch.c: Likewise.
34764         * tests/test-argv-iter.c: Likewise.
34765         * tests/test-array-mergesort.c: Likewise.
34766         * tests/test-array_list.c: Likewise.
34767         * tests/test-array_oset.c: Likewise.
34768         * tests/test-avltree_list.c: Likewise.
34769         * tests/test-avltree_oset.c: Likewise.
34770         * tests/test-avltreehash_list.c: Likewise.
34771         * tests/test-base64.c: Likewise.
34772         * tests/test-binary-io.c: Likewise.
34773         * tests/test-bitrotate.c: Likewise.
34774         * tests/test-btowc.c: Likewise.
34775         * tests/test-byteswap.c: Likewise.
34776         * tests/test-c-ctype.c: Likewise.
34777         * tests/test-c-stack.c: Likewise.
34778         * tests/test-c-strcasecmp.c: Likewise.
34779         * tests/test-c-strcasestr.c: Likewise.
34780         * tests/test-c-strncasecmp.c: Likewise.
34781         * tests/test-c-strstr.c: Likewise.
34782         * tests/test-canonicalize-lgpl.c: Likewise.
34783         * tests/test-canonicalize.c: Likewise.
34784         * tests/test-carray_list.c: Likewise.
34785         * tests/test-ceilf1.c: Likewise.
34786         * tests/test-ceilf2.c: Likewise.
34787         * tests/test-ceill.c: Likewise.
34788         * tests/test-chown.c: Likewise.
34789         * tests/test-cloexec.c: Likewise.
34790         * tests/test-copy-acl.c: Likewise.
34791         * tests/test-copy-file.c: Likewise.
34792         * tests/test-count-one-bits.c: Likewise.
34793         * tests/test-dprintf-posix.c: Likewise.
34794         * tests/test-dup2.c: Likewise.
34795         * tests/test-dup3.c: Likewise.
34796         * tests/test-duplocale.c: Likewise.
34797         * tests/test-fbufmode.c: Likewise.
34798         * tests/test-fchdir.c: Likewise.
34799         * tests/test-fchownat.c: Likewise.
34800         * tests/test-fcntl-safer.c: Likewise.
34801         * tests/test-fcntl.c: Likewise.
34802         * tests/test-fdopendir.c: Likewise.
34803         * tests/test-fdutimensat.c: Likewise.
34804         * tests/test-fflush2.c: Likewise.
34805         * tests/test-file-has-acl.c: Likewise.
34806         * tests/test-filevercmp.c: Likewise.
34807         * tests/test-flock.c: Likewise.
34808         * tests/test-floorf1.c: Likewise.
34809         * tests/test-floorf2.c: Likewise.
34810         * tests/test-floorl.c: Likewise.
34811         * tests/test-fnmatch.c: Likewise.
34812         * tests/test-fopen.h: Likewise.
34813         * tests/test-fpending.c: Likewise.
34814         * tests/test-fprintf-posix.c: Likewise.
34815         * tests/test-fpurge.c: Likewise.
34816         * tests/test-freadable.c: Likewise.
34817         * tests/test-freadahead.c: Likewise.
34818         * tests/test-freading.c: Likewise.
34819         * tests/test-freadptr.c: Likewise.
34820         * tests/test-freadptr2.c: Likewise.
34821         * tests/test-freadseek.c: Likewise.
34822         * tests/test-freopen.c: Likewise.
34823         * tests/test-frexp.c: Likewise.
34824         * tests/test-frexpl.c: Likewise.
34825         * tests/test-fseek.c: Likewise.
34826         * tests/test-fseeko.c: Likewise.
34827         * tests/test-fstatat.c: Likewise.
34828         * tests/test-fstrcmp.c: Likewise.
34829         * tests/test-fsync.c: Likewise.
34830         * tests/test-ftell.c: Likewise.
34831         * tests/test-ftello.c: Likewise.
34832         * tests/test-func.c: Likewise.
34833         * tests/test-futimens.c: Likewise.
34834         * tests/test-fwritable.c: Likewise.
34835         * tests/test-fwriting.c: Likewise.
34836         * tests/test-getcwd.c: Likewise.
34837         * tests/test-getdate.c: Likewise.
34838         * tests/test-getdelim.c: Likewise.
34839         * tests/test-getdtablesize.c: Likewise.
34840         * tests/test-getgroups.c: Likewise.
34841         * tests/test-getline.c: Likewise.
34842         * tests/test-getndelim2.c: Likewise.
34843         * tests/test-glob.c: Likewise.
34844         * tests/test-hash.c: Likewise.
34845         * tests/test-i-ring.c: Likewise.
34846         * tests/test-iconv-utf.c: Likewise.
34847         * tests/test-iconv.c: Likewise.
34848         * tests/test-idpriv-drop.c: Likewise.
34849         * tests/test-idpriv-droptemp.c: Likewise.
34850         * tests/test-inet_ntop.c: Likewise.
34851         * tests/test-inet_pton.c: Likewise.
34852         * tests/test-isblank.c: Likewise.
34853         * tests/test-isfinite.c: Likewise.
34854         * tests/test-isinf.c: Likewise.
34855         * tests/test-isnan.c: Likewise.
34856         * tests/test-isnand.h: Likewise.
34857         * tests/test-isnanf.h: Likewise.
34858         * tests/test-isnanl.h: Likewise.
34859         * tests/test-lchown.c: Likewise.
34860         * tests/test-ldexpl.c: Likewise.
34861         * tests/test-link.c: Likewise.
34862         * tests/test-linkat.c: Likewise.
34863         * tests/test-linked_list.c: Likewise.
34864         * tests/test-linkedhash_list.c: Likewise.
34865         * tests/test-localename.c: Likewise.
34866         * tests/test-lseek.c: Likewise.
34867         * tests/test-lstat.c: Likewise.
34868         * tests/test-mbmemcasecmp.c: Likewise.
34869         * tests/test-mbmemcasecoll.c: Likewise.
34870         * tests/test-mbrtowc.c: Likewise.
34871         * tests/test-mbscasecmp.c: Likewise.
34872         * tests/test-mbscasestr1.c: Likewise.
34873         * tests/test-mbscasestr2.c: Likewise.
34874         * tests/test-mbscasestr3.c: Likewise.
34875         * tests/test-mbscasestr4.c: Likewise.
34876         * tests/test-mbschr.c: Likewise.
34877         * tests/test-mbscspn.c: Likewise.
34878         * tests/test-mbsinit.c: Likewise.
34879         * tests/test-mbsncasecmp.c: Likewise.
34880         * tests/test-mbsnrtowcs.c: Likewise.
34881         * tests/test-mbspbrk.c: Likewise.
34882         * tests/test-mbspcasecmp.c: Likewise.
34883         * tests/test-mbsrchr.c: Likewise.
34884         * tests/test-mbsrtowcs.c: Likewise.
34885         * tests/test-mbsspn.c: Likewise.
34886         * tests/test-mbsstr1.c: Likewise.
34887         * tests/test-mbsstr2.c: Likewise.
34888         * tests/test-mbsstr3.c: Likewise.
34889         * tests/test-memchr.c: Likewise.
34890         * tests/test-memchr2.c: Likewise.
34891         * tests/test-memcmp.c: Likewise.
34892         * tests/test-memmem.c: Likewise.
34893         * tests/test-memrchr.c: Likewise.
34894         * tests/test-mkdir.c: Likewise.
34895         * tests/test-mkdirat.c: Likewise.
34896         * tests/test-mkfifo.c: Likewise.
34897         * tests/test-mkfifoat.c: Likewise.
34898         * tests/test-mknod.c: Likewise.
34899         * tests/test-nanosleep.c: Likewise.
34900         * tests/test-nl_langinfo.c: Likewise.
34901         * tests/test-obstack-printf.c: Likewise.
34902         * tests/test-open.c: Likewise.
34903         * tests/test-openat.c: Likewise.
34904         * tests/test-pipe-filter-gi1.c: Likewise.
34905         * tests/test-pipe-filter-gi2-main.c: Likewise.
34906         * tests/test-pipe-filter-ii1.c: Likewise.
34907         * tests/test-pipe-filter-ii2-main.c: Likewise.
34908         * tests/test-pipe2.c: Likewise.
34909         * tests/test-popen.h: Likewise.
34910         * tests/test-posixtm.c: Likewise.
34911         * tests/test-pread.c: Likewise.
34912         * tests/test-printf-frexp.c: Likewise.
34913         * tests/test-printf-frexpl.c: Likewise.
34914         * tests/test-printf-posix.c: Likewise.
34915         * tests/test-priv-set.c: Likewise.
34916         * tests/test-quotearg.c: Likewise.
34917         * tests/test-random_r.c: Likewise.
34918         * tests/test-rawmemchr.c: Likewise.
34919         * tests/test-rbtree_list.c: Likewise.
34920         * tests/test-rbtree_oset.c: Likewise.
34921         * tests/test-rbtreehash_list.c: Likewise.
34922         * tests/test-readlink.c: Likewise.
34923         * tests/test-remove.c: Likewise.
34924         * tests/test-rename.c: Likewise.
34925         * tests/test-renameat.c: Likewise.
34926         * tests/test-rmdir.c: Likewise.
34927         * tests/test-round1.c: Likewise.
34928         * tests/test-roundf1.c: Likewise.
34929         * tests/test-roundl.c: Likewise.
34930         * tests/test-safe-alloc.c: Likewise.
34931         * tests/test-sameacls.c: Likewise.
34932         * tests/test-set-mode-acl.c: Likewise.
34933         * tests/test-setenv.c: Likewise.
34934         * tests/test-sigaction.c: Likewise.
34935         * tests/test-signbit.c: Likewise.
34936         * tests/test-sleep.c: Likewise.
34937         * tests/test-snprintf-posix.c: Likewise.
34938         * tests/test-snprintf.c: Likewise.
34939         * tests/test-sprintf-posix.c: Likewise.
34940         * tests/test-stat-time.c: Likewise.
34941         * tests/test-stat.c: Likewise.
34942         * tests/test-strcasestr.c: Likewise.
34943         * tests/test-strchrnul.c: Likewise.
34944         * tests/test-strerror.c: Likewise.
34945         * tests/test-striconv.c: Likewise.
34946         * tests/test-striconveh.c: Likewise.
34947         * tests/test-striconveha.c: Likewise.
34948         * tests/test-strsignal.c: Likewise.
34949         * tests/test-strstr.c: Likewise.
34950         * tests/test-strtod.c: Likewise.
34951         * tests/test-strverscmp.c: Likewise.
34952         * tests/test-symlink.c: Likewise.
34953         * tests/test-symlinkat.c: Likewise.
34954         * tests/test-trunc1.c: Likewise.
34955         * tests/test-trunc2.c: Likewise.
34956         * tests/test-truncf1.c: Likewise.
34957         * tests/test-truncf2.c: Likewise.
34958         * tests/test-truncl.c: Likewise.
34959         * tests/test-uname.c: Likewise.
34960         * tests/test-unlink.c: Likewise.
34961         * tests/test-unlinkat.c: Likewise.
34962         * tests/test-unsetenv.c: Likewise.
34963         * tests/test-usleep.c: Likewise.
34964         * tests/test-utimens.c: Likewise.
34965         * tests/test-utimensat.c: Likewise.
34966         * tests/test-vasnprintf-posix.c: Likewise.
34967         * tests/test-vasnprintf-posix2.c: Likewise.
34968         * tests/test-vasnprintf.c: Likewise.
34969         * tests/test-vasprintf-posix.c: Likewise.
34970         * tests/test-vasprintf.c: Likewise.
34971         * tests/test-vdprintf-posix.c: Likewise.
34972         * tests/test-vfprintf-posix.c: Likewise.
34973         * tests/test-vprintf-posix.c: Likewise.
34974         * tests/test-vsnprintf-posix.c: Likewise.
34975         * tests/test-vsnprintf.c: Likewise.
34976         * tests/test-vsprintf-posix.c: Likewise.
34977         * tests/test-wcrtomb.c: Likewise.
34978         * tests/test-wcsnrtombs.c: Likewise.
34979         * tests/test-wcsrtombs.c: Likewise.
34980         * tests/test-wctype.c: Likewise.
34981         * tests/test-wcwidth.c: Likewise.
34982         * tests/test-xfprintf-posix.c: Likewise.
34983         * tests/test-xmemdup0.c: Likewise.
34984         * tests/test-xprintf-posix.c: Likewise.
34985         * tests/test-xvasprintf.c: Likewise.
34986         * tests/unicase/test-locale-language.c: Likewise.
34987         * tests/unicase/test-mapping-part1.h: Likewise.
34988         * tests/unicase/test-predicate-part1.h: Likewise.
34989         * tests/unicase/test-u8-casecmp.c: Likewise.
34990         * tests/unicase/test-u8-casecoll.c: Likewise.
34991         * tests/unicase/test-u8-casefold.c: Likewise.
34992         * tests/unicase/test-u8-is-cased.c: Likewise.
34993         * tests/unicase/test-u8-is-casefolded.c: Likewise.
34994         * tests/unicase/test-u8-is-lowercase.c: Likewise.
34995         * tests/unicase/test-u8-is-titlecase.c: Likewise.
34996         * tests/unicase/test-u8-is-uppercase.c: Likewise.
34997         * tests/unicase/test-u8-tolower.c: Likewise.
34998         * tests/unicase/test-u8-totitle.c: Likewise.
34999         * tests/unicase/test-u8-toupper.c: Likewise.
35000         * tests/unicase/test-u16-casecmp.c: Likewise.
35001         * tests/unicase/test-u16-casecoll.c: Likewise.
35002         * tests/unicase/test-u16-casefold.c: Likewise.
35003         * tests/unicase/test-u16-is-cased.c: Likewise.
35004         * tests/unicase/test-u16-is-casefolded.c: Likewise.
35005         * tests/unicase/test-u16-is-lowercase.c: Likewise.
35006         * tests/unicase/test-u16-is-titlecase.c: Likewise.
35007         * tests/unicase/test-u16-is-uppercase.c: Likewise.
35008         * tests/unicase/test-u16-tolower.c: Likewise.
35009         * tests/unicase/test-u16-totitle.c: Likewise.
35010         * tests/unicase/test-u16-toupper.c: Likewise.
35011         * tests/unicase/test-u32-casecmp.c: Likewise.
35012         * tests/unicase/test-u32-casecoll.c: Likewise.
35013         * tests/unicase/test-u32-casefold.c: Likewise.
35014         * tests/unicase/test-u32-is-cased.c: Likewise.
35015         * tests/unicase/test-u32-is-casefolded.c: Likewise.
35016         * tests/unicase/test-u32-is-lowercase.c: Likewise.
35017         * tests/unicase/test-u32-is-titlecase.c: Likewise.
35018         * tests/unicase/test-u32-is-uppercase.c: Likewise.
35019         * tests/unicase/test-u32-tolower.c: Likewise.
35020         * tests/unicase/test-u32-totitle.c: Likewise.
35021         * tests/unicase/test-u32-toupper.c: Likewise.
35022         * tests/unicase/test-ulc-casecmp.c: Likewise.
35023         * tests/unicase/test-ulc-casecoll.c: Likewise.
35024         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
35025         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
35026         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
35027         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
35028         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
35029         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
35030         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
35031         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
35032         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
35033         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
35034         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
35035         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
35036         * tests/unictype/test-bidi_byname.c: Likewise.
35037         * tests/unictype/test-bidi_name.c: Likewise.
35038         * tests/unictype/test-bidi_of.c: Likewise.
35039         * tests/unictype/test-bidi_test.c: Likewise.
35040         * tests/unictype/test-block_list.c: Likewise.
35041         * tests/unictype/test-block_of.c: Likewise.
35042         * tests/unictype/test-block_test.c: Likewise.
35043         * tests/unictype/test-categ_and.c: Likewise.
35044         * tests/unictype/test-categ_and_not.c: Likewise.
35045         * tests/unictype/test-categ_byname.c: Likewise.
35046         * tests/unictype/test-categ_name.c: Likewise.
35047         * tests/unictype/test-categ_none.c: Likewise.
35048         * tests/unictype/test-categ_of.c: Likewise.
35049         * tests/unictype/test-categ_or.c: Likewise.
35050         * tests/unictype/test-categ_test_withtable.c: Likewise.
35051         * tests/unictype/test-combining.c: Likewise.
35052         * tests/unictype/test-decdigit.c: Likewise.
35053         * tests/unictype/test-digit.c: Likewise.
35054         * tests/unictype/test-mirror.c: Likewise.
35055         * tests/unictype/test-numeric.c: Likewise.
35056         * tests/unictype/test-pr_byname.c: Likewise.
35057         * tests/unictype/test-pr_test.c: Likewise.
35058         * tests/unictype/test-predicate-part1.h: Likewise.
35059         * tests/unictype/test-scripts.c: Likewise.
35060         * tests/unictype/test-sy_c_ident.c: Likewise.
35061         * tests/unictype/test-sy_java_ident.c: Likewise.
35062         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
35063         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
35064         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
35065         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
35066         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
35067         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
35068         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
35069         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
35070         * tests/uninorm/test-canonical-decomposition.c: Likewise.
35071         * tests/uninorm/test-compat-decomposition.c: Likewise.
35072         * tests/uninorm/test-composition.c: Likewise.
35073         * tests/uninorm/test-decomposing-form.c: Likewise.
35074         * tests/uninorm/test-decomposition.c: Likewise.
35075         * tests/uninorm/test-u8-nfc.c: Likewise.
35076         * tests/uninorm/test-u8-nfd.c: Likewise.
35077         * tests/uninorm/test-u8-nfkc.c: Likewise.
35078         * tests/uninorm/test-u8-nfkd.c: Likewise.
35079         * tests/uninorm/test-u8-normcmp.c: Likewise.
35080         * tests/uninorm/test-u8-normcoll.c: Likewise.
35081         * tests/uninorm/test-u16-nfc.c: Likewise.
35082         * tests/uninorm/test-u16-nfd.c: Likewise.
35083         * tests/uninorm/test-u16-nfkc.c: Likewise.
35084         * tests/uninorm/test-u16-nfkd.c: Likewise.
35085         * tests/uninorm/test-u16-normcmp.c: Likewise.
35086         * tests/uninorm/test-u16-normcoll.c: Likewise.
35087         * tests/uninorm/test-u32-nfc.c: Likewise.
35088         * tests/uninorm/test-u32-nfd.c: Likewise.
35089         * tests/uninorm/test-u32-nfkc.c: Likewise.
35090         * tests/uninorm/test-u32-nfkd.c: Likewise.
35091         * tests/uninorm/test-u32-normalize-big.c: Likewise.
35092         * tests/uninorm/test-u32-normcmp.c: Likewise.
35093         * tests/uninorm/test-u32-normcoll.c: Likewise.
35094         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
35095         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
35096         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
35097         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
35098         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
35099         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
35100         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
35101         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
35102         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
35103         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
35104         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
35105         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
35106         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
35107         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
35108         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
35109         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
35110         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
35111         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
35112         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
35113         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
35114         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
35115         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
35116         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
35117         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
35118         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
35119         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
35120         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
35121         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
35122         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
35123         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
35124         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
35125         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
35126         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
35127         * tests/uniwidth/test-u8-strwidth.c: Likewise.
35128         * tests/uniwidth/test-u8-width.c: Likewise.
35129         * tests/uniwidth/test-u16-strwidth.c: Likewise.
35130         * tests/uniwidth/test-u16-width.c: Likewise.
35131         * tests/uniwidth/test-u32-strwidth.c: Likewise.
35132         * tests/uniwidth/test-u32-width.c: Likewise.
35133         * tests/uniwidth/test-uc_width.c: Likewise.
35134         * tests/uniwidth/test-uc_width2.c: Likewise.
35135         * modules/acl-tests (Files): Add tests/macros.h.
35136         * modules/areadlink-tests (Files): Likewise.
35137         * modules/areadlink-with-size-tests (Files): Likewise.
35138         * modules/areadlinkat-tests (Files): Likewise.
35139         * modules/areadlinkat-with-size-tests (Files): Likewise.
35140         * modules/argmatch-tests (Files): Likewise.
35141         * modules/argv-iter-tests (Files): Likewise.
35142         * modules/array-list-tests (Files): Likewise.
35143         * modules/array-mergesort-tests (Files): Likewise.
35144         * modules/array-oset-tests (Files): Likewise.
35145         * modules/avltree-list-tests (Files): Likewise.
35146         * modules/avltree-oset-tests (Files): Likewise.
35147         * modules/avltreehash-list-tests (Files): Likewise.
35148         * modules/base64-tests (Files): Likewise.
35149         * modules/binary-io-tests (Files): Likewise.
35150         * modules/bitrotate-tests (Files): Likewise.
35151         * modules/btowc-tests (Files): Likewise.
35152         * modules/byteswap-tests (Files): Likewise.
35153         * modules/c-ctype-tests (Files): Likewise.
35154         * modules/c-stack-tests (Files): Likewise.
35155         * modules/c-strcase-tests (Files): Likewise.
35156         * modules/c-strcasestr-tests (Files): Likewise.
35157         * modules/c-strstr-tests (Files): Likewise.
35158         * modules/canonicalize-lgpl-tests (Files): Likewise.
35159         * modules/canonicalize-tests (Files): Likewise.
35160         * modules/carray-list-tests (Files): Likewise.
35161         * modules/ceilf-tests (Files): Likewise.
35162         * modules/ceill-tests (Files): Likewise.
35163         * modules/chown-tests (Files): Likewise.
35164         * modules/cloexec-tests (Files): Likewise.
35165         * modules/copy-file-tests (Files): Likewise.
35166         * modules/count-one-bits-tests (Files): Likewise.
35167         * modules/dprintf-posix-tests (Files): Likewise.
35168         * modules/dup2-tests (Files): Likewise.
35169         * modules/dup3-tests (Files): Likewise.
35170         * modules/duplocale-tests (Files): Likewise.
35171         * modules/fbufmode-tests (Files): Likewise.
35172         * modules/fchdir-tests (Files): Likewise.
35173         * modules/fcntl-safer-tests (Files): Likewise.
35174         * modules/fcntl-tests (Files): Likewise.
35175         * modules/fdopendir-tests (Files): Likewise.
35176         * modules/fdutimensat-tests (Files): Likewise.
35177         * modules/fflush-tests (Files): Likewise.
35178         * modules/filevercmp-tests (Files): Likewise.
35179         * modules/flock-tests (Files): Likewise.
35180         * modules/floorf-tests (Files): Likewise.
35181         * modules/floorl-tests (Files): Likewise.
35182         * modules/fnmatch-tests (Files): Likewise.
35183         * modules/fopen-safer-tests (Files): Likewise.
35184         * modules/fopen-tests (Files): Likewise.
35185         * modules/fpending-tests (Files): Likewise.
35186         * modules/fprintf-posix-tests (Files): Likewise.
35187         * modules/fpurge-tests (Files): Likewise.
35188         * modules/freadable-tests (Files): Likewise.
35189         * modules/freadahead-tests (Files): Likewise.
35190         * modules/freading-tests (Files): Likewise.
35191         * modules/freadptr-tests (Files): Likewise.
35192         * modules/freadseek-tests (Files): Likewise.
35193         * modules/freopen-tests (Files): Likewise.
35194         * modules/frexp-nolibm-tests (Files): Likewise.
35195         * modules/frexp-tests (Files): Likewise.
35196         * modules/frexpl-nolibm-tests (Files): Likewise.
35197         * modules/frexpl-tests (Files): Likewise.
35198         * modules/fseek-tests (Files): Likewise.
35199         * modules/fseeko-tests (Files): Likewise.
35200         * modules/fstrcmp-tests (Files): Likewise.
35201         * modules/fsync-tests (Files): Likewise.
35202         * modules/ftell-tests (Files): Likewise.
35203         * modules/ftello-tests (Files): Likewise.
35204         * modules/func-tests (Files): Likewise.
35205         * modules/futimens-tests (Files): Likewise.
35206         * modules/fwritable-tests (Files): Likewise.
35207         * modules/fwriting-tests (Files): Likewise.
35208         * modules/getcwd-tests (Files): Likewise.
35209         * modules/getdate-tests (Files): Likewise.
35210         * modules/getdelim-tests (Files): Likewise.
35211         * modules/getdtablesize-tests (Files): Likewise.
35212         * modules/getgroups-tests (Files): Likewise.
35213         * modules/getline-tests (Files): Likewise.
35214         * modules/getndelim2-tests (Files): Likewise.
35215         * modules/glob-tests (Files): Likewise.
35216         * modules/hash-tests (Files): Likewise.
35217         * modules/i-ring-tests (Files): Likewise.
35218         * modules/iconv-tests (Files): Likewise.
35219         * modules/iconv_open-utf-tests (Files): Likewise.
35220         * modules/idpriv-drop-tests (Files): Likewise.
35221         * modules/idpriv-droptemp-tests (Files): Likewise.
35222         * modules/inet_ntop-tests (Files): Likewise.
35223         * modules/inet_pton-tests (Files): Likewise.
35224         * modules/isblank-tests (Files): Likewise.
35225         * modules/isfinite-tests (Files): Likewise.
35226         * modules/isinf-tests (Files): Likewise.
35227         * modules/isnan-tests (Files): Likewise.
35228         * modules/isnand-nolibm-tests (Files): Likewise.
35229         * modules/isnand-tests (Files): Likewise.
35230         * modules/isnanf-nolibm-tests (Files): Likewise.
35231         * modules/isnanf-tests (Files): Likewise.
35232         * modules/isnanl-nolibm-tests (Files): Likewise.
35233         * modules/isnanl-tests (Files): Likewise.
35234         * modules/lchown-tests (Files): Likewise.
35235         * modules/ldexpl-tests (Files): Likewise.
35236         * modules/link-tests (Files): Likewise.
35237         * modules/linkat-tests (Files): Likewise.
35238         * modules/linked-list-tests (Files): Likewise.
35239         * modules/linkedhash-list-tests (Files): Likewise.
35240         * modules/localename-tests (Files): Likewise.
35241         * modules/lseek-tests (Files): Likewise.
35242         * modules/lstat-tests (Files): Likewise.
35243         * modules/mbmemcasecmp-tests (Files): Likewise.
35244         * modules/mbmemcasecoll-tests (Files): Likewise.
35245         * modules/mbrtowc-tests (Files): Likewise.
35246         * modules/mbscasecmp-tests (Files): Likewise.
35247         * modules/mbscasestr-tests (Files): Likewise.
35248         * modules/mbschr-tests (Files): Likewise.
35249         * modules/mbscspn-tests (Files): Likewise.
35250         * modules/mbsinit-tests (Files): Likewise.
35251         * modules/mbsncasecmp-tests (Files): Likewise.
35252         * modules/mbsnrtowcs-tests (Files): Likewise.
35253         * modules/mbspbrk-tests (Files): Likewise.
35254         * modules/mbspcasecmp-tests (Files): Likewise.
35255         * modules/mbsrchr-tests (Files): Likewise.
35256         * modules/mbsrtowcs-tests (Files): Likewise.
35257         * modules/mbsspn-tests (Files): Likewise.
35258         * modules/mbsstr-tests (Files): Likewise.
35259         * modules/memchr-tests (Files): Likewise.
35260         * modules/memchr2-tests (Files): Likewise.
35261         * modules/memcmp-tests (Files): Likewise.
35262         * modules/memmem-tests (Files): Likewise.
35263         * modules/memrchr-tests (Files): Likewise.
35264         * modules/mkdir-tests (Files): Likewise.
35265         * modules/mkfifo-tests (Files): Likewise.
35266         * modules/mkfifoat-tests (Files): Likewise.
35267         * modules/mknod-tests (Files): Likewise.
35268         * modules/nanosleep-tests (Files): Likewise.
35269         * modules/nl_langinfo-tests (Files): Likewise.
35270         * modules/obstack-printf-tests (Files): Likewise.
35271         * modules/open-tests (Files): Likewise.
35272         * modules/openat-tests (Files): Likewise.
35273         * modules/pipe-filter-gi-tests (Files): Likewise.
35274         * modules/pipe-filter-ii-tests (Files): Likewise.
35275         * modules/pipe2-tests (Files): Likewise.
35276         * modules/popen-safer-tests (Files): Likewise.
35277         * modules/popen-tests (Files): Likewise.
35278         * modules/posixtm-tests (Files): Likewise.
35279         * modules/pread-tests (Files): Likewise.
35280         * modules/printf-frexp-tests (Files): Likewise.
35281         * modules/printf-frexpl-tests (Files): Likewise.
35282         * modules/printf-posix-tests (Files): Likewise.
35283         * modules/priv-set-tests (Files): Likewise.
35284         * modules/quotearg-tests (Files): Likewise.
35285         * modules/random_r-tests (Files): Likewise.
35286         * modules/rawmemchr-tests (Files): Likewise.
35287         * modules/rbtree-list-tests (Files): Likewise.
35288         * modules/rbtree-oset-tests (Files): Likewise.
35289         * modules/rbtreehash-list-tests (Files): Likewise.
35290         * modules/readlink-tests (Files): Likewise.
35291         * modules/remove-tests (Files): Likewise.
35292         * modules/rename-tests (Files): Likewise.
35293         * modules/renameat-tests (Files): Likewise.
35294         * modules/rmdir-tests (Files): Likewise.
35295         * modules/round-tests (Files): Likewise.
35296         * modules/roundf-tests (Files): Likewise.
35297         * modules/roundl-tests (Files): Likewise.
35298         * modules/safe-alloc-tests (Files): Likewise.
35299         * modules/setenv-tests (Files): Likewise.
35300         * modules/sigaction-tests (Files): Likewise.
35301         * modules/signbit-tests (Files): Likewise.
35302         * modules/sleep-tests (Files): Likewise.
35303         * modules/snprintf-posix-tests (Files): Likewise.
35304         * modules/snprintf-tests (Files): Likewise.
35305         * modules/sprintf-posix-tests (Files): Likewise.
35306         * modules/stat-tests (Files): Likewise.
35307         * modules/stat-time-tests (Files): Likewise.
35308         * modules/strcasestr-tests (Files): Likewise.
35309         * modules/strchrnul-tests (Files): Likewise.
35310         * modules/strerror-tests (Files): Likewise.
35311         * modules/striconv-tests (Files): Likewise.
35312         * modules/striconveh-tests (Files): Likewise.
35313         * modules/striconveha-tests (Files): Likewise.
35314         * modules/strsignal-tests (Files): Likewise.
35315         * modules/strstr-tests (Files): Likewise.
35316         * modules/strtod-tests (Files): Likewise.
35317         * modules/strverscmp-tests (Files): Likewise.
35318         * modules/symlink-tests (Files): Likewise.
35319         * modules/symlinkat-tests (Files): Likewise.
35320         * modules/trunc-tests (Files): Likewise.
35321         * modules/truncf-tests (Files): Likewise.
35322         * modules/truncl-tests (Files): Likewise.
35323         * modules/uname-tests (Files): Likewise.
35324         * modules/unicase/cased-tests (Files): Likewise.
35325         * modules/unicase/ignorable-tests (Files): Likewise.
35326         * modules/unicase/locale-language-tests (Files): Likewise.
35327         * modules/unicase/tolower-tests (Files): Likewise.
35328         * modules/unicase/totitle-tests (Files): Likewise.
35329         * modules/unicase/toupper-tests (Files): Likewise.
35330         * modules/unicase/u8-casecmp-tests (Files): Likewise.
35331         * modules/unicase/u8-casecoll-tests (Files): Likewise.
35332         * modules/unicase/u8-casefold-tests (Files): Likewise.
35333         * modules/unicase/u8-is-cased-tests (Files): Likewise.
35334         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
35335         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
35336         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
35337         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
35338         * modules/unicase/u8-tolower-tests (Files): Likewise.
35339         * modules/unicase/u8-totitle-tests (Files): Likewise.
35340         * modules/unicase/u8-toupper-tests (Files): Likewise.
35341         * modules/unicase/u16-casecmp-tests (Files): Likewise.
35342         * modules/unicase/u16-casecoll-tests (Files): Likewise.
35343         * modules/unicase/u16-casefold-tests (Files): Likewise.
35344         * modules/unicase/u16-is-cased-tests (Files): Likewise.
35345         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
35346         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
35347         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
35348         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
35349         * modules/unicase/u16-tolower-tests (Files): Likewise.
35350         * modules/unicase/u16-totitle-tests (Files): Likewise.
35351         * modules/unicase/u16-toupper-tests (Files): Likewise.
35352         * modules/unicase/u32-casecmp-tests (Files): Likewise.
35353         * modules/unicase/u32-casecoll-tests (Files): Likewise.
35354         * modules/unicase/u32-casefold-tests (Files): Likewise.
35355         * modules/unicase/u32-is-cased-tests (Files): Likewise.
35356         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
35357         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
35358         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
35359         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
35360         * modules/unicase/u32-tolower-tests (Files): Likewise.
35361         * modules/unicase/u32-totitle-tests (Files): Likewise.
35362         * modules/unicase/u32-toupper-tests (Files): Likewise.
35363         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
35364         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
35365         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
35366         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
35367         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
35368         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
35369         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
35370         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
35371         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
35372         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
35373         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
35374         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
35375         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
35376         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
35377         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
35378         * modules/unictype/bidicategory-name-tests (Files): Likewise.
35379         * modules/unictype/bidicategory-of-tests (Files): Likewise.
35380         * modules/unictype/bidicategory-test-tests (Files): Likewise.
35381         * modules/unictype/block-list-tests (Files): Likewise.
35382         * modules/unictype/block-of-tests (Files): Likewise.
35383         * modules/unictype/block-test-tests (Files): Likewise.
35384         * modules/unictype/category-C-tests (Files): Likewise.
35385         * modules/unictype/category-Cc-tests (Files): Likewise.
35386         * modules/unictype/category-Cf-tests (Files): Likewise.
35387         * modules/unictype/category-Cn-tests (Files): Likewise.
35388         * modules/unictype/category-Co-tests (Files): Likewise.
35389         * modules/unictype/category-Cs-tests (Files): Likewise.
35390         * modules/unictype/category-L-tests (Files): Likewise.
35391         * modules/unictype/category-Ll-tests (Files): Likewise.
35392         * modules/unictype/category-Lm-tests (Files): Likewise.
35393         * modules/unictype/category-Lo-tests (Files): Likewise.
35394         * modules/unictype/category-Lt-tests (Files): Likewise.
35395         * modules/unictype/category-Lu-tests (Files): Likewise.
35396         * modules/unictype/category-M-tests (Files): Likewise.
35397         * modules/unictype/category-Mc-tests (Files): Likewise.
35398         * modules/unictype/category-Me-tests (Files): Likewise.
35399         * modules/unictype/category-Mn-tests (Files): Likewise.
35400         * modules/unictype/category-N-tests (Files): Likewise.
35401         * modules/unictype/category-Nd-tests (Files): Likewise.
35402         * modules/unictype/category-Nl-tests (Files): Likewise.
35403         * modules/unictype/category-No-tests (Files): Likewise.
35404         * modules/unictype/category-P-tests (Files): Likewise.
35405         * modules/unictype/category-Pc-tests (Files): Likewise.
35406         * modules/unictype/category-Pd-tests (Files): Likewise.
35407         * modules/unictype/category-Pe-tests (Files): Likewise.
35408         * modules/unictype/category-Pf-tests (Files): Likewise.
35409         * modules/unictype/category-Pi-tests (Files): Likewise.
35410         * modules/unictype/category-Po-tests (Files): Likewise.
35411         * modules/unictype/category-Ps-tests (Files): Likewise.
35412         * modules/unictype/category-S-tests (Files): Likewise.
35413         * modules/unictype/category-Sc-tests (Files): Likewise.
35414         * modules/unictype/category-Sk-tests (Files): Likewise.
35415         * modules/unictype/category-Sm-tests (Files): Likewise.
35416         * modules/unictype/category-So-tests (Files): Likewise.
35417         * modules/unictype/category-Z-tests (Files): Likewise.
35418         * modules/unictype/category-Zl-tests (Files): Likewise.
35419         * modules/unictype/category-Zp-tests (Files): Likewise.
35420         * modules/unictype/category-Zs-tests (Files): Likewise.
35421         * modules/unictype/category-and-not-tests (Files): Likewise.
35422         * modules/unictype/category-and-tests (Files): Likewise.
35423         * modules/unictype/category-byname-tests (Files): Likewise.
35424         * modules/unictype/category-name-tests (Files): Likewise.
35425         * modules/unictype/category-none-tests (Files): Likewise.
35426         * modules/unictype/category-of-tests (Files): Likewise.
35427         * modules/unictype/category-or-tests (Files): Likewise.
35428         * modules/unictype/category-test-withtable-tests (Files): Likewise.
35429         * modules/unictype/combining-class-tests (Files): Likewise.
35430         * modules/unictype/ctype-alnum-tests (Files): Likewise.
35431         * modules/unictype/ctype-alpha-tests (Files): Likewise.
35432         * modules/unictype/ctype-blank-tests (Files): Likewise.
35433         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
35434         * modules/unictype/ctype-digit-tests (Files): Likewise.
35435         * modules/unictype/ctype-graph-tests (Files): Likewise.
35436         * modules/unictype/ctype-lower-tests (Files): Likewise.
35437         * modules/unictype/ctype-print-tests (Files): Likewise.
35438         * modules/unictype/ctype-punct-tests (Files): Likewise.
35439         * modules/unictype/ctype-space-tests (Files): Likewise.
35440         * modules/unictype/ctype-upper-tests (Files): Likewise.
35441         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
35442         * modules/unictype/decimal-digit-tests (Files): Likewise.
35443         * modules/unictype/digit-tests (Files): Likewise.
35444         * modules/unictype/mirror-tests (Files): Likewise.
35445         * modules/unictype/numeric-tests (Files): Likewise.
35446         * modules/unictype/property-alphabetic-tests (Files): Likewise.
35447         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
35448         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
35449         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
35450         Likewise.
35451         * modules/unictype/property-bidi-block-separator-tests (Files):
35452         Likewise.
35453         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
35454         Likewise.
35455         * modules/unictype/property-bidi-common-separator-tests (Files):
35456         Likewise.
35457         * modules/unictype/property-bidi-control-tests (Files): Likewise.
35458         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
35459         Likewise.
35460         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
35461         Likewise.
35462         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
35463         Likewise.
35464         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
35465         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
35466         Likewise.
35467         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
35468         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
35469         Likewise.
35470         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
35471         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
35472         * modules/unictype/property-bidi-segment-separator-tests (Files):
35473         Likewise.
35474         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
35475         * modules/unictype/property-byname-tests (Files): Likewise.
35476         * modules/unictype/property-combining-tests (Files): Likewise.
35477         * modules/unictype/property-composite-tests (Files): Likewise.
35478         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
35479         * modules/unictype/property-dash-tests (Files): Likewise.
35480         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
35481         * modules/unictype/property-default-ignorable-code-point-tests (Files):
35482         Likewise.
35483         * modules/unictype/property-deprecated-tests (Files): Likewise.
35484         * modules/unictype/property-diacritic-tests (Files): Likewise.
35485         * modules/unictype/property-extender-tests (Files): Likewise.
35486         * modules/unictype/property-format-control-tests (Files): Likewise.
35487         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
35488         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
35489         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
35490         * modules/unictype/property-hex-digit-tests (Files): Likewise.
35491         * modules/unictype/property-hyphen-tests (Files): Likewise.
35492         * modules/unictype/property-id-continue-tests (Files): Likewise.
35493         * modules/unictype/property-id-start-tests (Files): Likewise.
35494         * modules/unictype/property-ideographic-tests (Files): Likewise.
35495         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
35496         * modules/unictype/property-ids-trinary-operator-tests (Files):
35497         Likewise.
35498         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
35499         * modules/unictype/property-iso-control-tests (Files): Likewise.
35500         * modules/unictype/property-join-control-tests (Files): Likewise.
35501         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
35502         * modules/unictype/property-line-separator-tests (Files): Likewise.
35503         * modules/unictype/property-logical-order-exception-tests (Files):
35504         Likewise.
35505         * modules/unictype/property-lowercase-tests (Files): Likewise.
35506         * modules/unictype/property-math-tests (Files): Likewise.
35507         * modules/unictype/property-non-break-tests (Files): Likewise.
35508         * modules/unictype/property-not-a-character-tests (Files): Likewise.
35509         * modules/unictype/property-numeric-tests (Files): Likewise.
35510         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
35511         * modules/unictype/property-other-default-ignorable-code-point-tests
35512         (Files): Likewise.
35513         * modules/unictype/property-other-grapheme-extend-tests (Files):
35514         Likewise.
35515         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
35516         * modules/unictype/property-other-id-start-tests (Files): Likewise.
35517         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
35518         * modules/unictype/property-other-math-tests (Files): Likewise.
35519         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
35520         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
35521         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
35522         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
35523         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
35524         * modules/unictype/property-private-use-tests (Files): Likewise.
35525         * modules/unictype/property-punctuation-tests (Files): Likewise.
35526         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
35527         * modules/unictype/property-radical-tests (Files): Likewise.
35528         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
35529         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
35530         * modules/unictype/property-space-tests (Files): Likewise.
35531         * modules/unictype/property-terminal-punctuation-tests (Files):
35532         Likewise.
35533         * modules/unictype/property-test-tests (Files): Likewise.
35534         * modules/unictype/property-titlecase-tests (Files): Likewise.
35535         * modules/unictype/property-unassigned-code-value-tests (Files):
35536         Likewise.
35537         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
35538         * modules/unictype/property-uppercase-tests (Files): Likewise.
35539         * modules/unictype/property-variation-selector-tests (Files): Likewise.
35540         * modules/unictype/property-white-space-tests (Files): Likewise.
35541         * modules/unictype/property-xid-continue-tests (Files): Likewise.
35542         * modules/unictype/property-xid-start-tests (Files): Likewise.
35543         * modules/unictype/property-zero-width-tests (Files): Likewise.
35544         * modules/unictype/scripts-tests (Files): Likewise.
35545         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
35546         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
35547         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
35548         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
35549         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
35550         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
35551         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
35552         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
35553         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
35554         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
35555         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
35556         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
35557         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
35558         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
35559         * modules/uninorm/composition-tests (Files): Likewise.
35560         * modules/uninorm/decomposing-form-tests (Files): Likewise.
35561         * modules/uninorm/decomposition-tests (Files): Likewise.
35562         * modules/uninorm/filter-tests (Files): Likewise.
35563         * modules/uninorm/nfc-tests (Files): Likewise.
35564         * modules/uninorm/nfd-tests (Files): Likewise.
35565         * modules/uninorm/nfkc-tests (Files): Likewise.
35566         * modules/uninorm/nfkd-tests (Files): Likewise.
35567         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
35568         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
35569         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
35570         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
35571         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
35572         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
35573         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
35574         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
35575         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
35576         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
35577         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
35578         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
35579         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
35580         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
35581         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
35582         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
35583         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
35584         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
35585         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
35586         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
35587         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
35588         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
35589         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
35590         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
35591         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
35592         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
35593         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
35594         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
35595         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
35596         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
35597         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
35598         * modules/uniwidth/u8-width-tests (Files): Likewise.
35599         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
35600         * modules/uniwidth/u16-width-tests (Files): Likewise.
35601         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
35602         * modules/uniwidth/u32-width-tests (Files): Likewise.
35603         * modules/uniwidth/width-tests (Files): Likewise.
35604         * modules/unlink-tests (Files): Likewise.
35605         * modules/unsetenv-tests (Files): Likewise.
35606         * modules/usleep-tests (Files): Likewise.
35607         * modules/utimens-tests (Files): Likewise.
35608         * modules/utimensat-tests (Files): Likewise.
35609         * modules/vasnprintf-posix-tests (Files): Likewise.
35610         * modules/vasnprintf-tests (Files): Likewise.
35611         * modules/vasprintf-posix-tests (Files): Likewise.
35612         * modules/vasprintf-tests (Files): Likewise.
35613         * modules/vdprintf-posix-tests (Files): Likewise.
35614         * modules/vfprintf-posix-tests (Files): Likewise.
35615         * modules/vprintf-posix-tests (Files): Likewise.
35616         * modules/vsnprintf-posix-tests (Files): Likewise.
35617         * modules/vsnprintf-tests (Files): Likewise.
35618         * modules/vsprintf-posix-tests (Files): Likewise.
35619         * modules/wcrtomb-tests (Files): Likewise.
35620         * modules/wcsnrtombs-tests (Files): Likewise.
35621         * modules/wcsrtombs-tests (Files): Likewise.
35622         * modules/wctype-tests (Files): Likewise.
35623         * modules/wcwidth-tests (Files): Likewise.
35624         * modules/xmemdup0-tests (Files): Likewise.
35625         * modules/xprintf-posix-tests (Files): Likewise.
35626         * modules/xvasprintf-tests (Files): Likewise.
35627
35628 2009-12-24  Eric Blake  <ebb9@byu.net>
35629
35630         test-nanosleep: fix typo
35631         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
35632         patch.
35633         Reported by Bruno Haible.
35634
35635 2009-12-24  Bruno Haible  <bruno@clisp.org>
35636
35637         Reduce namespace pollution on glibc systems.
35638         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
35639         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
35640         systems.
35641         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
35642         <getopt.h> on glibc systems.
35643         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
35644         systems.
35645         * lib/fcntl.c: Include <unistd.h> here instead.
35646
35647 2009-12-24  Bruno Haible  <bruno@clisp.org>
35648
35649         * lib/stdlib.in.h (includes): Fix typo in today's commit.
35650
35651 2009-12-24  Eric Blake  <ebb9@byu.net>
35652
35653         tests: add signature checks
35654         * tests/signature.h (SIGNATURE_CHECK): New file.
35655         * modules/atexit-tests (Files): Use it.
35656         * modules/btowc-tests (Files): Likewise.
35657         * modules/canonicalize-lgpl-tests (Files): Likewise.
35658         * modules/ceilf-tests (Files): Likewise.
35659         * modules/ceill-tests (Files): Likewise.
35660         * modules/chown-tests (Files): Likewise.
35661         * modules/dprintf-posix-tests (Files): Likewise.
35662         * modules/dup2-tests (Files): Likewise.
35663         * modules/dup3-tests (Files): Likewise.
35664         * modules/duplocale-tests (Files): Likewise.
35665         * modules/fchdir-tests (Files): Likewise.
35666         * modules/fcntl-tests (Files): Likewise.
35667         * modules/fdopendir-tests (Files): Likewise.
35668         * modules/fflush-tests (Files): Likewise.
35669         * modules/flock-tests (Files): Likewise.
35670         * modules/floorf-tests (Files): Likewise.
35671         * modules/floorl-tests (Files): Likewise.
35672         * modules/fnmatch-tests (Files): Likewise.
35673         * modules/fopen-tests (Files): Likewise.
35674         * modules/fprintf-posix-tests (Files): Likewise.
35675         * modules/freopen-tests (Files): Likewise.
35676         * modules/frexp-nolibm-tests (Files): Likewise.
35677         * modules/frexp-tests (Files): Likewise.
35678         * modules/frexpl-nolibm-tests (Files): Likewise.
35679         * modules/frexpl-tests (Files): Likewise.
35680         * modules/fseek-tests (Files): Likewise.
35681         * modules/fseeko-tests (Files): Likewise.
35682         * modules/fsync-tests (Files): Likewise.
35683         * modules/ftell-tests (Files): Likewise.
35684         * modules/ftello-tests (Files): Likewise.
35685         * modules/futimens-tests (Files): Likewise.
35686         * modules/getaddrinfo-tests (Files): Likewise.
35687         * modules/getcwd-tests (Files): Likewise.
35688         * modules/getdelim-tests (Files): Likewise.
35689         * modules/getdtablesize-tests (Files): Likewise.
35690         * modules/getgroups-tests (Files): Likewise.
35691         * modules/gethostname-tests (Files): Likewise.
35692         * modules/getline-tests (Files): Likewise.
35693         * modules/getopt-posix-tests (Files): Likewise.
35694         * modules/gettimeofday-tests (Files): Likewise.
35695         * modules/glob-tests (Files): Likewise.
35696         * modules/iconv-tests (Files): Likewise.
35697         * modules/inet_ntop-tests (Files): Likewise.
35698         * modules/inet_pton-tests (Files): Likewise.
35699         * modules/isblank-tests (Files): Likewise.
35700         * modules/lchown-tests (Files): Likewise.
35701         * modules/ldexpl-tests (Files): Likewise.
35702         * modules/link-tests (Files): Likewise.
35703         * modules/linkat-tests (Files): Likewise.
35704         * modules/lseek-tests (Files): Likewise.
35705         * modules/lstat-tests (Files): Likewise.
35706         * modules/mbrtowc-tests (Files): Likewise.
35707         * modules/mbsinit-tests (Files): Likewise.
35708         * modules/mbsnrtowcs-tests (Files): Likewise.
35709         * modules/mbsrtowcs-tests (Files): Likewise.
35710         * modules/memchr-tests (Files): Likewise.
35711         * modules/memcmp-tests (Files): Likewise.
35712         * modules/memmem-tests (Files): Likewise.
35713         * modules/memrchr-tests (Files): Likewise.
35714         * modules/mkdir-tests (Files): Likewise.
35715         * modules/mkfifo-tests (Files): Likewise.
35716         * modules/mkfifoat-tests (Files): Likewise.
35717         * modules/mknod-tests (Files): Likewise.
35718         * modules/nanosleep-tests (Files): Likewise.
35719         * modules/nl_langinfo-tests (Files): Likewise.
35720         * modules/obstack-printf-tests (Files): Likewise.
35721         * modules/open-tests (Files): Likewise.
35722         * modules/openat-tests (Files): Likewise.
35723         * modules/perror-tests (Files): Likewise.
35724         * modules/pipe2-tests (Files): Likewise.
35725         * modules/poll-tests (Files): Likewise.
35726         * modules/popen-tests (Files): Likewise.
35727         * modules/posix_spawn-tests (Files): Likewise.
35728         * modules/posix_spawnp-tests (Files): Likewise.
35729         * modules/pread-tests (Files): Likewise.
35730         * modules/printf-posix-tests (Files): Likewise.
35731         * modules/pty-tests (Files): Likewise.
35732         * modules/random_r-tests (Files): Likewise.
35733         * modules/rawmemchr-tests (Files): Likewise.
35734         * modules/readlink-tests (Files): Likewise.
35735         * modules/remove-tests (Files): Likewise.
35736         * modules/rename-tests (Files): Likewise.
35737         * modules/renameat-tests (Files): Likewise.
35738         * modules/rmdir-tests (Files): Likewise.
35739         * modules/round-tests (Files): Likewise.
35740         * modules/roundf-tests (Files): Likewise.
35741         * modules/roundl-tests (Files): Likewise.
35742         * modules/select-tests (Files): Likewise.
35743         * modules/setenv-tests (Files): Likewise.
35744         * modules/sigaction-tests (Files): Likewise.
35745         * modules/sleep-tests (Files): Likewise.
35746         * modules/snprintf-posix-tests (Files): Likewise.
35747         * modules/snprintf-tests (Files): Likewise.
35748         * modules/sprintf-posix-tests (Files): Likewise.
35749         * modules/stat-tests (Files): Likewise.
35750         * modules/strcasestr-tests (Files): Likewise.
35751         * modules/strchrnul-tests (Files): Likewise.
35752         * modules/strerror-tests (Files): Likewise.
35753         * modules/strsignal-tests (Files): Likewise.
35754         * modules/strstr-tests (Files): Likewise.
35755         * modules/strtod-tests (Files): Likewise.
35756         * modules/strverscmp-tests (Files): Likewise.
35757         * modules/symlink-tests (Files): Likewise.
35758         * modules/symlinkat-tests (Files): Likewise.
35759         * modules/times-tests (Files): Likewise.
35760         * modules/trunc-tests (Files): Likewise.
35761         * modules/truncf-tests (Files): Likewise.
35762         * modules/truncl-tests (Files): Likewise.
35763         * modules/tsearch-tests (Files): Likewise.
35764         * modules/uname-tests (Files): Likewise.
35765         * modules/unlink-tests (Files): Likewise.
35766         * modules/unsetenv-tests (Files): Likewise.
35767         * modules/usleep-tests (Files): Likewise.
35768         * modules/utimensat-tests (Files): Likewise.
35769         * modules/vasprintf-tests (Files): Likewise.
35770         * modules/vdprintf-posix-tests (Files): Likewise.
35771         * modules/vfprintf-posix-tests (Files): Likewise.
35772         * modules/vprintf-posix-tests (Files): Likewise.
35773         * modules/vsnprintf-posix-tests (Files): Likewise.
35774         * modules/vsnprintf-tests (Files): Likewise.
35775         * modules/vsprintf-posix-tests (Files): Likewise.
35776         * modules/wcrtomb-tests (Files): Likewise.
35777         * modules/wcsnrtombs-tests (Files): Likewise.
35778         * modules/wcsrtombs-tests (Files): Likewise.
35779         * modules/wcwidth-tests (Files): Likewise.
35780         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
35781         * tests/test-isinf.c (isinf): Likewise.
35782         * tests/test-isnan.c (isnan): Likewise.
35783         * tests/test-signbit.c (signbit): Likewise.
35784         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
35785         declaration, either as macro or with correct signature.
35786         (select): Ensure function under test is declared with correct
35787         signature in correct header.
35788         * tests/test-atexit.c (atexit): Likewise.
35789         * tests/test-btowc.c (btowc): Likewise.
35790         * tests/test-canonicalize-lgpl.c (realpath)
35791         (canonicalize_file_name): Likewise.
35792         * tests/test-ceilf1.c (ceilf): Likewise.
35793         * tests/test-ceill.c (ceill): Likewise.
35794         * tests/test-chown.c (chown): Likewise.
35795         * tests/test-dprintf-posix.c (dprintf): Likewise.
35796         * tests/test-dup2.c (dup2): Likewise.
35797         * tests/test-dup3.c (dup3): Likewise.
35798         * tests/test-duplocale.c (duplocale): Likewise.
35799         * tests/test-fchdir.c (fchdir): Likewise.
35800         * tests/test-fchownat.c (fchownat): Likewise.
35801         * tests/test-fcntl.c (fcntl): Likewise.
35802         * tests/test-fdopendir.c (fdopendir): Likewise.
35803         * tests/test-fflush.c (fflush): Likewise.
35804         * tests/test-flock.c (flock): Likewise.
35805         * tests/test-floorf1.c (floorf): Likewise.
35806         * tests/test-floorl.c (floorl): Likewise.
35807         * tests/test-fnmatch.c (fnmatch): Likewise.
35808         * tests/test-fopen.c (fopen): Likewise.
35809         * tests/test-fprintf-posix.c (fprintf): Likewise.
35810         * tests/test-freopen.c (freopen): Likewise.
35811         * tests/test-frexp.c (frexp): Likewise.
35812         * tests/test-frexpl.c (frexpl): Likewise.
35813         * tests/test-fseek.c (fseek): Likewise.
35814         * tests/test-fseeko.c (fseeko): Likewise.
35815         * tests/test-fstatat.c (fstatat): Likewise.
35816         * tests/test-fsync.c (fsync): Likewise.
35817         * tests/test-ftell.c (ftell): Likewise.
35818         * tests/test-ftello.c (ftello): Likewise.
35819         * tests/test-futimens.c (futimens): Likewise.
35820         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
35821         (gai_strerror): Likewise.
35822         * tests/test-getcwd.c (getcwd): Likewise.
35823         * tests/test-getdelim.c (getdelim): Likewise.
35824         * tests/test-getdtablesize.c (getdtablesize): Likewise.
35825         * tests/test-getgroups.c (getgroups): Likewise.
35826         * tests/test-gethostname.c (gethostname): Likewise.
35827         * tests/test-getline.c (getline): Likewise.
35828         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
35829         Likewise.
35830         * tests/test-gettimeofday.c (gettimeofday): Likewise.
35831         * tests/test-glob.c (glob, globfree): Likewise.
35832         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
35833         * tests/test-inet_ntop.c (inet_ntop): Likewise.
35834         * tests/test-inet_pton.c (inet_pton): Likewise.
35835         * tests/test-isblank.c (isblank): Likewise.
35836         * tests/test-lchown.c (lchown): Likewise.
35837         * tests/test-ldexpl.c (ldexpl): Likewise.
35838         * tests/test-link.c (link): Likewise.
35839         * tests/test-linkat.c (linkat): Likewise.
35840         * tests/test-lseek.c (lseek): Likewise.
35841         * tests/test-lstat.c (lstat): Likewise.
35842         * tests/test-mbrtowc.c (mbrtowc): Likewise.
35843         * tests/test-mbsinit.c (mbsinit): Likewise.
35844         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
35845         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
35846         * tests/test-memchr.c (memchr): Likewise.
35847         * tests/test-memcmp.c (memcmp): Likewise.
35848         * tests/test-memmem.c (memmem): Likewise.
35849         * tests/test-memrchr.c (memrchr): Likewise.
35850         * tests/test-mkdir.c (mkdir): Likewise.
35851         * tests/test-mkdirat.c (mkdirat): Likewise.
35852         * tests/test-mkfifo.c (mkfifo): Likewise.
35853         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
35854         * tests/test-mknod.c (mknod): Likewise.
35855         * tests/test-nanosleep.c (nanosleep): Likewise.
35856         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
35857         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
35858         Likewise.
35859         * tests/test-open.c (open): Likewise.
35860         * tests/test-openat.c (openat): Likewise.
35861         * tests/test-perror.c (perror): Likewise.
35862         * tests/test-pipe2.c (pipe2): Likewise.
35863         * tests/test-poll.c (poll): Likewise.
35864         * tests/test-popen.c (popen, pclose): Likewise.
35865         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
35866         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
35867         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
35868         (posix_spawn_file_actions_destroy)
35869         (posix_spawn_file_actions_addclose)
35870         (posix_spawn_file_actions_addopen)
35871         (posix_spawn_file_actions_adddup2): Likewise.
35872         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
35873         * tests/test-pread.c (pread): Likewise.
35874         * tests/test-printf-posix.c (printf): Likewise.
35875         * tests/test-pty.c (openpty, forkpty): Likewise.
35876         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
35877         (random_r): Likewise.
35878         * tests/test-rawmemchr.c (rawmemchr): Likewise.
35879         * tests/test-readlink.c (readlink): Likewise.
35880         * tests/test-remove.c (remove): Likewise.
35881         * tests/test-rename.c (rename): Likewise.
35882         * tests/test-renameat.c (renameat): Likewise.
35883         * tests/test-rmdir.c (rmdir): Likewise.
35884         * tests/test-round1.c (round): Likewise.
35885         * tests/test-roundf1.c (roundf): Likewise.
35886         * tests/test-roundl.c (roundl): Likewise.
35887         * tests/test-setenv.c (setenv): Likewise.
35888         * tests/test-sigaction.c (sigaction): Likewise.
35889         * tests/test-sleep.c (sleep): Likewise.
35890         * tests/test-snprintf.c (snprintf): Likewise.
35891         * tests/test-sprintf-posix.c (sprintf): Likewise.
35892         * tests/test-stat.c (stat): Likewise.
35893         * tests/test-stpncpy.c (stpncpy): Likewise.
35894         * tests/test-strcasestr.c (strcasestr): Likewise.
35895         * tests/test-strchrnul.c (strchrnul): Likewise.
35896         * tests/test-strerror.c (strerror): Likewise.
35897         * tests/test-strsignal.c (strsignal): Likewise.
35898         * tests/test-strstr.c (strstr): Likewise.
35899         * tests/test-strtod.c (strtod): Likewise.
35900         * tests/test-strverscmp.c (strverscmp): Likewise.
35901         * tests/test-symlink.c (symlink): Likewise.
35902         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
35903         * tests/test-times.c (times): Likewise.
35904         * tests/test-trunc1.c (trunc): Likewise.
35905         * tests/test-truncf1.c (truncf): Likewise.
35906         * tests/test-truncl.c (truncl): Likewise.
35907         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
35908         Likewise.
35909         * tests/test-uname.c (uname): Likewise.
35910         * tests/test-unlink.c (unlink): Likewise.
35911         * tests/test-unlinkat.c (unlinkat): Likewise.
35912         * tests/test-unsetenv.c (unsetenv): Likewise.
35913         * tests/test-usleep.c (usleep): Likewise.
35914         * tests/test-utimensat.c (utimensat): Likewise.
35915         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
35916         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
35917         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
35918         * tests/test-vprintf-posix.c (vprintf): Likewise.
35919         * tests/test-vsnprintf.c (vsnprintf): Likewise.
35920         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
35921         * tests/test-wcrtomb.c (wcrtomb): Likewise.
35922         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
35923         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
35924         * tests/test-wcwidth.c (wcwidth): Likewise.
35925
35926         build: pull in conditional headers during GNULIB_POSIXCHECK
35927         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
35928         definitions from any conditionally-included headers.
35929         * lib/stdlib.in.h (includes): Likewise.
35930         * lib/unistd.in.h (includes): Likewise.
35931
35932 2009-12-24  Bruno Haible  <bruno@clisp.org>
35933
35934         * tests/test-argv-iter.c: Include header file being tested immediately
35935         after config.h.
35936         * tests/test-base64.c: Likewise.
35937         * tests/test-flock.c: Likewise.
35938         * tests/test-fsync.c: Likewise.
35939         * tests/test-getdate.c: Likewise.
35940         * tests/test-getndelim2.c: Likewise.
35941         * tests/test-isfinite.c: Likewise.
35942         * tests/test-isinf.c: Likewise.
35943         * tests/test-strerror.c: Likewise.
35944         * tests/test-strsignal.c: Likewise.
35945
35946 2009-12-23  Eric Blake  <ebb9@byu.net>
35947
35948         unistd: work around cygwin bug
35949         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
35950         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
35951         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
35952
35953 2009-12-23  Bruno Haible  <bruno@clisp.org>
35954
35955         localename: More tests.
35956         * tests/test-localename.c (SIZEOF): New macro.
35957         (categories): New variable.
35958         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
35959         test_locale_name_default): Add test w.r.t. thread locale.
35960         (test_locale_name_thread): New function.
35961         (main): Invoke it.
35962
35963         localename: Make aware of thread locale.
35964         * lib/localename.h (gl_locale_name_thread): New declaration.
35965         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
35966         behaviour with respect to thread locale.
35967         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
35968         <langinfo.h>, glthread/lock.h.
35969         (SIZE_BITS): New macro.
35970         (string_hash): New function.
35971         (struct hash_node): New type.
35972         (HASH_TABLE_SIZE): New macro.
35973         (struniq_hash_table, struniq_lock): New variables.
35974         (struniq): New function.
35975         (gl_locale_name_thread): New function.
35976         (gl_locale_name): Invoke it.
35977         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
35978         * modules/localename (Depends-on): Add lock.
35979         Reported by Mike Gran <spk121@yahoo.com>.
35980
35981 2009-12-23  Eric Blake  <ebb9@byu.net>
35982
35983         va-args: new module
35984         * modules/va-args: New file.
35985         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
35986         * MODULES.html.sh (Core language properties): Mention it.
35987
35988         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
35989         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
35990         named alias for __attribute__((__unused__)).
35991         * lib/chown.c: Update client.
35992         * lib/fchmodat.c: Likewise.
35993         * lib/fts.c: Likewise.
35994         * lib/getdate.y: Likewise.
35995         * lib/getgroups.c: Likewise.
35996         * lib/getopt.c: Likewise.
35997         * lib/getugroups.c: Likewise.
35998         * lib/mkdir.c: Likewise.
35999         * lib/mkfifo.c: Likewise.
36000         * lib/mkfifoat.c: Likewise.
36001         * lib/mknod.c: Likewise.
36002         * lib/mknodat.c: Likewise.
36003         * lib/readlink.c: Likewise.
36004         * lib/se-context.in.h: Likewise.
36005         * lib/se-selinux.in.h: Likewise.
36006         * lib/sockets.c: Likewise.
36007         * lib/symlink.c: Likewise.
36008         * lib/symlinkat.c: Likewise.
36009         * lib/unicodeio.c: Likewise.
36010         * lib/unistr.h: Likewise.
36011         * tests/test-areadlink.c: Likewise.
36012         * tests/test-areadlinkat.c: Likewise.
36013         * tests/test-filenamecat.c: Likewise.
36014         * tests/test-fseeko.c: Likewise.
36015         * tests/test-ftello.c: Likewise.
36016         * tests/test-getdate.c: Likewise.
36017         * tests/test-getgroups.c: Likewise.
36018         * tests/test-gethostname.c: Likewise.
36019         * tests/test-quotearg.c: Likewise.
36020         * tests/test-version-etc.c: Likewise.
36021         * tests/test-xalloc-die.c: Likewise.
36022         * tests/test-xfprintf-posix.c: Likewise.
36023         * tests/test-xprintf-posix.c: Likewise.
36024         * tests/test-xvasprintf.c: Likewise.
36025
36026         tests: avoid compiler warnings
36027         * tests/test-fcntl.c (main): Delete unused parameters.
36028         * tests/test-freopen-safer.c (main): Likewise.
36029         * tests/test-xalloc-die.c (main): Mark unused parameters.
36030         * tests/test-fseeko.c (main): Likewise.
36031         * tests/test-ftello.c (main): Likewise.
36032         * tests/test-nanosleep.c (main): Avoid declaration warning.
36033         * tests/test-sleep.c (main): Likewise.
36034         * tests/test-unsetenv.c (main): Silence warning about string
36035         literal.
36036         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
36037
36038 2009-12-23  Bruno Haible  <bruno@clisp.org>
36039
36040         * tests/test-localename.c (test_locale_name): New function, extracted
36041         from main. Also test mixed situations.
36042         (test_locale_name_posix, test_locale_name_environ,
36043         test_locale_name_default): New functions.
36044         (main): Invoke them all.
36045         * modules/localename-tests (configure.ac): Test for newlocale.
36046
36047 2009-12-23  Bruno Haible  <bruno@clisp.org>
36048
36049         unistd: Ensure getcwd gets declared before being overridden.
36050         * lib/unistd.in.h: Conditionally include <io.h>.
36051
36052 2009-12-22  Bruno Haible  <bruno@clisp.org>
36053
36054         wchar: Diagnose broken combination of glibc and gcc versions and flags.
36055         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
36056         (gl_WCHAR_H): Invoke it.
36057         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
36058         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
36059         Reported by Karl Berry <karl@freefriends.org>.
36060
36061 2009-12-22  Eric Blake  <ebb9@byu.net>
36062
36063         math, unistd: avoid redundant includes
36064         * lib/math.in.h (isnan): No need to re-include <math.h>.
36065         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
36066
36067         getsubopt: work around cygwin bug
36068         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
36069         avoid conflicting with system getsubopt.
36070         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
36071         bug.
36072
36073         getopt: synchronize from glibc
36074         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
36075         parameter order.  Adjust all callers.
36076         (_getopt_internal_r, main): Adjust quoting in error messages.
36077         Drop considerations for outdated POSIX 1003.2 error message.
36078         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
36079         callers.
36080         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
36081
36082         test-getopt: test stderr behavior
36083         * modules/getopt-posix-tests (Depends-on): Add dup2.
36084         * tests/test-getopt.c (ASSERT): Avoid stderr.
36085         (main): Move stderr to a temporary file.
36086         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
36087         Instead, add parameter to inform caller if output occurred.
36088         (test_getopt): Adjust all existing tests to expect silence, and
36089         add new tests of leading ":".
36090         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
36091         glibc shortcomings with leading "-:" or "+:" in optstring.
36092         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
36093         Likewise.
36094         * doc/posix-functions/getopt.texi (getopt): Likewise.
36095
36096         test-getopt: enhance test
36097         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
36098         supports optind=0.
36099         * tests/test-getopt.c (OPTIND_MIN): Move...
36100         * tests/test-getopt.h (OPTIND_MIN): ...here.
36101         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
36102         Require that optind=0 works, since modern BSD supports it in
36103         addition to optreset, and since coreutils expects it.
36104         (test_getopt_long_only): New test.
36105         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
36106         glibc shortcomings with 'W;', and enforcement of optind=0.
36107         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
36108         Likewise.
36109
36110 2009-12-21  Bruno Haible  <bruno@clisp.org>
36111
36112         localename: Improvements for MacOS X and Cygwin.
36113         * lib/localename.h (gl_locale_name_environ): New declaration.
36114         * lib/localename.c (gl_locale_name_environ): New function, extracted from
36115         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
36116         (gl_locale_name_posix): Invoke it.
36117         (gl_locale_name_default): Add comments. Use Windows native API also on
36118         Cygwin.
36119
36120 2009-12-21  Bruno Haible  <bruno@clisp.org>
36121
36122         Update list of Win32 locale ids.
36123         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
36124         (LANG_SAMI): Renamed from LANG_SAAMI.
36125         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
36126         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
36127         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
36128         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
36129         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
36130         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
36131         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
36132         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
36133         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
36134         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
36135         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
36136         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
36137         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
36138         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
36139         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
36140         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
36141         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
36142         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
36143         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
36144         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
36145         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
36146         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
36147         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
36148         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
36149         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
36150         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
36151         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
36152         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
36153         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
36154         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
36155         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
36156         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
36157         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
36158         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
36159         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
36160         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
36161         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
36162         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
36163         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
36164         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
36165         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
36166         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
36167         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
36168         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
36169         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
36170         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
36171         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
36172         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
36173         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
36174         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
36175         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
36176         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
36177         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
36178         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
36179         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
36180         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
36181         Add more languages and countries for Sami, Sorbian. Add more countries
36182         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
36183         for Pashto. Change country for Syriac, Tswana.
36184
36185 2009-12-21  Eric Blake  <ebb9@byu.net>
36186
36187         test-utimens: avoid spurious failure
36188         * tests/test-chown.h (nap): Factor...
36189         * tests/nap.h: ...into new file.
36190         * tests/test-lchown.h (nap): Avoid duplication.
36191         * tests/test-utimens-common.h (nap): Use shared implementation,
36192         necessary on file systems with 1-second resolution.
36193         * modules/chown-tests (Files): Include new file.
36194         * modules/fdutimensat-tests (Files): Likewise.
36195         * modules/futimens-tests (Files): Likewise.
36196         * modules/lchown-tests (Files): Likewise.
36197         * modules/openat-tests (Files): Likewise.
36198         * modules/utimens-tests (Files): Likewise.
36199         * modules/utimensat-tests (Files): Likewise.
36200
36201 2009-12-19  Eric Blake  <ebb9@byu.net>
36202
36203         futimens, utimensat: work around Linux bug
36204         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
36205         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
36206         * lib/utimensat.c (rpl_utimensat): Work around it.
36207         * lib/futimens.c (rpl_futimens): Adjust comment.
36208
36209         utimens: work around Linux ctime bug
36210         * lib/utimens.c (detect_ctime_bug): New helper function.
36211         (update_timespec): Differentiate between workaround needed for
36212         this bug vs. what is needed for systems that lack utimensat.
36213         (fdutimens, lutimens): Work around bug.
36214
36215         utimens: check for ctime update
36216         * tests/test-utimens-common.h (check_ctime): Define.
36217         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
36218         * tests/test-futimens.h (test_futimens): Likewise.
36219         * tests/test-lutimens.h (test_lutimens): Likewise.
36220         * doc/posix-functions/futimens.texi (futimens): Document the bug.
36221         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
36222
36223 2009-12-19  Bruno Haible  <bruno@clisp.org>
36224
36225         dprintf-posix: Check against memory leak fixed on 2009-12-15.
36226         * tests/test-dprintf-posix2.sh: New file.
36227         * tests/test-dprintf-posix2.c: New file.
36228         * modules/dprintf-posix-tests (Files): Add them.
36229         (configure.ac): Check for getrlimit and setrlimit.
36230         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
36231
36232 2009-12-19  Bruno Haible  <bruno@clisp.org>
36233
36234         fprintf-posix: Check against memory leak fixed on 2009-12-15.
36235         * tests/test-fprintf-posix3.sh: New file.
36236         * tests/test-fprintf-posix3.c: New file.
36237         * modules/fprintf-posix-tests (Files): Add them.
36238         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
36239
36240 2009-12-19  Eric Blake  <ebb9@byu.net>
36241
36242         dirfd: fix prototype
36243         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
36244         * lib/dirfd.c (dirfd): Likewise.
36245
36246         canonicalize: reduce memory usage
36247         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
36248         allocation to size.
36249         Reported by Solar Designer <solar@openwall.com>.
36250
36251 2009-12-19  Bruno Haible  <bruno@clisp.org>
36252
36253         New module attribute 'Applicability'.
36254         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
36255         * gnulib-tool: New option --extract-applicability.
36256         (func_usage): Document it.
36257         (sed_extract_prog): Recognize it.
36258         (func_get_applicability): New function.
36259         (func_import): Generalize handling of 'link-warning' module.
36260         * modules/link-warning (Applicability): New section.
36261         * modules/arg-nonnull (Applicability): New section.
36262         Repoted by Simon Josefsson <simon@josefsson.org>.
36263
36264 2009-12-19  Bruno Haible  <bruno@clisp.org>
36265
36266         fflush: tweak
36267         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
36268         * lib/fseeko.c (rpl_fseeko): Likewise.
36269
36270 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
36271
36272         * lib/gl_list.h: Fix typo in comment.
36273
36274 2009-12-16  Eric Blake  <ebb9@byu.net>
36275
36276         fcntl: use to simplify other modules
36277         * modules/cloexec (Depends-on): Add fcntl.
36278         * modules/fchdir (Depends-on): Likewise.
36279         * modules/fd-safer-flag (Depends-on): Likewise.
36280         * modules/unistd-safer (Depends-on): Likewise.
36281         * modules/dup3 (configure.ac): Set module indicator.
36282         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
36283         missing.
36284         * lib/fchdir.c (_gl_register_dup): Fix comment.
36285         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
36286         * lib/dup-safer.c (dup_safer): Likewise.
36287         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
36288         * lib/dup3.c (dup3): Likewise.
36289         * tests/test-fchdir.c (main): Enhance test.
36290         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
36291
36292         fcntl: port portions of fcntl to mingw
36293         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
36294         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
36295         replacement for mingw.
36296         * modules/fcntl (Description): Update.
36297         (Depends-on): Add dup2.
36298         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
36299         * modules/fcntl-h (Makefile.am): Substitute it.
36300         * lib/fcntl.in.h (fcntl): Update declaration.
36301         (F_DUPFD, F_GETFD): New macros, when needed.
36302         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
36303         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
36304         * tests/test-fcntl.c (check_flags, main): Enhance test for items
36305         we now guarantee.
36306
36307         fcntl: work around cygwin bug in F_DUPFD
36308         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
36309         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
36310         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
36311         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
36312         * doc/posix-functions/fcntl.texi (fcntl): Document it.
36313
36314         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
36315         * modules/fcntl (Files): List new files.
36316         (configure.ac): Run a test.
36317         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
36318         * lib/fcntl.c (rpl_fcntl): Likewise.
36319         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
36320         (gl_FCNTL_H): Always replace fcntl.h.
36321         * modules/fcntl-h (Makefile.am): Substitute witnesses.
36322         * lib/fcntl.in.h (fcntl): Declare replacement.
36323         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
36324         needed, plus a witness.
36325         * doc/posix-functions/fcntl.texi (fcntl): Document this.
36326         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
36327         * tests/test-fcntl.c: New file.
36328         * modules/fcntl-tests: Likewise.
36329
36330         binary-io: avoid potential compilation warning
36331         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
36332         directives.
36333
36334         fflush: avoid compilation error on NetBSD
36335         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
36336         between off_t and fpos_t, since the latter is sometimes a struct.
36337         * lib/fseeko.c (rpl_fseeko): Likewise.
36338         Reported by Alexander Nasonov <alnsn@yandex.ru>.
36339
36340 2009-12-15  Eric Blake  <ebb9@byu.net>
36341
36342         fcntl-h, stdio, sys_ioctl: fix declarations
36343         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
36344         function must not take arguments.
36345         * lib/sys_ioctl.in.h (ioctl): Likewise.
36346         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
36347         (open): Add a link warning.
36348
36349 2009-12-15  Jim Meyering  <meyering@redhat.com>
36350
36351         areadlink, areadlink-with-size: relax license to LGPLv2+
36352         * modules/areadlink (License): Relax to LGPLv2+.
36353         * modules/areadlink-with-size (License): Likewise.
36354
36355 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
36356             Bruno Haible  <bruno@clisp.org>
36357
36358         *printf: Fix memory leak.
36359         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
36360         * lib/vfprintf.c (vfprintf): Likewise.
36361         * lib/dprintf.c (dprintf): Likewise.
36362         * lib/vdprintf.c (vdprintf): Likewise.
36363
36364 2009-12-14  Eric Blake  <ebb9@byu.net>
36365
36366         accept4: adjust module dependencies
36367         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
36368
36369         utimens: one more try at avoiding compiler warning
36370         * lib/utimens.c (lutimens): Lower scope of result.
36371
36372 2009-12-13  Bruno Haible  <bruno@clisp.org>
36373
36374         Move the malloc checking from module 'list' to new module 'xlist'.
36375         * modules/xlist: New file.
36376         * lib/gl_xlist.h: New file.
36377         * lib/gl_xlist.c: New file.
36378         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
36379         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
36380         gl_list_add_last, gl_list_add_before, gl_list_add_after,
36381         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
36382         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
36383         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
36384         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
36385         gl_sortedlist_nx_add): New declarations.
36386         (struct gl_list_implementation): Rename and change methods accordingly.
36387         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
36388         (gl_list_nx_create): Renamed from gl_list_create.
36389         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
36390         (gl_list_nx_set_at): Renamed from gl_list_set_at.
36391         (gl_list_nx_add_first): Renamed from gl_list_add_first.
36392         (gl_list_nx_add_last): Renamed from gl_list_add_last.
36393         (gl_list_nx_add_before): Renamed from gl_list_add_before.
36394         (gl_list_nx_add_after): Renamed from gl_list_add_after.
36395         (gl_list_nx_add_at): Renamed from gl_list_add_at.
36396         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
36397         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
36398         gl_list_create_empty.
36399         (gl_list_nx_create): Renamed from gl_list_create.
36400         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
36401         (gl_list_nx_set_at): Renamed from gl_list_set_at.
36402         (gl_list_nx_add_first): Renamed from gl_list_add_first.
36403         (gl_list_nx_add_last): Renamed from gl_list_add_last.
36404         (gl_list_nx_add_before): Renamed from gl_list_add_before.
36405         (gl_list_nx_add_after): Renamed from gl_list_add_after.
36406         (gl_list_nx_add_at): Renamed from gl_list_add_at.
36407         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
36408         * lib/gl_array_list.c: Don't include xalloc.h.
36409         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
36410         NULL upon out-of-memory.
36411         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
36412         out-of-memory.
36413         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
36414         Change return type to 'int'.
36415         (gl_array_nx_set_at): Renamed from gl_array_set_at.
36416         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
36417         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
36418         upon out-of-memory.
36419         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
36420         upon out-of-memory.
36421         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
36422         upon out-of-memory.
36423         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
36424         upon out-of-memory.
36425         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
36426         out-of-memory.
36427         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
36428         Update.
36429         (gl_array_list_implementation): Update.
36430         * lib/gl_carray_list.c: Don't include xalloc.h.
36431         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
36432         Return NULL upon out-of-memory.
36433         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
36434         out-of-memory.
36435         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
36436         Change return type to 'int'.
36437         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
36438         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
36439         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
36440         upon out-of-memory.
36441         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
36442         upon out-of-memory.
36443         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
36444         out-of-memory.
36445         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
36446         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
36447         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
36448         Update.
36449         (gl_carray_list_implementation): Update.
36450         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
36451         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
36452         gl_linked_create_empty. Return NULL upon out-of-memory.
36453         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
36454         out-of-memory.
36455         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
36456         Change return type to 'int'. Return -1 upon out-of-memory.
36457         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
36458         out-of-memory.
36459         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
36460         upon out-of-memory.
36461         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
36462         upon out-of-memory.
36463         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
36464         NULL upon out-of-memory.
36465         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
36466         upon out-of-memory.
36467         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
36468         out-of-memory.
36469         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
36470         Update.
36471         * lib/gl_linked_list.c: Don't include xalloc.h.
36472         (gl_linked_list_implementation): Update.
36473         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
36474         (add_to_bucket): Change return type to 'int'.
36475         (gl_linkedhash_list_implementation): Update.
36476         * lib/gl_anytree_list1.h (free_subtree): New function.
36477         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
36478         gl_tree_create_empty. Return NULL upon out-of-memory.
36479         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
36480         Change return type to 'int'. Return -1 upon out-of-memory.
36481         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
36482         out-of-memory.
36483         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
36484         (gl_tree_remove_node): New function, moved here from
36485         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
36486         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
36487         Update.
36488         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
36489         malloc, not xmalloc. Return NULL upon out-of-memory.
36490         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
36491         out-of-memory.
36492         (gl_tree_remove_node_from_tree): New function, extracted from
36493         gl_tree_remove_node.
36494         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
36495         upon out-of-memory.
36496         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
36497         out-of-memory.
36498         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
36499         upon out-of-memory.
36500         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
36501         upon out-of-memory.
36502         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
36503         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
36504         not xmalloc. Return NULL upon out-of-memory.
36505         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
36506         out-of-memory.
36507         (gl_tree_remove_node_from_tree): New function, extracted from
36508         gl_tree_remove_node.
36509         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
36510         upon out-of-memory.
36511         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
36512         out-of-memory.
36513         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
36514         upon out-of-memory.
36515         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
36516         upon out-of-memory.
36517         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
36518         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
36519         gl_anytree_list1.h before gl_anyavltree_list2.h.
36520         (gl_avltree_list_implementation): Update.
36521         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
36522         gl_anytree_list1.h before gl_anyavltree_list2.h.
36523         (gl_rbtree_list_implementation): Update.
36524         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
36525         Change return type to 'int'. Return -1 upon out-of-memory. Use
36526         __builtin_expect.
36527         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
36528         (gl_avltreehash_list_implementation): Update.
36529         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
36530         (gl_rbtreehash_list_implementation): Update.
36531         * modules/array-list (Depends-on): Remove xalloc.
36532         * modules/carray-list (Depends-on): Likewise.
36533         * modules/linked-list (Depends-on): Likewise.
36534         * modules/linkedhash-list (Depends-on): Likewise.
36535         * modules/avltree-list (Depends-on): Likewise.
36536         * modules/rbtree-list (Depends-on): Likewise.
36537         * modules/avltreehash-list (Depends-on): Likewise.
36538         * modules/rbtreehash-list (Depends-on): Likewise.
36539
36540         * modules/xsublist: New file.
36541         * lib/gl_xsublist.h: New file.
36542         * lib/gl_xsublist.c: New file.
36543         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
36544         (gl_sublist_nx_create): New declaration.
36545         * lib/gl_sublist.c: Don't include xalloc.h.
36546         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
36547         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
36548         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
36549         Change return type to 'int'. Return -1 upon out-of-memory.
36550         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
36551         upon out-of-memory.
36552         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
36553         NULL upon out-of-memory.
36554         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
36555         upon out-of-memory.
36556         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
36557         NULL upon out-of-memory.
36558         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
36559         NULL upon out-of-memory.
36560         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
36561         upon out-of-memory.
36562         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
36563         (gl_sublist_list_implementation): Update.
36564         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
36565         upon out-of-memory.
36566         * modules/sublist (Depends-on): Remove xalloc.
36567
36568         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
36569         * tests/test-carray_list.c: Likewise.
36570         * tests/test-linked_list.c: Likewise.
36571         * tests/test-linkedhash_list.c: Likewise.
36572         * tests/test-avltree_list.c: Likewise.
36573         * tests/test-rbtree_list.c: Likewise.
36574         * tests/test-avltreehash_list.c: Likewise.
36575         * tests/test-rbtreehash_list.c: Likewise.
36576         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
36577         * modules/carray-list-tests (Makefile.am): Likewise.
36578         * modules/linked-list-tests (Makefile.am): Likewise.
36579         * modules/linkedhash-list-tests (Makefile.am): Likewise.
36580         * modules/avltree-list-tests (Makefile.am): Likewise.
36581         * modules/rbtree-list-tests (Makefile.am): Likewise.
36582         * modules/avltreehash-list-tests (Makefile.am): Likewise.
36583         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
36584
36585         * NEWS: Mention the changes.
36586
36587         * lib/clean-temp.c: Include gl_xlist.h.
36588         * modules/clean-temp (Depends-on): Add xlist.
36589
36590         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
36591         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
36592
36593         * tests/test-array_oset.c: Include gl_xlist.h.
36594         * modules/array-oset-tests (Depends-on): Add xlist.
36595
36596         Reported by José E. Marchesi <jemarch@gnu.org>.
36597
36598 2009-12-13  Bruno Haible  <bruno@clisp.org>
36599
36600         Move the malloc checking from module 'oset' to new module 'xoset'.
36601         * modules/xoset: New file.
36602         * lib/gl_xoset.h: New file.
36603         * lib/gl_xoset.c: New file.
36604         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
36605         declarations.
36606         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
36607         (struct gl_oset_implementation): Rename and change methods accordingly.
36608         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
36609         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
36610         'int'. Mark as __warn_unused_result__.
36611         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
36612         gl_oset_create_empty.
36613         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
36614         'int'.
36615         * lib/gl_array_oset.c: Don't include xalloc.h.
36616         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
36617         malloc, not xmalloc.
36618         (grow): Change return type to 'int'. Don't call xalloc_die.
36619         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
36620         to 'int'.
36621         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
36622         'int'.
36623         (gl_array_oset_implementation): Update.
36624         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
36625         gl_tree_create_empty.
36626         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
36627         'int'.
36628         * lib/gl_avltree_oset.c: Don't include xalloc.h.
36629         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
36630         xmalloc.
36631         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
36632         not xmalloc.
36633         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
36634         xmalloc.
36635         (gl_avltree_oset_implementation): Update.
36636         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
36637         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
36638         xmalloc.
36639         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
36640         not xmalloc.
36641         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
36642         xmalloc.
36643         (gl_rbtree_oset_implementation): Update.
36644         * modules/array-oset (Depends-on): Remove xalloc.
36645         * modules/avltree-oset (Depends-on): Likewise.
36646         * modules/rbtree-oset (Depends-on): Likewise.
36647         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
36648         * tests/test-avltree_oset.c: Likewise.
36649         * tests/test-rbtree_oset.c: Likewise.
36650         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
36651         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
36652         * modules/rbtree-oset-tests (Makefile.am): Likewise.
36653         * NEWS: Mention the change.
36654
36655 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
36656
36657         maint.mk: allow a project to override release-prep commands
36658         * top/maint.mk (alpha, beta, stable): Move release-preparatory
36659         commands into a new rule.
36660         (release-prep): New rule.
36661         (release-prep-hook): New overridable variable.
36662
36663 2009-12-13  Bruno Haible  <bruno@clisp.org>
36664
36665         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
36666
36667 2009-12-13  Jim Meyering  <meyering@redhat.com>
36668
36669         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
36670         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
36671
36672 2009-12-12  Bruno Haible  <bruno@clisp.org>
36673
36674         duplocale: Tweak.
36675         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
36676
36677 2009-12-12  Karl Berry  <karl@gnu.org>
36678
36679         * config/srclist.txt (strtoll.c): tab changes, no more sync.
36680
36681 2009-12-12  Bruno Haible  <bruno@clisp.org>
36682
36683         * m4/po.m4: Undo incorrect untabification.
36684
36685 2009-12-12  Bruno Haible  <bruno@clisp.org>
36686
36687         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
36688         * modules/c-strtod (Depends-on): Add locale.
36689         * modules/c-strtold (Depends-on): Likewise.
36690
36691 2009-12-12  Bruno Haible  <bruno@clisp.org>
36692
36693         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
36694
36695 2009-12-11  Eric Blake  <ebb9@byu.net>
36696
36697         setenv: relax requirement in light of POSIX ruling
36698         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
36699         not NULL.
36700         * tests/test-setenv.c (main): Relax test.
36701         * tests/test-unsetenv.c (main): Likewise.
36702         * doc/posix-functions/setenv.texi (setenv): Document this.
36703         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
36704
36705 2009-12-11  Bruno Haible  <bruno@clisp.org>
36706
36707         New module 'fd-safer-flag'.
36708         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
36709         * lib/dup-safer.c (dup_safer_flag): Remove function.
36710         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
36711         * lib/fd-safer.c (fd_safer_flag): Remove function.
36712         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
36713         * modules/cloexec (configure.ac): Drop indicator macro.
36714         * modules/fd-safer-flag: New file.
36715         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
36716         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
36717         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
36718
36719 2009-12-11  Bruno Haible  <bruno@clisp.org>
36720
36721         Tests for module 'nl_langinfo'.
36722         * modules/nl_langinfo-tests: New file.
36723         * tests/test-nl_langinfo.sh: New file.
36724         * tests/test-nl_langinfo.c: New file.
36725
36726         New module 'nl_langinfo'.
36727         * lib/nl_langinfo.c: New file.
36728         * m4/nl_langinfo.m4: New file.
36729         * modules/nl_langinfo: New file.
36730         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
36731
36732 2009-12-11  Bruno Haible  <bruno@clisp.org>
36733
36734         Tests for module 'langinfo'.
36735         * modules/langinfo-tests: New file.
36736         * tests/test-langinfo.c: New file.
36737
36738         New module 'langinfo'.
36739         * lib/langinfo.in.h: New file.
36740         * m4/langinfo_h.m4: New file.
36741         * modules/langinfo: New file.
36742         * doc/posix-headers/langinfo.texi: Mention the new module.
36743
36744 2009-12-11  Bruno Haible  <bruno@clisp.org>
36745
36746         * lib/config.charset: Untabify.
36747
36748 2009-12-11  Bruno Haible  <bruno@clisp.org>
36749
36750         * modules/unistd-safer (configure.ac): Drop indicator macro.
36751
36752 2009-12-11  Bruno Haible  <bruno@clisp.org>
36753
36754         Move pipe2-safer code to its own file.
36755         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
36756         * lib/pipe-safer.c (pipe2_safer): Remove function.
36757         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
36758         (Makefile.am): Add it to lib_SOURCES.
36759
36760 2009-12-10  Bruno Haible  <bruno@clisp.org>
36761
36762         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
36763
36764 2009-12-10  Bruno Haible  <bruno@clisp.org>
36765
36766         Declare which arguments expect non-NULL values, for GCC and clang.
36767         * build-aux/arg-nonnull.h: New file.
36768         * modules/arg-nonnull: New file.
36769         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
36770         (inet_ntop, inet_pton): Use it.
36771         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
36772         (closedir, dirfd, opendir, scandir, alphasort): Use it.
36773         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
36774         (open, openat): Use it.
36775         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
36776         (fnmatch): Use it.
36777         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
36778         (getopt, getopt_long, getopt_long_only): Use it.
36779         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
36780         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
36781         Use it.
36782         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
36783         (iconv_open): Use it.
36784         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
36785         (strtoimax, strtoumax): Use it.
36786         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
36787         (duplocale): Use it.
36788         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
36789         (frexp, frexpl): Use it.
36790         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
36791         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
36792         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
36793         (tsearch, tfind, tdelete, twalk): Use it.
36794         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
36795         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
36796         sigpending): Use it.
36797         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
36798         (posix_spawn, posix_spawnp, posix_spawnattr_init,
36799         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
36800         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
36801         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
36802         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
36803         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
36804         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
36805         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
36806         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
36807         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
36808         Use it.
36809         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
36810         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
36811         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
36812         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
36813         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
36814         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
36815         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
36816         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
36817         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
36818         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
36819         strtoull, unsetenv): Use it.
36820         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
36821         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
36822         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
36823         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
36824         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
36825         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
36826         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
36827         (strcasecmp, strncasecmp): Use it.
36828         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
36829         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
36830         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
36831         rpl_setsockopt): Use it.
36832         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
36833         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
36834         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
36835         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
36836         (gettimeofday): Use it.
36837         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
36838         (times): Use it.
36839         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
36840         (uname): Use it.
36841         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
36842         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
36843         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
36844         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
36845         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
36846         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
36847         unlinkat, write): Use it.
36848         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
36849         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
36850         * lib/argv-iter.h: Include arg-nonnull.h.
36851         (_ATTRIBUTE_NONNULL_): Remove macro.
36852         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
36853         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
36854         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
36855         optimization.
36856         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
36857         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
36858         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
36859         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
36860         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
36861         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
36862         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
36863         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
36864         * modules/arpa_inet (Depends-on): Add arg-nonnull.
36865         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
36866         * modules/dirent (Depends-on): Add arg-nonnull.
36867         (Makefile.am): Insert arg-nonnull.h into dirent.h.
36868         * modules/fcntl-h (Depends-on): Add arg-nonnull.
36869         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
36870         * modules/fnmatch (Depends-on): Add arg-nonnull.
36871         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
36872         * modules/getopt-posix (Depends-on): Add arg-nonnull.
36873         (Makefile.am): Insert arg-nonnull.h into getopt.h.
36874         * modules/glob (Depends-on): Add arg-nonnull.
36875         (Makefile.am): Insert arg-nonnull.h into glob.h.
36876         * modules/iconv_open (Depends-on): Add arg-nonnull.
36877         (Makefile.am): Insert arg-nonnull.h into iconv.h.
36878         * modules/inttypes (Depends-on): Add arg-nonnull.
36879         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
36880         * modules/locale (Depends-on): Add arg-nonnull.
36881         (Makefile.am): Insert arg-nonnull.h into locale.h.
36882         * modules/math (Depends-on): Add arg-nonnull.
36883         (Makefile.am): Insert arg-nonnull.h into math.h.
36884         * modules/netdb (Depends-on): Add arg-nonnull.
36885         (Makefile.am): Insert arg-nonnull.h into netdb.h.
36886         * modules/search (Depends-on): Add arg-nonnull.
36887         (Makefile.am): Insert arg-nonnull.h into search.h.
36888         * modules/signal (Depends-on): Add arg-nonnull.
36889         (Makefile.am): Insert arg-nonnull.h into signal.h.
36890         * modules/spawn (Depends-on): Add arg-nonnull.
36891         (Makefile.am): Insert arg-nonnull.h into spawn.h.
36892         * modules/stdio (Depends-on): Add arg-nonnull.
36893         (Makefile.am): Insert arg-nonnull.h into stdio.h.
36894         * modules/stdlib (Depends-on): Add arg-nonnull.
36895         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
36896         * modules/string (Depends-on): Add arg-nonnull.
36897         (Makefile.am): Insert arg-nonnull.h into string.h.
36898         * modules/strings (Depends-on): Add arg-nonnull.
36899         (Makefile.am): Insert arg-nonnull.h into strings.h.
36900         * modules/sys_socket (Depends-on): Add arg-nonnull.
36901         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
36902         * modules/sys_stat (Depends-on): Add arg-nonnull.
36903         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
36904         * modules/sys_time (Depends-on): Add arg-nonnull.
36905         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
36906         * modules/sys_times (Depends-on): Add arg-nonnull.
36907         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
36908         * modules/sys_utsname (Depends-on): Add arg-nonnull.
36909         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
36910         * modules/time (Depends-on): Add arg-nonnull.
36911         (Makefile.am): Insert arg-nonnull.h into time.h.
36912         * modules/unistd (Depends-on): Add arg-nonnull.
36913         (Makefile.am): Insert arg-nonnull.h into unistd.h.
36914         * modules/wchar (Depends-on): Add arg-nonnull.
36915         (Makefile.am): Insert arg-nonnull.h into wchar.h.
36916         * modules/argv-iter (Depends-on): Add arg-nonnull.
36917         * tests/test-canonicalize.c (null_ptr): New function.
36918         (main): Use it.
36919         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
36920         (main): Use it.
36921         * tests/test-memmem.c (null_ptr): New function.
36922         (main): Use it.
36923         Reported by Jim Meyering.
36924
36925 2009-12-10  Bruno Haible  <bruno@clisp.org>
36926
36927         Use spaces for indentation, not tabs.
36928         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
36929         * m4/*.m4: Untabify.
36930         * build-aux/*.h: Untabify.
36931         * tests/**/*.[hc]: Untabify.
36932         * README: New section "Indent with spaces, not TABs", based on
36933         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
36934         * NEWS: Mention the change.
36935
36936 2009-12-10  Bruno Haible  <bruno@clisp.org>
36937
36938         pty test: Fix link error.
36939         * modules/pty-tests (Makefile.am): Add the default LDADD value to
36940         test_pty_LDADD.
36941
36942 2009-12-07  Simon Josefsson  <simon@josefsson.org>
36943
36944         * modules/pty: New file.
36945         * modules/pty-tests: New file.
36946         * m4/pty.m4: New file.
36947         * tests/test-pty.c: New file.
36948         * doc/glibc-headers/pty.texi: Modified.
36949         * doc/glibc-functions/forkpty.texi: Modified.
36950         * doc/glibc-functions/openpty.texi: Modified.
36951
36952 2009-12-10  Bruno Haible  <bruno@clisp.org>
36953
36954         Avoid syntax error in C++ mode.
36955         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
36956
36957 2009-12-10  Bruno Haible  <bruno@clisp.org>
36958
36959         Use sed with option -e.
36960         * gnulib-tool (func_version, func_emit_copyright_notice,
36961         func_emit_initmacro_end, func_import, func_create_testdir): Pass
36962         option -e to sed.
36963         * modules/link-warning (Makefile.am): Likewise.
36964
36965 2009-12-10  Jim Meyering  <meyering@redhat.com>
36966
36967         mgetgroups: do not write bytes beyond end of malloc'd buffer
36968         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
36969         username, we call getgroups with a one-element-shorter buffer,
36970         but still told it the length was original, max_n_groups.
36971
36972 2009-12-09  Eric Blake  <ebb9@byu.net>
36973
36974         cloexec: relax license
36975         * modules/cloexec (Maintainer): Add myself.
36976         (License): Use LGPL, not GPL.
36977
36978         link-warning: optimize generation
36979         * modules/link-warning (Makefile.am): Reduce process usage.
36980
36981 2009-12-09  Bruno Haible  <bruno@clisp.org>
36982
36983         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
36984         workaround was added on 2009-11-17.
36985
36986 2009-12-09  Jim Meyering  <meyering@redhat.com>
36987             Bruno Haible  <bruno@clisp.org>
36988
36989         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
36990         * modules/link-warning (Makefile.am): Make the comment-removing sed
36991         command more robust in the face of bootstrap-prepended comment lines.
36992
36993 2009-12-09  Bruno Haible  <bruno@clisp.org>
36994
36995         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
36996         most one group.
36997
36998 2009-12-09  Simon Josefsson <simon@josefsson.org>
36999             Bruno Haible  <bruno@clisp.org>
37000
37001         * build-aux/link-warning.h: Add copyright notice.
37002         * modules/link-warning (Makefile.am): Generate link-warning.h from
37003         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
37004         * NEWS: Mention change in link-warning module.
37005         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
37006         * modules/dirent (Makefile.am): Add dependency to dirent.h.
37007         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
37008         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
37009         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
37010         * modules/math (Makefile.am): Add dependency to math.h.
37011         * modules/search (Makefile.am): Add dependency to search.h.
37012         * modules/signal (Makefile.am): Add dependency to signal.h.
37013         * modules/spawn (Makefile.am): Add dependency to spawn.h.
37014         * modules/stdio (Makefile.am): Add dependency to stdio.h.
37015         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
37016         * modules/string (Makefile.am): Add dependency to string.h.
37017         * modules/strings (Makefile.am): Add dependency to strings.h.
37018         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
37019         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
37020         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
37021         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
37022         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
37023         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
37024         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
37025         * modules/unistd (Makefile.am): Add dependency to unistd.h.
37026         * modules/wchar (Makefile.am): Add dependency to wchar.h.
37027
37028 2009-12-09  Bruno Haible  <bruno@clisp.org>
37029
37030         fchdir: Optimize away rpl_fstat when possible.
37031         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
37032         REPLACE_OPEN_DIRECTORY.
37033         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
37034
37035 2009-12-09  Bruno Haible  <bruno@clisp.org>
37036
37037         * lib/fchdir.c: Update comment.
37038
37039 2009-12-09  Bruno Haible  <bruno@clisp.org>
37040
37041         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
37042
37043 2009-12-08  Eric Blake  <ebb9@byu.net>
37044
37045         fchdir: avoid memory leak on re-registration.
37046         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
37047
37048 2009-12-08  Jim Meyering  <meyering@redhat.com>
37049
37050         init.sh: avoid Solaris 10 /bin/sh portability problem
37051         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
37052         sourced script:
37053           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
37054           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
37055           bar
37056         tests/init.sh relied on that, accepting a --set-path=DIR argument,
37057         and two tests used that idiom.
37058         * tests/init.sh: Update suggested usage comments.
37059         (path_prepend_): New function, to be used in place
37060         of the --src-path=DIR option.
37061         (setup_): Move PATH-prepending code into path_prepend_.
37062         * tests/test-pread.sh: Adapt to new usage.
37063         * tests/test-xalloc-die.sh: Likewise.
37064
37065 2009-12-08  Simon Josefsson  <simon@josefsson.org>
37066
37067         * doc/gnulib.texi (Glibc pty.h): Add.
37068         * doc/glibc-functions/forkpty.texi: Add.
37069         * doc/glibc-functions/openpty.texi: Add.
37070         Suggested by Bruno Haible.
37071
37072 2009-12-08  Eric Blake  <ebb9@byu.net>
37073
37074         fchdir: fix logic bugs
37075         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
37076         * tests/test-fchdir.c (main): Enhance test.
37077         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
37078         is in use.
37079
37080         dup2: fix logic bugs
37081         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
37082         REPLACE_DUP2 to decide when rpl_dup2 is needed.
37083         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
37084         exists.
37085         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
37086
37087 2009-12-07  Eric Blake  <ebb9@byu.net>
37088
37089         unlink: fix m4 detection
37090         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
37091
37092         unistd-safer: add unit test
37093         * modules/unistd-safer-tests: New file.
37094         * tests/test-dup-safer.c: Likewise.
37095         * tests/test-cloexec.c (setmode): Avoid compiler warning.
37096         * tests/test-dup2.c (setmode): Likewise.
37097         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
37098
37099         cloexec: preserve text vs. binary across dup_cloexec
37100         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
37101         mode.
37102         * modules/dup2-tests (Depends-on): Add binary-io.
37103         * modules/cloexec-tests (Depends-on): Likewise.
37104         * tests/test-dup2.c (setmode, is_mode): New helpers.
37105         (main): Add tests that translation mode is preserved.
37106         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
37107         Reported by Bruno Haible.
37108
37109         mgetgroups: reduce duplicate listings
37110         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
37111         resulting array.
37112         * tests/test-chown.h (test_chown): Simplify client.
37113         * tests/test-lchown.h (test_lchown): Likewise.
37114
37115 2009-12-06  Bruno Haible  <bruno@clisp.org>
37116
37117         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
37118         value.
37119
37120 2009-12-06  Bruno Haible  <bruno@clisp.org>
37121
37122         * lib/progname.c: Include stdio.h, stdlib.h.
37123         (set_program_name): Reject a NULL argument.
37124
37125 2009-12-05  Eric Blake  <ebb9@byu.net>
37126
37127         pipe2-safer: new module
37128         * modules/pipe2-safer: New file.
37129         * lib/unistd-safer.h (pipe2_safer): New prototype.
37130         * lib/unistd--.h (pipe2): New wrapper.
37131         * lib/pipe-safer.c (pipe2_safer): New function.
37132         * modules/pipe (Depends-on): Add pipe2-safer.
37133         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
37134
37135         stdlib-safer: preserve cloexec flag for mkostemp[s]
37136         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
37137         fd_safer_flag.
37138
37139         unistd-safer: allow preservation of cloexec status via flag
37140         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
37141         prototypes.
37142         * lib/dup-safer.c (dup_safer_flag): New function.
37143         * lib/fd-safer.c (fd_safer_flag): Likewise.
37144         * modules/cloexec (configure.ac): Set witness.
37145
37146         test-dup2: enhance test
37147         * modules/dup2-tests (Depends-on): Add cloexec.
37148         * tests/test-dup2.c (main): Enhance test.
37149
37150         cloexec: add dup_cloexec
37151         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
37152         header and comments.
37153         * lib/cloexec.c (set_cloexec_flag): Add comments.
37154         (dup_cloexec): New function, with mingw implementation borrowed
37155         from...
37156         * lib/w32spawn.h (dup_noinherit): ...here.
37157         * modules/execute (Depends-on): Add cloexec.
37158         * modules/pipe (Depends-on): Likewise.
37159         * modules/cloexec (Depends-on): Add dup2.
37160         * modules/cloexec-tests (Files): New file.
37161         * tests/test-cloexec.c: Likewise.
37162
37163         test-xalloc-die: fix test for mingw
37164         * modules/xalloc-die-tests (Files): Add tests/init.sh.
37165         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
37166         directory and .exe suffix off argv[0] output.
37167
37168         test-fseeko: fix test for mingw
37169         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
37170         than undefining fseek, so test will pass on mingw.
37171
37172 2009-12-05  Bruno Haible  <bruno@clisp.org>
37173
37174         * lib/progname.h (set_program_name): Clarify specification.
37175         * lib/progname.c (set_program_name): Likewise.
37176         Reported by Jim Meyering.
37177
37178 2009-12-05  Jim Meyering  <meyering@redhat.com>
37179
37180         maint.mk: backslash-escape parens in default regexp
37181         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
37182         backslash-escape the literal parentheses.
37183
37184         maint.mk: news-date-check: use grep -E
37185         * top/maint.mk (today): Define a Make variable, not a...
37186         (news-date-check): ...shell variable.
37187         (news-date-regexp): Use the Make variable.
37188         Use grep's -E option.  Change the failing diagnostic to mention
37189         the variable, $(news-date-regexp).
37190
37191 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
37192
37193         maintainer-makefile: allow customization of NEWS entry format
37194         * top/maint.mk (news-date-regexp): New overridable variable.
37195         (news-date-check): Use it.
37196
37197 2009-12-04  Eric Blake  <ebb9@byu.net>
37198
37199         mgetgroups: add xgetgroups, and avoid ENOSYS failures
37200         * lib/mgetgroups.h (xgetgroups): New prototype.
37201         * lib/mgetgroups.c (xgetgroups): New wrapper.
37202         (mgetgroups): Handle ENOSYS.
37203         * modules/mgetgroups (Depends-on): Add realloc.
37204         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
37205
37206         mgetgroups: avoid argument promotion issues with -1
37207         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
37208         for invalid gid_t.
37209         * tests/test-chown.h (getegid, test_chown): Likewise.
37210         * tests/test-lchown.h (getegid, test_lchown): Likewise.
37211
37212 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
37213
37214         exclude: Fix header file problems.
37215         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
37216
37217 2009-12-01  Jim Meyering  <meyering@redhat.com>
37218
37219         fts: fts_open: do not let an empty string cause immediate failure
37220         This is required in support of GNU rm, for which the command
37221         "rm A '' B" must process and remove both A and B, in spite of
37222         the empty string argument.
37223         * lib/fts.c (fts_open): Do not let the presence of an empty string
37224         cause fts_open to fail immediately.  Most fts-using tools must be
37225         able to process all arguments, in order, and can be expected to
37226         diagnose such arguments themselves.
37227
37228 2009-11-30  Eric Blake  <ebb9@byu.net>
37229
37230         utimens: fix compilation error
37231         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
37232         Declare variable at right scope.
37233
37234 2009-11-29  Jim Meyering  <meyering@redhat.com>
37235
37236         bootstrap: handle perl-5.11's changed --version output
37237         * build-aux/bootstrap (get_version): Handle perl separately,
37238         since perl-5.11's --version output is different.
37239
37240 2009-11-28  Jim Meyering  <meyering@redhat.com>
37241
37242         userspec: depend on the inttostr module, too
37243         * modules/userspec (Depends-on): Add inttostr.
37244
37245         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
37246         * lib/userspec.c (parse_with_separator): Do not accept a user ID
37247         number of MAXUID when it evaluates to (uid_t) -1.
37248         Likewise for group ID.  Reported by Matt McCutchen in
37249         <http://savannah.gnu.org/bugs/?28113>
37250
37251         userspec: reformat to use spaces, not TABs
37252         * lib/userspec.c: Expand TABs to spaces.
37253         Add Emacs' "indent-tabs-mode: nil" hint.
37254
37255 2009-11-27  Eric Blake  <ebb9@byu.net>
37256
37257         getopt-gnu: flush out another BSD bug
37258         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
37259         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
37260         flush out BSD bug.
37261         * tests/test-getopt.h (test_getopt): End lists with NULL.
37262         * tests/test-getopt_long.h (test_getopt_long): Likewise.
37263         (test_getopt_long_posix): Enhance test.
37264         * modules/getopt-posix-tests (Depends-on): Add stdbool.
37265         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
37266         getopt-gnu.
37267         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
37268         Likewise.
37269
37270 2009-11-27  Simon Josefsson  <simon@josefsson.org>
37271
37272         * modules/idpriv-droptemp-tests (Notice): Fix text.
37273
37274 2009-11-27  Jim Meyering  <meyering@redhat.com>
37275
37276         test-xalloc-die: avoid spurious failure due to libtool argv difference
37277         In a libtool-enabled project, this test would fail due to a difference
37278         in the emitted program name, e.g.,
37279         -test-xalloc-die: memory exhausted
37280         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
37281         Use program to avoid that.
37282         * modules/xalloc-die-tests (Depends-on): Add progname.
37283         * tests/test-xalloc-die.c: Include progname.h".
37284         (program_name): Remove decl.
37285         (main): Call set_program_name.
37286         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
37287
37288 2009-11-26  Richard Jones  <rjones@redhat.com>
37289
37290         w32sock: leave win32 error in place.
37291         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
37292
37293 2009-11-26  Eric Blake  <ebb9@byu.net>
37294
37295         init.sh: suggest to use skip_ and fail_ functions in comments
37296         * tests/init.sh: Add a sentence.
37297
37298 2009-11-25  Bruno Haible  <bruno@clisp.org>
37299
37300         init.sh: add documentation in comments
37301         * tests/init.sh: Add some developer and user documentation.
37302
37303 2009-11-26  Jim Meyering  <meyering@redhat.com>
37304
37305         init.sh: accommodate even those who specify bogus srcdir manually
37306         * tests/init.sh: Normally, srcdir is guaranteed by automake and
37307         configure-time tests to be sanitized, so that there is no need to
37308         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
37309         (with no double quotes) suffices.  However, since tests may be
37310         invoked manually, and since you may explicitly set srcdir to the
37311         name of a directory containing spaces, do quote its uses here.
37312         * tests/test-pread.sh: Likewise.
37313         Suggested by Bruno Haible.
37314
37315         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
37316         * tests/test-pread.sh: Write no data into the pipe, because
37317         test-pread actually reads none.  This avoids a diagnostic,
37318         "bash: echo: write error: Broken pipe", that arises in the unusual
37319         event something is ignoring SIGPIPE, and might be interpreted
37320         as some sort of failure.  Reported by Bruno Haible.
37321
37322 2009-11-25  Jim Meyering  <meyering@redhat.com>
37323
37324         test-pread: cover failure with ESPIPE and EINVAL
37325         * tests/test-pread.c (main): Test for failure, too.
37326         * tests/test-pread.sh: Invoke with stdin on a pipe.
37327         Suggested by Eric Blake.
37328
37329         pread: improvement and fix
37330         * modules/pread (Depends-on): Depend on lseek, for portability to
37331         e.g., mingw.  Suggested by Eric Blake.
37332         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
37333
37334         unistd.in.h: correct declaration of pread
37335         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
37336         Reported by Richard W.M. Jones.
37337
37338         test-pread.sh: distribute the test script
37339         * modules/pread-tests (Files): Include test-pread.sh.
37340
37341         test-pread.sh: clean up
37342         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
37343         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
37344         That is unnecessary, since it's always ".".
37345         Suggestion from Eric Blake.
37346
37347         test-pread.sh: make executable
37348         * tests/test-pread.sh: Set executable bit.
37349         Reported by Eric Blake.
37350
37351         correct typo in test-pread.sh
37352         * tests/test-pread.sh: Add #! line.
37353
37354         test pread
37355         * tests/test-pread.c: New file.
37356         * tests/test-pread.sh: Likewise.
37357         * modules/pread-tests: Likewise.
37358
37359         pread: new module
37360         * modules/pread: New file.
37361         * lib/unistd.in.h (pread): Define/declare.
37362         * lib/pread.c (pread): New file.
37363         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
37364         * modules/unistd (Makefile.am): Substitute witnesses.
37365         * doc/posix-functions/pread.texi (pread): Update.
37366         * MODULES.html.sh: Add pread.
37367
37368 2009-11-25  Jim Meyering  <meyering@redhat.com>
37369
37370         tests/init.sh: new file to be used via most *.sh tests
37371         * tests/init.sh: New file.
37372
37373 2009-11-25  Eric Blake  <ebb9@byu.net>
37374
37375         utimens: work around older Linux failure with symlinks
37376         * lib/utimens.c (lutimensat_works_really): New variable.
37377         (fdutimens, lutimens): Use it to manage kernels that support
37378         nanosecond times on files, but not on symlinks.
37379         Reported by OndÅ™ej Vašík.
37380
37381         utimes: fix configure grammar
37382         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
37383
37384 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
37385
37386         regex: Fix fastmap for multibyte character ranges.
37387         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
37388         characters when a multibyte character range is included.
37389
37390 2009-11-22  Andy Wingo  <wingo@pobox.com>
37391
37392         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
37393         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
37394
37395 2009-11-24  Bruno Haible  <bruno@clisp.org>
37396
37397         doc: Most *_l functions exist in MacOS X 10.5.
37398         * doc/posix-functions/duplocale.texi: Update platforms list.
37399         * doc/posix-functions/freelocale.texi: Likewise.
37400         * doc/posix-functions/newlocale.texi: Likewise.
37401         * doc/posix-functions/uselocale.texi: Likewise.
37402         * doc/posix-functions/isalnum_l.texi: Likewise.
37403         * doc/posix-functions/isalpha_l.texi: Likewise.
37404         * doc/posix-functions/isblank_l.texi: Likewise.
37405         * doc/posix-functions/iscntrl_l.texi: Likewise.
37406         * doc/posix-functions/isdigit_l.texi: Likewise.
37407         * doc/posix-functions/isgraph_l.texi: Likewise.
37408         * doc/posix-functions/islower_l.texi: Likewise.
37409         * doc/posix-functions/isprint_l.texi: Likewise.
37410         * doc/posix-functions/ispunct_l.texi: Likewise.
37411         * doc/posix-functions/isspace_l.texi: Likewise.
37412         * doc/posix-functions/isupper_l.texi: Likewise.
37413         * doc/posix-functions/iswalnum_l.texi: Likewise.
37414         * doc/posix-functions/iswalpha_l.texi: Likewise.
37415         * doc/posix-functions/iswblank_l.texi: Likewise.
37416         * doc/posix-functions/iswcntrl_l.texi: Likewise.
37417         * doc/posix-functions/iswctype_l.texi: Likewise.
37418         * doc/posix-functions/iswdigit_l.texi: Likewise.
37419         * doc/posix-functions/iswgraph_l.texi: Likewise.
37420         * doc/posix-functions/iswlower_l.texi: Likewise.
37421         * doc/posix-functions/iswprint_l.texi: Likewise.
37422         * doc/posix-functions/iswpunct_l.texi: Likewise.
37423         * doc/posix-functions/iswspace_l.texi: Likewise.
37424         * doc/posix-functions/iswupper_l.texi: Likewise.
37425         * doc/posix-functions/iswxdigit_l.texi: Likewise.
37426         * doc/posix-functions/isxdigit_l.texi: Likewise.
37427         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
37428         * doc/posix-functions/strcasecmp_l.texi: Likewise.
37429         * doc/posix-functions/strcoll_l.texi: Likewise.
37430         * doc/posix-functions/strfmon_l.texi: Likewise.
37431         * doc/posix-functions/strftime_l.texi: Likewise.
37432         * doc/posix-functions/strncasecmp_l.texi: Likewise.
37433         * doc/posix-functions/strxfrm_l.texi: Likewise.
37434         * doc/posix-functions/tolower_l.texi: Likewise.
37435         * doc/posix-functions/toupper_l.texi: Likewise.
37436         * doc/posix-functions/towctrans_l.texi: Likewise.
37437         * doc/posix-functions/towlower_l.texi: Likewise.
37438         * doc/posix-functions/towupper_l.texi: Likewise.
37439         * doc/posix-functions/wcscoll_l.texi: Likewise.
37440         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
37441         * doc/posix-functions/wctrans_l.texi: Likewise.
37442         * doc/posix-functions/wctype_l.texi: Likewise.
37443         * doc/glibc-functions/strptime_l.texi: Likewise.
37444         * doc/glibc-functions/strtod_l.texi: Likewise.
37445         * doc/glibc-functions/strtof_l.texi: Likewise.
37446         * doc/glibc-functions/strtol_l.texi: Likewise.
37447         * doc/glibc-functions/strtold_l.texi: Likewise.
37448         * doc/glibc-functions/strtoll_l.texi: Likewise.
37449         * doc/glibc-functions/strtoul_l.texi: Likewise.
37450         * doc/glibc-functions/strtoull_l.texi: Likewise.
37451         * doc/glibc-functions/wcsftime_l.texi: Likewise.
37452         * doc/glibc-functions/wcstod_l.texi: Likewise.
37453         * doc/glibc-functions/wcstof_l.texi: Likewise.
37454         * doc/glibc-functions/wcstol_l.texi: Likewise.
37455         * doc/glibc-functions/wcstold_l.texi: Likewise.
37456         * doc/glibc-functions/wcstoll_l.texi: Likewise.
37457         * doc/glibc-functions/wcstoul_l.texi: Likewise.
37458         * doc/glibc-functions/wcstoull_l.texi: Likewise.
37459
37460 2009-11-24  Bruno Haible  <bruno@clisp.org>
37461
37462         duplocale: Fix logic bug.
37463         * lib/duplocale.c: Don't include <langinfo.h>.
37464         (_NL_LOCALE_NAME): Remove macro.
37465         (rpl_duplocale): Use setlocale instead of nl_langinfo.
37466         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
37467
37468 2009-11-23  Jim Meyering  <meyering@redhat.com>
37469
37470         test-update-copyright: don't hard-code /usr/bin/perl
37471         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
37472         perl to print the current year.  Gilles Espinasse reported that
37473         the replaced use of perl was hard-coded as /usr/bin/perl.
37474
37475 2009-11-23  Bruno Haible  <bruno@clisp.org>
37476
37477         duplocale: Add support for glibc 2.3.x.
37478         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
37479
37480 2009-11-22  Bruno Haible  <bruno@clisp.org>
37481
37482         vasnprintf: Tiny optimization.
37483         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
37484         MacOS X.
37485
37486 2009-11-22  Bruno Haible  <bruno@clisp.org>
37487
37488         Tests for module 'duplocale'.
37489         * modules/duplocale-tests: New file.
37490         * tests/test-duplocale.c: New file.
37491
37492         New module 'duplocale'.
37493         * m4/duplocale.m4: New file.
37494         * lib/locale.in.h (duplocale): New declaration.
37495         * lib/duplocale.c: New file.
37496         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
37497         gl_LOCALE_H_DEFAULTS): New macros.
37498         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
37499         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
37500         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
37501         REPLACE_DUPLOCALE.
37502         * modules/duplocale: New file.
37503         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
37504
37505 2009-11-22  Bruno Haible  <bruno@clisp.org>
37506
37507         * modules/locale-tests (configure.ac): Test for newlocale function.
37508         * tests/test-locale.c: When the system has extended locale functions,
37509         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
37510
37511         locale: Make locale_t available when possible.
37512         * lib/locale.in.h: Include <xlocale.h> when it exists.
37513         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
37514         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
37515         * modules/locale (Depends-on): Add extensions.
37516         (Makefile.am): Also substitute HAVE_XLOCALE_H.
37517         * doc/posix-headers/locale.texi: Document the problem with locale_t.
37518
37519 2009-11-22  Bruno Haible  <bruno@clisp.org>
37520
37521         Add comments.
37522         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
37523         invocation.
37524         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
37525         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
37526         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
37527
37528 2009-11-22  Bruno Haible  <bruno@clisp.org>
37529
37530         error: account for the possibility of freopen (stdout).
37531         * lib/error.c: Include <unistd.h>.
37532         (flush_stdout): New function, extracted from error and error_at_line.
37533         Determine stdout's fd dynamically.
37534         (error, error_at_line): Invoke flush_stdout.
37535         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
37536         * modules/error (Depends-on): Add unistd.
37537
37538 2009-11-22  Bruno Haible  <bruno@clisp.org>
37539
37540         diffseq: Add comment.
37541         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
37542
37543 2009-11-22  Jim Meyering  <meyering@redhat.com>
37544
37545         c-stack: avoid defining an unused static function
37546         * lib/c-stack.c (find_stack_direction): Do not define this function
37547         when it will not be used.
37548
37549         diffseq: avoid spurious gcc warnings
37550         * lib/diffseq.h (IF_LINT2): Define.
37551         (compareseq): Use it to initialize two members of "part".
37552         This avoids two used-uninitialized warnings.
37553
37554 2009-11-21  Jim Meyering  <meyering@redhat.com>
37555
37556         c-stack: avoid "ignoring return value of `write'" warning
37557         * lib/c-stack.c: Include "ignore-value.h".
37558         (die): Explicitly ignore each write return value.
37559         * modules/c-stack (Depends-on): Add ignore-value.
37560
37561 2009-11-21  Bruno Haible  <bruno@clisp.org>
37562
37563         diffseq: reduce scope of variable 'best'.
37564         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
37565         variable, earlier used for two different purposes.
37566
37567 2009-11-21  Jim Meyering  <meyering@redhat.com>
37568
37569         diffseq: remove useless assignment to "best"
37570         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
37571         assignment.  At that point "best" is already guaranteed to be zero.
37572
37573 2009-11-20  Eric Blake  <ebb9@byu.net>
37574
37575         build: mention ftp redirector in release announcements
37576         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
37577         values that used to come from cfg.mk; mention FTP redirect URL.
37578         * build-aux/announce-gen: Mention the mirror list.
37579         Suggested by Karl Berry.
37580
37581         nanosleep: improve port to mingw
37582         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
37583         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
37584         LIB_NANOSLEEP, but only when needed.
37585         * modules/select (Link): Document LIBSOCKET.
37586         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
37587         enough.
37588
37589         nanosleep: work around cygwin bug
37590         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
37591         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
37592         bug.
37593         (getnow): Delete, not needed.
37594         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
37595         LIB_CLOCK_GETTIME.
37596         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
37597         clock-time, gettime.
37598         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
37599         bug.
37600         * modules/nanosleep-tests: New test.
37601         * tests/test-nanosleep.c: New file.
37602
37603         sleep: work around cygwin bug
37604         * lib/sleep.c (rpl_sleep): Work around the bug.
37605         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
37606         (gl_PREREQ_SLEEP): Delete unused macro.
37607         * modules/sleep (Depends-on): Add verify.
37608         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
37609         * modules/unistd (Makefile.am): Substitute witness.
37610         * lib/unistd.in.h (sleep): Update prototype.
37611         * doc/posix-functions/sleep.texi (sleep): Document the bug.
37612         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
37613         * modules/sleep-tests (Depends-on): Check for alarm.
37614
37615 2009-11-20  Jim Meyering  <meyering@redhat.com>
37616
37617         maint.mk: improve sc_prohibit_magic_number_exit
37618         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
37619         so it does not match uses like System.exit(1).
37620         Add comments showing how to correct all offenders.
37621
37622 2009-11-19  Eric Blake  <ebb9@byu.net>
37623
37624         xalloc-die-tests: add missing library
37625         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
37626
37627         test-xvasprintf: silence compiler warnings
37628         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
37629         empty string from gcc.
37630
37631 2009-11-19  Jim Meyering  <meyering@redhat.com>
37632
37633         xfreopen: new module, from coreutils
37634         * modules/xfreopen: New module.
37635         * lib/xfreopen.c: New file.
37636         * lib/xfreopen.h: New file.
37637         * MODULES.html.sh (File stream based Input/Output"): Add it.
37638
37639 2009-11-19  Eric Blake  <ebb9@byu.net>
37640
37641         manywarnings: depend on warnings
37642         * modules/manywarnings (Depends-on): Add warnings.
37643
37644         build: avoid compiler warnings
37645         * lib/select.c (rpl_select): Delete unused variable.
37646         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
37647
37648 2009-11-18  Eric Blake  <ebb9@byu.net>
37649
37650         tests: avoid false negative with --with-packager
37651         * tests/test-version-etc.sh: Discard packager information.
37652         * tests/test-argp-version-etc-1.sh: Likewise.
37653         Reported by Mike Frysinger.
37654
37655         utimens: fix regression on Solaris
37656         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
37657         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
37658         can only change fd timestamps via futimesat.  Instead, use an
37659         additional witness macro to avoid BSD bug.
37660         Reported by Jim Meyering.
37661
37662 2009-11-17  Eric Blake  <ebb9@byu.net>
37663
37664         usleep: use it to simplify tests
37665         * modules/stat-time-tests (Depends-on): Add usleep.
37666         (configure.ac): Drop usleep check.
37667         * modules/chown-tests (Depends-on, configure.ac): Likewise.
37668         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
37669         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
37670         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
37671         * modules/openat-tests (Depends-on, configure.ac): Likewise.
37672         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
37673         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
37674         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
37675         Likewise.
37676         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
37677         * tests/test-lchown.h (nap): Likewise.
37678         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
37679         * tests/test-stat-time.c (nap): Likewise.
37680         * tests/test-utimens-common.h (nap): Update comments.
37681
37682         usleep: new module
37683         * modules/usleep: New file.
37684         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
37685         * lib/usleep.c (usleep): Likewise.
37686         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
37687         * modules/unistd (Makefile.am): Substitute witnesses.
37688         * lib/unistd.in.h (usleep): Add declaration.
37689         * doc/pastposix-functions/usleep.texi (usleep): Document this.
37690         * MODULES.html.sh (Date and time): Likewise.
37691         * modules/usleep-tests (Depends-on): New test.
37692         * tests/test-usleep.c: New file.
37693
37694         chown: work around OpenBSD bug
37695         * lib/chown.c (rpl_chown): Work around the bug.
37696         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
37697         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
37698         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
37699         * modules/chown (Depends-on): Add stdbool.
37700         * modules/lchown (Depends-on): Likewise.
37701         * doc/posix-functions/chown.texi (chown): Document the bug.
37702         * doc/posix-functions/lchown.texi (lchown): Likewise.
37703         * tests/test-lchown.h (test_chown): Relax test.
37704
37705         mkstemp: avoid conflict with C++ keyword template
37706         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
37707         * lib/mkostemp.c (mkostemp): Likewise.
37708         * lib/mkostemps.c (mkostemps): Likewise.
37709         * lib/mkstemp.c (mkstemp): Likewise.
37710         * lib/mkstemps.c (mkstemps): Likewise.
37711
37712         xalloc-die-tests: optimize
37713         * tests/test-xalloc-die.sh: Reduce number of processes.
37714
37715 2009-11-17  Simon Josefsson  <simon@josefsson.org>
37716
37717         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
37718         patch from ludo@gnu.org (Ludovic Courtès).
37719
37720 2009-11-17  Jim Meyering  <meyering@redhat.com>
37721
37722         version-etc: use proper license string
37723         * modules/version-etc (License): Use LGPL, not LGPLv3+.
37724         * modules/version-etc-fsf: Likewise.
37725
37726 2009-11-17  Simon Josefsson  <simon@josefsson.org>
37727
37728         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
37729         printed to stdout.  Deal with EOL differences.
37730
37731 2009-11-17  Eric Blake  <ebb9@byu.net>
37732
37733         unsetenv: work around Solaris bug
37734         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
37735         * lib/unsetenv.c (rpl_unsetenv): Work around it.
37736         Reported by Jim Meyering.
37737
37738         vasnprintf: avoid compiler warnings
37739         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
37740         variables.
37741         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
37742
37743 2009-11-17  Simon Josefsson  <simon@josefsson.org>
37744
37745         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
37746         settings since xalloc-die is no longer the self test,
37747         xalloc-die.sh is.
37748
37749 2009-11-17  Jim Meyering  <meyering@redhat.com>
37750
37751         test-xalloc-die.sh: make the code agree with the commit log
37752         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
37753         at the end, just in case you happen to have a test-xalloc-die
37754         program in some other PATH directory.
37755
37756         test-xalloc-die.sh: fix a portability bug
37757         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
37758         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
37759         Otherwise, argv[0] (as often seen in diagnostics) would be too
37760         system-dependent, sometimes with, and sometimes without the leading "./".
37761
37762         version-etc-fsf: relax license to LGPLv3+
37763         * modules/version-etc-fsf (License): Relax license.
37764
37765 2009-11-16  Eric Blake  <ebb9@byu.net>
37766
37767         xalloc-die-tests: avoid printing null pointer
37768         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
37769         shell script.
37770         * tests/test-xalloc-die.c (program_name): Declare.
37771         * tests/test-xalloc-die.sh (tmpfiles): New file.
37772
37773         setenv, unsetenv: work around various bugs
37774         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
37775         (setenv) [HAVE_SETENV]: Work around bugs.
37776         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
37777         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
37778         for bugs.
37779         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
37780         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
37781         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
37782         * modules/stdlib (Makefile.am): Update substitutions.
37783         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
37784         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
37785         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
37786         * modules/setenv-tests: New test.
37787         * modules/unsetenv-tests: Likewise.
37788         * tests/test-setenv.c: New file.
37789         * tests/test-unsetenv.c: Likewise.
37790
37791 2009-11-16  Jim Meyering  <meyering@redhat.com>
37792
37793         version-etc: relax license to LGPLv3+
37794         * modules/version-etc (License): Relax license.
37795
37796         better AC_REQUIRE expanded-before-required-warning avoidance
37797         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
37798         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
37799         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
37800         which is no longer needed.
37801
37802 2009-11-16  Eric Blake  <ebb9@byu.net>
37803
37804         test-freading: clean up temporary file
37805         * tests/test-freading.c (main): Remove file on success, and use
37806         ASSERT more liberally.
37807         Reported by Jim Meyering.
37808
37809 2009-11-16  Jim Meyering  <meyering@redhat.com>
37810
37811         avoid new AC_REQUIRE expanded-before-required warnings
37812         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
37813         merely using it.
37814         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
37815         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
37816
37817 2009-11-15  Simon Josefsson  <simon@josefsson.org>
37818
37819         * tests/test-xalloc-die.c: New file.
37820         * modules/xalloc-die-tests: New file.
37821         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
37822         XFAIL_TESTS so it can be appended by modules.
37823
37824 2009-11-15  Simon Josefsson  <simon@josefsson.org>
37825
37826         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
37827         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
37828
37829 2009-11-14  Eric Blake  <ebb9@byu.net>
37830
37831         fnmatch: avoid compiler warning
37832         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
37833         to silence compiler warning about mismatch signedness in ?:.
37834         Reported by Robert Millan.
37835
37836         intprops: add double-inclusion guard
37837         * lib/intprops.h: Allow idempotent includes.
37838         Suggested by Bruce Korb.
37839
37840         openat: detect Solaris fchownat bug
37841         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
37842         penalizing glibc chownat when only lchownat is broken.
37843         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
37844         trailing slash bugs.
37845         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
37846         * modules/openat-tests (Files): Include more files.
37847         (Depends-on): Add mgetgroups, sleep, stat-time.
37848         (configure.ac): Add additional checks.
37849         (Makefile.am): Build new test.
37850         * tests/test-fchownat.c: New file.
37851
37852         lchown: detect Solaris and FreeBSD bug
37853         * lib/lchown.c (rpl_lchown): Work around bug.
37854         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
37855         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37856         * modules/unistd (Makefile.am): Populate it.
37857         * lib/unistd.in.h (lchown): Update declaration.
37858         * doc/posix-functions/lchown.texi (lchown): Document the bug.
37859         * modules/lchown-tests: New file.
37860         * tests/test-lchown.h (test_lchown): Likewise.
37861         * tests/test-lchown.c (main): Likewise.
37862
37863         chown: detect Solaris and FreeBSD bug
37864         * lib/chown.c (rpl_chown): Work around bug.
37865         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
37866         (gl_PREREQ_CHOWN): Delete.
37867         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37868         * modules/unistd (Makefile.am): Populate it.
37869         * lib/unistd.in.h (chown): Update declaration.
37870         * lib/lchown.c (chown): Update client.
37871         * modules/lchown (Depends-on): Add lstat.
37872         * doc/posix-functions/chown.texi (chown): Document the bug.
37873         * doc/posix-functions/getgroups.texi (getgroups): Document
37874         getgroups pitfall.
37875         * modules/chown-tests: New file.
37876         * tests/test-chown.h (test_chown): Likewise.
37877         * tests/test-chown.c (main): Likewise.
37878
37879 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
37880
37881         gnulib-tool: correctly detect absence of m4 directories
37882         * gnulib-tool: Avoid extra newline on data passed to wc -l.
37883
37884 2009-11-14  Jim Meyering  <meyering@redhat.com>
37885
37886         maint.mk: Prohibit inclusion of "xalloc.h" without use.
37887         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
37888
37889 2009-11-14  John W. Eaton  <jwe@gnu.org>
37890
37891         strftime.h: wrap funtion declaration in extern "C" block
37892         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
37893
37894 2009-11-13  Eric Blake  <ebb9@byu.net>
37895
37896         getgroups: avoid compiler warning
37897         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
37898
37899         getgroups: work around FreeBSD bug
37900         * lib/getgroups.c (rpl_getgroups): Work around the bug.
37901         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
37902         * doc/posix-functions/getgroups.texi (getgroups): Document it.
37903         * tests/test-getgroups.c (main): Fix buffer overrun.
37904
37905         getgroups: avoid compilation failure
37906         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
37907         * modules/getgroups (Depends-on): Add stdint.
37908
37909 2009-11-13  Jim Meyering  <meyering@redhat.com>
37910
37911         test-getgroups: avoid compilation failure
37912         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
37913
37914 2009-11-13  Eric Blake  <ebb9@byu.net>
37915
37916         mgetgroups: new module, taken from coreutils
37917         * modules/mgetgroups: New file.
37918         * lib/mgetgroups.h: Likewise.
37919         * lib/mgetgroups.c (mgetgroups): Likewise.
37920         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
37921         * MODULES.html.sh (Users and groups): Mention it.
37922
37923         getgroups: don't expose GETGROUPS_T to user
37924         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
37925         an element at a time if GETGROUPS_T is wrong size.
37926         * lib/getugroups.h (getugroups): Change signature.
37927         * lib/unistd.in.h (getgroups): Likewise.
37928         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
37929         signature needs fixing.
37930         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
37931         AC_TYPE_GETGROUPS.
37932         * modules/group-member (Depends-on): Add getgroups.
37933         * lib/group-member.c (group_info, get_group_info): Use gid_t.
37934         (group_member): Rely on getgroups replacement.
37935         * lib/getugroups.c (getugroups): Use gid_t.
37936         * tests/test-getgroups.c (main): Likewise.
37937         * NEWS: Mention the signature change.
37938         * doc/posix-functions/getgroups.texi (getgroups): Mention the
37939         problem with signature.
37940         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
37941         GETGROUPS_T is still useful for setgroups.
37942
37943         getgroups, getugroups: provide stubs for mingw
37944         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
37945         * lib/getugroups.c (getugroups): Likewise.
37946         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
37947         function.  Modernize replacement scheme.
37948         (gl_PREREQ_GETGROUPS): Delete.
37949         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
37950         * modules/getgroups (configure.ac): Declare witness.
37951         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
37952         * modules/unistd (Depends-on): Substitute witness.
37953         * lib/unistd.in.h (getgroups): Declare replacement.
37954
37955         getgroups: avoid calling exit
37956         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
37957         drop xalloc.
37958         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
37959         dependencies.
37960         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
37961         exiting, in the rare case of malloc failure.
37962
37963         getgroups: fix logic error
37964         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
37965         has more than 20 groups.
37966         * modules/getgroups-tests: New test.
37967         * tests/test-getgroups.c: New file.
37968
37969 2009-11-13  Simon Josefsson  <simon@josefsson.org>
37970
37971         * tests/test-base64.c: Improve.
37972
37973 2009-11-13  Simon Josefsson  <simon@josefsson.org>
37974
37975         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
37976         Blake <ebb9@byu.net>.
37977
37978 2009-11-13  Simon Josefsson  <simon@josefsson.org>
37979
37980         * tests/test-xvasprintf.c: Add %s%s related checks.
37981
37982 2009-11-12  Eric Blake  <ebb9@byu.net>
37983
37984         version-etc: match standards.texi style
37985         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
37986         and use <> only for URLs.
37987
37988 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
37989
37990         fts: do not fail on a submount during traversal
37991         * lib/fts.c (fts_build): Read the stat info again after opening
37992         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
37993         Original report at http://bugzilla.redhat.com/501848.
37994
37995 2009-11-12  Jim Meyering  <meyering@redhat.com>
37996
37997         bootstrap: sync from coreutils
37998         * build-aux/bootstrap (bootstrap_epilogue): New function.
37999         Use git_modules_config in one more place.  This make bootstrap's
38000         --gnulib-srcdir option more useful for testing.
38001
38002         bootstrap: generalize autoheader check
38003         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
38004         AC_CONFIG_HEADERS.
38005
38006 2009-11-11  Eric Blake  <ebb9@byu.net>
38007
38008         mkfifoat: use new modules for Solaris and BSD bugs
38009         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
38010         * lib/mkfifoat.c (mknodat): Split...
38011         * lib/mknodat.c (mknodat): ...into new file.
38012         * modules/mkfifoat (Files): Ship new file.
38013         (Depends-on): Add mkfifo, mknod.
38014         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
38015         (Depends-on): Add symlink.
38016         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
38017         redundant with test_mkfifo.h.
38018         (do_mkfifoat, do_mknodat): New helpers.
38019
38020         mknod: new module
38021         * modules/mknod: New file.
38022         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
38023         * lib/mknod.c (mknod): Likewise.
38024         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
38025         defaults.
38026         * modules/sys_stat (Makefile.am): Substitute them.
38027         * lib/sys_stat.in.h (mknod): Declare replacement.
38028         * MODULES.html.sh (Support for systems lacking POSIX:2008):
38029         Document it.
38030         * doc/posix-functions/mknod.texi (mknod): Likewise.
38031         * modules/mknod-tests: New test.
38032         * tests/test-mknod.c: Likewise.
38033
38034         mkfifo: new module
38035         * modules/mkfifo: New file.
38036         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
38037         * lib/mkfifo.c (mkfifo): Likewise.
38038         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
38039         defaults.
38040         * modules/sys_stat (Makefile.am): Substitute them.
38041         * lib/sys_stat.in.h (mkfifo): Declare replacement.
38042         * MODULES.html.sh (Support for systems lacking POSIX:2008):
38043         Document it.
38044         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
38045         * modules/mkfifo-tests: New test.
38046         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
38047         from test-mkfifoat.c.
38048         * tests/test-mkfifo.c: New file.
38049
38050         readlink: detect FreeBSD bug
38051         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
38052         slash on symlink.
38053         * doc/posix-functions/readlink.texi (readlink): Document the bug.
38054         * tests/test-readlink.h (test_readlink): Enhance test.
38055
38056         symlink: detect FreeBSD bug
38057         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
38058         slash on symlink.
38059         * doc/posix-functions/symlink.texi (symlink): Document the bug.
38060         * tests/test-symlink.h (test_symlink): Enhance test.
38061
38062 2009-11-10  Eric Blake  <ebb9@byu.net>
38063
38064         link: detect FreeBSD bug
38065         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
38066         symlink.
38067         * doc/posix-functions/link.texi (link): Document the bug.
38068         * tests/test-link.h (test_link): Enhance test.
38069         * tests/test-linkat.c (main): Update caller.
38070
38071         unlink, remove: detect FreeBSD bug
38072         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
38073         slash on symlink.
38074         * doc/posix-functions/unlink.texi (unlink): Document the bug.
38075         * doc/posix-functions/remove.texi (remove): Likewise.
38076         * tests/test-unlink.h (test_unlink): Enhance test.
38077         * tests/test-remove.c (main): Likewise.
38078
38079 2009-11-09  Eric Blake  <ebb9@byu.net>
38080
38081         rename: detect FreeBSD bug
38082         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
38083         slash on symlink.
38084         * modules/renameat-tests (Depends-on): Add filenamecat.
38085         * tests/test-rename.h (test_rename): Allow one more errno.
38086         * tests/test-renameat.c (main): Likewise.
38087         * doc/posix-functions/rename.texi (rename): Document the bug.
38088
38089         open: detect FreeBSD bug
38090         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
38091         symlink.
38092         * doc/posix-functions/open.texi (open): Document the bug.
38093         * doc/posix-functions/utimes.texi (utimes): Likewise.
38094         * tests/test-open.h (test_open): Add parameters, and test symlink
38095         handling.
38096         * tests/test-open.c (main): Adjust caller.
38097         * tests/test-fcntl-safer.c (main): Likewise.
38098         * modules/open-tests (Depends-on): Add stdbool, symlink.
38099         * modules/fcntl-safer-tests (Depends-on): Likewise.
38100         * tests/test-openat.c (main): Add test-open tests.
38101
38102         stat: detect FreeBSD bug
38103         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
38104         symlink.
38105         * doc/posix-functions/stat.texi (stat): Document the bug.
38106         * tests/test-stat.h (test_stat_func): Add argument.
38107         * tests/test-stat.c (main): Adjust caller.
38108         * tests/test-fstatat.c (main): Likewise.
38109         * modules/stat-tests (Depends-on): Add stdbool, symlink.
38110         Reported by Jim Meyering.
38111
38112 2009-11-09  James Youngman  <jay@gnu.org>
38113
38114         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
38115         * lib/strftime.c: Correct placement of #include "ignore-value.h".
38116
38117 2009-11-08  Jim Meyering  <meyering@redhat.com>
38118
38119         utimens: remove invalid futimesat call
38120         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
38121         It used the file descriptor of the target file as the DIR_FD
38122         parameter and NULL as the file name.  That caused failure with
38123         errno == EFAULT on FreeBSD-8.0-rc2
38124
38125 2009-11-07  Eric Blake  <ebb9@byu.net>
38126
38127         fflush, freadseek: use fseeko, not fseek
38128         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
38129         (clear_ungetc_buffer): Avoid potential problems on large files.
38130         * lib/freadseek.c (freadseek): Likewise.
38131         * modules/freadseek (Depends-on): Add fseeko.
38132         * modules/fseek (configure.ac): Set a witness.
38133         * tests/test-fflush.c (main): Use fseeko.
38134         * tests/test-fpurge.c (fseek): Disable link warning.
38135         * tests/test-freadable.c (fseek): Likewise.
38136         * tests/test-freading.c (fseek): Likewise.
38137         * tests/test-fseeko.c (fseek): Likewise.
38138         * tests/test-ftell.c (fseek): Likewise.
38139         * tests/test-ftello.c (fseek): Likewise.
38140         * tests/test-fwritable.c (fseek): Likewise.
38141         * tests/test-fwriting.c (fseek): Likewise.
38142
38143 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38144
38145         * modules/memchr (Depends-on): Drop getpagesize dependency.
38146
38147 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38148
38149         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
38150         Reported by Ludovic Courtès.
38151         * build-aux/pmccabe2html: Improve example usage.
38152         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
38153
38154 2009-11-06  Jim Meyering  <meyering@redhat.com>
38155
38156         do-release-commit-and-tag: New module.
38157         Automate the release-commit and tag process.
38158         * build-aux/do-release-commit-and-tag: New script, from coreutils.
38159         * modules/do-release-commit-and-tag: New file.
38160         * MODULES.html.sh (Support for maintaining and releasing): Add it.
38161
38162 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38163
38164         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
38165         because test-select.c uses inet_pton.
38166
38167 2009-11-06  Simon Josefsson  <simon@josefsson.org>
38168
38169         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
38170         GETADDRINFO_LIB.  Bump serial number.
38171         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
38172         Suggested by Eric Blake <ebb9@byu.net>.
38173
38174 2009-11-05  Eric Blake  <ebb9@byu.net>
38175
38176         strtod: detect darwin bug
38177         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
38178         Reported by Leo Davis.
38179
38180         freopen-safer: new module
38181         * modules/freopen-safer: New module.
38182         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
38183         * lib/freopen-safer.c (freopen_safer): New file.
38184         * lib/stdio-safer.h (freopen_safer): New declaration.
38185         * lib/stdio--.h (freopen): New override.
38186         * MODULES.html.sh (File stream based Input/Output): Mention it.
38187         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
38188         freopen-safer module.
38189         * doc/posix-functions/stderr.texi (stderr): Likewise.
38190         * doc/posix-functions/stdin.texi (stdin): Likewise.
38191         * doc/posix-functions/stdout.texi (stdout): Likewise.
38192         * modules/freopen-safer-tests: New test.
38193         * tests/test-reopen-safer.c: New file.
38194
38195 2009-11-05  Jim Meyering  <meyering@redhat.com>
38196
38197         maint.mk: Prohibit inclusion of "close-stream.h" without use.
38198         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
38199
38200 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38201
38202         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
38203
38204 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38205
38206         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
38207
38208 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38209
38210         Fix link error.
38211         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
38212         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38213
38214 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38215
38216         * tests/test-func.c: Also test value of __func__.
38217
38218 2009-11-05  Simon Josefsson  <simon@josefsson.org>
38219
38220         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
38221         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
38222
38223 2009-11-05  Bruno Haible  <bruno@clisp.org>
38224
38225         Fix link error.
38226         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
38227         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
38228         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
38229
38230 2009-11-05  Bruno Haible  <bruno@clisp.org>
38231
38232         Tests for module 'inet_pton'.
38233         * modules/inet_pton-tests: New file.
38234         * tests/test-inet_pton.c: New file.
38235
38236 2009-11-05  Bruno Haible  <bruno@clisp.org>
38237
38238         Tests for module 'inet_ntop'.
38239         * modules/inet_ntop-tests: New file.
38240         * tests/test-inet_ntop.c: New file.
38241
38242 2009-11-04  Eric Blake  <ebb9@byu.net>
38243
38244         stdlib-safer: wrap all mkstemp variants
38245         * modules/mkostemp (configure.ac): Set witness.
38246         * modules/mkostemps (configure.ac): Likewise.
38247         * modules/mkstemps (configure.ac): Likewise.
38248         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
38249         (mkstemps_safer): Wrap more functions.
38250         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
38251         wrapping.
38252         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
38253         (mkstemps_safer): Implement the wrappers.
38254
38255         mkstemps, mkostemps: new modules
38256         * modules/mkostemps: New module.
38257         * modules/mkstemps: Likewise.
38258         * lib/mkostemps.c (mkostemps): New file.
38259         * lib/mkstemps.c (mkstemps): Likewise.
38260         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
38261         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
38262         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
38263         * modules/stdlib (Makefile.am): Substitute them.
38264         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
38265         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
38266         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
38267         * doc/gnulib.texi (Glibc stdlib.h): Include them.
38268         * MODULES.html.sh (File system functions): Mention them.
38269
38270         tempname: resync from glibc
38271         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
38272         same values for __GT_FILE as glibc.  Abort even when assertions
38273         are disabled.
38274         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
38275         match its value otherwise.  Allow idempotent inclusion.
38276         * lib/mkdtemp.c (mkdtemp): Adjust caller.
38277         * lib/mkostemp.c (mkostemp): Likewise.
38278         * lib/mkstemp.c (mkstemp): Likewise.
38279         * lib/tmpfile.c (tmpfile): Likewise.
38280         * NEWS: Document this.
38281
38282         utimens: fix use of futimens on older Linux
38283         * lib/utimens.c (fdutimens): Use updated, rather than original,
38284         timespec to avoid bug in older Linux kernel.
38285         Reported by Simon Josefsson.
38286
38287 2009-11-04  Bruno Haible  <bruno@clisp.org>
38288
38289         Make num_processors more flexible and consistent.
38290         * lib/nproc.h (enum nproc_query): New type.
38291         (num_processors): Add a 'query' argument.
38292         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
38293         (num_processors): Add a 'query' argument. Test the value of the
38294         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
38295         mingw, count the number of CPUs available for the current process.
38296         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
38297         Check for sched_getaffinity and sched_getaffinity_np.
38298         * modules/nproc (Depends-on): Add c-ctype, extensions.
38299         * NEWS: Mention the change.
38300
38301 2009-11-03  Bruno Haible  <bruno@clisp.org>
38302
38303         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
38304
38305 2009-11-03  Jim Meyering  <meyering@redhat.com>
38306
38307         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
38308         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
38309         if it is defined.
38310
38311 2009-11-02  Eric Blake  <ebb9@byu.net>
38312
38313         mktime, timegm: share common declaration
38314         * lib/mktime-internal.h: New file.
38315         * lib/mktime.c: Use it rather than open-coding a declaration.
38316         * lib/timegm.c: Likewise.
38317         * modules/mktime (Files): Ship it.
38318         * modules/timegm (Files): Likewise.
38319         Suggested by Bruno Haible.
38320
38321         test-update-copyright: update test to match script changes
38322         * tests/test-update-copyright.sh: Avoid hard-coding perl
38323         location.  Don't update *.bak created by earlier runs.
38324
38325 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
38326             Simon Josefsson  <simon@josefsson.org>
38327             Bruno Haible  <bruno@clisp.org>
38328
38329         Fix link error on Solaris 8.
38330         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
38331         also in libnsl. Define also INET_PTON_LIB.
38332         * modules/inet_pton (Link): New section.
38333
38334 2009-11-02  Simon Josefsson  <simon@josefsson.org>
38335             Bruno Haible  <bruno@clisp.org>
38336
38337         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
38338         * modules/inet_ntop (Link): New section.
38339         Reported by Boyan Kasarov <bkasarov@gmail.com>.
38340
38341 2009-11-02  Eric Blake  <ebb9@byu.net>
38342
38343         maint: avoid compiler warnings in m4 macros
38344         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
38345         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
38346
38347 2009-11-02  Simon Josefsson  <simon@josefsson.org>
38348
38349         * m4/pmccabe2html.m4: Remove file.
38350         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
38351         function.  Change maintainer.
38352         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
38353         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
38354         Courtès).
38355
38356 2009-10-31  Eric Blake  <ebb9@byu.net>
38357
38358         fseeko: fix m4 regression
38359         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
38360         regression from 2009-10-27.
38361         Reported by Ralf Wildenhues.
38362
38363 2009-10-31  Jim Meyering  <meyering@redhat.com>
38364
38365         inttostr: aesthetics and improved (compile-time) safety
38366         Define inttype_is_signed rather than inttype_is_unsigned,
38367         since the sole use is via "#if inttype_is_signed".
38368         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
38369         inttype_is_unsigned.
38370         * lib/offtostr.c (inttype_is_signed): Likewise.
38371         * lib/uinttostr.c (inttype_is_signed): Likewise.
38372         * lib/umaxtostr.c (inttype_is_signed): Likewise.
38373         * lib/inttostr.c (inttostr): Use verify to cross-check the
38374         inttype_is_signed value and the signedness of the actual type.
38375         * modules/inttostr (Depends-on): Add verify.
38376
38377 2009-10-30  Eric Blake  <ebb9@byu.net>
38378
38379         build: avoid compiler warnings
38380         * lib/fchmodat.c (lchmod): Mark unused variables.
38381         * lib/getopt.c (_getopt_initialize): Likewise.
38382         * lib/mktime.c (__mktime_internal): Provide prototype.
38383         * lib/inttostr.c (inttostr): Avoid compiler warning even with
38384         older gcc that do not understand #pragma GCC diagnostic.
38385         * lib/uinttostr.c (inttype_is_unsigned): Define.
38386         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
38387
38388 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
38389
38390         stat: fix compilation on AIX
38391         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
38392         only see struct stat64.
38393
38394 2009-10-30  Eric Blake  <ebb9@byu.net>
38395
38396         exclude: make more robust
38397         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
38398         rather than masking a coding bug.
38399         Suggested by Bruno Haible.
38400
38401 2009-10-30  Jim Meyering  <meyering@redhat.com>
38402
38403         perl scripts: remove #!/usr/bin/perl in favor of more portable...
38404         Rather than putting #!/usr/bin/perl on the first line,
38405         start with a variant of what's recommended by "man perlrun" that
38406         invokes the first "perl" program from your shell's search path.
38407         * build-aux/gitlog-to-changelog: Replace #!... as above.
38408         Add a "Local Variables" perl mode setting.
38409         Prompted by a patch from Ludovic Courtès.
38410         Improved by Eric Blake.
38411         * build-aux/useless-if-before-free: Likewise.
38412         * build-aux/announce-gen: Likewise.
38413         * build-aux/update-copyright: Likewise.
38414
38415 2009-10-29  Eric Blake  <ebb9@byu.net>
38416
38417         filenamecat-lgpl: adjust clients
38418         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
38419         filenamecat.
38420         * modules/renameat (Depends-on): Likewise.
38421
38422         filenamecat: split into filenamecat-lgpl
38423         * modules/filenamecat-lgpl: New module.
38424         * modules/filenamecat (Files): Move library-safe files into
38425         filenamecat-lgpl.
38426         (Depends-on): Add filenamecat-lgpl.
38427         (configure.ac): Declare witness.
38428         * lib/filenamecat.h (file_name_concat): Only declare when using
38429         GPL module.
38430         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
38431         Move...
38432         * lib/filenamecat-lgpl.c: ...into new file.
38433         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
38434         (gl_FILE_NAME_CONCAT): Use it.
38435         * MODULES.html.sh (File system functions): Mention new module.
38436
38437         argp: avoid memory leak
38438         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
38439         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
38440         base_name, since the latter malloc()s and can call exit().
38441         Leak introduced 2006-07-03.
38442
38443         dirname-lgpl: adjust clients that don't need full dirname
38444         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
38445         * modules/filenamecat (Depends-on): Likewise.
38446         * modules/linkat (Depends-on): Likewise.
38447         * modules/mkancesdirs (Depends-on): Likewise.
38448         * modules/mkdir (Depends-on): Likewise.
38449         * modules/openat (Depends-on): Likewise.
38450         * modules/savewd (Depends-on): Likewise.
38451         * modules/rename (Depends-on): Likewise.
38452         (License): Relax license.
38453         * modules/mkdir-tests (Depends-on): Drop progname.
38454         (Makefile.am): Delete unneeded LDADD.
38455         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
38456
38457         dirname: split into dirname-lgpl
38458         * modules/dirname-lgpl: New module.
38459         * modules/dirname (Files): Move library-safe files into
38460         dirname-lgpl.
38461         (Depends-on): Add dirname-lgpl.
38462         (configure.ac): Declare witness.
38463         * modules/double-slash-root (License): Relax license.
38464         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
38465         module.
38466         * lib/dirname.c (dir_len, mdir_name): Move...
38467         * lib/dirname-lgpl.c: ...into new file.
38468         * lib/basename.c (last_component, base_len): Move...
38469         * lib/basename-lgpl.c: ...into new file.
38470         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
38471         (gl_DIRNAME): Use it.
38472         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
38473         Mention new module.
38474         * modules/dirname-tests (Depends-on): Add progname.
38475         * tests/test-dirname.c (program_name): Delete.
38476
38477         mkdir: make safe for libraries
38478         * modules/mkdir (Depends-on): Drop xalloc.
38479         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
38480         exit.
38481
38482         tests: avoid some compiler warnings
38483         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
38484         literals.
38485         * tests/test-memchr.c (main): Avoid type mismatch.
38486         * tests/test-arpa_inet.c (main): Avoid unused parameters.
38487         * tests/test-base64.c (main): Likewise.
38488         * tests/test-getdelim.c (main): Likewise.
38489         * tests/test-gethostname.c (main): Likewise.
38490         * tests/test-getline.c (main): Likewise.
38491         * tests/test-netinet_in.c (main): Likewise.
38492         * tests/test-select.c (open_server_socket, main): Likewise.
38493         * tests/test-select-stdin.c (main): Likewise.
38494         * tests/test-sockets.c (main): Likewise.
38495         * tests/test-strsignal.c (main): Likewise.
38496         * tests/test-sys_select.c (main): Likewise.
38497         * tests/test-sys_socket.c (main): Likewise.
38498         * tests/test-u64.c (main): Likewise.
38499         * tests/test-xfprintf-posix.c (main): Likewise.
38500         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
38501
38502         sockets: avoid compiler warning
38503         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
38504
38505         maint: detect usage(1) and other suspicious exits
38506         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
38507
38508 2009-10-29  Jim Meyering  <meyering@redhat.com>
38509
38510         timespec: long-to-int truncation could make timespec_cmp malfunction
38511         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
38512         a multiple of 2^32 nanoseconds as no difference.
38513
38514 2009-10-28  Jim Meyering  <meyering@redhat.com>
38515
38516         fprintftime: wrap macro code argument in "do {...} while(0)"
38517         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
38518         cpy macro must be a statement that can be followed by a semicolon.
38519         Now that the else clause contains a comment and is hence longer
38520         than one line, I require curly braces.  That in turn requires
38521         that we wrap this code block in the standard do...while(0).
38522
38523         fprintftime: remove stray semicolon from previous change
38524         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
38525
38526         fprintftime: avoid a warning about ignored fwrite return value
38527         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
38528         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
38529         that is unsafe.
38530         * modules/fprintftime (Depends-on): Add ignore-value.
38531
38532         exclude: avoid an unwarranted warning
38533         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
38534
38535 2009-10-27  Eric Blake  <ebb9@byu.net>
38536
38537         fseek: avoid compilation failure when fflush is replaced
38538         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
38539         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
38540         module is in use.
38541         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
38542         module is not in use; since REPLACE_FSEEK worked otherwise.
38543         (GNULIB_FTELLO): Likewise for ftell.
38544         Reported by Ian Beckwith and others.
38545
38546 2009-10-27  Bruno Haible  <bruno@clisp.org>
38547
38548         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
38549         Reported by Jim Meyering.
38550
38551 2009-10-27  Jim Meyering  <jim@meyering.net>
38552             Bruno Haible  <bruno@clisp.org>
38553
38554         Avoid warning despite dropping the return value of fwrite.
38555         * lib/unicodeio.c: Include ignore-value.h.
38556         (fwrite_success_callback): Explicitly ignore fwrite's return value.
38557         * modules/unicodeio (Depends-on): Add ignore-value.
38558
38559 2009-10-26  Eric Blake  <ebb9@byu.net>
38560
38561         areadlinkat: fix fallback path
38562         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
38563         pointer and zero.
38564
38565 2009-10-22  Pádraig Brady  <P@draigBrady.com>
38566
38567         Use a better IO block size for modern systems
38568         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
38569         * lib/md2.c: Likewise.
38570         * lib/md4.c: Likewise.
38571         * lib/md5.c: Likewise.
38572         * lib/sha1.c: Likewise.
38573         * lib/sha256.c: Likewise.
38574         * lib/sha512.c: Likewise.
38575
38576 2009-10-22  Eric Blake  <ebb9@byu.net>
38577
38578         tests: avoid several compiler warnings
38579         * tests/test-getcwd.c (main): Avoid buffer underflow.
38580         * tests/test-getdate.c (main): String literals are not safe with
38581         putenv, so use setenv.  Declare unused argument.
38582         * modules/getdate-tests (Depends-on): Add setenv.
38583         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
38584         problems with string literals in char *.
38585         * tests/test-hash.c (main): Avoid shadowing declaration.
38586         (insert_new): Treat string literals as char const *.
38587         * tests/test-getopt.h (test_getopt): Likewise.
38588         (getopt_loop): Alter types to minimize casting elsewhere.
38589         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
38590         (test_getopt_long_posix): Likewise.
38591         (do_getopt_long): Add wrapper to minimize casting.
38592         * tests/test-atexit.c (clear_temp_file): Use void.
38593         * tests/test-areadlink-with-size.c (main): Declare unused
38594         arguments.
38595         * tests/test-areadlink.c (main): Likewise.
38596         * tests/test-areadlinkat-with-size.c (main): Likewise.
38597         * tests/test-areadlinkat.c (main): Likewise.
38598         * tests/test-canonicalize-lgpl.c (main): Likewise.
38599         * tests/test-canonicalize.c (main): Likewise.
38600         * tests/test-dirent-safer.c (main): Likewise.
38601         * tests/test-dirname.c (main): Likewise.
38602         * tests/test-dup2.c (main): Likewise.
38603         * tests/test-fchdir.c (main): Likewise.
38604         * tests/test-fcntl-h.c (main): Likewise.
38605         * tests/test-fcntl-safer.c (main): Likewise.
38606         * tests/test-fdopendir.c (main): Likewise.
38607         * tests/test-fdutimensat.c (main): Likewise.
38608         * tests/test-fflush.c (main): Likewise.
38609         * tests/test-filenamecat.c (main): Likewise.
38610         * tests/test-filevercmp.c (main): Likewise.
38611         * tests/test-fopen-safer.c (main): Likewise.
38612         * tests/test-fopen.c (main): Likewise.
38613         * tests/test-fpending.c (main): Likewise.
38614         * tests/test-fpurge.c (main): Likewise.
38615         * tests/test-freading.c (main): Likewise.
38616         * tests/test-fstatat.c (main): Likewise.
38617         * tests/test-fsync.c (main): Likewise.
38618         * tests/test-futimens.c (main): Likewise.
38619         * tests/test-getndelim2.c (main): Likewise.
38620         * tests/test-gettimeofday.c (main): Likewise.
38621         * tests/test-getopt.c (main): Likewise.
38622         * tests/test-i-ring.c (main): Likewise.
38623         * tests/test-inttypes.c (main): Likewise.
38624         * tests/test-link.c (main): Likewise.
38625         * tests/test-lstat.c (main): Likewise.
38626         * tests/test-math.c (main): Likewise.
38627         * tests/test-md5.c (main): Likewise.
38628         * tests/test-memchr2.c (main): Likewise.
38629         * tests/test-memrchr.c (main): Likewise.
38630         * tests/test-mkdir.c (main): Likewise.
38631         * tests/test-mkdirat.c (main): Likewise.
38632         * tests/test-mkfifoat.c (main): Likewise.
38633         * tests/test-open.c (main): Likewise.
38634         * tests/test-openat-safer.c (main): Likewise.
38635         * tests/test-openat.c (main): Likewise.
38636         * tests/test-quotearg.c (main): Likewise.
38637         * tests/test-rawmemchr.c (main): Likewise.
38638         * tests/test-readlink.c (main): Likewise.
38639         * tests/test-remove.c (main): Likewise.
38640         * tests/test-rename.c (main): Likewise.
38641         * tests/test-renameat.c (main): Likewise.
38642         * tests/test-rmdir.c (main): Likewise.
38643         * tests/test-sha1.c (main): Likewise.
38644         * tests/test-signal.c (main): Likewise.
38645         * tests/test-sigaction.c (main): Likewise.
38646         * tests/test-stat.c (main): Likewise.
38647         * tests/test-stat-time.c (main): Likewise.
38648         * tests/test-stddef.c (main): Likewise.
38649         * tests/test-stdint.c (main): Likewise.
38650         * tests/test-stdio.c (main): Likewise.
38651         * tests/test-stdlib.c (main): Likewise.
38652         * tests/test-strchrnul.c (main): Likewise.
38653         * tests/test-strerror.c (main): Likewise.
38654         * tests/test-string.c (main): Likewise.
38655         * tests/test-strtod.c (main): Likewise.
38656         * tests/test-strverscmp.c (main): Likewise.
38657         * tests/test-symlink.c (main): Likewise.
38658         * tests/test-symlinkat.c (main): Likewise.
38659         * tests/test-sys_stat.c (main): Likewise.
38660         * tests/test-sys_time.c (main): Likewise.
38661         * tests/test-time.c (main): Likewise.
38662         * tests/test-unistd.c (main): Likewise.
38663         * tests/test-unlink.c (main): Likewise.
38664         * tests/test-unlinkat.c (main): Likewise.
38665         * tests/test-utimens.c (main): Likewise.
38666         * tests/test-utimensat.c (main): Likewise.
38667         * tests/test-version-etc.c (main): Likewise.
38668         * tests/test-wchar.c (main): Likewise.
38669         * tests/test-wctype.c (main): Likewise.
38670         * tests/test-xprintf-posix.c (main): Likewise.
38671         * tests/test-posixtm.c (main): Likewise.
38672         (STREQ): Delete unused macro.
38673         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
38674         shadowed variables.
38675         * tests/test-memchr.c (main): Likewise.
38676
38677 2009-10-21  Eric Blake  <ebb9@byu.net>
38678
38679         areadlinkat: avoid failure on older glibc
38680         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
38681         rather than mis-comparing 0 against FUNC_RESULT of char*.
38682
38683 2009-10-21  Bruno Haible  <bruno@clisp.org>
38684
38685         * modules/stpncpy (License): Relicense under LGPLv2+.
38686         Reported by David Lutterkort <lutter@redhat.com>.
38687
38688 2009-10-20  Eric Blake  <ebb9@byu.net>
38689
38690         utimensat: work around Solaris 9 bug
38691         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
38692         has trailing slash bugs.
38693         * tests/test-lutimens.h (test_lutimens): Enhance test.
38694         * tests/test-utimens.h (test_utimens): Likewise.
38695         * doc/posix-functions/utime.texi (utime): Enhance documentation.
38696         * doc/posix-functions/utimes.texi (utimes): Likewise.
38697         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
38698         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
38699         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
38700         * doc/posix-functions/futimens.texi (futimens): Likewise.
38701
38702         fdutimensat: new module
38703         * modules/fdutimensat: New file.
38704         * lib/fdutimensat.c (fdutimensat): Likewise.
38705         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
38706         * MODULES.html.sh (File system functions): Mention module.
38707         * modules/fdutimensat-tests: New test.
38708         * tests/test-fdutimensat.c: Likewise.
38709
38710         doc: regenerate INSTALL
38711         * doc/INSTALL: Reflect recent autoconf update.
38712         * doc/INSTALL.ISO: Likewise.
38713         * doc/INSTALL.UTF-8: Likewise.
38714
38715 2009-10-20  Pádraig Brady  <P@draigBrady.com>
38716
38717         acl: warn if ACL support is not detected
38718         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
38719
38720 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
38721
38722         * lib/nproc.h: Add extern "C" block for C++.
38723
38724 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
38725             Bruno Haible  <bruno@clisp.org>
38726
38727         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
38728         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
38729         * doc/posix-functions/isalpha.texi: Likewise.
38730         * doc/posix-functions/isblank.texi: Likewise.
38731         * doc/posix-functions/iscntrl.texi: Likewise.
38732         * doc/posix-functions/isdigit.texi: Likewise.
38733         * doc/posix-functions/isgraph.texi: Likewise.
38734         * doc/posix-functions/islower.texi: Likewise.
38735         * doc/posix-functions/isprint.texi: Likewise.
38736         * doc/posix-functions/ispunct.texi: Likewise.
38737         * doc/posix-functions/isspace.texi: Likewise.
38738         * doc/posix-functions/isupper.texi: Likewise.
38739         * doc/posix-functions/isxdigit.texi: Likewise.
38740
38741 2009-10-18  Bruno Haible  <bruno@clisp.org>
38742
38743         Tests for module 'isblank'.
38744         * modules/isblank-tests: New file.
38745         * tests/test-isblank.c: New file.
38746
38747         New module 'isblank'.
38748         * lib/isblank.c: New file.
38749         * m4/isblank.m4: New file.
38750         * modules/isblank: New file.
38751         * doc/posix-functions/isblank.texi: Mention the new module.
38752
38753 2009-10-18  Bruno Haible  <bruno@clisp.org>
38754
38755         New module 'ctype'.
38756         * lib/ctype.in.h: New file.
38757         * m4/ctype.m4: New file.
38758         * modules/ctype: New file.
38759         * doc/posix-headers/ctype.texi: Mention the new module.
38760
38761 2009-10-18  Jim Meyering  <meyering@redhat.com>
38762
38763         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
38764         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
38765         right after its initialization, rather than farther down.
38766         Keeping these in close proximity makes it easier to ensure
38767         that each such variable is initialized.  E.g.,
38768
38769             LIB_CLOCK_GETTIME=
38770             AC_SUBST([LIB_CLOCK_GETTIME])
38771
38772         This change also increments these serial numbers.
38773         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
38774         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
38775         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
38776
38777 2009-10-18  Bruno Haible  <bruno@clisp.org>
38778
38779         Don't let environment variables perturb build.
38780         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
38781         (gl_PREREQ_GETHRXTIME): ... not here.
38782
38783 2009-10-18  Bruno Haible  <bruno@clisp.org>
38784
38785         Avoid symlink attack in localcharset module.
38786         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
38787         (O_NOFOLLOW): Define fallback.
38788         (get_charset_aliases): Don't open the file if it is a symbolic link.
38789         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
38790         gl_FCNTL_H.
38791         (gl_FCNTL_H): Require it.
38792         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
38793         * modules/localcharset (Files): Add m4/fcntl_h.m4.
38794         Reported by Fergal Glynn <fglynn@veracode.com>.
38795
38796 2009-10-18  Bruno Haible  <bruno@clisp.org>
38797
38798         Implement nproc for mingw.
38799         * lib/nproc.c: Include <windows.h>
38800         (num_processors): On native Windows platforms, try GetSystemInfo.
38801
38802 2009-10-18  Bruno Haible  <bruno@clisp.org>
38803
38804         Implement nproc for IRIX.
38805         * lib/nproc.c: Include <sys/sysmp.h>.
38806         (num_processors): On IRIX systems, try sysmp.
38807         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
38808
38809 2009-10-18  Bruno Haible  <bruno@clisp.org>
38810
38811         Implement nproc for HP-UX.
38812         * lib/nproc.c: Include <sys/pstat.h>
38813         (num_processors): On HP-UX systems, try pstat_getdynamic.
38814         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
38815         pstat_getdynamic.
38816
38817 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
38818             Bruno Haible  <bruno@clisp.org>
38819
38820         Implement nproc for NetBSD, OpenBSD.
38821         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
38822         (ARRAY_SIZE): New macro.
38823         (num_processors): On BSD systems, try sysctl of HW_NCPU.
38824         * m4/nproc.m4: New file.
38825         * modules/nproc (Files): Add m4/nproc.m4.
38826         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
38827         (Makefile.am): Instead, augment lib_SOURCES.
38828
38829 2009-10-18  Bruno Haible  <bruno@clisp.org>
38830
38831         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
38832         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
38833         sys/param.h.
38834
38835 2009-10-16  Eric Blake  <ebb9@byu.net>
38836
38837         utimensat: new module
38838         * modules/utimensat: New file.
38839         * lib/utimensat.c (utimensat): Likewise.
38840         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
38841         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
38842         so we can work around Linux bugs.
38843         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
38844         * modules/sys_stat (Makefile.am): Substitute them.
38845         * lib/sys_stat.in.h (utimensat): Declare it.
38846         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
38847         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
38848         * modules/utimensat-tests: New test.
38849         * tests/test-utimensat.c: Likewise.
38850
38851         utimens: let lutimens work on non-symlinks
38852         * lib/utimens.c (lutimens): Fall back to utimens rather than
38853         failing with ENOSYS, when file is not a symlink.
38854         (utimens): Reduce redirection.
38855         * tests/test-lutimens.h (test_lutimens): Update test to cover
38856         non-symlinks.
38857         * tests/test-utimens.h (test_utimens): Update test to cover
38858         symlinks.
38859         * tests/test-utimens.c (main): Update caller.
38860
38861         utimens: cache whether utimensat syscall works
38862         * lib/utimens.c (utimensat_works_really): New cache variable.
38863         (fdutimens, lutimens): Use it to avoid failing syscall.
38864
38865         test-stat-time, test-utimens: improve portability
38866         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
38867         ext4 on alpha, and for cygwin.
38868         * tests/test-utimens-common.h: New file.
38869         (nap): Factor delays into single function.
38870         * tests/test-lutimens.h (test_lutimens): Use new header.
38871         * tests/test-futimens.h (test_futimens): Likewise.
38872         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
38873         timestamps to occur from same machine, as was done previously for
38874         test_utimens.
38875         * modules/utimens-tests (Files): Ship new file.
38876         * modules/futimens-tests (Files): Likewise.
38877         Reported in part by Jim Meyering.
38878
38879         sys_stat: sort replacement declarations
38880         * lib/sys_stat.in.h: Sort declarations.
38881         * lib/futimens.c (futimens): Fix typo.
38882
38883 2009-10-15  Jim Meyering  <meyering@redhat.com>
38884
38885         don't let environment settings perturb build
38886         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
38887         could cause a configure-time and/or build-time malfunction.
38888         Typically, a configure-time function-in-library test is performed
38889         via code like this:
38890
38891           LIB_VAR=
38892           AC_SUBST([LIB_VAR])
38893           prefix_saved_LIBS=$LIBS
38894             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
38895                        [test "$ac_cv_search_FUNC" = "none required" ||
38896                         LIB_VAR=$ac_cv_search_FUNC])
38897           LIBS=$prefix_saved_LIBS
38898
38899         However, in each of the files affected by this change, the LIB_VAR=
38900         initialization was omitted.  Thus, when set in the environment, its
38901         value would propagate into generated Makefiles when FUNC is not found
38902         in LIB_NAME.
38903         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
38904         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
38905         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
38906
38907 2009-10-14  Eric Blake  <ebb9@byu.net>
38908
38909         fchdir: avoid infinite recursion in mingw
38910         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
38911         recursing.
38912
38913         test-stat-time: port to mingw
38914         * tests/test-stat-time.c (force_unlink): Return a value.
38915         (test_ctime) [W32]: Fix compilation error.
38916         (nap): Don't call usleep with too large an argument.  Use
38917         force_unlink.
38918         * doc/pastposix-functions/usleep.texi (usleep): Document the
38919         portability issue.
38920
38921 2009-10-13  Jim Meyering  <meyering@redhat.com>
38922
38923         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
38924         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
38925         * modules/pipe-filter-ii: Likewise.
38926         * modules/sys_socket-tests: Likewise.
38927         * modules/tsearch-tests: Likewise.
38928         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
38929         (check): Depend on it.
38930
38931 2009-10-12  Eric Blake  <ebb9@byu.net>
38932
38933         utimens-tests: port to NFS file systems
38934         * tests/test-utimens.h (test_utimens): Refactor utimecmp
38935         comparisons to avoid spurious failures from timestamp drift
38936         between NFS machines.
38937
38938 2009-10-12  Eric Blake  <ebb9@byu.net>
38939
38940         stat-time-tests: minor cleanups
38941         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
38942         * tests/test-stat-time.c (nap): Separate assignment from call.
38943         Suggested by Paolo Bonzini and Bruno Haible.
38944
38945         sys_stat: guarantee struct timespec
38946         * lib/sys_stat.in.h (includes): Always include <time.h>
38947         * modules/sys_stat (Depends-on): Add time.
38948         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
38949         mode_t permission values.
38950         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
38951         get at subsecond timestamps.
38952
38953 2009-10-10  Eric Blake  <ebb9@byu.net>
38954
38955         futimens: new module
38956         * modules/futimens: New file.
38957         * lib/futimens.c (futimens): Likewise.
38958         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
38959         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
38960         we can work around Linux bugs.
38961         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
38962         * modules/sys_stat (Makefile.am): Substitute them.
38963         * lib/sys_stat.in.h (futimens): Declare it.
38964         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
38965         * doc/posix-functions/futimens.texi (futimens): Likewise.
38966         * modules/futimens-tests: New test.
38967         * tests/test-futimens.c: Likewise.
38968
38969         utimens: introduce fdutimens
38970         * lib/utimens.h (fdutimens): New prototype.
38971         * lib/utimens.c (gl_futimens): Move guts...
38972         (fdutimens): ...to new interface.
38973         * tests/test-utimens.c (do_fdutimens): Use it.
38974
38975         utimens: add UTIME_NOW and UTIME_OMIT support
38976         * lib/utimens.c (validate_timespec, update_timespec): New helper
38977         functions.
38978         (gl_futimens, lutimens): Use them.
38979         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
38980         stdbool, sys_stat.
38981         (Link): Mention resulting library dependency.
38982         * modules/utimecmp (Link): Likewise.
38983         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
38984         (Makefile.am): Pick up library dependency.
38985         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
38986         definition.
38987         * tests/test-sys_stat.c: Test the definitions.
38988         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
38989         * NEWS: Document library dependency.
38990
38991         utimecmp: support symlink timestamps
38992         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
38993         hashing when possible.  Use pathconf when available.
38994         (SYSCALL_RESOLUTION): Recognize tighter resolution.
38995         * modules/utimecmp (Depends-on): Add lstat.
38996
38997         utimens: add lutimens interface
38998         * lib/utimens.c (lutimens): New function.
38999         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
39000         * lib/utimens.h (lutimens): Declare new interface.
39001         * tests/test-utimens.c (main): Enhance test.
39002         * tests/test-lutimens.h (test_lutimens): New file.
39003         * modules/utimens-tests (Files): Distribute it.
39004         (Depends-on): Add symlink.
39005         (configure.ac): Check for usleep.
39006
39007         utimens: validate futimens usage
39008         * lib/utimens.c (gl_futimens): Require valid fd up front, using
39009         fewer syscalls on failure later on.  Avoid compiler warning on
39010         mingw.
39011         * modules/utimens (Depends-on): Add dup2.
39012
39013         utimens: add test
39014         * modules/utimens-tests: New test.
39015         * tests/test-utimens.h: New file.
39016         * tests/test-futimens.h: Likewise.
39017         * tests/test-utimens.c: Likewise.
39018
39019         doc: mention timestamp portability issues
39020         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
39021         instead.
39022         * doc/posix-functions/utime.texi (utime): Likewise.
39023         * doc/posix-functions/utimes.texi (utimes): Likewise.
39024         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
39025         instead.
39026         * doc/posix-functions/futimens.texi (futimens): Mention utimens
39027         module.
39028         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39029         Mention weakness with symlink timestamps.
39030         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
39031         to utimensat/futimens instead.
39032         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
39033
39034         test-dup2: enhance test
39035         * tests/test-dup2.c (main): Also check AT_FDCWD.
39036
39037         test-stat-time: avoid more spurious failures
39038         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
39039         xfs; and avoid race if the two timestamps cross quantization edge.
39040
39041         relocatable: prefer 'file system' over 'filesystem'
39042         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
39043         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
39044         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
39045         * doc/relocatable.texi (Enabling Relocatability): Likewise.
39046         * lib/relocatable.c (compute_curr_prefix): Likewise.
39047
39048 2009-10-10  Jim Meyering  <meyering@redhat.com>
39049
39050         stat-time-tests: check for the usleep function
39051         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
39052
39053 2009-10-10  Bruno Haible  <bruno@clisp.org>
39054
39055         * modules/xnanosleep: Put the Link section after the Include section.
39056
39057 2009-10-09  Eric Blake  <ebb9@byu.net>
39058
39059         dup2: work around FreeBSD 6.1 bug
39060         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
39061         * doc/posix-functions/dup2.texi (dup2): Document it.
39062         Reported by Nelson H. F. Beebe and Jim Meyering.
39063
39064         test-stat-time: port to buggy NFS clients
39065         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
39066         (test_ctime): Also skip test if mtime and ctime are skewed.
39067
39068         maint: prefer 'file system' over 'filesystem'
39069         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
39070         * doc/posix-functions/lstat.texi (lstat): Likewise.
39071         * lib/file-has-acl.c (file_has_acl): Likewise.
39072         * lib/fwriteerror.c [TEST]: Likewise.
39073         * tests/test-areadlink.h (test_areadlink): Likewise.
39074         * tests/test-areadlinkat-with-size.c (main): Likewise.
39075         * tests/test-areadlinkat.c (main): Likewise.
39076         * tests/test-canonicalize-lgpl.c (main): Likewise.
39077         * tests/test-canonicalize.c (main): Likewise.
39078         * tests/test-fstatat.c (main): Likewise.
39079         * tests/test-linkat.c (main): Likewise.
39080         * tests/test-lstat.h (test_lstat_func): Likewise.
39081         * tests/test-mkdir.h (test_mkdir): Likewise.
39082         * tests/test-readlink.h (test_readlink): Likewise.
39083         * tests/test-remove.c (main): Likewise.
39084         * tests/test-rename.h (test_rename): Likewise.
39085         * tests/test-renameat.c (main): Likewise.
39086         * tests/test-rmdir.h (test_rmdir_func): Likewise.
39087         * tests/test-symlink.h (test_symlink): Likewise.
39088         * tests/test-symlinkat.c (main): Likewise.
39089         * tests/test-unlink.h (test_unlink_func): Likewise.
39090         * tests/test-unlinkat.c (main): Likewise.
39091
39092         maint: make realtime library usage explicit
39093         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
39094         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
39095         * modules/settime (Link): Likewise.
39096         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
39097
39098         test-stat-time: speed up execution
39099         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
39100         warning on mingw.
39101         (nap): New helper function.
39102         (prepare_test): Use it to reduce sleep time.
39103         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
39104         execution.
39105         * modules/stat-time-tests (configure.ac): Check for usleep.
39106
39107 2009-10-09  Jim Meyering  <meyering@redhat.com>
39108
39109         selinux-h: always use getfilecon wrappers
39110         * lib/getfilecon.c: New file.
39111         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
39112         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
39113         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
39114         (fgetfilecon): Provide a stub.
39115         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
39116         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
39117         file unconditionally.
39118         When <selinux/selinux.h> is found, arrange to use wrappers.
39119         * modules/selinux-h (Files): Add getfilecon.c.
39120         (Makefile.am): Substitute include-next-related bits
39121         into the now-always-generated selinux/selinux.h file.
39122         * doc/glibc-functions/lgetfilecon.texi: New file.
39123         * doc/glibc-functions/fgetfilecon.texi: New file.
39124         * doc/glibc-functions/getfilecon.texi: New file.
39125         * doc/glibc-functions/getfilecon-desc.texi: New file.
39126         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
39127         which to pull in the new files.
39128         * MODULES.html.sh (Misc): Add selinux-h.
39129
39130 2009-10-08  Jim Meyering  <meyering@redhat.com>
39131
39132         unistd: fix comment typo
39133         * lib/unistd.in.h (euidaccess): Fix a comment typo.
39134
39135 2009-10-08  Eric Blake  <ebb9@byu.net>
39136
39137         areadlink: use SIZE_MAX consistently
39138         * modules/areadlink (Depends-on): Add stdint.
39139         * modules/areadlink-with-size (Depends-on): Likewise.
39140         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
39141         gives NULL; drop sys/types, since unistd gives size_t; and add
39142         stdint for SIZE_MAX.
39143         (SIZE_MAX): Rely on headers.
39144         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
39145         and add stdint.
39146         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
39147         (SIZE_MAX): Likewise.
39148         (INITIAL_BUF_SIZE): Turn into enum.
39149         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
39150
39151 2009-10-08  Jim Meyering  <meyering@redhat.com>
39152
39153         areadlinkat: avoid compilation failure
39154         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
39155         Fix typo in comment.
39156
39157 2009-10-07  Eric Blake  <ebb9@byu.net>
39158
39159         areadlinkat-with-size: new module
39160         * modules/areadlinkat-with-size: New module.
39161         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
39162         * lib/areadlink.h (areadlinkat): Declare it.
39163         * MODULES.html.sh (File system functions): Mention it.
39164         * modules/areadlinkat-with-size-tests: New test.
39165         * tests/test-areadlinkat-with-size.c: New file.
39166
39167         xreadlinkat: new module
39168         * modules/xreadlinkat: New module.
39169         * lib/xreadlinkat.c (xreadlinkat): New file.
39170         * lib/xreadlink.h (xreadlinkat): Declare it.
39171         * MODULES.html.sh (File system functions): Mention it.
39172
39173         areadlinkat: new module
39174         * lib/at-func.c (FUNC_FAIL): New define.
39175         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
39176         * modules/areadlinkat: New module.
39177         * lib/linkat.c (areadlinkat): Move...
39178         * lib/areadlinkat.c (areadlinkat): ...to new file.
39179         * lib/areadlink.h (areadlinkat): Declare it.
39180         * modules/linkat (Depends-on): Add areadlinkat.
39181         * MODULES.html.sh (File system functions): Mention it.
39182         * modules/areadlinkat-tests: New test.
39183         * tests/test-areadlinkat.c: New file.
39184
39185         areadlink, areadlink-with-size: add tests
39186         * modules/areadlink-tests: New test.
39187         * modules/areadlink-with-size-tests: Likewise.
39188         * tests/test-areadlink.h: New file.
39189         * tests/test-areadlink.c: Likewise.
39190         * tests/test-areadlink-with-size.c: Likewise.
39191
39192         maint: minor cleanups
39193         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
39194         _UNUSED_PARAMETER_ instead.
39195         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
39196         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
39197         * modules/linkat-tests (Files): Distribute test-link.h.
39198
39199         openat, utimens: whitespace cleanup
39200         * lib/openat.c: Prefer space throughout, rather than mix of 8
39201         spaces vs. tabs.
39202         * lib/at-func.c: Likewise.
39203         * lib/utimens.c: Likewise.
39204
39205         openat: avoid using wrong fd
39206         * lib/openat.c (openat_permissive): Reject user's fd if saving the
39207         working directory chooses same fd.
39208         * lib/at-func.c (AT_FUNC_NAME): Likewise.
39209
39210         mkdir, mkdirat: fix cygwin 1.5.x bug
39211         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
39212         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
39213         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
39214         bug.
39215         (gl_PREREQ_MKDIR): Delete unused macro.
39216         * modules/mkdir (Files): Track file rename.
39217         (configure.ac): Update macro name.
39218         * modules/openat (Depends-on): Add mkdir.
39219         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
39220
39221         mkdir, mkdirat: add tests
39222         * modules/mkdir-tests: New test.
39223         * tests/test-mkdir.h: New file.
39224         * tests/test-mkdir.c: Likewise.
39225         * tests/test-mkdirat.c: Likewise.
39226         * modules/openat-tests (Files): Add new files.
39227         (Makefile.am): Run new test.
39228
39229 2009-10-06  Eric Blake  <ebb9@byu.net>
39230
39231         doc: tweak *at function documentation
39232         * doc/posix-functions/faccessat.texi (faccessat): Mention
39233         known issue with replacement.
39234         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
39235         * doc/posix-functions/linkat.texi (linkat): Likewise.
39236         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
39237         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
39238         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
39239         * doc/posix-functions/renameat.texi (renameat): Likewise.
39240         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
39241
39242         openat: fix GNU/Hurd bug in unlinkat
39243         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
39244         broken.
39245         * doc/posix-functions/unlink.texi (unlink): Document this.
39246         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
39247
39248         fdopendir: fix GNU/Hurd bug
39249         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
39250         allowing non-directory fds.
39251         * lib/fdopendir.c (rpl_fdopendir): Work around it.
39252         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
39253         * modules/dirent (Makefile.am): Substitute it.
39254         * lib/dirent.in.h (fdopendir): Declare replacement.
39255         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
39256         * tests/test-fdopendir.c (main): Test something other than
39257         /dev/null, since on Hurd that behaves like a directory.
39258
39259         test-symlink: port to GNU/Hurd
39260         * tests/test-symlink.h (test_symlink): Relax expected errno.
39261
39262         doc: tweak more cygwin information
39263         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
39264         now compatible with glibc.
39265         * doc/posix-functions/getopt.texi (getopt): Likewise.
39266
39267         getopt-gnu: add another test
39268         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
39269         guarantee behavior relied on by m4.
39270         * tests/test-getopt.c (main): Use it.
39271         * modules/getopt-posix-tests (Depends-on): Add setenv.
39272         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
39273
39274         getopt: fix compilation on darwin
39275         * lib/getopt.in.h (includes): Leave breadcrumbs during system
39276         include.
39277         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
39278         Reported by Ludovic Courtès.
39279
39280 2009-10-06  Bruno Haible  <bruno@clisp.org>
39281
39282         * modules/size_max (Description): Discourage its use.
39283         Reported by Simon Josefsson.
39284
39285 2009-10-06  Jim Meyering  <meyering@redhat.com>
39286
39287         linkat: avoid compilation failure
39288         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
39289
39290 2009-10-05  Eric Blake  <ebb9@byu.net>
39291
39292         linkat: support Linux 2.6.17
39293         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
39294         linkat on Linux, but allow cache variable override.
39295         * lib/linkat.c (rpl_linkat): Define override.
39296         * modules/linkat (Depends-on): Add symlinkat.
39297         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
39298         * modules/unistd (Makefile.am): Substitute it.
39299         * lib/unistd.in.h (linkat): Declare replacement.
39300         Reported by Pádraig Brady.
39301
39302         quotearg: port test to systems with C.UTF-8 locale
39303         * tests/test-quotearg.c (struct result_strings): Add another
39304         member, differentiating between C.ASCII and C.UTF-8 handling.
39305         (compare_strings): Add parameter.
39306         (main): Adjust all callers.
39307
39308         getopt: avoid clash with FreeBSD _getopt_internal
39309         * lib/getopt.in.h (_getopt_internal): Override the name.
39310         * lib/getopt_int.h (includes): Pick up any overrides.
39311         Reported by Reuben Thomas.
39312
39313         hash: allow C89 compilation
39314         * lib/hash.c (check_tuning): Move declaration before statement.
39315         Reported by Reuben Thomas.
39316
39317 2009-10-05  Karl Berry  <karl@gnu.org>
39318
39319         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
39320
39321 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
39322             Bruno Haible  <bruno@clisp.org>
39323
39324         * lib/uname.c (uname): Use a table-driven algorithm to compute
39325         Windows NT versions.
39326
39327 2009-10-04  Bruno Haible  <bruno@clisp.org>
39328
39329         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
39330         program_invocation_short_name.
39331         * modules/progname (configure.ac): Test for presence of
39332         program_invocation_short_name.
39333         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
39334
39335 2009-10-04  Bruno Haible  <bruno@clisp.org>
39336
39337         * lib/progname.c (set_program_name): Fix comment.
39338         Reported by Jim Meyering.
39339
39340 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
39341             Bruno Haible  <bruno@clisp.org>
39342
39343         * lib/uname.c: Include <string.h>.
39344         (uname): Do only one call to GetVersionEx in the common case.
39345
39346 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
39347             Bruno Haible  <bruno@clisp.org>
39348
39349         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
39350         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
39351         (uname): Add support for Windows CE and various non-x86 CPU types.
39352
39353 2009-10-03  Bruno Haible  <bruno@clisp.org>
39354
39355         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
39356         invocation to tests/configure.ac.
39357         Reported by Ian Beckwith <ianb@erislabs.net>.
39358
39359 2009-10-02  Eric Blake  <ebb9@byu.net>
39360
39361         fchdir: avoid compiler warning
39362         * lib/fchdir.c (canonicalize_file_name)
39363         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
39364
39365         test-open: support mingw errno values
39366         * tests/test-open.h (test_open): Relax test.
39367         * tests/test-fopen.h (test_fopen): Likewise.
39368         * tests/test-openat-safer.c (main): Likewise.
39369
39370         open: fix opening directory on mingw
39371         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
39372
39373         test-open: on GNU/Hurd, /dev/null is a directory
39374         * tests/test-fopen.h (main): Rename...
39375         (test_fopen): ...to this.  Use a guaranteed non-directory when
39376         confirming open behavior on trailing slash.
39377         * tests/test-openat-safer.c (main): Likewise.
39378         * tests/test-open.h (main): Likewise....
39379         (test_open): ...to this.
39380         * tests/test-fopen.c (main): Adjust caller.
39381         * tests/test-fopen-safer.c (main): Likewise.
39382         * tests/test-open.c (main): Likewise.
39383         * tests/test-fcntl-safer.c (main): Likewise.
39384         Reported by Samuel Thibault.
39385
39386         rename, fchdir: don't ignore chdir failure
39387         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
39388         * lib/rename.c (rpl_rename) [W32]: Likewise.
39389         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
39390         an empty destination directory if source cannot be renamed,
39391         although there is still possibility for failure.
39392         * doc/posix-functions/rename.texi (rename): Document the race.
39393         Reported by Jim Meyering.
39394
39395         maint: cleanup whitespace in recent commits
39396         * lib/rename.c (rpl_rename): Remove tabs.
39397         * tests/test-link.h (test_link): Likewise.
39398         * lib/fchdir.c (get_name): Likewise.
39399         Reported by Jim Meyering.
39400
39401 2009-10-02  Ben Pfaff  <blp@gnu.org>
39402
39403         relocatable-prog-wrapper: Add missing dependency on
39404         double-slash-root.
39405         * modules/relocatable-prog-wrapper: Add dependency.
39406         Reported by Ian Beckwith <ianb@erislabs.net>.
39407
39408 2009-10-02  Eric Blake  <ebb9@byu.net>
39409
39410         renameat: fix Solaris bugs
39411         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
39412         needed fixing.
39413         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
39414         * modules/stdio (Makefile.am): Substitute it.
39415         * lib/stdio.in.h (renameat): Declare replacement.
39416         * lib/renameat.c (rpl_renameat): Implement fix.
39417
39418         renameat: new module
39419         * modules/renameat: New file.
39420         * lib/renameat.c (renameat): Likewise.
39421         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
39422         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
39423         * modules/stdio (Makefile.am): Substitute them.
39424         * lib/stdio.in.h (renameat): Declare it.
39425         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39426         * doc/posix-functions/renameat.texi (renameat): Likewise.
39427         * modules/renameat-tests: New test.
39428         * tests/test-renameat.c: Likewise.
39429
39430         rename: fix mingw bugs
39431         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
39432         directory overwrite bugs.
39433
39434         rename: fix another cygwin 1.5 bug
39435         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
39436         checks.
39437         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
39438         unnecessary cygwin workarounds.  Also work around bug with moving
39439         full directory onto an empty one.
39440         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
39441
39442         rename-dest-slash: merge into rename module
39443         * modules/rename-dest-slash (Status): Mark obsolete.
39444         (Depends-on): Add rename.
39445         (Files): Let rename do it all.
39446         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
39447         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
39448         * m4/rename-dest-slash.m4: ...so this file can be deleted.
39449         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
39450         * lib/rename.c (rpl_rename): Update comments.
39451
39452         rename: fix cygwin 1.5.x bugs
39453         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
39454         * lib/rename.c (rpl_rename): Work around them.
39455         * modules/rename (Depends-on): Add same-inode.
39456
39457         rename: fix Solaris 10 bug
39458         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
39459         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
39460         was the only bug.
39461
39462         rename: fix Solaris 9 bug
39463         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
39464         on non-directory.  Avoid calling exit.
39465         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
39466         strdup.
39467         * modules/rename-tests (Depends-on): Drop lstat.
39468         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
39469         (gl_PREREQ_RENAME): Delete unused macro.
39470
39471         rename-dest-slash: fix NetBSD bug
39472         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
39473         links.
39474         * modules/rename-dest-slash (Depends-on): Add same-inode.
39475
39476         rename-tests: new test, exposes several platform bugs
39477         * modules/rename-tests: New file.
39478         * tests/test-rename.h: Likewise.
39479         * tests/test-rename.c: Likewise.
39480         * doc/posix-functions/rename.texi (rename): Improve documentation,
39481         including bugs that will eventually be fixed in gnulib.
39482
39483 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
39484
39485         * lib/uname.c: Include <stdlib.h>
39486         (uname): Assume version info is available.
39487
39488 2009-10-02  Jim Meyering  <meyering@redhat.com>
39489
39490         gnu-web-doc-update: correct --help output
39491         * build-aux/gnu-web-doc-update: Make --help output relevant.
39492
39493         gnu-web-doc-update: add standard options
39494         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
39495
39496         gnu-web-doc-update: New module.
39497         Use this script to automatically update the on-line web documentation
39498         for your GNU project at http://www.gnu.org/software/$pkg/manual/
39499         * modules/gnu-web-doc-update: New file, from coreutils.
39500         * build-aux/gnu-web-doc-update: New script.
39501
39502 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
39503
39504         link: LoadLibrary is not needed.
39505         * lib/link.c: Use GetModuleHandle.
39506
39507 2009-10-01  Eric Blake  <ebb9@byu.net>
39508
39509         getopt: bump serial number
39510         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
39511         change.
39512
39513         tests: tighten link, rmdir, and remove tests
39514         * tests/test-link.h (includes): No need to use <config.h> here.
39515         Clean up if directory hard link was created, otherwise test for
39516         trailing '.'.
39517         * tests/test-linkat.c (main): Simplify.
39518         * tests/test-remove.c (main): Enhance test for trailing '.'.
39519         * tests/test-rmdir.h (test_rmdir_func): Likewise.
39520
39521 2009-10-01  Jim Meyering  <meyering@redhat.com>
39522
39523         maint.mk: requiring "make major" was annoying, for a "minor" release.
39524         What is intended is "stable", to contrast with alpha and beta,
39525         so require "make stable", not "make major".
39526         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
39527         (get_tool_versions): Likewise.
39528         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
39529
39530 2009-09-30  Ben Pfaff  <blp@gnu.org>
39531
39532         Fix broken build of replacement for Windows tmpfile().
39533         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
39534         flags argument added along with the 'mkostemp' module.
39535
39536 2009-09-28  Bruno Haible  <bruno@clisp.org>
39537
39538         Avoid identifier clash with POSIX function 'remove' defined as a macro.
39539         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
39540         to 'remove_elt'.
39541         (gl_list_remove): Update.
39542         * lib/gl_list.c (gl_list_remove): Update.
39543         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
39544         to 'remove_elt'.
39545         (gl_oset_remove): Update.
39546         * lib/gl_list.c (gl_oset_remove): Update.
39547         Reported by Eric Blake.
39548
39549 2009-09-28  Eric Blake  <ebb9@byu.net>
39550
39551         doc: mention yet more cygwin 1.7 status
39552         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
39553         cygwin.
39554         * doc/glibc-functions/execvpe.texi (execvpe): New file.
39555         * doc/gnulib.texi (Glibc unistd.h): Mention it.
39556
39557         argp: fix test failure
39558         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
39559         that are not upper-case.  Pass correct range to tolower.
39560
39561 2009-09-27  Jim Meyering  <meyering@redhat.com>
39562
39563         test-yesno: work around sparc-dash here-document infelicity
39564         Without this change, the literal \177 byte in a here document
39565         would make dash 0.5.5.1-3 access uninitialized memory.
39566         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
39567         Instead, use a marker, "@", and filter through tr to create the desired
39568         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
39569
39570 2009-09-27  Bruno Haible  <bruno@clisp.org>
39571
39572         Disable untested support for new flavours of ACLs on AIX.
39573         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
39574         progress.
39575         * lib/set-mode-acl.c (qset_acl): Likewise.
39576
39577 2008-12-07  Bruno Haible  <bruno@clisp.org>
39578
39579         Add support for new flavours of ACLs on AIX. (Untested.)
39580         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
39581         (file_has_acl): Add support for newer AIX.
39582         * lib/set-mode-acl.c (qset_acl): Likewise.
39583         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
39584         Rainer Tammer <tammer@tammer.net>.
39585
39586 2009-09-26  Eric Blake  <ebb9@byu.net>
39587
39588         argp: fix compilation of getopt
39589         * lib/getopt.in.h (includes): Use different guard than glibc.
39590         Reported by Sergey Poznyakoff.
39591
39592         doc: mention more cygwin 1.7 status
39593         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
39594         bug.
39595         * doc/posix-functions/execl.texi (execl): Likewise.
39596         * doc/posix-functions/execle.texi (execle): Likewise.
39597         * doc/posix-functions/execlp.texi (execlp): Likewise.
39598         * doc/posix-functions/execv.texi (execv): Likewise.
39599         * doc/posix-functions/execve.texi (execve): Likewise.
39600         * doc/posix-functions/execvp.texi (execvp): Likewise.
39601         * doc/glibc-functions/canonicalize_file_name.texi
39602         (canonicalize_file_name): Cygwin 1.7 now provides this.
39603         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
39604         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
39605         on AT_SYMLINK_NOFOLLOW.
39606
39607 2009-09-24  Eric Blake  <ebb9@byu.net>
39608
39609         test-linkat: make test more robust
39610         * tests/test-linkat.c (main): Avoid collision with EEXIST.
39611
39612         getopt: fix inclusion guards for cygwin
39613         * modules/getopt-posix (Depends-on): Add include-next.
39614         (Makefile.am): Substitute more items in replacement header.
39615         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
39616         <getopt.h>.
39617         * lib/getopt.in.h (includes): Use split inclusion guard, and
39618         prefer <getopt.h> over include <unistd.h> when one is present.
39619         (option): Also override name of 'struct option'.
39620
39621         same-inode: revert prior change; it is not yet ready
39622         * NEWS: Undo mention of this change.
39623         * lib/same-inode.h (same-inode.h): Undo tri-state change.
39624         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
39625         * lib/cycle-check.c (cycle_check): Likewise.
39626         * lib/same.c (same_name): Likewise.
39627         * lib/at-func2.c (at_func2): Likewise.
39628
39629 2009-09-23  Eric Blake  <ebb9@byu.net>
39630
39631         linkat: new module
39632         * modules/linkat: New file.
39633         * lib/at-func2.c (at_func2): Likewise.
39634         * lib/linkat.c (linkat): Likewise.
39635         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
39636         * lib/openat-priv.h (at_func2): Add declaration.
39637         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
39638         * modules/unistd (Makefile.am): Substitute them.
39639         * lib/unistd.in.h (linkat): Declare it.
39640         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39641         * doc/posix-functions/linkat.texi (linkat): Likewise.
39642         * doc/posix-functions/link.texi (link): Tweak wording.
39643         * tests/test-link.c (main): Move guts...
39644         * tests/test-link.h (test_link): ...into new file.
39645         * modules/linkat-tests: New test.
39646         * tests/test-linkat.c: Likewise.
39647         * modules/link-tests (Files): Ship new file.
39648         (Depends-on): Add stdbool.
39649
39650         dirname: add library-safe mdir_name
39651         * lib/dirname.h (mdir_name): New prototype.
39652         * lib/dirname.c (dir_name): Move guts...
39653         (mdir_name): ...to new function that avoids xalloc_die.
39654
39655         fchdir: another mingw fix
39656         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
39657         * lib/fchdir.c (get_name): New helper method; skips canonicalize
39658         on mingw (where it has not yet been ported), and make it optional
39659         elsewhere.
39660         (_gl_register_fd): Use it.
39661
39662         same-inode: make SAME_INODE tri-state, to port to mingw
39663         * NEWS: Mention this change.
39664         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
39665         st_ino always being 0.
39666         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
39667         * lib/cycle-check.c (cycle_check): Likewise.
39668         * lib/same.c (same_name): Likewise.
39669
39670         lstat: avoid mingw compilation error
39671         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
39672         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
39673         lstat ourselves.
39674         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
39675         was adequate.
39676         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
39677         the checks for lstat.
39678         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
39679
39680         link: fix test failure on Solaris 9
39681         * lib/link.c (rpl_link): Don't assume link will catch bogus
39682         trailing slash on source.
39683
39684         test-symlinkat: enhance test
39685         * tests/test-readlink.c (main): Move guts...
39686         * tests/test-readlink.h (test_readlink): ...into new file.
39687         * tests/test-symlink.c (main): Move guts...
39688         * tests/test-symlink.h (test_symlink): ...into new file.
39689         * tests/test-symlinkat.c (main): Use new files for further
39690         coverage.
39691         (do_symlink, do_readlink): New helper functions.
39692         * modules/symlink-tests (Files): Ship new file.
39693         (Depends-on): Add stdbool.
39694         * modules/readlink-tests (Files): Ship new file.
39695         (Depends-on): Add stdbool.
39696         * modules/symlinkat-tests (Files): Use new files.
39697
39698 2009-09-23  Eric Blake  <ebb9@byu.net>
39699
39700         readlink: document portability issue with symlink length
39701         * doc/posix-functions/lstat.texi (lstat): Mention that some file
39702         systems have bogus st_size on symlinks, and mention the
39703         areadlink-with-size module.
39704         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
39705         * doc/posix-functions/readlink.texi (readlink): Mention the
39706         areadlink module, and ERANGE failure.
39707         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
39708         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
39709
39710         readlink: fix Solaris 9 bug with trailing slash
39711         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
39712         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
39713         * doc/posix-functions/readlink.texi (readlink): Document this.
39714         * modules/readlink-tests: New test.
39715         * tests/test-readlink.c: Likewise.
39716
39717         readlink: fix cygwin 1.5.x bug with return type
39718         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
39719         * lib/unistd.in.h (readlink): Use ssize_t.
39720         * lib/readlink.c (readlink): Likewise.
39721         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39722         * modules/unistd (Makefile.am): Substitute it.
39723         * lib/unistd.in.h (readlink): Declare replacement.
39724         * doc/posix-functions/readlink.texi (readlink): Document this.
39725
39726         symlink: use throughout gnulib
39727         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
39728         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
39729         symlink is not used.
39730         * modules/symlinkat (Depends-on): Add symlink.
39731         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
39732         * modules/canonicalize-tests (Depends-on): Likewise.
39733         * modules/lstat-tests (Depends-on): Likewise.
39734         * modules/openat-tests (Depends-on): Likewise.
39735         * modules/remove-tests (Depends-on): Likewise.
39736         * modules/rmdir-tests (Depends-on): Likewise.
39737         * modules/unlink-tests (Depends-on): Likewise.
39738         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
39739         * tests/test-canonicalize.c (symlink): Likewise.
39740         * tests/test-fstatat.c (symlink): Likewise.
39741         * tests/test-lstat.c (symlink): Likewise.
39742         * tests/test-remove.c (symlink): Likewise.
39743         * tests/test-rmdir.c (symlink): Likewise.
39744         * tests/test-unlink.c (symlink): Likewise.
39745         * tests/test-unlinkat.c (symlink): Likewise.
39746
39747         symlink: new module, for Solaris 9 bug
39748         * modules/symlink: New file.
39749         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
39750         * lib/symlink.c: Likewise.
39751         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
39752         * modules/unistd (Makefile.am): Substitute them.
39753         * lib/unistd.in.h (symlink): Declare replacement.
39754         * MODULES.html.sh (File system functions): Mention it.
39755         * doc/posix-functions/symlink.texi (symlink): Likewise.
39756         * modules/symlink-tests: New test.
39757         * tests/test-symlink.c: Likewise.
39758
39759 2009-09-23  Bruno Haible  <bruno@clisp.org>
39760
39761         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
39762         when needed.
39763         Test case: gnulib-tool --import --with-tests atexit inttypes.
39764         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
39765
39766 2009-09-23  Bruno Haible  <bruno@clisp.org>
39767
39768         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
39769         subcommand, not in a subshell.
39770
39771 2009-09-22  Eric Blake  <ebb9@byu.net>
39772
39773         unistd: sort replacement declarations
39774         * lib/unistd.in.h: Sort declarations.
39775
39776         open, openat: minor optimization
39777         * lib/open.c (open): If open succeeded, len is non-zero.
39778         * lib/openat.c (rpl_openat): Likewise.
39779
39780         link-follow: ensure correct result
39781         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
39782         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
39783         distinguish between possible failures.
39784
39785 2009-09-21  Eric Blake  <ebb9@byu.net>
39786
39787         fts: avoid compiler warning
39788         * lib/fts.c (dirent_inode_sort_may_be_useful)
39789         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
39790
39791 2009-09-19  Bruno Haible  <bruno@clisp.org>
39792
39793         * lib/progreloc.c (canonicalize_file_name): New declaration.
39794
39795 2009-09-19  Eric Blake  <ebb9@byu.net>
39796
39797         link: fix quoting
39798         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
39799
39800         openat: fix openat bugs on Solaris 9
39801         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
39802         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
39803         * modules/openat (Depends-on): Add open.
39804         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
39805         * modules/fcntl-h (Makefile.am): Substitute it.
39806         * lib/fcntl.in.h (openat): Declare replacement.
39807         * doc/posix-functions/openat.texi (openat): Document this.
39808
39809         openat: move fstatat and unlinkat into correct files
39810         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
39811         compiled.
39812         * lib/openat.c (fstatat, unlinkat): Move...
39813         * lib/fstatat.c (fstatat): ...into correct files.
39814         * lib/unlinkat.c (unlinkat): Likewise.
39815
39816         openat: fix unlinkat bugs on Solaris 9
39817         * lib/unlinkat.c (unlinkat): New file.
39818         * modules/openat (Depends-on): Add unlink.
39819         (Files): Distribute it.
39820         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
39821         trailing slash behavior is broken.
39822         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39823         * modules/unistd (Makefile.am): Substitute it.
39824         * lib/unistd.in.h (unlinkat): Declare replacement.
39825         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
39826
39827         openat: fix fstatat bugs on Solaris 9
39828         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
39829         stat.
39830         * doc/posix-functions/fstatat.texi (fstatat): Document this.
39831
39832         test-unlinkat: enhance test, to expose Solaris 9 bug
39833         * tests/test-unlink.c (main): Factor guts...
39834         * tests/test-unlink.h (test_rmdir_func): ...into new file.
39835         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
39836         * tests/test-rmdir.c (main): Adjust caller.
39837         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
39838         (unlinker): New helper function.
39839         (rmdirat): Enhance check.
39840         * modules/rmdir-tests (Depends-on): Add stdbool.
39841         * modules/unlink-tests (Depends-on): Likewise.
39842         (Files): Add test-unlink.h.
39843         * modules/openat-tests (Files): Likewise.
39844         (Depends-on): Add unlinkdir.
39845
39846         test-fstatat: new test, to expose Solaris 9 bugs
39847         * tests/test-stat.c (main): Factor guts...
39848         * tests/test-stat.h (test_stat_func): ...into new file.
39849         * tests/test-lstat.c (main): Factor guts...
39850         * tests/test-lstat.h (test_lstat_func): ...into new file.
39851         * tests/test-fstatat.c: New file.
39852         * modules/stat-tests (Files): Add test-stat.h.
39853         * modules/lstat-tests (Files): Add test-lstat.h.
39854         (Depends-on): Add stdbool.
39855         * modules/openat-tests (Depends-on): Add pathmax.
39856         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
39857         (Makefile.am): Run new test.
39858
39859         remove: new module, for mingw and Solaris 9 bugs
39860         * modules/remove: New file.
39861         * lib/remove.c: Likewise.
39862         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
39863         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
39864         * modules/stdio (Makefile.am): Use them.
39865         * lib/stdio.in.h (remove): Declare replacement.
39866         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39867         * doc/posix-functions/remove.texi (remove): Likewise.
39868         * modules/remove-tests: New test.
39869         * tests/test-remove.c: Likewise.
39870
39871         unlink: new module, for Solaris 9 bug
39872         * modules/unlink: New file.
39873         * lib/unlink.c: Likewise.
39874         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
39875         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
39876         * modules/unistd (Makefile.am): Use them.
39877         * lib/unistd.in.h (stat): Declare replacement.
39878         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39879         * doc/posix-functions/unlink.texi (unlink): Likewise.
39880         * modules/unlink-tests: New test.
39881         * tests/test-unlink.c: Likewise.
39882
39883         lstat: fix Solaris 9 bug
39884         * lib/lstat.c (lstat): Also check for trailing slash on
39885         non-symlink, non-directories.  Use stat module to simplify logic.
39886         * doc/posix-functions/lstat.texi (lstat): Document it.
39887         * modules/lstat-tests (Depends-on): Add errno, same-inode.
39888         (configure.ac): Check for symlink.
39889         * tests/test-lstat.c (main): Add more tests.
39890
39891         stat: add as dependency to other modules
39892         * modules/chown (Depends-on): Add stat.
39893         * modules/euidaccess (Depends-on): Likewise.
39894         * modules/fchdir (Depends-on): Likewise.
39895         * modules/isdir (Depends-on): Likewise.
39896         * modules/link (Depends-on): Likewise.
39897         * modules/lstat (Depends-on): Likewise.
39898         * modules/mkdir-p (Depends-on): Likewise.
39899         * modules/modechange (Depends-on): Likewise.
39900         * modules/open (Depends-on): Likewise.
39901         * modules/readlink (Depends-on): Likewise.
39902         * modules/same (Depends-on): Likewise.
39903
39904         stat: fix Solaris 9 bug
39905         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
39906         slash.
39907         * lib/stat.c (rpl_stat): Work around it.
39908         * doc/posix-functions/stat.texi (stat): Update documentation.
39909
39910         stat: new module, for mingw bug
39911         * modules/stat: New file.
39912         * lib/stat.c: Likewise.
39913         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
39914         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
39915         * modules/sys_stat (Makefile.am): Use them.
39916         * lib/sys_stat.in.h (stat): Declare replacement.
39917         * lib/openat.c (fstatat): Deal with lstat and stat being function
39918         macros.
39919         * modules/openat (Depends-on): Add inline.
39920         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
39921         * doc/posix-functions/stat.texi (stat): Likewise.
39922         * modules/stat-tests: New test.
39923         * tests/test-stat.c: Likewise.
39924
39925 2009-09-19  Jim Meyering  <meyering@redhat.com>
39926
39927         syntax-check: detect unnecessary inclusion of canonicalize.h
39928         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
39929
39930 2009-09-19  Eric Blake  <ebb9@byu.net>
39931
39932         canonicalize-lgpl: adjust clients to use correct header
39933         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
39934         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
39935         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
39936         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
39937         * lib/progreloc.c (includes): Likewise.
39938
39939 2009-09-19  Jim Meyering  <meyering@redhat.com>
39940
39941         test-posixtm.c: correct a comment
39942         * tests/test-posixtm.c: Correct first-line comment.
39943         Spotted by Eric Blake.
39944
39945 2009-09-16  Jim Meyering  <meyering@redhat.com>
39946
39947         posixtm-tests: make T const-correct; add a test case
39948         * tests/test-posixtm.c (T): Declare const.
39949         Add a test for -(2^31+1).
39950         Remove useless can-succeed-only-in-2002 test.
39951
39952         posixtm-tests: adjust the sole failing test
39953         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
39954         expected output matches what mktime now produces.  Cross-checked via
39955         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
39956
39957         posixtm: move #ifdef'd tests into a new module
39958         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
39959         * tests/test-posixtm.c: ... this new file.
39960         * modules/posixtm-tests: New module.
39961
39962 2009-09-19  Eric Blake  <ebb9@byu.net>
39963
39964         openat: simplify use of at-func.c
39965         * lib/at-func.c (includes): Include prerequisites here, to
39966         simplify requirements on client files.
39967         * lib/openat-priv.h: Add double-inclusion guard.
39968         * lib/faccessat.c (includes): Simplify.
39969         * lib/fchmodat.c (includes): Likewise.
39970         * lib/fchownat.c (includes): Likewise.
39971         * lib/mkdirat.c (includes): Likewise.
39972         * lib/mkfifoat.c (includes): Likewise.
39973         * lib/symlinkat.c (includes): Likewise.
39974
39975         openat: allow return of fd 0
39976         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
39977         * modules/save-cwd (Depends-on): Replace fcntl-safer with
39978         unistd-safer.
39979         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
39980         <fcntl.h>; this module does not leak fds.
39981         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
39982         must be allowed to return 0, leaving openat_safer to add the
39983         safety.
39984         (openat_permissive): Avoid writing to just-opened fd 2 if
39985         restoring the current directory fails.
39986         * lib/openat-die.c (openat_restore_fail): Add comment.
39987         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
39988         (save_cwd): Guarantee safe fd, but without use of open_safer.
39989         * tests/test-openat.c: New test.
39990         * modules/openat-tests (Files, Makefile.am): Distribute and build
39991         new file.
39992
39993         relocatable-prog-wrapper: fix build
39994         * modules/relocatable-prog-wrapper (Files): Update name of
39995         canonicalize m4 file, broken on 2009-09-17.
39996         Reported by emad hajjar <aleppos@hotmail.com>.
39997
39998 2009-09-19  Bruno Haible  <bruno@clisp.org>
39999
40000         * lib/safe-alloc.h: Use the standard header with GPL copyright.
40001         * lib/safe-alloc.c: Likewise.
40002         Reported by Ian Beckwith <ianb@erislabs.net>.
40003
40004 2009-09-18  Bruno Haible  <bruno@clisp.org>
40005
40006         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
40007         Reported by <erobles@sensacd.com.mx>.
40008
40009 2009-09-17  Eric Blake  <ebb9@byu.net>
40010
40011         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
40012         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
40013         slashes when checking if last component is missing.
40014         * tests/test-canonicalize.c (main): Test this.
40015
40016         canonicalize, canonicalize-lgpl: honor // if distinct from /
40017         * modules/canonicalize (Files): Add double-slash-root.m4.
40018         * modules/canonicalize-lgpl (Files): Likewise.
40019         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
40020         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
40021         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
40022         fallback definition.
40023         (canonicalize_filename_mode): Use it to protect //.
40024         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
40025         (__realpath): Likewise.
40026         * tests/test-canonicalize.c (main): Test this.
40027         * tests/test-canonicalize-lgpl.c (main): Likewise.
40028         * modules/canonicalize-tests (Depends-on): Add same-inode.
40029         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
40030
40031         canonicalize-lgpl: fix glibc bug with trailing slash
40032         * m4/canonicalize-lgpl.m4: Move contents...
40033         * m4/canonicalize.m4: ...here.
40034         (gl_CANONICALIZE_LGPL): Factor realpath check...
40035         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
40036         glibc 2.3.5 bug, fixed 2005-04-27.
40037         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
40038         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
40039         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
40040         * modules/canonicalize-lgpl (Files): Manage file rename.
40041         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
40042         * modules/stdlib (Makefile.am): Substitute witness.
40043         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
40044         is needed.
40045         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
40046         replacement is required.
40047         * lib/canonicalize.c (canonicalize_file_name): Likewise.
40048         * doc/glibc-functions/canonicalize_file_name.texi
40049         (canonicalize_file_name): Document this.
40050         * doc/posix-functions/realpath.texi (realpath): Likewise.
40051
40052         canonicalize-lgpl: reject non-directory with trailing slash
40053         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
40054         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
40055         catches failures in glibc 2.3.5.
40056         * tests/test-canonicalize.c (main): Likewise.
40057
40058         canonicalize-lgpl: use native realpath if it works
40059         * lib/canonicalize-lgpl.c (realpath): Guard with
40060         FUNC_REALPATH_WORKS.
40061         * lib/stdlib.in.h (realpath): Make declaration optional based on
40062         HAVE_REALPATH.
40063         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
40064         native realpath works.
40065         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
40066         * modules/stdlib (Makefile.am): Substitute witness.
40067
40068         canonicalize, canonicalize-lgpl: use <stdlib.h>
40069         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
40070         (Include): Mention <stdlib.h>.
40071         (configure.ac): Mention functions we provide.
40072         * modules/canonicalize (configure.ac): Likewise.
40073         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
40074         realpath if canonicalize_file_name is missing.
40075         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
40076         * modules/stdlib (Makefile.am): Substitute witnesses.
40077         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
40078         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
40079         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
40080         * NEWS: Document this.
40081         * doc/glibc-functions/canonicalize_file_name.texi
40082         (canonicalize_file_name): Likewise.
40083         * doc/posix-functions/realpath.texi (realpath): Likewise.
40084         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
40085
40086         test-canonicalize: consolidate into single C program
40087         * tests/test-canonicalize.sh: Delete; move setup into...
40088         * tests/test-canonicalize.c (main): ...the program, making it
40089         easier to run in debugger.  Add some tests.
40090         * modules/canonicalize-tests (Files): Remove unused file.
40091         (Depends-on): Add progname.
40092         (configure.ac, Makefile.am): Simplify.
40093
40094         test-canonicalize-lgpl: consolidate into single C program
40095         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
40096         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
40097         easier to run in debugger.  Add some tests.
40098         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
40099         (configure.ac, Makefile.am): Simplify.
40100
40101         canonicalize: avoid resolvepath
40102         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
40103         unnecessary checks.
40104         * lib/canonicalize.c (includes): Simplify.
40105         (canonicalize_file_name): Drop resolvepath implementation.
40106         * modules/canonicalize (Depends-on): Drop filenamecat.
40107
40108         canonicalize: don't lose errno
40109         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
40110         over calls to free.
40111
40112         canonicalize: simplify errno handling
40113         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
40114         assignment.
40115
40116         canonicalize, canonicalize-lgpl: update module dependencies
40117         * modules/canonicalize (Depends-on): Add extensions, lstat,
40118         pathmax, stdlib.
40119         (Files): Drop pathmax.h.
40120         (configure.ac): Adjust macro name.
40121         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
40122         lstat, stdlib, sys_stat.
40123         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
40124         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
40125         extensions.
40126         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
40127         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
40128         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
40129         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
40130         declaration, if available.
40131         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
40132         we can rely on the readlink module.
40133         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
40134         (includes): Use <unistd.h> unconditionally.
40135
40136 2009-09-17  Eric Blake  <ebb9@byu.net>
40137
40138         maint: make Include sections of modules consistent
40139         * modules/alloca: Use only header name; no need to list #include.
40140         * modules/alloca-opt: Likewise.
40141         * modules/arpa_inet: Likewise.
40142         * modules/canon-host: Likewise.
40143         * modules/configmake: Likewise.
40144         * modules/dirent: Likewise.
40145         * modules/eealloc: Likewise.
40146         * modules/environ: Likewise.
40147         * modules/fchdir: Likewise.
40148         * modules/fcntl: Likewise.
40149         * modules/fcntl-h: Likewise.
40150         * modules/gethrxtime: Likewise.
40151         * modules/gettime: Likewise.
40152         * modules/ignore-value: Likewise.
40153         * modules/inet_ntop: Likewise.
40154         * modules/inet_pton: Likewise.
40155         * modules/inttypes: Likewise.
40156         * modules/isnand-nolibm: Likewise.
40157         * modules/isnanf-nolibm: Likewise.
40158         * modules/mbchar: Likewise.
40159         * modules/mbfile: Likewise.
40160         * modules/mbiter: Likewise.
40161         * modules/mbuiter: Likewise.
40162         * modules/netdb: Likewise.
40163         * modules/netinet_in: Likewise.
40164         * modules/nproc: Likewise.
40165         * modules/pagealign_alloc: Likewise.
40166         * modules/poll: Likewise.
40167         * modules/printf-frexp: Likewise.
40168         * modules/pthread: Likewise.
40169         * modules/putenv: Likewise.
40170         * modules/random_r: Likewise.
40171         * modules/relocatable-prog: Likewise.
40172         * modules/search: Likewise.
40173         * modules/select: Likewise.
40174         * modules/selinux-h: Likewise.
40175         * modules/settime: Likewise.
40176         * modules/signal: Likewise.
40177         * modules/size_max: Likewise.
40178         * modules/socklen: Likewise.
40179         * modules/ssize_t: Likewise.
40180         * modules/stdarg: Likewise.
40181         * modules/stdbool: Likewise.
40182         * modules/stddef: Likewise.
40183         * modules/stdint: Likewise.
40184         * modules/stdio: Likewise.
40185         * modules/stdlib: Likewise.
40186         * modules/string: Likewise.
40187         * modules/strings: Likewise.
40188         * modules/sys_file: Likewise.
40189         * modules/sys_ioctl: Likewise.
40190         * modules/sys_select: Likewise.
40191         * modules/sys_socket: Likewise.
40192         * modules/sys_stat: Likewise.
40193         * modules/sys_time: Likewise.
40194         * modules/sys_times: Likewise.
40195         * modules/sys_utsname: Likewise.
40196         * modules/sys_wait: Likewise.
40197         * modules/sysexits: Likewise.
40198         * modules/time: Likewise.
40199         * modules/times: Likewise.
40200         * modules/tmpfile: Likewise.
40201         * modules/trim: Likewise.
40202         * modules/unistd: Likewise.
40203         * modules/wchar: Likewise.
40204         * modules/wctype: Likewise.
40205
40206 2009-09-17  Bruno Haible  <bruno@clisp.org>
40207
40208         Make getdate.y compile on QNX and NetBSD 5 / i386.
40209         * m4/getdate.m4 (gl_GETDATE): Conditionally define
40210         TIME_T_FITS_IN_LONG_INT.
40211         * lib/getdate.y (long_time_t): New type.
40212         (relative_time): Change type of 'seconds' field to long_time_t.
40213         (get_date): Update types of local variables. Check against overflow
40214         during conversion from long_time_t to time_t.
40215         Reported by Matt Kraai <kraai@ftbfs.org>
40216         and Hasso Tepper <hasso@netbsd.org>.
40217
40218 2009-09-17  Bruno Haible  <bruno@clisp.org>
40219
40220         * modules/COPYING: Update copyright years.
40221         * modules/README: Likeiwse.
40222         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
40223         Reported by Ian Beckwith <ianb@erislabs.net>.
40224
40225 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
40226
40227         * users.txt: Update references for gnuit package.
40228
40229 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
40230
40231         * m4/getdelim.m4: Fix typo in copyright line.
40232
40233 2009-09-17  Bruno Haible  <bruno@clisp.org>
40234
40235         * lib/atoll.c: Use the standard header with GPL copyright.
40236         * lib/argz.in.h: Likewise.
40237         * lib/glob.c: Likewise.
40238         * lib/glob-libc.h: Likewise.
40239         * lib/random_r.c: Likewise.
40240         * lib/siglist.h: Likewise.
40241         * lib/strsignal.c: Likewise.
40242         Reported by Ian Beckwith <ianb@erislabs.net>.
40243
40244 2009-09-17  Eric Blake  <ebb9@byu.net>
40245
40246         rmdir: ensure correct dependency order
40247         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
40248
40249 2009-09-17  Bruno Haible  <bruno@clisp.org>
40250
40251         Disable assertion that fails on NetBSD 5 / i386.
40252         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
40253         Reported by Sam Steingold <sds@gnu.org>
40254         and Hasso Tepper <hasso@netbsd.org>.
40255
40256 2009-09-16  Eric Blake  <ebb9@byu.net>
40257
40258         unlinkdir: port to mingw
40259         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
40260         on which no one can unlink a directory.
40261
40262         stdlib: sort witness names
40263         * modules/stdlib (Makefile.am): Sort replacements.
40264         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
40265         * lib/stdlib.in.h: Likewise.
40266
40267         parse-duration-tests: avoid link failure
40268         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
40269         LIBINTL.
40270         Reported by Tom G. Christensen.
40271
40272         openat-tests: ensure unlinkat behaves like rmdir
40273         * tests/test-rmdir.c (main): Factor guts...
40274         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
40275         * modules/rmdir-tests (Files): Ship new file.
40276         * modules/openat-tests: New test.
40277         * tests/test-unlinkat.c: Likewise.
40278
40279         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
40280         * modules/rmdir-errno (Status, Notice): Now obsolete.
40281
40282         rmdir: work around cygwin 1.5.x and mingw bugs
40283         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
40284         * lib/rmdir.c (rmdir): Work around it.
40285         * modules/rmdir (Status, Notice): No longer obsolete.
40286         (Files): Add dos.m4.
40287         (Depends-on): Add unistd.
40288         (configure.ac): Set witnesses.
40289         (License): Relax to LGPLv2+.
40290         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
40291         * modules/unistd (Makefile.am): Substitute witnesses.
40292         * lib/unistd.in.h (rmdir): Declare replacement.
40293         * doc/posix-functions/rmdir.texi (rmdir): Document this.
40294         * modules/rmdir-tests: New tests.
40295         * tests/test-rmdir.c: Likewise.
40296
40297 2009-09-15  Eric Blake  <ebb9@byu.net>
40298
40299         fchdir: improve use of replacement functions
40300         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
40301         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
40302         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
40303         REPLACE_CLOSEDIR.
40304         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
40305         * modules/sys_stat (Makefile.am): Substitute correct witness.
40306         * modules/dirent (Makefile.am): Likewise.
40307         * modules/unistd (Makefile.am): Likewise.
40308         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
40309         * lib/unistd.in.h (dup): Likewise.
40310         * lib/sys_stat.in.h (fstat): Likewise.
40311
40312         maint: ignore gnulib-tool temp files
40313         * .gitignore: Ignore files created during gnulib-tool --test.
40314
40315 2009-09-13  Jim Meyering  <meyering@redhat.com>
40316
40317         posixtm: don't reject a time that specify "60" as the number of seconds
40318         * lib/posixtm.c (posixtime): The code to reject invalid dates
40319         would also reject a time specified with the .60 suffix.
40320         But POSIX allows that, in order to accommodate leap seconds.
40321         So don't reject it.
40322         (main): Adjust tests accordingly.
40323         * modules/posixtm (Depends-on): Add stpcpy.
40324
40325 2009-09-11  Jim Meyering  <meyering@redhat.com>
40326
40327         announce-gen: include [$release_type] in emitted Subject:
40328         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
40329         e.g., [stable] in the emitted Subject: line.
40330
40331 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40332
40333         Remove obsolete macros from several modules.
40334         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
40335         obsolete Autoconf macros with their modern counterparts.
40336         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
40337         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
40338         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
40339         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
40340         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
40341         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
40342         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
40343         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
40344         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
40345         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
40346         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
40347         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
40348         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
40349         * m4/sockets.m4 (gl_SOCKETS): Likewise.
40350         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
40351         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
40352         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
40353         * m4/time_r.m4 (gl_TIME_R): Likewise.
40354         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
40355         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
40356         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
40357
40358         Fix copyright header in build-aux scripts.
40359         * build-aux/git-version-gen: Fix copyright header to match GPLv3
40360         recommendation.
40361         * build-aux/ncftpput-ftp: Likewise.
40362         * build-aux/update-copyright: Likewise.
40363
40364 2009-09-09  Eric Blake  <ebb9@byu.net>
40365
40366         test-link: allow Linux choice of errno
40367         * tests/test-link.c (main): Relax test for alternate error.
40368
40369         strndup: fix improper m4 caching
40370         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
40371         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
40372         (gl_PREREQ_STRNDUP): Delete.
40373         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
40374         * modules/string (Makefile.am): Substitute it.
40375         * lib/string.in.h (strndup): Modernize prototype.
40376
40377         getcwd: port to mingw
40378         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
40379         different from the POSIX assumptions made throughout the getcwd
40380         module; fortunately, the mingw getcwd does not need replacement.
40381         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
40382         * modules/getcwd-tests: New test.
40383         * tests/test-getcwd.c: Likewise.
40384
40385         link: fix platform bugs
40386         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
40387         * lib/link.c (link): Work around them.  Fix related mingw bug.
40388         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
40389         * modules/unistd (Makefile.am): Substitute it.
40390         * lib/unistd.in.h (link): Declare replacement.
40391         * doc/posix-functions/link.texi (link): Document this.
40392         * modules/link (Depends-on): Add strdup-posix, sys_stat.
40393
40394         test-link: consolidate into single C program, test more cases
40395         * tests/test-link.sh: Delete.
40396         * tests/test-link.c: Test more error conditions.  Exposes bugs on
40397         at least Cygwin and Solaris.
40398         * modules/link-tests (Files): Remove unused file.
40399         (Depends-on): Add errno, sys_stat.
40400         (Makefile.am): Simplify.
40401
40402 2009-09-08  Bruno Haible  <bruno@clisp.org>
40403
40404         Work around towlower, towupper bug on mingw.
40405         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
40406         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
40407         * doc/posix-functions/towlower.texi: Mention the mingw bug.
40408         * doc/posix-functions/towupper.texi: Likewise.
40409         Reported by Eric Blake.
40410
40411 2009-09-08  Jim Meyering  <meyering@redhat.com>
40412
40413         build: don't try to run autoheader if we don't use it
40414         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
40415         is not used in configure.ac.
40416
40417 2009-09-08  Eric Blake  <ebb9@byu.net>
40418
40419         euidaccess: fix compilation error
40420         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
40421
40422         rawmemchr: relax license
40423         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
40424         okay.
40425         Reported by Jim Meyering.
40426
40427         mkfifoat: new module
40428         * modules/mkfifoat: New file.
40429         * lib/mkfifoat.c: Likewise.
40430         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
40431         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
40432         * modules/sys_stat (Makefile.am): Use them.
40433         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
40434         * MODULES.html.sh (File system functions): Mention module.
40435         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
40436         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
40437         * modules/mkfifoat-tests: New test.
40438         * tests/test-mkfifoat.c: Likewise.
40439
40440         strchrnul: relax license
40441         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
40442         okay.
40443         Reported by Jim Meyering.
40444
40445 2009-09-08  Eric Blake  <ebb9@byu.net>
40446
40447         fstatat: fix compilation on Solaris
40448         * lib/fstatat.c (includes): Add fcntl.h.
40449         Reported by Pádraig Brady.
40450
40451 2009-09-07  Eric Blake  <ebb9@byu.net>
40452
40453         rename: modernize replacement
40454         * modules/rename (Depends-on): Add stdio.
40455         (configure.ac): Declare witness.
40456         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
40457         stdio take care of replacement.
40458         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
40459         * modules/stdio (Makefile.am): Substitute them.
40460         * lib/stdio.in.h (rename): Declare replacement.
40461         * lib/rename.c (includes): Allow cross-compilation to non-windows
40462         machines.
40463         * doc/posix-functions/rename.texi (rename): Improve
40464         documentation.
40465
40466         stdio: sort witness names
40467         * modules/stdio (Makefile.am): Sort replacements.
40468         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
40469         * lib/stdio.in.h: Likewise.
40470
40471         getcwd: minor cleanups
40472         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
40473         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
40474
40475         openat: provide more convenience names
40476         * modules/faccessat (configure.ac): Add C witness.
40477         * lib/unistd.in.h (readlinkat): Fix typo.
40478         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
40479         convenience wrappers.
40480         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
40481         wrappers in syntax checks.
40482
40483 2009-09-06  Eric Blake  <ebb9@byu.net>
40484
40485         doc: fix comments in recent patches
40486         * lib/faccessat.c: Mention correct function.
40487         * lib/fchmodat.c: Likewise.
40488         * lib/fchownat.c: Likewise.
40489         * lib/symlinkat.c: Likewise.
40490         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
40491         constants.
40492
40493         faccessat, symlinkat: continue cleanup of previous patch
40494         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
40495         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
40496         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
40497         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
40498         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
40499         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
40500         set.
40501
40502 2009-09-06  Bruno Haible  <bruno@clisp.org>
40503
40504         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
40505         (fstatat): Declare if GNULIB_FSTATAT is set.
40506         (mkdirat): Declare if GNULIB_MKDIRAT is set.
40507         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
40508         (unlinkat): Declare if GNULIB_UNLINKAT is set.
40509         * modules/fcntl-h (Files): Remove m4/openat.m4.
40510         * modules/sys_stat (Files): Remove m4/openat.m4.
40511         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
40512         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
40513         * modules/unistd (Files): Remove m4/openat.m4.
40514         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
40515         GNULIB_OPENAT.
40516         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
40517         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
40518         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
40519         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
40520         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
40521         gl_OPENAT_DEFAULTS.
40522         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
40523         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
40524         Don't require gl_OPENAT_DEFAULTS.
40525         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
40526         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
40527         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
40528         (gl_OPENAT_DEFAULTS): Remove macro.
40529
40530 2009-09-06  Bruno Haible  <bruno@clisp.org>
40531
40532         * modules/openat (configure.ac): Remove unneeded witness.
40533
40534 2009-09-06  Bruno Haible  <bruno@clisp.org>
40535
40536         Set errno to ENOSYS when a function is entirely unsupported.
40537         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
40538         EOPNOTSUPP.
40539         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
40540         * modules/chown (Depends-on): Remove errno.
40541
40542 2009-09-06  Bruno Haible  <bruno@clisp.org>
40543
40544         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
40545
40546 2009-09-06  Bruno Haible  <bruno@clisp.org>
40547
40548         * lib/sys_stat.in.h: Fix preprocessor command indentation.
40549
40550 2009-09-06  Ben Pfaff  <blp@gnu.org>
40551             Bruno Haible  <bruno@clisp.org>
40552
40553         Work around a glibc bug in strtok_r.
40554         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
40555         Undefine if UNDEFINE_STRTOK_R is set.
40556         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
40557         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
40558         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
40559         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
40560         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
40561         UNDEFINE_STRTOK_R.
40562         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
40563
40564 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
40565
40566         exclude: minor fix
40567         * lib/exclude.c: Include wctype.h
40568
40569 2009-09-06  Akim Demaille  <demaille@gostai.com>
40570
40571         bootstrap: improve error message
40572         * build-aux/bootstrap (find_tool): Upon failure, report the list
40573         of candidates.
40574         Honor the initial value of the envvar.
40575
40576 2009-09-05  Eric Blake  <ebb9@byu.net>
40577
40578         symlinkat: new module
40579         * modules/symlinkat: New file.
40580         * lib/symlinkat.c: Likewise.
40581         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
40582         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
40583         * modules/unistd (Makefile.am): Use them.
40584         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
40585         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
40586         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
40587         * MODULES.html.sh (File system functions): Mention module.
40588         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
40589         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
40590         * modules/symlinkat-tests: New test.
40591         * tests/test-symlinkat.c: Likewise.
40592
40593         test-openat-safer: add more checks
40594         * tests/test-openat-safer.c (main): Check more code paths.
40595
40596 2009-09-05  Jim Meyering  <meyering@redhat.com>
40597
40598         syntax-check: detect unnecessary inclusion of openat.h
40599         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
40600
40601 2009-09-05  Bruno Haible  <bruno@clisp.org>
40602
40603         Support towlower, towupper.
40604         * doc/posix-functions/towlower.texi: Mention module wctype.
40605         * doc/posix-functions/towupper.texi: Likewise.
40606         * lib/wctype.in.h (towlower, towupper): New functions.
40607         * tests/test-wctype.c: Include stdio.h, stdlib.h.
40608         (ASSERT): New macro.
40609         (e): New variable.
40610         (main): Test also towlower, towupper. Test WEOF argument.
40611         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
40612
40613 2009-09-05  Bruno Haible  <bruno@clisp.org>
40614
40615         Fix conversion behaviour when the input is invalid.
40616         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
40617         mark occurring in first pass of indirect conversion.
40618         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
40619         input.
40620         Found by clang's static analyzer.
40621
40622 2009-09-05  Bruno Haible  <bruno@clisp.org>
40623
40624         * tests/test-striconveh.c (main): Test indirect conversion on platforms
40625         where direct conversion is possible.
40626
40627 2009-09-04  Eric Blake  <ebb9@byu.net>
40628
40629         openat: fail with ENOENT on empty name
40630         * lib/openat-proc.c (openat_proc_name): Special-case the empty
40631         buffer.
40632
40633         link-follow: fix logic bug in prior patch
40634         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
40635         reversed sense of yes and no in prior patch.  Avoid confusing
40636         compilation failure with desired semantics.
40637
40638         link-follow: accomodate mingw and cross-compilation
40639         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
40640         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
40641         cross-compilation results to -1, to make linkat easier to
40642         implement when cross-compiling.  Trivially support mingw.
40643         * modules/link-follow (configure.ac): Call new name.
40644         * NEWS: Mention this.
40645
40646 2009-09-03  Eric Blake  <ebb9@byu.net>
40647
40648         faccessat: compile replacement
40649         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
40650         needed.
40651
40652         fts: fix compilation error
40653         * lib/fts.c (includes): Re-add "openat.h", for
40654         openat_needs_fchdir.
40655
40656         faccessat: new module
40657         * modules/faccessat: New file.
40658         * lib/faccessat.c: Likewise.
40659         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
40660         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40661         * modules/unistd (Makefile.am): Use it.
40662         * lib/unistd.in.h (faccessat): Declare it.
40663         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
40664         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
40665         * MODULES.html.sh (File system functions): Mention it.
40666         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
40667         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
40668
40669         euidaccess: prefer POSIX over non-standard implementation
40670         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
40671         * lib/euidaccess.c (euidaccess): Use it if available.
40672
40673         openat: make template easier to use
40674         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
40675         AT_FUNC_F2 to be undefined.
40676         (VALIDATE_FLAG): New macro; use it to reject bad flags.
40677         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
40678         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
40679         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
40680         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
40681         Likewise.
40682         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
40683         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
40684         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
40685         Likewise.
40686
40687         openat: declare in POSIX headers
40688         * NEWS: Mention this.
40689         * modules/openat (configure.ac): Declare witnesses.
40690         (Depends-on): Add fcntl-h, sys_stat, unistd.
40691         (Include): Mention correct headers.
40692         * modules/fcntl-h (Depends-on): Add link-warning.
40693         (Files): Add openat.m4.
40694         (Makefile.am): Substitute witnesses.
40695         * modules/sys_stat (Files, Makefile.am): Likewise.
40696         * modules/unistd (Files, Makefile.am): Likewise.
40697         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
40698         (gl_OPENAT_DEFAULTS): New macro.
40699         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
40700         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
40701         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
40702         (SYS_STAT_H): Remove unused variable.
40703         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
40704         * lib/fcntl--.h (includes): Remove unneeded header.
40705         * lib/openat-safer.c (includes): Likewise.
40706         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
40707         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
40708         appropriate headers.
40709         (__OPENAT_PREFIX): Delete.
40710         * lib/fcntl.in.h (openat): Provide declaration.
40711         (AT_FDCWD): Fix Solaris bug.
40712         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
40713         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
40714         * lib/fchmodat.c (includes):  Adjust to find declaration.
40715         * lib/fchownat.c (includes): Likewise.
40716         * lib/mkdirat.c (includes): Likewise.
40717         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
40718         still visible.
40719
40720 2009-09-02  Eric Blake  <ebb9@byu.net>
40721
40722         errno: use consistently
40723         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
40724         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
40725         * lib/canonicalize.c (ELOOP): Likewise.
40726         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
40727         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
40728         * lib/lchown.c (EOPNOTSUPP): Likewise.
40729         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
40730         * lib/savewd.c (ESTALE): Likewise.
40731         * lib/settime.c (ENOSYS): Likewise.
40732         * lib/utimens.c (ENOSYS): Likewise.
40733         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
40734         * lib/chdir-safer.c (ELOOP): Likewise.
40735         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
40736         * modules/c-stack (Depends-on): Add errno.
40737         * modules/canonicalize (Depends-on): Likewise.
40738         * modules/chdir-safer (Depends-on): Likewise.
40739         * modules/fdopendir (Depends-on): Likewise.
40740         * modules/inet_ntop (Depends-on): Likewise.
40741         * modules/inet_pton (Depends-on): Likewise.
40742         * modules/lchown (Depends-on): Likewise.
40743         * modules/openat (Depends-on): Likewise.
40744         * modules/savewd (Depends-on): Likewise.
40745         * modules/settime (Depends-on): Likewise.
40746         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
40747
40748         fts: avoid leaking fds
40749         * modules/fts (Depends-on): Add cloexec.
40750         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
40751         flag.
40752
40753         fts: make directory fds more robust
40754         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
40755         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
40756
40757         backupfile, chdir-long, fts, savedir: make safer
40758         * lib/backupfile.c (includes): Use "dirent--.h", since
40759         numbered_backup can write to stderr during readdir.
40760         * lib/savedir.c (includes): Likewise.
40761         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
40762         emulation can write to stderr on failure.
40763         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
40764         * lib/getcwd.c: Document why opendir_safer is unused.
40765         * lib/glob.c: Likewise.
40766         * lib/scandir.c: Likewise.
40767         * lib/openat-proc.c: Likewise, for open_safer.
40768         * modules/backupfile (Depends-on): Add dirent-safer.
40769         * modules/savedir (Depends-on): Likewise.
40770         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
40771         * modules/chdir-long (Depends-on): Add openat-safer.
40772
40773         openat-safer: new module
40774         * modules/openat-safer: New file.
40775         * lib/openat-safer.c: Likewise.
40776         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
40777         * lib/fcntl-safer.h (openat_safer): Declare.
40778         * lib/fcntl--.h (openat): Override.
40779         * MODULES.html.sh (File descriptor based I/O): Mention it.
40780         * lib/openat.h: Add double-inclusion guards.
40781         * lib/openat.c (includes): Only include "fcntl-safer.h", not
40782         "fcntl--.h", so we can implement openat.
40783         * modules/openat-safer-tests: New test.
40784         * tests/test-openat-safer.c: New file.
40785
40786         dirent-safer: new module
40787         * modules/dirent-safer: New file.
40788         * lib/dirent--.h: Likewise.
40789         * lib/dirent-safer.h: Likewise.
40790         * lib/opendir-safer.c: Likewise.
40791         * m4/dirent-safer.m4: Likewise.
40792         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
40793         * modules/dirent-safer-tests: New test.
40794         * tests/test-dirent-safer.c: New file.
40795         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
40796
40797         fdopendir: optimize on mingw
40798         * lib/unistd.in.h (_gl_directory_name): New prototype.
40799         * lib/fchdir.c (_gl_directory_name): Implement it.
40800         (fchdir): Use it to simplify implementation.
40801         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
40802         fchdir, when available, to avoid calling [f]chdir().
40803
40804         fdopendir: split into its own module
40805         * lib/openat.c (fdopendir): Move...
40806         * lib/fdopendir.c: ...into new file.
40807         * modules/fdopendir: New module.
40808         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
40809         * modules/openat (Depends-on): Add fdopendir.
40810         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
40811         fdopendir here.
40812         * modules/savedir (Depends-on): Only need fdopendir, not full
40813         openat.
40814         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
40815         * lib/openat.h (fdopendir): Drop prototype.
40816         * lib/dirent.in.h (fdopendir): Provide prototype.
40817         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
40818         * modules/dirent (Makefile.am): Substitute them.
40819         * MODULES.html.sh (File system functions): Mention it.
40820         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
40821         * modules/fdopendir-tests: New file.
40822         * tests/test-fdopendir.c: Likewise.
40823
40824         fchdir: use more consistent macro convention
40825         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
40826         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
40827         REPLACE_FCHDIR, rather than relying on config.h macros.
40828         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
40829         inside a single make-time REPLACE_FCHDIR block, rather than using
40830         the config.h FCHDIR_REPLACEMENT.
40831         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
40832         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
40833         Manage fstat replacement.
40834         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
40835         REPLACE_FCHDIR.
40836         * modules/sys_stat (Files): Add m4/unistd_h.m4.
40837         (Makefile.am): Substitute REPLACE_FCHDIR.
40838         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
40839         FCHDIR_REPLACEMENT.
40840         * lib/dup-safer.c (dup_safer): Likewise.
40841         * lib/dup2.c (rpl_dup2): Likewise.
40842         * lib/dup3.c (rpl_dup3): Likewise.
40843         * lib/open.c (rpl_open): Likewise.
40844
40845         fchdir: simplify error handling, and support dup3
40846         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
40847         stdbool, malloc-posix, realloc-posix.
40848         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
40849         (ensure_dirs_slot): Return false on allocation failure.
40850         (rpl_dup2): Delete.
40851         (_gl_register_dup): New function.
40852         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
40853         (_gl_register_fd): Close fd on allocation failure.
40854         * lib/fcntl.in.h (_gl_register_fd): Update signature.
40855         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
40856         prototype.
40857         (rpl_dup2_fchdir): Delete prototype.
40858         * lib/open.c (open): Update caller.
40859         * lib/dup2.c (dup2): Track fchdir metadata.
40860         * lib/dup3.c (dup3): Likewise.
40861         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
40862         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
40863
40864 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40865
40866         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
40867         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
40868         don't pass arguments to AC_OUTPUT.
40869
40870 2009-09-02  Bruno Haible  <bruno@clisp.org>
40871
40872         * modules/mkdtemp (License): Relicense under LGPLv2+.
40873         Reported by Paolo Bonzini.
40874
40875 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40876
40877         Replace uses of obsolete autoconf macros in Jim's modules.
40878         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
40879         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
40880         can evoke a warning from autoconf when run with -Wobsolete
40881         enabled.  They were declared obsolete for good reasons (see
40882         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
40883         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
40884         should not continue using the deprecated macros.
40885         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
40886         obsolete Autoconf macros with modern counterparts.
40887         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
40888         * m4/dos.m4 (gl_AC_DOS): Likewise.
40889         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
40890         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
40891         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
40892         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
40893         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
40894         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
40895         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
40896         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
40897         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
40898         Likewise.
40899         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
40900         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
40901         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
40902         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
40903         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
40904         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
40905
40906 2009-09-01  Eric Blake  <ebb9@byu.net>
40907
40908         fchdir: fix off-by-one bug in previous patch
40909         * lib/fchdir.c (rpl_fstat): Use correct bounds.
40910         (_gl_unregister_fd): Delete useless if.
40911
40912 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
40913
40914         maint.mk: sort the list of syntax-check rules
40915         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
40916         easier to get a sense of progress when the rules are run sequentially
40917         and take a long time.
40918
40919 2009-09-01  Simon Josefsson  <simon@josefsson.org>
40920
40921         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
40922         * modules/netinet_in: Likewise.
40923         * modules/sys_file: Likewise.
40924         * modules/sys_ioctl: Likewise.
40925         * modules/sys_select: Likewise.
40926         * modules/sys_socket: Likewise.
40927         * modules/sys_stat: Likewise.
40928         * modules/sys_time: Likewise.
40929         * modules/sys_times: Likewise.
40930         * modules/sys_utsname: Likewise.
40931         * modules/sys_wait: Likewise.
40932
40933 2009-09-01  Jim Meyering  <meyering@redhat.com>
40934
40935         fts: help ensure that return values are not ignored
40936         * lib/fts_.h (__GNUC_PREREQ): Define.
40937         (__attribute_warn_unused_result__): Define.
40938         (fts_children, fts_close, fts_open, fts_read): Declare with
40939         __attribute_warn_unused_result__.
40940
40941         fts: fts_close now fails also when closing a dir file descriptor fails
40942         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
40943         and propagate to caller, along with errno.
40944
40945         announce-gen: correct formatting in --help output
40946         * build-aux/announce-gen (usage): Move the one-line description in
40947         --help output "up", to where it belongs, just after Usage:.
40948
40949 2009-08-31  Eric Blake  <ebb9@byu.net>
40950
40951         fchdir: port to mingw
40952         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
40953         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
40954         opened, then use a substitute.
40955         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
40956         replacement.
40957         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
40958         (_gl_register_fd): No need to check stat if open already filters
40959         all directories.
40960         (fchdir): Fix error condition to match POSIX.
40961         * modules/fchdir (Depends-on): Add sys_stat.
40962         * doc/posix-functions/open.texi (open): Document the limitation.
40963         * modules/fchdir-tests: New file.
40964         * tests/test-fchdir.c: Likewise.
40965
40966         canonicalize: allow cross-testing from cygwin to mingw
40967         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
40968         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
40969         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
40970         Likewise.
40971         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
40972         target does not support symlinks.
40973         * tests/test-canonicalize-lgpl.sh: Likewise.
40974
40975         chown: avoid compilation warning on mingw
40976         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
40977         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
40978         mingw.
40979         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
40980         * modules/chown (Depends-on): Add errno.
40981
40982 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
40983
40984         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
40985         command.
40986
40987 2009-08-31  Jim Meyering  <meyering@redhat.com>
40988
40989         canonicalize: remove useless initialization
40990         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
40991         initialization of local, "end".
40992
40993 2009-08-30  Bruno Haible  <bruno@clisp.org>
40994
40995         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
40996         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
40997         ENOSYS.
40998
40999 2009-08-30  Bruno Haible  <bruno@clisp.org>
41000
41001         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
41002         /usr/xpg4/bin/tr when it exists.
41003         * tests/test-pipe-filter-gi1.sh: Likewise.
41004
41005 2009-08-30  Bruno Haible  <bruno@clisp.org>
41006
41007         Work around deficient /usr/bin/id program on Solaris.
41008         * tests/test-file-has-acl.sh (ID): New variable.
41009         * tests/test-set-mode-acl.sh (ID): Likewise.
41010         * tests/test-copy-acl.sh (ID): Likewise.
41011         * tests/test-copy-file.sh (ID): Likewise.
41012
41013 2009-08-30  Bruno Haible  <bruno@clisp.org>
41014
41015         New module 'xstriconveh'.
41016         * lib/xstriconveh.h: New file.
41017         * lib/xstriconveh.c: New file.
41018         * modules/xstriconveh: New file.
41019
41020 2009-08-30  Bruno Haible  <bruno@clisp.org>
41021
41022         Make it easier to use mem_cd_iconveh.
41023         * lib/striconveh.h (iconveh_t): New type.
41024         (iconveh_open, iconveh_close): New declarations.
41025         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
41026         with a single 'const iconveh_t *' argument.
41027         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
41028         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
41029         with a single 'const iconveh_t *' argument.
41030         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
41031         * tests/test-striconveh.c (main): Update.
41032         * NEWS: Mention the change.
41033
41034 2009-08-30  Bruno Haible  <bruno@clisp.org>
41035
41036         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
41037         problem.
41038
41039 2009-08-30  Bruno Haible  <bruno@clisp.org>
41040
41041         Work around iconv_open problem on Solaris.
41042         * lib/iconv_open-solaris.gperf: New file.
41043         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
41044         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
41045         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
41046         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
41047         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
41048         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
41049
41050 2009-08-29  Jim Meyering  <meyering@redhat.com>
41051
41052         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
41053         * top/maint.mk (cvs-check): Remove target; it was just an alias
41054         to the better-named vc-diff-check.
41055         (maintainer-distcheck): Remove rule.  It was used only from
41056         the (alpha/beta/major) target, and all of its commands but one
41057         were coreutils-specific.
41058         (vc-dist): Remove rule.
41059         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
41060         Run vc-diff-check, not vc-dist.
41061         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
41062
41063 2009-08-27  Bruno Haible  <bruno@clisp.org>
41064
41065         * tests/test-bitrotate.c (main): Remove test that uses a shift count
41066         of 0.
41067
41068 2009-08-27  Bruno Haible  <bruno@clisp.org>
41069
41070         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
41071         compilers.
41072         * doc/func.texi: Document the SunPRO C bug.
41073
41074 2009-08-27  Bruno Haible  <bruno@clisp.org>
41075
41076         Fix link error on Solaris.
41077         * tests/test-parse-duration.c (xstrdup): Remove function.
41078
41079 2009-08-26  Pádraig Brady  <P@draigbrady.com>
41080
41081         ignore-value: handle pointer types, too
41082         * lib/ignore-value.h (__attribute__): Remove definition.
41083         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
41084         of a more concise and more-often effective "(void) i" statement.
41085         (ignore_ptr): New function to suppress warnings from functions that
41086         return pointers, and to make it explicit that one function doesn't
41087         handle all cases.
41088
41089 2009-08-25  Bruno Haible  <bruno@clisp.org>
41090
41091         dup2: work around a Linux bug.
41092         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
41093         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
41094         * doc/posix-functions/dup2.texi: Mention the Linux bug.
41095         Reported by Simon Josefsson.
41096
41097 2009-08-25  Jim Meyering  <meyering@redhat.com>
41098
41099         libguestfs uses gnulib
41100         * users.txt: Add libguestfs.
41101
41102 2009-08-24  Eric Blake  <ebb9@byu.net>
41103
41104         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
41105         * lib/pipe2.c (includes): Add binary-io.h.
41106         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
41107
41108 2009-08-24  Bruno Haible  <bruno@clisp.org>
41109
41110         Tolerate declared but missing accept4 syscall.
41111         * lib/accept4.c (accept4): Invoke original accept4 function first, if
41112         available.
41113         * lib/sys_socket.in.h (accept4): If the function is already present,
41114         override it.
41115         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
41116         * modules/accept4 (Makefile.am): Compile accept4.c always.
41117         Reported by Paolo Bonzini and Eric Blake.
41118
41119 2009-08-23  Bruno Haible  <bruno@clisp.org>
41120
41121         New module 'accept4'.
41122         * lib/sys_socket.in.h (accept4): New declaration.
41123         * lib/accept4.c: New file.
41124         * m4/accept4.m4: New file.
41125         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
41126         GNULIB_ACCEPT4, HAVE_ACCEPT4.
41127         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
41128         HAVE_ACCEPT4.
41129         * modules/accept4: New file.
41130         * doc/glibc-functions/accept4.texi: Mention the new module.
41131
41132 2009-08-24  Jim Meyering  <meyering@redhat.com>
41133
41134         progname: also set global program_invocation_name, when possible
41135         Before this change, a libtool-enabled program that calls glibc's
41136         error function would report the program name as
41137         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
41138         * modules/progname (configure.ac): Check for a declaration of
41139         program_invocation_name.
41140         * lib/progname.c:  Include <errno.h>.
41141         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
41142         Set program_invocation_name.
41143
41144 2009-08-23  Bruno Haible  <bruno@clisp.org>
41145
41146         * lib/dup3.c: Include <string.h>.
41147
41148 2009-08-23  Bruno Haible  <bruno@clisp.org>
41149
41150         * lib/dup3.c (dup3): Test only once whether the system actually exists.
41151         * lib/pipe2.c (pipe2): Likewise.
41152         Suggested by Eric Blake.
41153
41154 2009-08-23  Bruno Haible  <bruno@clisp.org>
41155
41156         Tolerate declared but missing dup3 syscall.
41157         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
41158         * lib/unistd.in.h (dup3): If the function is already present,
41159         override it.
41160         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
41161         * modules/dup3 (Makefile.am): Compile dup3.c always.
41162         Reported by Paolo Bonzini.
41163
41164 2009-08-23  Bruno Haible  <bruno@clisp.org>
41165
41166         Tolerate declared but missing pipe2 syscall.
41167         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
41168         available.
41169         * lib/unistd.in.h (pipe2): If the function is already present,
41170         override it.
41171         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
41172         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
41173         Reported by Paolo Bonzini.
41174
41175 2009-08-23  Bruno Haible  <bruno@clisp.org>
41176
41177         * lib/pipe2.c (pipe2): Move #ifs inside function.
41178
41179 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
41180
41181         quotearg: document limitations of quote_these_too
41182         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
41183         those limitations are created.
41184         * lib/quotearg.h (set_char_quoting): Document that digits and
41185         letters that are special after backslash are not permitted.
41186         (quotearg_char): Cross-reference set_char_quoting documentation.
41187
41188 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
41189
41190         quotearg: implement custom_quoting_style
41191         * lib/quotearg.c: (struct quoting_options): Add left_quote and
41192         right_quote fields.
41193         (set_custom_quoting): New public function.
41194         (quotearg_buffer_restyled): Add left_quote and right_quote
41195         arguments, handle them very much like locale quoting, and update
41196         all uses.
41197         (quotearg_n_custom): New public function.
41198         (quotearg_n_custom_mem): New public function.
41199         (quotearg_custom): New public function.
41200         (quotearg_custom_mem): New public function.
41201         * lib/quotearg.h: Prototype and document new public functions.
41202         (enum quoting_style): For escape_quoting_style and
41203         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
41204         ignored even though they're otherwise like c_quoting_style.
41205         Add custom_quoting_style member and document with comparison to
41206         clocale_quoting_style.
41207         * tests/test-quotearg.c (custom_quotes): New array.
41208         (custom_results): New array.
41209         (main): Extend to test custom quoting.
41210
41211 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
41212
41213         quotearg: fix right quote escaping when it's in quote_these_too
41214         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
41215         quote, be sure to prepend only one backslash.
41216         * tests/test-quotearg.c (use_quote_double_quotes): New function.
41217         (main): Test it.
41218
41219 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
41220
41221         quotearg-tests: test escaping of embedded locale quotes
41222         * tests/test-quotearg.c (struct result_strings): Add member for
41223         new input.
41224         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
41225         (inputs): Add new input.
41226         (results_g): Add expected results.
41227         (flag_results): Likewise.
41228         (locale_results): Likewise.
41229         (compare_strings): Check those.
41230
41231 2009-08-23  Bruno Haible  <bruno@clisp.org>
41232
41233         Tests for module 'dup3'.
41234         * modules/dup3-tests: New file.
41235         * tests/test-dup3.c: New file.
41236
41237         New module 'dup3'.
41238         * lib/unistd.in.h (dup3): New declaration.
41239         * lib/dup3.c: New file.
41240         * m4/dup3.m4: New file.
41241         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
41242         HAVE_DUP3.
41243         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
41244         * modules/dup3: New file.
41245         * doc/glibc-functions/dup3.texi: Mention the new module.
41246
41247 2009-08-23  Bruno Haible  <bruno@clisp.org>
41248
41249         Tweak the dup2 test.
41250         * tests/test-dup2.c (main): Create the test file empty. Verify that an
41251         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
41252         the test file is still empty. Fix argument order of lseek.
41253
41254 2009-08-23  Bruno Haible  <bruno@clisp.org>
41255
41256         Avoid test link errors when the modules getopt-gnu, gettext are used.
41257         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
41258         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41259
41260 2009-08-23  Bruno Haible  <bruno@clisp.org>
41261
41262         Fix getdtablesize() on mingw.
41263         * lib/getdtablesize.c (getdtablesize): Implement differently.
41264         * lib/unistd.in.h (getdtablesize): Improve comment.
41265
41266 2009-08-23  Bruno Haible  <bruno@clisp.org>
41267
41268         New module 'mkostemp'.
41269         Based on Ulrich Drepper's 2007-08-10 change in glibc.
41270         * lib/stdlib.in.h (mksotemp): New declaration.
41271         * lib/mkostemp.c: New file, from glibc with modifications.
41272         * lib/tempname.h (GT_FILE): Remove outdated comment.
41273         (gen_tempname): Add flags argument.
41274         * lib/tempname.c (__GT_BIGFILE): Remove macro.
41275         (__GT_FILE): Map to 1.
41276         (small_open, large_open): Remove macros.
41277         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
41278         * lib/mkstemp.c (mkstemp): Update.
41279         * lib/mkdtemp.c (mkdtemp): Likewise.
41280         * m4/mkostemp.m4: New file.
41281         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
41282         HAVE_MKOSTEMP.
41283         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
41284         HAVE_MKOSTEMP.
41285         * modules/mkostemp: New file, based on modules/mkstemp.
41286         * doc/glibc-functions/mkostemp.texi: Mention the new module.
41287         * NEWS: Mention the change.
41288
41289 2009-08-23  Bruno Haible  <bruno@clisp.org>
41290
41291         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
41292         Reported by Eric Blake.
41293
41294 2009-08-23  Bruno Haible  <bruno@clisp.org>
41295
41296         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
41297         Reported by Eric Blake.
41298
41299 2009-08-23  Bruno Haible  <bruno@clisp.org>
41300
41301         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
41302         * modules/pipe2 (Depends-on): Likewise.
41303
41304 2009-08-23  Eric Blake  <ebb9@byu.net>
41305
41306         fcntl-h: add O_TTY_INIT support
41307         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
41308         * tests/test-fcntl-h.c (o): Test it.
41309         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
41310
41311         fcntl-h: rename from fcntl, in preparation for fcntl(2)
41312         * modules/fcntl: Move <fcntl.h> header replacement...
41313         * modules/fcntl-h: ...to new name, so as not to collide with
41314         like-named function.
41315         * tests/test-fcntl.c: Rename...
41316         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
41317         * modules/fcntl-tests: Rename...
41318         * modules/fcntl-h-tests: ...to this.  Update test file name.
41319         * modules/chdir-long (Depends-on): Update clients.
41320         * modules/chdir-safer (Depends-on): Likewise.
41321         * modules/fcntl-safer (Depends-on): Likewise.
41322         * modules/fts (Depends-on): Likewise.
41323         * modules/mkancesdirs (Depends-on): Likewise.
41324         * modules/mkdir-p (Depends-on): Likewise.
41325         * modules/open (Depends-on): Likewise.
41326         * modules/savewd (Depends-on): Likewise.
41327         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
41328         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
41329
41330 2009-08-22  Bruno Haible  <bruno@clisp.org>
41331
41332         * modules/binary-io (License): Relicense under LGPL.
41333         * modules/pipe2 (License): Likewise.
41334
41335 2009-08-22  Bruno Haible  <bruno@clisp.org>
41336
41337         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
41338         return value.
41339         * lib/pipe-filter-gi.c (filter_init): Likewise.
41340         Reported by Eric Blake.
41341
41342 2009-08-22  Bruno Haible  <bruno@clisp.org>
41343
41344         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
41345         * modules/pipe (Depends-on): Add pipe2.
41346
41347 2009-08-22  Bruno Haible  <bruno@clisp.org>
41348
41349         Tests for module 'pipe2'.
41350         * modules/pipe2-tests: New file.
41351         * tests/test-pipe2.c: New file.
41352
41353         New module 'pipe2'.
41354         * lib/unistd.in.h (pipe2): New declaration.
41355         * lib/pipe2.c: New file.
41356         * m4/pipe2.m4: New file.
41357         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
41358         HAVE_PIPE2.
41359         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
41360         * modules/pipe2: New file.
41361         * doc/glibc-functions/pipe2.texi: Mention the new module.
41362
41363 2009-08-22  Bruno Haible  <bruno@clisp.org>
41364
41365         Reference some new glibc functions.
41366         * doc/glibc-functions/accept4.texi: New file.
41367         * doc/glibc-functions/dup3.texi: New file.
41368         * doc/glibc-functions/mkostemp.texi: New file.
41369         * doc/glibc-functions/pipe2.texi: New file.
41370         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
41371         (Glibc sys/socket.h): Refer to accept4.
41372         (Glibc unistd.h): Refer to dup3, pipe2.
41373         Reported by Eric Blake.
41374
41375 2009-08-22  Jim Meyering  <meyering@redhat.com>
41376             Bruno Haible  <bruno@clisp.org>
41377
41378         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
41379         This makes it so packages using automake-1.11's silent-rules option
41380         can print e.g., a single "GEN    configmake.h" line, rather than
41381         the 30+ statements that perform the job.  If you want to see the
41382         actual commands, you can still run "make V=1".
41383         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
41384         so that make output is abbreviated when those variables are defined
41385         appropriately.
41386         * modules/argz: Likewise.
41387         * modules/arpa_inet: Likewise.
41388         * modules/byteswap: Likewise.
41389         * modules/configmake: Likewise.
41390         * modules/dirent: Likewise.
41391         * modules/errno: Likewise.
41392         * modules/fcntl: Likewise.
41393         * modules/float: Likewise.
41394         * modules/fnmatch: Likewise.
41395         * modules/getopt-posix: Likewise.
41396         * modules/glob: Likewise.
41397         * modules/iconv_open: Likewise.
41398         * modules/inttypes: Likewise.
41399         * modules/localcharset: Likewise.
41400         * modules/locale: Likewise.
41401         * modules/math: Likewise.
41402         * modules/netdb: Likewise.
41403         * modules/netinet_in: Likewise.
41404         * modules/poll: Likewise.
41405         * modules/posix_spawnp-tests: Likewise.
41406         * modules/sched: Likewise.
41407         * modules/search: Likewise.
41408         * modules/selinux-h: Likewise.
41409         * modules/signal: Likewise.
41410         * modules/spawn: Likewise.
41411         * modules/stdarg: Likewise.
41412         * modules/stdbool: Likewise.
41413         * modules/stddef: Likewise.
41414         * modules/stdint: Likewise.
41415         * modules/stdio: Likewise.
41416         * modules/stdlib: Likewise.
41417         * modules/string: Likewise.
41418         * modules/strings: Likewise.
41419         * modules/sys_file: Likewise.
41420         * modules/sys_ioctl: Likewise.
41421         * modules/sys_select: Likewise.
41422         * modules/sys_socket: Likewise.
41423         * modules/sys_stat: Likewise.
41424         * modules/sys_time: Likewise.
41425         * modules/sys_times: Likewise.
41426         * modules/sys_utsname: Likewise.
41427         * modules/sys_wait: Likewise.
41428         * modules/sysexits: Likewise.
41429         * modules/time: Likewise.
41430         * modules/unistd: Likewise.
41431         * modules/wchar: Likewise.
41432         * modules/wctype: Likewise.
41433
41434 2009-08-22  Jim Meyering  <meyering@redhat.com>
41435
41436         announce-gen: detect write failure
41437         * build-aux/announce-gen: Add Coda at end.
41438         Remove equivalent-but-more-verbose block at top.
41439
41440 2009-08-19  Akim Demaille  <demaille@gostai.com>
41441
41442         bootstrap: --help to stdout.
41443         * bootstrap (usage): Don't send --help to stderr.
41444         Use a here doc instead of a long string.
41445
41446 2009-08-21  Eric Blake  <ebb9@byu.net>
41447
41448         test-popen-safer: split from test-popen
41449         * tests/test-popen.c (main): Move...
41450         * tests/test-popen.h: ...into new file.
41451         * tests/test-popen-safer2.c: New file.
41452         * modules/popen-tests (Files): Add test-popen.h.
41453         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
41454         Suggested by Bruno Haible.
41455
41456         test-fcntl-safer: split from test-open
41457         * tests/test-open.c (main): Move...
41458         * tests/test-open.h: ...into new file.
41459         * tests/test-fcntl-safer.c: New file.
41460         * modules/open-tests (Files): Add test-open.h.
41461         * modules/fcntl-safer-tests: New file.
41462         Suggested by Bruno Haible.
41463
41464         test-fopen-safer: split from test-fopen
41465         * tests/test-fopen.c (main): Move...
41466         * tests/test-fopen.h: ...into new file.
41467         * tests/test-fopen-safer.c: New file.
41468         * modules/fopen-tests (Files): Add test-fopen.h.
41469         * modules/fopen-safer-tests: New file.
41470         Suggested by Bruno Haible.
41471
41472 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
41473
41474         popen-safer: test O_CLOEXEC at run-time.
41475         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
41476
41477 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
41478
41479         fcntl: move more flags to the header
41480         * lib/cloexec.c: Do not define FD_CLOEXEC here.
41481         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
41482         * lib/fcntl.in.h: Do both things here.
41483
41484 2009-08-21  Jim Meyering  <meyering@redhat.com>
41485
41486         consistently remove $@-t before redirecting to it
41487         * modules/argz: Remove $@-t and $@ before redirecting to the former.
41488         * modules/alloca-opt: Likewise.
41489         * modules/byteswap: Likewise.
41490         * modules/fnmatch: Likewise.
41491         * modules/getopt-posix: Likewise.
41492         * modules/glob: Likewise.
41493         * modules/poll: Likewise.
41494         * modules/posix_spawnp-tests: Likewise.
41495         * modules/sys_socket: Likewise.
41496         * modules/sysexits: Likewise.
41497
41498 2009-08-21  Eric Blake  <ebb9@byu.net>
41499
41500         popen: simplify access to original popen
41501         * lib/popen.c (rpl_popen): No need to worry about popen being a
41502         macro.
41503         Reported by Bruno Haible.
41504
41505 2009-08-20  Eric Blake  <ebb9@byu.net>
41506
41507         build: avoid some compiler warnings
41508         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
41509         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
41510         type.
41511         (new_exclude_segment, excluded_file_pattern_p)
41512         (excluded_file_name_p): Reduce scope.
41513         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
41514         old-style declaration.
41515
41516 2009-08-20  Simon Josefsson  <simon@josefsson.org>
41517
41518         * tests/test-exclude1.sh: Handle Windows EOL.
41519         * tests/test-exclude2.sh: Likewise.
41520         * tests/test-exclude3.sh: Likewise.
41521         * tests/test-exclude4.sh: Likewise.
41522         * tests/test-exclude5.sh: Likewise.
41523         * tests/test-exclude6.sh: Likewise.
41524         * tests/test-exclude7.sh: Likewise.
41525
41526 2009-08-19  Akim Demaille  <demaille@gostai.com>
41527
41528         bootstrap: find sha1sum when named gsha1sum.
41529         * bootstrap (find_tool): New.
41530         ($SHA1SUM): New.
41531         Use it.
41532
41533 2009-08-20  Jim Meyering  <meyering@redhat.com>
41534
41535         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
41536         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
41537         expression that converts "." in a file name to "\." in the resulting
41538         regexp.  Start with a dummy statement, so that prior shell variable
41539         definitions are expanded portably.  Reported by Simon Josefsson.
41540
41541 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
41542
41543         Fix polling for writeability of a screen buffer.
41544         * lib/poll.c: Distinguish input and screen buffers for the
41545         Win32 implementation.
41546         * lib/select.c: Likewise.
41547
41548 2009-08-19  Eric Blake  <ebb9@byu.net>
41549
41550         popen-safer: prevent popen from clobbering std descriptors
41551         * modules/popen-safer: New file.
41552         * lib/popen-safer.c: Likewise.
41553         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
41554         * lib/stdio--.h (popen): Provide override.
41555         * lib/stdio-safer.h (popen_safer): Provide declaration.
41556         * tests/test-popen.c (includes): Partially test this.
41557         * modules/popen-safer-tests: New file, for more tests.
41558         * tests/test-popen-safer.c: Likewise.
41559         * MODULES.html.sh (file stream based Input/Output): Mention it.
41560
41561         tests: test some of the *-safer modules
41562         * modules/fopen-safer (Depends-on): Add fopen.
41563         * modules/fcntl-safer (Depends-on): Add fcntl.
41564         * modules/stdlib-safer (Depends-on): Add stdlib.
41565         (configure.ac): Set indicator.
41566         * modules/unistd-safer (configure.ac): Likewise.
41567         * modules/tmpfile-safer (configure.ac): Likewise.
41568         (Depends-on): Add tmpfile.
41569         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
41570         active.
41571         * tests/test-fopen.c (includes): Test safer versions when they are
41572         in use.
41573         * tests/test-open.c (includes): Likewise.
41574
41575         popen: fix cygwin 1.5 bug when stdin closed
41576         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
41577         * modules/popen: New file.
41578         * modules/popen-tests: Likewise.
41579         * tests/test-popen.c: Likewise.
41580         * m4/popen.m4: Likewise.
41581         * lib/popen.c: Likewise.
41582         * lib/stdio.in.h (popen): New declaration.
41583         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
41584         * modules/stdio (Makefile.am): Likewise.
41585         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
41586
41587 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
41588
41589         maint.mk: give full control over update-copyright exclusions
41590         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
41591         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
41592         (update-copyright): Don't force inclusion of top-level
41593         ChangeLog.  Don't force exclusion of all COPYING files, but make
41594         them the default exclusion instead.
41595
41596 2009-08-16  Bruno Haible  <bruno@clisp.org>
41597
41598         Fix test failures on Solaris 10.
41599         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
41600         tests when Solaris iconv() is used.
41601         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
41602         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
41603         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
41604         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
41605         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
41606
41607 2009-08-16  Bruno Haible  <bruno@clisp.org>
41608
41609         Fix test failures on Solaris 10.
41610         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
41611         'tr' program and pass it as first argument.
41612         * tests/test-pipe-filter-gi1.sh: Likewise.
41613         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
41614         program as first argument.
41615         * tests/test-pipe-filter-gi1.c (main): Likewise.
41616
41617 2009-08-16  Eric Blake  <ebb9@byu.net>
41618
41619         fpurge: fix previous commits
41620         * modules/fpurge (Makefile.am): Make replacement conditional,
41621         partially reverting 2007-04-29 change; missed in previous
41622         attempt.
41623         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
41624         is missing.
41625
41626 2009-08-16  Bruno Haible  <bruno@clisp.org>
41627
41628         Clarify fpurge's effect on the file position.
41629         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
41630         * tests/test-fpurge.c (main): Make a second pass for checking the file
41631         position.
41632
41633 2009-08-16  Bruno Haible  <bruno@clisp.org>
41634
41635         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
41636         declaration of fpurge is missing.
41637         * tests/test-fpurge.c (main): Check that the file has not more contents
41638         than expected. Close the file before removing it.
41639
41640 2009-08-15  Eric Blake  <ebb9@byu.net>
41641
41642         fpurge: don't wrap working cygwin implementation
41643         * lib/fpurge.c (fpurge): Fix comment typo.
41644         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
41645         1.7 to avoid replacement.
41646         * tests/test-fpurge.c (main): Enhance test.
41647
41648 2009-08-15  Eric Blake  <ebb9@byu.net>
41649         and Jim Meyering  <meyering@redhat.com>
41650
41651         test-update-copyright: skip if perl is insufficient
41652         * tests/test-update-copyright.sh: Failure to run maintainer tool
41653         should not cause testsuite failure on cygwin 1.5.
41654
41655 2009-08-14  Eric Blake  <ebb9@byu.net>
41656
41657         doc: mention more functions added in cygwin 1.7.0
41658         * doc/posix-headers/limits.texi (limits.h): Update for recent
41659         cygwin additions.
41660         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
41661         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
41662         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
41663         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
41664         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
41665
41666 2009-08-14  Eric Blake  <ebb9@byu.net>
41667
41668         maint.mk: simplify update-copyright rule
41669         * top/maint.mk (update-copyright-local): Delete, and document how
41670         to do it in cfg.mk instead.
41671         (update-copyright-exclude-regexp): Delete, and document how to do
41672         it in .x-update-copyright instead.
41673         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
41674         exclude ChangeLog.
41675
41676 2009-08-14  Bruno Haible  <bruno@clisp.org>
41677
41678         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
41679
41680 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
41681
41682         maint.mk: support update-copyright-env
41683         * top/maint.mk (update-copyright-env): Define place-holder.
41684         (update-copyright): Expand $(update-copyright-env) before
41685         invoking update-copyright.
41686
41687 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
41688
41689         update-copyright: implement forced reformatting
41690         * build-aux/update-copyright: Implement and document
41691         UPDATE_COPYRIGHT_FORCE.
41692         * tests/test-update-copyright.sh: Test it.
41693
41694 2009-08-14  Eric Blake  <ebb9@byu.net>
41695         and Bruno Haible  <bruno@clisp.org>
41696
41697         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
41698         * tests/test-locale.c: Revert previous patch related to NULL.
41699         * tests/test-stdio.c: Likewise.
41700         * tests/test-stdlib.c: Likewise.
41701         * tests/test-string.c: Likewise.
41702         * tests/test-unistd.c: Likewise.
41703         * modules/time-tests (Depends-on): Add verify.
41704         * modules/wchar-tests (Depends-on): Likewise.
41705         * tests/test-time.c: Test for NULL compliance.
41706         * tests/test-wchar.c: Likewise.
41707         * modules/locale (Depends-on): Add stddef.
41708         * modules/stdio (Depends-on): Likewise.
41709         * modules/stdlib (Depends-on): Likewise.
41710         * modules/string (Depends-on): Likewise.
41711         * modules/time (Depends-on): Likewise.
41712         * modules/unistd (Depends-on): Likewise.
41713         * modules/wchar (Depends-on): Likewise.
41714         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
41715         * lib/stdlib.in.h (includes): Likewise.
41716         * lib/string.in.h (includes): Likewise.
41717         * lib/time.in.h (includes): Likewise.
41718         * lib/unistd.in.h (includes): Likewise.
41719         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
41720         replaced.
41721         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
41722         * m4/stddef_h.m4: New file.
41723         * modules/stddef: Likewise.
41724         * lib/stddef.in.h: Likewise.
41725         * modules/stddef-tests: Likewise.
41726         * tests/test-stddef.c: Likewise.
41727         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
41728         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
41729         * doc/posix-headers/locale.texi (locale.h): Likewise.
41730         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
41731         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
41732         * doc/posix-headers/string.texi (string.h): Likewise.
41733         * doc/posix-headers/time.texi (time.h): Likewise.
41734         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
41735         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
41736
41737 2009-08-14  Eric Blake  <ebb9@byu.net>
41738
41739         doc: improve git diff of texinfo files
41740         * .gitattributes: Add rule for *.texi files, with hint on how to
41741         use it.
41742         Copied from m4, and based on a report by Bruno Haible.
41743
41744 2009-08-14  Bruno Haible  <bruno@clisp.org>
41745
41746         Disable multithread support by default on Cygwin 1.5.x for real.
41747         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
41748
41749 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
41750
41751         update-copyright: much ado about intervals
41752         * build-aux/update-copyright: Implement and document
41753         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
41754         of copyright year intervals.
41755         Also, document UPDATE_COPYRIGHT_YEAR.
41756         * tests/test-update-copyright.sh: Test it.
41757
41758         update-copyright: convert 2-digit to 4-digit years
41759         * build-aux/update-copyright: Implement and document.
41760         * tests/test-update-copyright.sh: Update.
41761
41762 2009-08-14  Jim Meyering  <meyering@redhat.com>
41763
41764         test-exclude: avoid coreutils "make check" failure
41765         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
41766         just as in test-argmatch.c.
41767
41768 2009-08-13  Eric Blake  <ebb9@byu.net>
41769
41770         test-dup2: fix bad assumption
41771         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
41772         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
41773
41774         test-version-etc: fix CRLF portability issue
41775         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
41776         recognize \r.
41777         * tests/test-argp-version-etc-1.sh: Likewise.
41778
41779         getopt: update client modules
41780         * modules/argp (Depends-on): Use getopt-gnu.
41781         * modules/git-merge-changelog (Depends-on): Likewise.
41782         * modules/long-options (Depends-on): Likewise.
41783         * modules/xstrtol (Depends-on): Likewise.
41784
41785 2009-08-13  Simon Josefsson  <simon@josefsson.org>
41786
41787         * tests/test-version-etc.sh: Don't fail on different
41788         project/version.  Don't fail on CRLF differences.  Rewrite to use
41789         multiple -e instead of multiple sed forks, suggested by Eric Blake
41790         <ebb9@byu.net>.
41791         * tests/test-argp-version-etc-1.sh: Likewise.
41792
41793 2009-08-13  Simon Josefsson  <simon@josefsson.org>
41794
41795         * tests/test-version-etc.sh: Don't fail on different
41796         project/version.
41797
41798 2009-08-12  Bruno Haible  <bruno@clisp.org>
41799
41800         Tests for modules 'getopt-posix', 'getopt-gnu'.
41801         * modules/getopt-posix-tests: New file.
41802         * tests/test-getopt.c: New file.
41803         * tests/test-getopt.h: New file.
41804         * tests/test-getopt_long.h: New file.
41805
41806         New modules 'getopt-posix', 'getopt-gnu'.
41807         * modules/getopt-gnu: New file, renamed from modules/getopt.
41808         * modules/getopt-posix: New file.
41809         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
41810         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
41811         (gl_GETOPT): Remove macro.
41812         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
41813         Disable the test against BSD systems that declare optreset. Test
41814         against mingw bug. Test against lack of support of optional arguments
41815         on many platforms.
41816         * doc/glibc-headers/getopt.texi: Update module name and list of
41817         relevant platforms.
41818         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
41819         'getopt-gnu' and more portability problems.
41820         * NEWS: Mention the changes.
41821
41822 2009-08-12  Bruno Haible  <bruno@clisp.org>
41823
41824         Ensure that optarg etc. get declared by <unistd.h>.
41825         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
41826         AC_USE_SYSTEM_EXTENSIONS.
41827         * modules/getopt (Depends-on): Add 'extensions'.
41828
41829 2009-08-12  Bruno Haible  <bruno@clisp.org>
41830
41831         Avoid test link errors.
41832         * modules/pipe-filter-ii-tests (Makefile.am): Define
41833         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
41834         * modules/pipe-filter-gi-tests (Makefile.am): Define
41835         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
41836         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
41837
41838 2009-08-12  Bruno Haible  <bruno@clisp.org>
41839
41840         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
41841         gl_GETOPT_SUBSTITUTE before.
41842         (gl_GETOPT): Use it.
41843         * m4/argp.m4 (gl_ARGP): Update.
41844         Reported by Sergey Poznyakoff.
41845
41846         * m4/getopt.m4: Reorder macros.
41847         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
41848         (gl_GETOPT_SUBSTITUTE): Remove macro.
41849
41850 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
41851
41852         Minor improvement in gitlog-to-changelog
41853
41854         * build-aux/gitlog-to-changelog: New option `--format' makes
41855         output format string configurable.
41856
41857 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
41858
41859         Optimize exclude: use hash tables for non-wildcard patterns.
41860
41861         * lib/exclude.c: Include hash.h and mbuiter.h
41862         (struct exclude_pattern, exclude_segment): New data types.
41863         (struct exclude): Rewrite.
41864         (fnmatch_pattern_has_wildcards): New function.
41865         (new_exclude_segment, free_exclude_segment): New functions.
41866         (excluded_file_pattern_p, excluded_file_name_p): New functions.
41867         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
41868         * lib/exclude.h (is_fnmatch_pattern): New prototype.
41869         * modules/exclude: Depend on hash and mbuiter.
41870
41871         * modules/exclude-tests: New file.
41872         * tests/test-exclude.c: New file.
41873         * tests/test-exclude1.sh: New file.
41874         * tests/test-exclude2.sh: New file.
41875         * tests/test-exclude3.sh: New file.
41876         * tests/test-exclude4.sh: New file.
41877         * tests/test-exclude5.sh: New file.
41878         * tests/test-exclude6.sh: New file.
41879         * tests/test-exclude7.sh: New file.
41880
41881 2009-08-12  Bruno Haible  <bruno@clisp.org>
41882
41883         Ensure that getopt() gets declared by <unistd.h>.
41884         * lib/unistd.in.h: Conditionally include getopt.h.
41885         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
41886         Set GNULIB_UNISTD_H_GETOPT.
41887         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41888         GNULIB_UNISTD_H_GETOPT.
41889         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
41890
41891 2009-08-12  Bruno Haible  <bruno@clisp.org>
41892
41893         Clarify logic.
41894         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
41895         gl_replace_getopt instead of GETOPT_H.
41896
41897 2009-08-12  Bruno Haible  <bruno@clisp.org>
41898
41899         * m4/getopt.m4: Add comments.
41900
41901 2009-08-12  Bruno Haible  <bruno@clisp.org>
41902
41903         Disable multithread support by default on Cygwin 1.5.x.
41904         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
41905         set gl_use_threads=no if not specified otherwise.
41906
41907 2009-08-11  Bruno Haible  <bruno@clisp.org>
41908
41909         Avoid compilation error on NetBSD 5.0.
41910         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
41911         * tests/test-stdio.c: Likewise.
41912         * tests/test-stdlib.c: Likewise.
41913         * tests/test-string.c: Likewise.
41914         * tests/test-unistd.c: Likewise.
41915         Reported by Greg Troxel <gdt@ir.bbn.com>
41916         at <https://savannah.gnu.org/support/?106973>.
41917
41918 2009-08-11  Bruno Haible  <bruno@clisp.org>
41919
41920         * modules/dup2-tests (Depends-on): Remove close.
41921
41922         Undo 2009-07-19 commit.
41923         * modules/acl-tests (Depends-on): Remove close.
41924         * modules/binary-io-tests (Depends-on): Likewise.
41925         * modules/closein-tests (Depends-on): Likewise.
41926         * modules/flock-tests (Depends-on): Likewise.
41927         * modules/fsync-tests (Depends-on): Likewise.
41928         * modules/lseek-tests (Depends-on): Likewise.
41929         * modules/pipe-tests (Depends-on): Likewise.
41930         * modules/posix_spawn-tests (Depends-on): Likewise.
41931         * modules/posix_spawnp-tests (Depends-on): Likewise.
41932         * modules/stat-time-tests (Depends-on): Likewise.
41933         * modules/yesno-tests (Depends-on): Likewise.
41934
41935 2009-08-10  Bruno Haible  <bruno@clisp.org>
41936
41937         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
41938
41939 2009-08-10  Bruno Haible  <bruno@clisp.org>
41940
41941         Fix a gcc warning.
41942         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
41943
41944 2009-08-10  Bruno Haible  <bruno@clisp.org>
41945
41946         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
41947         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
41948         not only the first time.
41949         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
41950         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
41951         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
41952         is 1, not only the the first time.
41953
41954 2009-08-10  Bruno Haible  <bruno@clisp.org>
41955
41956         Make it possible to use module 'gethostname' without module 'close'.
41957         * lib/unistd.in.h (close): Evoke a link error only if
41958         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
41959         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41960         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
41961         * modules/unistd (Makefile.am): Substitute
41962         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
41963         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
41964         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
41965         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
41966         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
41967         * modules/sys_ioctl (Makefile.am): Substitute
41968         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
41969         * modules/socket (configure.ac): On native Windows, set
41970         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
41971         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
41972         Reported by Sam Steingold <sds@gnu.org>.
41973
41974 2009-08-10  Bruno Haible  <bruno@clisp.org>
41975
41976         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
41977         * modules/ioctl (configure.ac): Likewise.
41978
41979 2009-08-10  Bruno Haible  <bruno@clisp.org>
41980
41981         Avoid collision between gnulib wrapper and libintl wrapper.
41982         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
41983         already defined in intl/printf.c.
41984         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
41985         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
41986
41987 2009-08-09  Bruno Haible  <bruno@clisp.org>
41988
41989         Make <sys/select.h> really self-contained, also on Solaris 10.
41990         * lib/sys_select.in.h: Include <string.h>.
41991         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
41992         Solaris 10 problem.
41993         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
41994         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
41995         Reported by Jim Meyering.
41996
41997 2009-08-09  Bruno Haible  <bruno@clisp.org>
41998
41999         Avoid warnings from 'aclocal' that are due to a use of macro name
42000         AM_XGETTEXT_OPTION that is not defined in automake.
42001         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
42002         automake.
42003         * modules/error (configure.ac): Likewise.
42004         * modules/propername (configure.ac): Likewise.
42005         * modules/vasprintf (configure.ac): Likewise.
42006         * modules/verror (configure.ac): Likewise.
42007         * modules/xprintf (configure.ac): Likewise.
42008         * modules/xvasprintf (configure.ac): Likewise.
42009
42010 2009-08-08  Bruno Haible  <bruno@clisp.org>
42011
42012         Avoid compilation error in C++ mode.
42013         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
42014         Reported by Sam Steingold <sds@gnu.org>.
42015
42016 2009-08-08  Bruno Haible  <bruno@clisp.org>
42017
42018         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
42019         for the various Unix platforms.
42020         * doc/posix-headers/limits.texi: Update platforms list regarding
42021         HOST_NAME_MAX.
42022         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42023
42024 2009-08-07  Jim Meyering  <meyering@redhat.com>
42025
42026         selinux-at: fix typo in a comment
42027         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
42028         Spotted by Paolo Bonzini.
42029
42030         selinux-at: remove redundant m4 code, add documentation
42031         * modules/selinux-at (configure.ac): Remove redundant code.
42032         LIB_SELINUX is already set via the dependent module, selinux-h.
42033         (Include): Add quotes around selinux-at.h.
42034         * lib/selinux-at.h: Add documentation.
42035         Reported by Bruno Haible in
42036         http://marc.info/?l=gnulib-bug&m=124958988300749
42037
42038 2009-08-07  Bruno Haible  <bruno@clisp.org>
42039
42040         Avoid link error on MacOS X 10.3 and 10.4.
42041         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
42042         on non-ELF systems.
42043         * lib/argp-pv.c (argp_program_version): Likewise.
42044         Reported by Simon Josefsson.
42045
42046 2009-08-07  Simon Josefsson  <simon@josefsson.org>
42047
42048         * tests/test-version-etc.sh: Use $EXEEXT.
42049
42050 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
42051
42052         update-copyright: update documentation to point to maint.mk
42053         * build-aux/update-copyright: Here.
42054
42055 2009-08-06  Jim Meyering  <meyering@redhat.com>
42056
42057         maint.mk: support update-copyright-local
42058         * top/maint.mk (update-copyright-local): Define place-holder.
42059         (update-copyright): Depend on $(update-copyright-local).
42060
42061 2009-08-06  Jim Meyering  <meyering@redhat.com>
42062
42063         selinux-at: new module
42064         Initially written for coreutils, this module will soon be
42065         used by findutils, too.
42066         * MODULES.html.sh [Misc]: Add selinux-at.
42067         * lib/selinux-at.h: New file, from coreutils.
42068         * lib/selinux-at.c: Likewise.
42069         * modules/selinux-at: Likewise.
42070         (License): Change from LGPL to GPL, since it depends
42071         on the GPL'd openat module.
42072
42073         doc: update README
42074         * README: Remove references to cogito.
42075         Remove cvs-repo-updating instructions from 2007.
42076         Don't imply that CVS is better if you have limited disk space.
42077
42078 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42079
42080         update-copyright: support C-style comments
42081         * build-aux/update-copyright: Implement and document.
42082         * tests/test-update-copyright.sh: Test.
42083
42084 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42085
42086         update-copyright: support omitted "(C)"
42087         * build-aux/update-copyright: Implement and document.  Also,
42088         allow variable whitespace before "(C)".
42089         * tests/test-update-copyright.sh: Test.
42090
42091 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42092
42093         update-copyright: don't trip on non-FSF copyright statements
42094         * build-aux/update-copyright: Fix so that the first correctly
42095         formatted FSF copyright statement is recognized no matter what
42096         appears before it.  Update documentation.
42097         * tests/test-update-copyright.sh: Test that.
42098
42099 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42100
42101         update-copyright: clean up code a little
42102         * build-aux/update-copyright: Append "_re" to the name of any
42103         variable holding a regular expression.
42104         Replace "old" and "new" with "stmt" in variable names.
42105         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
42106         handled correctly.
42107         Format code more consistently.
42108
42109 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
42110
42111         update-copyright-tests: improve portability
42112         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
42113         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
42114
42115 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
42116
42117         update-copyright: support @copyright{} and &copy;
42118         * build-aux/update-copyright: Implement and document.
42119         * tests/test-update-copyright.sh: Test.
42120
42121 2009-08-04  Jim Meyering  <meyering@redhat.com>
42122
42123         update-copyright-tests: correctly test EOL=\r\n handling
42124         * tests/test-update-copyright.sh: Put \r at the end of some lines
42125         for the dos-eol tests.  Based on a patch by Joel E. Denny.
42126
42127         maint.mk: make update-copyright exclusion list more configurable
42128         * top/maint.mk (update-copyright): Default to excluding COPYING,
42129         but allow an override, in case someone does want to update that file.
42130
42131         maint.mk: don't update copyright date in COPYING
42132         * top/maint.mk (update-copyright): Exclude COPYING.
42133
42134         maint.mk: add a copyright-updating rule
42135         * top/maint.mk (update-copyright): New rule.
42136         Derived from coreutils/Makefile.am.
42137
42138         update-copyright: rename some variables
42139         * build-aux/update-copyright: Rename a few variables for clarity.
42140         Tweak syntax.  List Joel E. Denny as coauthor.
42141
42142 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
42143
42144         update-copyright: fix bug for 2-digit last year and add tests
42145         * build-aux/update-copyright: Fix bug.
42146         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
42147         specified.
42148         * modules/update-copyright-tests: New
42149         * tests/test-update-copyright.sh: New.
42150
42151 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
42152
42153         update-copyright: handle leading tabs in line prefix
42154         * build-aux/update-copyright: Count leading tabs as 8 spaces
42155         when computing margin.  This helps with the formatting of
42156         ChangeLogs, for example.
42157         Fix documentation a little.
42158
42159 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
42160
42161         update-copyright: support EOL=\r\n
42162         * build-aux/update-copyright: Implement that.
42163
42164 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
42165
42166         update-copyright: automatically format copyright statements
42167         * build-aux/update-copyright: Implement that.
42168         Also, be a little more predictable and safer by always failing
42169         when the full copyright format is not perfectly recognized as an
42170         unbroken whole.  Discussed at
42171         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
42172         Rewrite documentation.
42173
42174 2009-08-03  Bruno Haible  <bruno@clisp.org>
42175
42176         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
42177
42178 2009-08-02  Bruno Haible  <bruno@clisp.org>
42179
42180         Tests for module 'uname'.
42181         * modules/uname-tests: New file.
42182         * tests/test-uname.c: New file.
42183
42184         New module 'uname'.
42185         * lib/uname.c: New file.
42186         * m4/uname.m4: New file.
42187         * modules/uname: New file.
42188         * doc/posix-functions/uname.texi: Mention the new module.
42189
42190 2009-08-02  Bruno Haible  <bruno@clisp.org>
42191
42192         Tests for module 'sys_utsname'.
42193         * modules/sys_utsname-tests: New file.
42194         * tests/test-sys_utsname.c: New file.
42195
42196         New module 'sys_utsname'.
42197         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
42198         * m4/sys_utsname_h.m4: New file.
42199         * modules/sys_utsname: New file.
42200         * doc/posix-headers/sys_utsname.texi: Mention the new module.
42201
42202 2009-08-02  Bruno Haible  <bruno@clisp.org>
42203
42204         Implicitly initialize the sockets library.
42205         * lib/gethostname.c: Include sockets.h.
42206         (rpl_gethostname): Invoke gl_sockets_startup.
42207         * lib/socket.c: Include sockets.h.
42208         (rpl_socket): Invoke gl_sockets_startup.
42209         * modules/gethostname (Depends-on): Add sockets.
42210         * modules/socket (Depends-on): Likewise.
42211         * tests/test-poll.c: Don't include sockets.h.
42212         (main): Don't invoke gl_sockets_startup.
42213         * tests/test-select.c: Don't include sockets.h.
42214         (main): Don't invoke gl_sockets_startup.
42215
42216 2009-08-02  Bruno Haible  <bruno@clisp.org>
42217
42218         Allow multiple calls to gl_sockets_startup.
42219         * lib/sockets.c (initialized_sockets_version): New variable.
42220         (gl_sockets_startup): Do nothing if already called for this or a higher
42221         version.
42222         (gl_sockets_cleanup): Reset initialized_sockets_version.
42223
42224 2009-08-03  Simon Josefsson  <simon@josefsson.org>
42225
42226         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
42227         different project/version.
42228
42229 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
42230             Bruno Haible  <bruno@clisp.org>
42231
42232         Tests for module 'pipe-filter-gi'.
42233         * modules/pipe-filter-gi-tests: New file.
42234         * tests/test-pipe-filter-gi1.sh: New file.
42235         * tests/test-pipe-filter-gi1.c: New file.
42236         * tests/test-pipe-filter-gi2.sh: New file.
42237         * tests/test-pipe-filter-gi2-main.c: New file.
42238         * tests/test-pipe-filter-gi2-child.c: New file.
42239
42240         New module 'pipe-filter-gi'.
42241         * lib/pipe-filter-gi.c: New file.
42242         * modules/pipe-filter-gi: New file.
42243
42244 2009-08-02  Bruno Haible  <bruno@clisp.org>
42245             Paolo Bonzini  <bonzini@gnu.org>
42246
42247         Tests for module 'pipe-filter-ii'.
42248         * modules/pipe-filter-ii-tests: New file.
42249         * tests/test-pipe-filter-ii1.sh: New file.
42250         * tests/test-pipe-filter-ii1.c: New file.
42251         * tests/test-pipe-filter-ii2.sh: New file.
42252         * tests/test-pipe-filter-ii2-main.c: New file.
42253         * tests/test-pipe-filter-ii2-child.c: New file.
42254
42255         New module 'pipe-filter-ii'.
42256         * lib/pipe-filter.h: New file.
42257         * lib/pipe-filter-ii.c: New file.
42258         * lib/pipe-filter-aux.h: New file.
42259         * modules/pipe-filter-ii: New file.
42260
42261 2009-08-02  Simon Josefsson  <simon@josefsson.org>
42262
42263         * lib/gc-libgcrypt.c: Change copyright to FSF.
42264         * lib/gc-gnulib.c: Likewise.
42265
42266 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
42267
42268         * lib/gethostname.c: Include limits.h.
42269
42270 2009-08-02  Simon Josefsson  <simon@josefsson.org>
42271             Bruno Haible  <bruno@clisp.org>
42272
42273         Ensure HOST_NAME_MAX as part of the gethostname module.
42274         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
42275         define also HOST_NAME_MAX.
42276         * tests/test-gethostname.c: Include <limits.h>.
42277         (main): Check also HOST_NAME_MAX.
42278         * doc/posix-headers/limits.texi: Document the mingw problem.
42279
42280 2009-08-02  Bruno Haible  <bruno@clisp.org>
42281
42282         * lib/gethostname.c (gethostname): Fix handling of large len argument.
42283         Add comments.
42284
42285 2009-03-31  Simon Josefsson  <simon@josefsson.org>
42286
42287         * lib/gethostname.c: Add Windows wrapper.
42288         * m4/gethostname.m4: Look for gethostname in -lws2_32.
42289         * modules/gethostname: Depend on sys_socket & errno, for also
42290         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
42291         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
42292
42293 2009-07-31  Jim Meyering  <meyering@redhat.com>
42294
42295         getloadavg: fix symbol name in comment
42296         * lib/getloadavg.c: Correct a typo I introduced when adding
42297         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
42298         Matt Kraai spotted the problem.
42299
42300 2009-07-29  Matt Kraai  <mkraai@beckman.com>
42301
42302         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
42303         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
42304         code also if ! defined N_NAME_POINTER.
42305         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
42306         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
42307         but the n_name member is a 12-byte array.
42308
42309 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
42310
42311         update-copyright: generalize comment handling
42312         * build-aux/update-copyright: Handle copyright statements
42313         within more comment styles.
42314         Document usage.
42315         Report any file with an external copyright holder or parse failure.
42316
42317 2009-07-29  Jim Meyering  <meyering@redhat.com>
42318
42319         mktime: correct setting of REPLACE_MKTIME
42320         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
42321
42322         update-copyright: new module
42323         * modules/update-copyright: New file.
42324         * build-aux/update-copyright: New file.
42325         * MODULES.html.sh (maint+release support): Add update-copyright.
42326
42327 2009-07-27  Bruno Haible  <bruno@clisp.org>
42328
42329         Fix compilation error when <ctime> is used and mktime is replaced.
42330         * lib/time.in.h (mktime): New declaration.
42331         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
42332         REPLACE_MKTIME instead of defining mktime in config.h.
42333         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
42334         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
42335         Reported by Ross McFarland <rwmcfa1@neces.com>.
42336
42337 2009-07-27  Bruno Haible  <bruno@clisp.org>
42338
42339         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
42340         Reported by Matt Kraai <mkraai@beckman.com>.
42341
42342 2009-07-25  Jim Meyering  <meyering@redhat.com>
42343
42344         maint.mk: avoid warnings about missing files
42345         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
42346         diagnostic when .prev-version does not exist.
42347         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
42348         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
42349         nonexistent cfg.mk.
42350         Suggestions from Simon Josefsson.
42351
42352 2009-07-25  Bruno Haible  <bruno@clisp.org>
42353
42354         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
42355         defined as macros. Needed on QNX 6.4.1.
42356         Reported by Matt Kraai <mkraai@beckman.com>.
42357
42358 2009-07-23  Jim Meyering  <meyering@redhat.com>
42359
42360         maint.mk: invoke "make dist" with a working value of XZ_OPT
42361         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
42362
42363 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
42364
42365         Make fseeko.c compile on QNX.
42366         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
42367
42368 2009-07-22  Peter Simons  <simons@cryp.to>
42369
42370         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
42371         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
42372         * lib/md4.h: Likewise.
42373         * lib/md5.h: Likewise.
42374         * lib/sha1.h: Likewise.
42375         * lib/sha256.h: Likewise.
42376         * lib/sha512.h: Likewise.
42377
42378         tests-sha1: don't assign literal string to 'char *' variable
42379         * tests/test-sha1.c (main): Declare locals with "const" to match
42380         attributes of the right hand side.
42381
42382 2009-07-21  Eric Blake  <ebb9@byu.net>
42383
42384         dup2: fix more mingw problems
42385         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
42386         fd to itself.
42387         * doc/posix-functions/dup2.texi (dup2): Document the bug.
42388         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
42389         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
42390         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
42391         care of mingw bugs.
42392
42393 2009-07-21  Jim Meyering  <meyering@redhat.com>
42394
42395         vc-list-files: avoid failure when /bin/sh is dash
42396         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
42397         On some Debian based systems, /bin/sh is a symlink to dash, and running
42398         this command would omit the "/" following each 'tests' prefix:
42399           dash -x build-aux/vc-list-files -C . tests
42400         That is because bash and dash work differently:
42401           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
42402           bash ok
42403           dash odd
42404
42405 2009-07-21  Eric Blake  <ebb9@byu.net>
42406
42407         dup2-tests: test previous patch
42408         * modules/dup2-tests: New file.
42409         * tests/test-dup2.c: Likewise.
42410         * tests/test-open.c (main): Avoid unspecified behavior.
42411         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
42412         test.
42413
42414         dup2: work around mingw and cygwin 1.5 bug
42415         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
42416         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42417         * modules/unistd (Makefile.am): Substitute it.
42418         * lib/unistd.in.h (dup2): Declare the replacement.
42419         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
42420         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
42421         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
42422         * modules/execute (Depends-on): Add dup2.
42423         * modules/fseterr (Depends-on): Likewise.
42424         * modules/pipe (Depends-on): Likewise.
42425         * modules/posix_spawn-internal (Depends-on): Likewise.
42426
42427 2009-07-21  Bruno Haible  <bruno@clisp.org>
42428
42429         * modules/.gitattributes: New file.
42430
42431 2009-07-20  Bruno Haible  <bruno@clisp.org>
42432
42433         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
42434         (main): Use it.
42435
42436 2009-07-20  Eric Blake  <ebb9@byu.net>
42437
42438         test-pipe: make a bit more robust.
42439         * tests/test-pipe.c (myerr): Allow error messages regardless of
42440         what we do to stderr.
42441         (test_pipe): Rearrange to avoid deadlock.
42442         (child_main): Try a larger read, to ensure we avoided deadlock.
42443         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
42444         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
42445         if misused.
42446
42447 2009-07-19  Jim Meyering  <meyering@redhat.com>
42448
42449         fts: avoid false-positive cycle-detection
42450         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
42451         for each new command line argument.
42452
42453 2009-07-19  Bruno Haible  <bruno@clisp.org>
42454
42455         Fix build error on mingw with the modules sys_select and unistd.
42456         * modules/acl-tests (Depends-on): Add close.
42457         * modules/binary-io-tests (Depends-on): Likewise.
42458         * modules/closein-tests (Depends-on): Likewise.
42459         * modules/flock-tests (Depends-on): Likewise.
42460         * modules/fsync-tests (Depends-on): Likewise.
42461         * modules/lseek-tests (Depends-on): Likewise.
42462         * modules/pipe-tests (Depends-on): Likewise.
42463         * modules/posix_spawn-tests (Depends-on): Likewise.
42464         * modules/posix_spawnp-tests (Depends-on): Likewise.
42465         * modules/stat-time-tests (Depends-on): Likewise.
42466         * modules/yesno-tests (Depends-on): Likewise.
42467
42468 2009-07-19  Bruno Haible  <bruno@clisp.org>
42469
42470         Unify conditionals.
42471         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
42472         macros, not at the compiler macros.
42473         * lib/pipe.c: Likewise.
42474         * lib/execute.c: Likewise.
42475         * lib/spawni.c: Likewise.
42476
42477 2009-07-19  Bruno Haible  <bruno@clisp.org>
42478
42479         Fix handling of closed stdin/stdout/stderr on mingw.
42480         * lib/w32spawn.h: Include unistd.h.
42481         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
42482         file descriptor with O_NOINHERIT flag.
42483         (fd_safer_noinherit): New function, based on fd-safer.c.
42484         (dup_safer_noinherit): New function, based on dup-safer.c.
42485         (undup_safer_noinherit): New function.
42486         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
42487         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
42488         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
42489         instead of fd_safer.
42490         * tests/test-pipe.c: Include <windows.h>.
42491         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
42492         result.
42493
42494         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
42495         from main.
42496         (test_pipe): Pass an extra argument for disambiguation.
42497         (main): Invoke parent_main or child_main.
42498
42499         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
42500         consistently.
42501
42502 2009-07-18  Eric Blake  <ebb9@byu.net>
42503
42504         test-pipe: fix mingw build
42505         * tests/test-pipe.c (main): Avoid fcntl on mingw.
42506
42507 2009-07-18  Bruno Haible  <bruno@clisp.org>
42508
42509         * modules/pipe-tests (Makefile.am): Fix typo.
42510
42511 2009-07-18  Eric Blake  <ebb9@byu.net>
42512
42513         error: fix mingw build
42514         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
42515         Reported by Bruno Haible.
42516
42517         error: avoid undefined use of stdout
42518         * lib/error.c (error, error_at_line): Check that fd 1 is open
42519         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
42520         is handling faults and the close_stdout module wants to report the
42521         detection of closed stdout as an error.
42522
42523 2009-07-17  Eric Blake  <ebb9@byu.net>
42524
42525         pipe: be robust in face of closed fds
42526         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
42527         should cause child to misbehave.
42528         * modules/pipe-tests: New module.
42529         * tests/test-pipe.c: New file.
42530         * tests/test-pipe.sh: New file.
42531         Reported by Akim Demaille.
42532
42533 2009-07-14  Bruno Haible  <bruno@clisp.org>
42534
42535         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
42536         Reported by anonymous kc.
42537
42538 2009-07-07  Jim Meyering  <meyering@redhat.com>
42539
42540         maint.mk: don't look for translatable strings in *.m4 or *.mk
42541         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
42542         when searching for translatable strings.
42543
42544 2009-07-05  Jim Meyering  <meyering@redhat.com>
42545
42546         remove superfluous parentheses in STREQ definition
42547         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
42548         * lib/getugroups.c (STREQ): Likewise.
42549         * lib/fnmatch.c (STREQ): Likewise.
42550         Spotted by Bruno Haible.
42551
42552 2009-07-04  Jim Meyering  <meyering@redhat.com>
42553
42554         argv-iter: new module
42555         * MODULES.html.sh: Add argv-iter.
42556         * lib/argv-iter.c, lib/argv-iter.h: New files.
42557         * modules/argv-iter: New file.
42558         * modules/argv-iter-tests: New file.
42559         * tests/test-argv-iter.c: Test it.
42560
42561 2009-07-04  Bruno Haible  <bruno@clisp.org>
42562
42563         Fix assertion.
42564         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
42565         contains more exact copies of a given entry than file2, leave the extra
42566         copies unpaired rather than aborting.
42567         Reported by Eric Blake.
42568
42569 2009-07-02  Bruno Haible  <bruno@clisp.org>
42570
42571         Speedup git-merge-changelog for git cherry-pick.
42572         * lib/git-merge-changelog.c (struct entries_mapping): New type.
42573         (entries_mapping_get): New function, extracted from compute_mapping.
42574         (entries_mapping_reverse_get): New function.
42575         (compute_mapping): Add a 'full' argument. Return the result in a
42576         'struct entries_mapping'.
42577         (main): Update. Access the mappings through entries_mapping_get.
42578         Reported by Eric Blake.
42579
42580 2009-07-02  Bruno Haible  <bruno@clisp.org>
42581
42582         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
42583         best_i.
42584
42585 2009-07-02  Bruno Haible  <bruno@clisp.org>
42586
42587         Speed up approximate search for matching ChangeLog entries.
42588         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
42589         argument. Call fstrcmp_bounded instead of fstrcmp.
42590         (compute_mapping, try_split_merged_entry, main): Update callers.
42591
42592 2009-07-02  Bruno Haible  <bruno@clisp.org>
42593
42594         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
42595
42596 2009-06-30  Bruno Haible  <bruno@clisp.org>
42597
42598         Reduce the number of uc_is_cased calls.
42599         * lib/unicase.h (casing_suffix_context_t): Add
42600         'first_char_except_ignorable' field.
42601         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
42602         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
42603         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
42604         Update initializer.
42605         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
42606         case-ignorable characters.
42607         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
42608         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
42609         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
42610         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
42611         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
42612
42613 2009-06-30  Bruno Haible  <bruno@clisp.org>
42614
42615         Tests for module 'unicase/ignorable'.
42616         * modules/unicase/ignorable-tests: New file.
42617         * tests/unicase/test-ignorable.c: New file, generated by
42618         gen-uni-tables.
42619
42620         Tests for module 'unicase/cased'.
42621         * modules/unicase/cased-tests: New file.
42622         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
42623         * tests/unicase/test-predicate-part1.h: New file, derived from
42624         tests/unictype/test-predicate-part1.h.
42625         * tests/unicase/test-predicate-part2.h: New file, same as
42626         tests/unictype/test-predicate-part2.h.
42627
42628         Fix evaluation of "Before C" condition of FINAL_SIGMA.
42629         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
42630         (output_casing_properties): New function.
42631         (main): Call it.
42632         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
42633         * lib/unicase/cased.c: Include unictype/bitmap.h.
42634         (uc_is_cased): Define through a bitmap lookup.
42635         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
42636         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
42637         (uc_is_case_ignorable): Define through a bitmap lookup.
42638         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
42639         lib/unictype/bitmap.h.
42640         (Depends-on): Add inline. Clean up.
42641         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
42642         lib/unictype/bitmap.h.
42643         (Depends-on): Add inline. Clean up.
42644         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
42645         recognition.
42646         * tests/unicase/test-u16-tolower.c (main): Likewise.
42647         * tests/unicase/test-u32-tolower.c (main): Likewise.
42648
42649 2009-06-30  Bruno Haible  <bruno@clisp.org>
42650
42651         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
42652         * lib/unicase/u16-casemap.c: Likewise.
42653         * lib/unicase/u32-casemap.c: Likewise.
42654
42655 2009-06-29  Bruno Haible  <bruno@clisp.org>
42656
42657         Define u32_casefold as a wrapper around u32_ct_casefold.
42658         * lib/unicase/u32-casefold.c: Update.
42659         * modules/unicase/u32-casefold (Depends-on): Add
42660         unicase/u32-ct-casefold, unicase/empty-prefix-context,
42661         unicase/empty-suffix-context. Clean up.
42662
42663         Define u16_casefold as a wrapper around u16_ct_casefold.
42664         * lib/unicase/u16-casefold.c: Update.
42665         * modules/unicase/u16-casefold (Depends-on): Add
42666         unicase/u16-ct-casefold, unicase/empty-prefix-context,
42667         unicase/empty-suffix-context. Clean up.
42668
42669         Define u8_casefold as a wrapper around u8_ct_casefold.
42670         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
42671         * lib/unicase/u8-casefold.c: Update.
42672         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
42673         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
42674
42675         Define u32_totitle as a wrapper around u32_ct_totitle.
42676         * lib/unicase/u32-totitle.c: Update.
42677         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
42678         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
42679
42680         Define u16_totitle as a wrapper around u16_ct_totitle.
42681         * lib/unicase/u16-totitle.c: Update.
42682         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
42683         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
42684
42685         Define u8_totitle as a wrapper around u8_ct_totitle.
42686         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
42687         functions.
42688         (FUNC): Delegate to U_CT_TOTITLE.
42689         * lib/unicase/u8-totitle.c: Update.
42690         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
42691         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
42692
42693         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
42694         invocation.
42695         * modules/unicase/u32-tolower (Depends-on): Add
42696         unicase/empty-prefix-context, unicase/empty-suffix-context.
42697
42698         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
42699         invocation.
42700         * modules/unicase/u16-tolower (Depends-on): Add
42701         unicase/empty-prefix-context, unicase/empty-suffix-context.
42702
42703         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
42704         * modules/unicase/u8-tolower (Depends-on): Add
42705         unicase/empty-prefix-context, unicase/empty-suffix-context.
42706
42707         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
42708         invocation.
42709         * modules/unicase/u32-toupper (Depends-on): Add
42710         unicase/empty-prefix-context, unicase/empty-suffix-context.
42711
42712         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
42713         invocation.
42714         * modules/unicase/u16-toupper (Depends-on): Add
42715         unicase/empty-prefix-context, unicase/empty-suffix-context.
42716
42717         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
42718         * modules/unicase/u8-toupper (Depends-on): Add
42719         unicase/empty-prefix-context, unicase/empty-suffix-context.
42720
42721         New module 'unicase/u32-ct-casefold'.
42722         * lib/unicase/u32-ct-casefold.c: New file.
42723         * modules/unicase/u32-ct-casefold: New file.
42724
42725         New module 'unicase/u16-ct-casefold'.
42726         * lib/unicase/u16-ct-casefold.c: New file.
42727         * modules/unicase/u16-ct-casefold: New file.
42728
42729         New module 'unicase/u8-ct-casefold'.
42730         * lib/unicase/u8-ct-casefold.c: New file.
42731         * lib/unicase/u-ct-casefold.h: New file, derived from
42732         lib/unicase/u-casefold.h.
42733         * modules/unicase/u8-ct-casefold: New file.
42734
42735         New module 'unicase/u32-ct-totitle'.
42736         * lib/unicase/u32-ct-totitle.c: New file.
42737         * modules/unicase/u32-ct-totitle: New file.
42738
42739         New module 'unicase/u16-ct-totitle'.
42740         * lib/unicase/u16-ct-totitle.c: New file.
42741         * modules/unicase/u16-ct-totitle: New file.
42742
42743         New module 'unicase/u8-ct-totitle'.
42744         * lib/unicase/u8-ct-totitle.c: New file.
42745         * lib/unicase/u-ct-totitle.h: New file, derived from
42746         lib/unicase/u-totitle.h.
42747         * modules/unicase/u8-ct-totitle: New file.
42748
42749         New module 'unicase/u32-ct-tolower'.
42750         * lib/unicase/u32-ct-tolower.c: New file.
42751         * modules/unicase/u32-ct-tolower: New file.
42752
42753         New module 'unicase/u16-ct-tolower'.
42754         * lib/unicase/u16-ct-tolower.c: New file.
42755         * modules/unicase/u16-ct-tolower: New file.
42756
42757         New module 'unicase/u8-ct-tolower'.
42758         * lib/unicase/u8-ct-tolower.c: New file.
42759         * modules/unicase/u8-ct-tolower: New file.
42760
42761         New module 'unicase/u32-ct-toupper'.
42762         * lib/unicase/u32-ct-toupper.c: New file.
42763         * modules/unicase/u32-ct-toupper: New file.
42764
42765         New module 'unicase/u16-ct-toupper'.
42766         * lib/unicase/u16-ct-toupper.c: New file.
42767         * modules/unicase/u16-ct-toupper: New file.
42768
42769         New module 'unicase/u8-ct-toupper'.
42770         * lib/unicase/u8-ct-toupper.c: New file.
42771         * modules/unicase/u8-ct-toupper: New file.
42772
42773         Add context arguments to u*_casemap functions.
42774         * lib/unicase/unicasemap.h: Include unicase.h.
42775         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
42776         suffix_context arguments.
42777         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
42778         functions.
42779         (FUNC): Add prefix_context and suffix_context arguments. Use
42780         uc_is_cased and uc_is_case_ignorable.
42781         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
42782         * lib/unicase/u16-casemap.c: Likewise.
42783         * lib/unicase/u32-casemap.c: Likewise.
42784         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
42785         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
42786         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
42787         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
42788         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
42789         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
42790
42791         New module 'unicase/u32-suffix-context'.
42792         * lib/unicase/u32-suffix-context.c: New file.
42793         * modules/unicase/u32-suffix-context: New file.
42794
42795         New module 'unicase/u16-suffix-context'.
42796         * lib/unicase/u16-suffix-context.c: New file.
42797         * modules/unicase/u16-suffix-context: New file.
42798
42799         New module 'unicase/u8-suffix-context'.
42800         * lib/unicase/u8-suffix-context.c: New file.
42801         * lib/unicase/u-suffix-context.h: New file.
42802         * modules/unicase/u8-suffix-context: New file.
42803
42804         New module 'unicase/empty-suffix-context'.
42805         * lib/unicase/empty-suffix-context.c: New file.
42806         * modules/unicase/empty-suffix-context: New file.
42807
42808         New module 'unicase/u32-prefix-context'.
42809         * lib/unicase/u32-prefix-context.c: New file.
42810         * modules/unicase/u32-prefix-context: New file.
42811
42812         New module 'unicase/u16-prefix-context'.
42813         * lib/unicase/u16-prefix-context.c: New file.
42814         * modules/unicase/u16-prefix-context: New file.
42815
42816         New module 'unicase/u8-prefix-context'.
42817         * lib/unicase/u8-prefix-context.c: New file.
42818         * lib/unicase/u-prefix-context.h: New file.
42819         * lib/unicase/context.h: New file.
42820         * modules/unicase/u8-prefix-context: New file.
42821
42822         New module 'unicase/empty-prefix-context'.
42823         * lib/unicase/empty-prefix-context.c: New file.
42824         * modules/unicase/empty-prefix-context: New file.
42825
42826         New module 'unicase/ignorable'.
42827         * lib/unicase/ignorable.c: New file.
42828         * modules/unicase/ignorable: New file.
42829
42830         New module 'unicase/cased'.
42831         * lib/unicase/caseprop.h: New file.
42832         * lib/unicase/cased.c: New file.
42833         * modules/unicase/cased: New file.
42834
42835         New functions for case mapping of substrings.
42836         * lib/unicase.h (casing_prefix_context_t): New type.
42837         (unicase_empty_prefix_context): New variable.
42838         (u8_casing_prefix_context, u16_casing_prefix_context,
42839         u32_casing_prefix_context, u8_casing_prefixes_context,
42840         u16_casing_prefixes_context, u32_casing_prefixes_context): New
42841         declarations.
42842         (casing_suffix_context_t): New type.
42843         (unicase_empty_suffix_context): New variable.
42844         (u8_casing_suffix_context, u16_casing_suffix_context,
42845         u32_casing_suffix_context, u8_casing_suffixes_context,
42846         u16_casing_suffixes_context, u32_casing_suffixes_context,
42847         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
42848         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
42849         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
42850         declarations.
42851
42852 2009-06-28  Jim Meyering  <meyering@redhat.com>
42853
42854         boostrap: indent only with spaces
42855         * build-aux/bootstrap: Indent only with spaces, never TABs.
42856
42857         bootstrap: split long lines
42858         * build-aux/bootstrap: Keep line length < 80.
42859
42860         bootstrap: sync from coreutils
42861         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
42862         just as autoreconf does.  Verify a list of prerequisite
42863         package-name,version-number pairs if defined in bootstrap.conf.
42864         Refer to README-prereq, if prerequisites are not satisfied.
42865
42866 2009-06-27  Eric Blake  <ebb9@byu.net>
42867
42868         tests: add test for bogus NULL definition
42869         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
42870         * tests/test-stdlib.c: Likewise.
42871         * tests/test-string.c: Likewise.
42872         * tests/test-locale.c: Likewise.
42873         * tests/test-unistd.c: Likewise.
42874         * modules/stdio-tests (Depends-on): Add verify.
42875         * modules/stdlib-tests (Depends-on): Likewise.
42876         * modules/string-tests (Depends-on): Likewise.
42877         * modules/locale-tests (Depends-on): Likewise.
42878         * modules/unistd-tests (Depends-on): Likewise.
42879
42880 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
42881
42882         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
42883         self-explaining comment.
42884         * m4/selinux-selinux-h: Update serial.
42885         (gl_LIBSELINUX): New macro, adding a warning for missing development
42886         packages to code extracted from...
42887         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
42888         Add warning for missing development packages here, too.
42889
42890 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
42891
42892         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
42893
42894 2009-06-25  Eric Blake  <ebb9@byu.net>
42895
42896         version-etc: fix regression
42897         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
42898         gcc.
42899         (version_etc): Use it, to catch bugs with trailing NULL.
42900         * lib/version-etc.c (version_etc_arn): Delete unused argument.
42901         (version_etc_va): Fix logic bug.
42902         * modules/version-etc-tests: Add test.
42903         * tests/test-version-etc.c: New file.
42904         * tests/test-version-etc.sh: Likewise.
42905
42906 2009-06-25  Sam Steingold  <sds@gnu.org>
42907
42908         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
42909         mbtowc declaration.
42910
42911 2009-06-25  Eric Blake  <ebb9@byu.net>
42912
42913         fpurge: migrate into <stdio.h>
42914         * lib/fpurge.h: Delete...
42915         * lib/stdio.in.h (fpurge): ...and declare here, instead.
42916         * lib/fpurge.c (fpurge): Change declaring header.
42917         * modules/fpurge (Files): Drop deleted file.
42918         (Depends-on): Add stdio.
42919         (configure.ac): Set witness.
42920         * modules/stdio (Makefile.am): Support fpurge macros.
42921         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
42922         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
42923         * lib/fflush.c: Update client.
42924         * tests/test-fpurge.c: Likewise.
42925         * NEWS: Mention the change.
42926
42927 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
42928
42929         * lib/argp-version-etc.c (program_authors): Add const
42930         qualifier.
42931         * lib/version-etc.c: Fix typos in the comments.
42932         * modules/argp-version-etc: Depends on version-etc.
42933
42934 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
42935
42936         argp-version-etc: new module.
42937
42938         * lib/argp-version-etc.c: New file.
42939         * lib/argp-version-etc.h: New file.
42940         * modules/argp-version-etc: New file.
42941         * modules/argp-version-etc-tests: New file.
42942         * tests/test-argp-version-etc.c: New test.
42943         * tests/test-argp-version-etc-1.sh: New test.
42944
42945 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
42946
42947         Provide additional interfaces and documentation for version-etc
42948         module.
42949
42950         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
42951         interfaces.
42952         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
42953         prototypes.
42954
42955 2009-06-24  Bruno Haible  <bruno@clisp.org>
42956
42957         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
42958         HAVE_LIB${NAME} macro.
42959         Reported by Sam Steingold <sds@gnu.org>.
42960
42961 2009-06-23  Simon Josefsson  <simon@josefsson.org>
42962
42963         * modules/hash-tests (test_hash_LDADD): Link to libintl when
42964         needed.
42965
42966 2009-06-21  Bruno Haible  <bruno@clisp.org>
42967
42968         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
42969         work.
42970         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
42971         together with LIB${NAME}, LTLIB${NAME}.
42972         Reported by Sam Steingold <sds@gnu.org>.
42973
42974 2009-06-20  Jim Meyering  <meyering@redhat.com>
42975
42976         tests: make sc_require_test_exit_idiom more generic
42977         * top/maint.mk (Exit_witness_file): New overridable variable.
42978         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
42979         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
42980
42981 2009-06-19  Jim Meyering  <meyering@redhat.com>
42982
42983         hash: reverse order of src/dst parameters in an internal interface
42984         * lib/hash.c (transfer_entries): Reverse order of parameters to
42985         put DST before SRC.  Adjust callers.
42986
42987         tests: test-hash: avoid wholesale duplication
42988         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
42989         Instead, use a loop and add a single conditional.
42990
42991         tests: test-hash: allow seed selection via a command line argument
42992         * tests/test-hash.c (get_seed): New function.
42993         (main): Use it.
42994
42995 2009-06-19  Eric Blake  <ebb9@byu.net>
42996
42997         hash: avoid memory leak on allocation failure
42998         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
42999         failure.  Factor repeated algorithm...
43000         (transfer_entries): ...into new helper routine.
43001         (hash_delete): React to hash_rehash return value.
43002
43003         hash: reduce memory pressure in hash_rehash no-op case
43004         * lib/hash.c (next_prime): Avoid overflow.
43005         (hash_initialize): Factor bucket size computation...
43006         (compute_bucket_size): ...into new helper function.
43007         (hash_rehash): Use new function and open coding to reduce memory
43008         pressure, and avoid a memory leak in USE_OBSTACK code.
43009         Reported by Jim Meyering.
43010
43011 2009-06-18  Eric Blake  <ebb9@byu.net>
43012
43013         hash: make rotation more obvious
43014         * modules/hash (Depends-on): Add bitrotate and stdint.
43015         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
43016         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
43017         (SIZE_MAX): Rely on headers for definition.
43018         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
43019         (raw_hasher): Use rotr_sz.
43020         Suggested by Jim Meyering.
43021
43022         hash: fix memory leak in last patch
43023         * lib/hash.c (hash_rehash): Avoid memory leak.
43024
43025         hash: avoid no-op rehashing
43026         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
43027
43028         hash: provide default callback functions
43029         * lib/hash.c (raw_hasher, raw_comparator): New functions.
43030         (hash_initialize): Use them as defaults.
43031         * tests/test-hash.c (main): Test this.
43032
43033         hash: minor optimization
43034         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
43035         when possible.
43036         (hash_initialize): Document this promise.
43037         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
43038         * tests/test-hash.c (hash_compare_strings): Test this.
43039
43040 2009-06-18  Bruno Haible  <bruno@clisp.org>
43041
43042         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
43043         going to be replaced anyway.
43044
43045 2009-06-18  Bruno Haible  <bruno@clisp.org>
43046
43047         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
43048         in one place.
43049         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
43050         be replaced anyway.
43051
43052 2009-06-18  Eric Blake  <ebb9@byu.net>
43053
43054         hash: check for resize before insertion
43055         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
43056         threshold before insertion, so that a pathological hash_rehash
43057         that fills every bucket can still trigger another rehash.
43058
43059 2009-06-18  Jim Meyering  <meyering@redhat.com>
43060
43061         hash-tests: add a loop around the small tests
43062         * tests/test-hash.c (main): Repeat small tests with selected
43063         small initial table sizes.
43064
43065 2009-06-17  Eric Blake  <ebb9@byu.net>
43066
43067         hash: minor cleanups
43068         * lib/hash.h (hash_entry): Make opaque, by moving...
43069         * lib/hash.c (hash_entry): ...here.
43070         (hash_insert): Clarify restrictions on what can be inserted.
43071         (hash_get_next): Clarify when it is safe to remove an element
43072         during traversal.
43073         (check_tuning): Skip verification when tuning is known safe.
43074         (hash_initialize): Clarify restrictions on tuning.
43075
43076 2009-06-17  Jim Meyering  <jim@meyering.net>
43077         and Eric Blake  <ebb9@byu.net>
43078
43079         hash-tests: new module
43080         * modules/hash-tests: New file.
43081         * tests/test-hash.c: New file.
43082
43083 2009-06-17  Eric Blake  <ebb9@byu.net>
43084
43085         strstr-simple: document new module
43086         * MODULES.html.sh: Document new module.
43087
43088         strstr, strcasestr: replace on platforms with broken memchr
43089         * modules/strstr: Split into...
43090         * modules/strstr-simple: ...new module that does not care about
43091         performance, but does care about glibc bug.
43092         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
43093         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
43094         if platform memchr is broken, per Debian bug 521737.
43095         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
43096         memchr.
43097         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
43098         * doc/posix-functions/strstr.texi (strstr): Document the fix.
43099         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
43100         * modules/mountlist (Depends-on): Add strstr-simple.
43101         * modules/gen-uni-tables (Depends-on): Likewise.
43102         * modules/argz (Depends-on): Add strstr.
43103
43104 2009-06-17  Bruno Haible  <bruno@clisp.org>
43105
43106         * modules/posix_spawn-internal (Depends-on): Add errno.
43107
43108 2009-06-17  Bruno Haible  <bruno@clisp.org>
43109
43110         Define missing ESTALE on Interix 3.5.
43111         * lib/errno.in.h (ESTALE): Assign a value if missing.
43112         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
43113         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
43114         missing.
43115         * doc/posix-headers/errno.texi: Mention the Interix bug.
43116         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
43117
43118 2009-06-15  Eric Blake  <ebb9@byu.net>
43119
43120         memchr, memchr2: add valgrind exception
43121         * lib/memchr.valgrind: New file.
43122         * lib/memchr2.valgrind: New file.
43123         * modules/memchr (Files): Distribute valgrind file.
43124         * modules/memchr2 (Files): Likewise.
43125
43126         docs: memchr is no longer obsolete
43127         * MODULES.html.sh: Move memchr from obsolete to string.h section.
43128         * lib/string.in.h (memchr): Simplify logic.
43129
43130 2009-06-14  Jim Meyering  <meyering@redhat.com>
43131
43132         link-follow: fix the "checking..." message to not mention trailing slash
43133         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
43134         never considered trailing slashes.
43135
43136 2009-06-14  Bruno Haible  <bruno@clisp.org>
43137
43138         * m4/memchr.m4: Mention also the bug on IA-64.
43139         * doc/posix-functions/memchr.texi: Likewise.
43140
43141 2009-06-12  Eric Blake  <ebb9@byu.net>
43142
43143         memchr: detect broken x86_64 and alpha implementations
43144         * modules/memchr-tests (Depends-on): Move mmap detection...
43145         * modules/memchr (Depends-on): ...here.
43146         (configure.ac): Set indicator.
43147         * lib/string.in.h (memchr): Declare replacement.
43148         * modules/string (Makefile.am): Trigger replacement.
43149         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
43150         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
43151         bugs.
43152         * doc/posix-functions/memchr.texi (memchr): Document the bug.
43153         * modules/getpagesize (License): Relax license.
43154
43155 2009-06-11  Bruno Haible  <bruno@clisp.org>
43156
43157         * lib/idpriv.h: Add more references.
43158
43159 2009-06-08  Bruno Haible  <bruno@clisp.org>
43160
43161         Tests for module 'idpriv-droptemp'.
43162         * modules/idpriv-droptemp-tests: New file.
43163         * tests/test-idpriv-droptemp.sh: New file.
43164         * tests/test-idpriv-droptemp.su.sh: New file.
43165         * tests/test-idpriv-droptemp.c: New file.
43166
43167         New module 'idpriv-droptemp'.
43168         * lib/idpriv-droptemp.c: New file.
43169         * modules/idpriv-droptemp: New file.
43170
43171 2009-06-08  Bruno Haible  <bruno@clisp.org>
43172
43173         Tests for module 'idpriv-drop'.
43174         * modules/idpriv-drop-tests: New file.
43175         * tests/test-idpriv-drop.sh: New file.
43176         * tests/test-idpriv-drop.su.sh: New file.
43177         * tests/test-idpriv-drop.c: New file.
43178
43179         New module 'idpriv-drop'.
43180         * lib/idpriv.h: New file.
43181         * lib-idpriv-drop.c: New file.
43182         * m4/idpriv.m4: New file.
43183         * modules/idpriv-drop: New file.
43184
43185 2009-06-08  Bruno Haible  <bruno@clisp.org>
43186
43187         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
43188         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43189         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43190         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43191         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43192         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43193         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43194
43195 2009-06-08  Eric Blake  <ebb9@byu.net>
43196
43197         test-strstr: use memory fence, when possible
43198         * tests/test-strstr.c (main): Use memory fence, in order to be
43199         more likely to trigger Debian bug 521737.
43200         * modules/strstr-tests (Files): Pull in additional files.
43201
43202         memchr: no longer obsolete, for wider field testing
43203         * modules/memchr (Status, Notice): Delete, this module is no
43204         longer obsolete.
43205         * modules/vasnprintf (Depends-on): Add memchr.
43206
43207 2009-06-07  Jim Meyering  <meyering@redhat.com>
43208
43209         hash: declare some functions with the warn_unused_result attribute
43210         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
43211
43212 2009-06-07  Bruno Haible  <bruno@clisp.org>
43213
43214         * tests/test-alignof.c: Don't test int64_t if it does not exist.
43215         Reported by Eric Blake.
43216
43217 2009-06-06  Eric Blake  <ebb9@byu.net>
43218
43219         test-alignof: fix typo with long double
43220         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
43221         compiler error.
43222
43223 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
43224
43225         Escape non-texinfo { and }s.
43226         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
43227         markup error.
43228
43229 2009-06-04  Jim Meyering  <meyering@redhat.com>
43230
43231         gitlog-to-changelog: don't infloop on an empty commit log
43232         * build-aux/gitlog-to-changelog: Warn about an empty log message.
43233         Reported by Boris Petersen <transacid@centerim.org>.
43234
43235 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
43236
43237         version-etc: extend for packagers
43238         Add three new configure options, intended for packagers:
43239           --with-packager="packager name"
43240           --with-packager-version="packager-specific version"
43241           --with-packager-bug-reports="packager bug reporting"
43242         An example with coreutils:
43243           $ ./configure \
43244             --with-packager=Gentoo \
43245             --with-packager-bug-report=http://bugs.gentoo.org/ \
43246             --with-packager-version="patchset 1.6"
43247           $ ./src/ls --version | head -n2
43248           ls (GNU coreutils) 7.1-dirty
43249           Packaged by Gentoo (patchset 1.6)
43250         Note that the bug reporting info via --help doesn't show up because
43251         coreutils uses its own custom emit_bug_reporting_address() implementation
43252         in src/system.h.  If it didn't, it'd look like:
43253           $ ./src/ls --help | tail -n4
43254           Report bugs to <bug-coreutils@gnu.org>.
43255           Report Gentoo bugs to <http://bugs.gentoo.org/>.
43256           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
43257           General help using GNU software: <http://www.gnu.org/gethelp/>.
43258         * lib/version-etc.c: Print new information, if provided.
43259         * m4/version-etc.m4: New file.
43260         * modules/version-etc (Files): Add m4/version-etc.m4.
43261         (configure.ac): Add gl_VERSION_ETC.
43262
43263 2009-05-31  Bruno Haible  <bruno@clisp.org>
43264
43265         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
43266         and 'int64_t'.
43267         * modules/alignof-tests (Dependencies): Add stdint.
43268         Reported by Eric Blake.
43269
43270 2009-05-31  Bruno Haible  <bruno@clisp.org>
43271
43272         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
43273         restriction due to compiler bugs.
43274         Reported by Eric Blake.
43275
43276 2009-05-31  Simon Josefsson  <simon@josefsson.org>
43277             Bruno Haible  <bruno@clisp.org>
43278
43279         Fix test-alignof failure.
43280         * lib/alignof.h (alignof_slot): New macro.
43281         (alignof_type): New macro, with the same semantics as the previous
43282         'alignof'.
43283         (alignof): Alias to alignof_slot.
43284         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
43285         check that the results are usable as constant expressions.
43286
43287 2009-05-31  Bruno Haible  <bruno@clisp.org>
43288
43289         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
43290         * tests/test-memchr.c (main): Check that memchr does not read past the
43291         first occurrence of the byte.
43292         * tests/test-strstr.c (main): Update comment.
43293         Suggested by Eric Blake.
43294
43295 2009-05-30  Bruno Haible  <bruno@clisp.org>
43296
43297         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
43298         detail how to use dumpbin.
43299         Reported by David Byron <dbyron@dbyron.com>.
43300
43301 2009-06-02  Simon Josefsson  <simon@josefsson.org>
43302
43303         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
43304
43305 2009-06-02  Simon Josefsson  <simon@josefsson.org>
43306
43307         * m4/manywarnings.m4: Add GCC 4.4 warnings.
43308
43309 2009-05-28  Bruno Haible  <bruno@clisp.org>
43310
43311         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
43312         build-aux/ files.
43313
43314 2009-05-28  Simon Josefsson  <simon@josefsson.org>
43315
43316         * gnulib-tool (func_import): Transform license on build-aux/ files too.
43317
43318 2009-05-27  Simon Josefsson  <simon@josefsson.org>
43319
43320         * gnulib-tool (sed_transform_main_lib_file)
43321         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
43322         regexps.
43323
43324 2009-05-26  Simon Josefsson  <simon@josefsson.org>
43325
43326         * tests/test-strstr.c: Add another self-test.
43327         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
43328         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
43329
43330 2009-05-23  Bruno Haible  <bruno@clisp.org>
43331
43332         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
43333         change.
43334
43335 2009-05-21  Bruno Haible  <bruno@clisp.org>
43336
43337         Simplify use of mode_t varargs.
43338         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
43339         uses 'mode_t' or 'int'.
43340         * lib/openat.c (openat): Likewise.
43341         * lib/open-safer.c (open_safer): Likewise.
43342         * m4/mode_t.m4: New file.
43343         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
43344         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
43345         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
43346         * modules/open (Files): Add m4/mode_t.m4.
43347         * modules/openat (Files): Likewise.
43348         * modules/fcntl-safer (Files): Likewise.
43349         Suggested by Eric Blake.
43350
43351 2009-05-21  Pádraig Brady  <P@draigbrady.com>
43352
43353         * doc/glibc-functions/fallocate.texi: New file.
43354         * doc/gnulib.texi: Include it.
43355
43356 2009-05-21  Eric Blake  <ebb9@byu.net>
43357             Bruno Haible  <bruno@clisp.org>
43358
43359         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
43360         invocations.
43361         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
43362
43363 2009-05-21  Eric Blake  <ebb9@byu.net>
43364             Bruno Haible  <bruno@clisp.org>
43365
43366         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
43367         include_next. Fix of 2008-11-20 commit.
43368         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
43369         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
43370         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
43371         NEXT_MATH_H.
43372         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
43373         instead of NEXT_MATH_H.
43374
43375 2009-05-21  Bruno Haible  <bruno@clisp.org>
43376
43377         Avoid redefinition warnings for SIZE_MAX.
43378         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
43379         Reported by Simon Josefsson.
43380
43381 2009-05-21  Bruno Haible  <bruno@clisp.org>
43382
43383         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
43384         AC_CACHE_VAL.
43385
43386 2009-05-20  Bruno Haible  <bruno@clisp.org>
43387
43388         Make zeroptr.h work on mingw.
43389         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
43390         mprotect.
43391         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
43392         * modules/memchr2-tests (configure.ac): Likewise.
43393         * modules/memcmp-tests (configure.ac): Likewise.
43394         * modules/memmem-tests (configure.ac): Likewise.
43395         * modules/memrchr-tests (configure.ac): Likewise.
43396         Reported by Simon Josefsson.
43397
43398 2009-05-20  Simon Josefsson  <simon@josefsson.org>
43399
43400         * tests/test-glob.c: Include string.h for strcmp prototype.
43401
43402 2009-05-20  Simon Josefsson  <simon@josefsson.org>
43403
43404         * modules/getdelim (Depends-on): Add explicit stdint, although it
43405         was implicitly already pulled in via realloc-posix.
43406         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
43407
43408 2009-05-20  Simon Josefsson  <simon@josefsson.org>
43409
43410         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
43411         G. Christensen" <tgc@jupiterrise.com>.
43412         * m4/sys_socket_h.m4: Check for sa_family_t.
43413         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
43414         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
43415         * tests/test-sys_socket.c: Check that sa_family_t works.
43416
43417 2009-05-18  Eric Blake  <ebb9@byu.net>
43418
43419         maint.mk: allow gnulib_dir in VPATH build
43420         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
43421
43422 2009-05-15  Jim Meyering  <meyering@redhat.com>
43423
43424         maint.mk: Give gnulib_dir a default definition.
43425         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
43426         Thus, most packages no longer need to specify this variable in cfg.mk
43427
43428 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
43429
43430         rename.m4: fix typos that would make non-mingw cross-configure fail
43431         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
43432
43433 2009-05-13  Eric Blake  <ebb9@byu.net>
43434
43435         mmap-anon: avoid out-of-order autoconf expansion
43436         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
43437         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
43438         * modules/memchr-tests (Depends-on): Add extensions.
43439         * modules/memchr2-tests (Depends-on): Add extensions.
43440         * modules/memcmp-tests (Depends-on): Add extensions.
43441         * modules/memmem-tests (Depends-on): Add extensions.
43442         * modules/memrchr-tests (Depends-on): Add extensions.
43443
43444 2009-05-13  Bruno Haible  <bruno@clisp.org>
43445
43446         Make some tests ISO C 99 compliant.
43447         * tests/zerosize-ptr.h: New file.
43448         * tests/test-memchr.c: Include zerosize-ptr.h.
43449         (main): Use a zero-size object pointer instead of NULL.
43450         * tests/test-memchr2.c: Include zerosize-ptr.h.
43451         (main): Use a zero-size object pointer instead of NULL.
43452         * tests/test-memcmp.c: Include zerosize-ptr.h.
43453         (main): Use a zero-size object pointer instead of NULL.
43454         * tests/test-memmem.c: Include zerosize-ptr.h.
43455         (main): Use a zero-size object pointer instead of NULL.
43456         * tests/test-memrchr.c: Include zerosize-ptr.h.
43457         (main): Use a zero-size object pointer instead of NULL.
43458         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
43459         m4/mmap-anon.m4.
43460         (Depends-on): Add getpagesize.
43461         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43462         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
43463         m4/mmap-anon.m4.
43464         (Depends-on): Add getpagesize.
43465         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43466         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
43467         m4/mmap-anon.m4.
43468         (Depends-on): Add getpagesize.
43469         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43470         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
43471         m4/mmap-anon.m4.
43472         (Depends-on): Add getpagesize.
43473         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43474         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
43475         m4/mmap-anon.m4.
43476         (Depends-on): Add getpagesize.
43477         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
43478
43479 2009-05-12  Bruno Haible  <bruno@clisp.org>
43480
43481         Tests for module 'alignof'.
43482         * modules/alignof-tests: New file.
43483         * tests/test-alignof.c: New file.
43484
43485 2009-05-12  Bruno Haible  <bruno@clisp.org>
43486
43487         Fix alignof macro.
43488         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
43489         vendor compilers that are always correct.
43490
43491 2009-05-12  Bruno Haible  <bruno@clisp.org>
43492
43493         Make the MAP_ANONYMOUS detection work on HP-UX 11.
43494         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
43495         not whether its fully works.
43496
43497 2009-05-12  Bruno Haible  <bruno@clisp.org>
43498
43499         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
43500
43501 2009-05-12  Jim Meyering  <meyering@redhat.com>
43502
43503         * top/maint.mk: Adjust backslash alignment.
43504
43505 2009-05-11  Simon Josefsson  <simon@josefsson.org>
43506
43507         * top/maint.mk: Make $(srcdir)/build-aux configurable.
43508
43509 2009-05-11  Eric Blake  <ebb9@byu.net>
43510
43511         argp: avoid undefined behavior
43512         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
43513         macros.
43514
43515 2009-05-08  Simon Josefsson  <simon@josefsson.org>
43516
43517         * tests/test-vc-list-files-git.sh: Do git config of user.email and
43518         user.name to prevent git commit from complaining.
43519
43520 2009-05-10  Bruno Haible  <bruno@clisp.org>
43521
43522         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
43523         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
43524         it rewrites every file name only once.
43525         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
43526
43527 2009-05-08  Bruno Haible  <bruno@clisp.org>
43528
43529         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
43530         instead of 'max'.
43531
43532 2009-05-08  Simon Josefsson  <simon@josefsson.org>
43533
43534         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
43535         sockaddr_storage test.
43536
43537 2009-05-07  Simon Josefsson  <simon@josefsson.org>
43538
43539         * modules/sys_socket (Makefile.am): Substitute
43540         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
43541         * m4/sys_socket_h.m4: Check for sockaddr_storage.
43542         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
43543         * tests/test-sys_socket.c: Check sockaddr_storage.
43544
43545 2009-05-08  Bruno Haible  <bruno@clisp.org>
43546
43547         New module 'alignof'.
43548         * lib/alignof.h: New file.
43549         * modules/alignof: New file.
43550
43551 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43552             Bruno Haible  <bruno@clisp.org>
43553
43554         Fix test-file-has-acl on FreeBSD.
43555         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
43556         mask is implicitly added.
43557         * tests/test-file-has-acl.c: Include <signal.h>.
43558         (main): Terminate the test after 5 seconds.
43559         * modules/acl-tests (configure.ac): Check for alarm function.
43560
43561 2009-05-04  Bruno Haible  <bruno@clisp.org>
43562
43563         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
43564         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
43565         * modules/errno (configure.ac): Drop AC_REQUIRE.
43566         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
43567         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
43568
43569 2009-05-04  Simon Josefsson  <simon@josefsson.org>
43570
43571         * modules/glob-tests: New module.
43572         * tests/test-glob.c: Add.
43573
43574 2009-05-04  Simon Josefsson  <simon@josefsson.org>
43575
43576         * modules/fnmatch-tests: New module.
43577         * tests/test-fnmatch.c: Add.
43578
43579 2009-05-04  Eric Blake  <ebb9@byu.net>
43580
43581         maint: make the new no-submodule-changes rule VPATH-safe
43582         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
43583
43584 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43585             Bruno Haible  <bruno@clisp.org>
43586
43587         acl: Fix infinite loop on FreeBSD.
43588         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
43589         of return value from acl_get_entry.
43590         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
43591         Likewise.
43592
43593 2009-05-03  Bruno Haible  <bruno@clisp.org>
43594
43595         * lib/acl-internal.h (acl_entries): Clarify return value.
43596         * lib/acl_entries.c (acl_entries): Likewise.
43597
43598 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43599
43600         Bug fix in acl module.
43601         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
43602
43603 2009-05-03  Bruno Haible  <bruno@clisp.org>
43604
43605         Create gperf-generated file in the source dir, not in the build dir.
43606         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
43607         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
43608         * modules/unicase/locale-language (unicase/locale-languages.h):
43609         Likewise.
43610         * modules/unicase/special-casing (unicase/special-casing-table.h):
43611         Likewise.
43612         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
43613         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
43614         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
43615         Reported by Ralf Wildenhues.
43616
43617 2009-05-03  Bruno Haible  <bruno@clisp.org>
43618
43619         * modules/fnmatch (Description, configure.ac): Taken from
43620         fnmatch-posix.
43621         * modules/fnmatch-posix: Turn into a symbolic reference to the
43622         'fnmatch' module, and deprecate.
43623         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
43624
43625 2009-05-03  Bruno Haible  <bruno@clisp.org>
43626
43627         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
43628         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
43629         Reported by Ralf Wildenhues.
43630
43631 2009-05-04  Simon Josefsson  <simon@josefsson.org>
43632
43633         * m4/fnmatch.m4: Fix fnmatch re-define.
43634
43635 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
43636
43637         priv-set: new module and tests; adapt write-any-file
43638         * lib/priv-set.c: New file.
43639         * lib/priv-set.h: New file.
43640         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
43641         * lib/write-any-file.c: Simplify by using priv-set module.
43642         * m4/priv-set.m4: New file.
43643         * modules/priv-set: New file.
43644         * modules/unlinkdir: Add dependency on priv-set module.
43645         * modules/write-any-file: Likewise.
43646
43647         Tests for module 'priv-set'.
43648         * modules/priv-set-tests: New file.
43649         * tests/test-priv-set.c: New file.
43650
43651 2009-05-03  Jim Meyering  <meyering@redhat.com>
43652             Bruno Haible  <bruno@clisp.org>
43653
43654         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
43655         use the converted UTF-8 variant of the name instead.
43656
43657 2009-05-03  Jim Meyering  <meyering@redhat.com>
43658
43659         tests: tighten some getdate tests
43660         * tests/test-getdate.c (main): Tighten tests: require equality,
43661         not just greater than.  Set TZ envvar to UTC0.
43662
43663 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
43664
43665         getdate: correctly interpret "next monday" when run on a Monday
43666         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
43667         that e.g., "next tues" (when run on a tuesday) results in a date
43668         that is one week in the future, and not today's date.
43669         I.e., add a week when the wday is the same as the current one.
43670         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
43671         and earlier by Martin Bernreuther and Jan Minář.
43672         * tests/test-getdate.c (main): Check that "next DAY" is always in
43673         the future and that "last DAY" is always in the past.
43674
43675 2009-05-02  Jim Meyering  <meyering@redhat.com>
43676
43677         build: ensure that a release build fails when a submodule is unclean
43678         * top/maint.mk (no-submodule-changes): New rule.
43679         (alpha beta major): Depend on it.
43680
43681 2009-05-02  Bruno Haible  <bruno@clisp.org>
43682
43683         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
43684         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
43685         shell variable gl_fnmatch_required to detect which variant is
43686         requested.
43687         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
43688         gl_FUNC_FNMATCH_POSIX.
43689         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
43690         exclude fnmatch-posix.
43691
43692 2009-05-02  Bruno Haible  <bruno@clisp.org>
43693
43694         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
43695         * modules/mbsrtowcs (License): Change to LGPLv2+.
43696         * modules/strnlen1 (License): Likewise.
43697         Reported by Simon Josefsson.
43698
43699 2009-05-02  Bruno Haible  <bruno@clisp.org>
43700
43701         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
43702         "cross".
43703         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
43704         gnulib-tool was called with option --source-base=lib.
43705
43706 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43707
43708         Use automake *-local hooks without commands, for extensibility.
43709         * modules/localcharset (Makefile.am): Rename install-exec-local
43710         rule to install-exec-localcharset, and make it a prerequisite of
43711         install-exec-local.  Likewise, rename the uninstall-local rule to
43712         uninstall-localcharset, and make it a prerequisite of the former.
43713
43714 2009-05-01  Bruno Haible  <bruno@clisp.org>
43715
43716         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
43717         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
43718         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
43719         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
43720         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
43721         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
43722         m4/locale-zh.m4, m4/codeset.m4.
43723
43724         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
43725         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
43726         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
43727         m4/locale-zh.m4.
43728
43729         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
43730         REPLACE_WCRTOMB if mbstate_t must be replaced.
43731         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
43732         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
43733
43734 2009-05-01  Bruno Haible  <bruno@clisp.org>
43735
43736         Avoid compiler warnings when redefining macros defined by <libintl.h>.
43737         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
43738         dngettext, dcngettext, textdomain, bindtextdomain,
43739         bind_textdomain_codeset): Undefine before redefining.
43740
43741 2009-04-30  Bruno Haible  <bruno@clisp.org>
43742
43743         Fix bug introduced on 2009-04-25.
43744         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
43745         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
43746         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
43747         is defined.
43748         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
43749         is defined.
43750         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
43751         is defined.
43752         Reported by Elbert_Pol <elbert.pol@gmail.com>.
43753
43754 2009-04-28  Bruno Haible  <bruno@clisp.org>
43755
43756         Comment tweaks.
43757         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
43758         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
43759         * lib/unicase.h (u*_casexfrm): Likewise.
43760         Reported by Paolo Bonzini.
43761
43762 2009-04-28  Bruno Haible  <bruno@clisp.org>
43763
43764         Fix a compilation error.
43765         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
43766         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
43767         Reported by Jim Meyering.
43768
43769 2009-04-27  Bruno Haible  <bruno@clisp.org>
43770
43771         New module 'libunistring'.
43772         * modules/libunistring: New file.
43773         * m4/libunistring.m4: New file.
43774         * MODULES.html.sh (Unicode string functions): Add it.
43775
43776 2009-04-27  Eric Blake  <ebb9@byu.net>
43777
43778         maint.mk: allow package-specific header to provide <config.h>
43779         * top/maint.mk (sc_require_config_h): New variable.
43780         (sc_require_config_h, sc_require_config_h_first): Use it.
43781
43782 2009-04-27  Simon Josefsson  <simon@josefsson.org>
43783
43784         * top/maint.mk (sc_avoid_if_before_free): Except
43785         useless-if-before-free script.
43786
43787 2009-04-27  Eric Blake  <ebb9@byu.net>
43788
43789         maintainer-makefile: depend on all required helper scripts
43790         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
43791         useless-if-before-free.
43792         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
43793         version, rather than assuming gnulib checkout is available.
43794         Reported by Simen Josefsson.
43795
43796 2009-04-26  Bruno Haible  <bruno@clisp.org>
43797
43798         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
43799         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
43800         "../" or "..".
43801
43802 2009-04-26  Bruno Haible  <bruno@clisp.org>
43803
43804         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
43805         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
43806         AC_LIB_HAVE_LINKFLAGS.
43807
43808 2009-04-26  Bruno Haible  <bruno@clisp.org>
43809
43810         Simplify calling convention of u*_conv_from_encoding.
43811         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
43812         u32_conv_from_encoding): Expect a resultbuf argument and return the
43813         result directly as a pointer.
43814         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
43815         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
43816         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
43817         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
43818         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
43819         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
43820         Update.
43821         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
43822         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
43823         * lib/vasnprintf.c (VASNPRINTF): Update.
43824         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
43825         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
43826         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
43827         * NEWS: Mention the change.
43828
43829 2009-04-26  Bruno Haible  <bruno@clisp.org>
43830
43831         Simplify calling convention of u*_conv_to_encoding.
43832         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
43833         u32_conv_to_encoding): Expect a resultbuf argument and return the
43834         result directly as a pointer.
43835         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
43836         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
43837         freeing scaled_offsets if mem_iconveha failed.
43838         * lib/unicase/u-casexfrm.h (FUNC): Update.
43839         * lib/uninorm/u-normxfrm.h (FUNC): Update.
43840         * lib/vasnprintf.c (VASNPRINTF): Update.
43841         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
43842         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
43843         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
43844         * NEWS: Mention the change.
43845
43846 2009-04-26  Bruno Haible  <bruno@clisp.org>
43847
43848         Avoid test failures on AIX and OSF/1.
43849         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
43850         malloc(0).
43851         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
43852         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
43853         Likewise.
43854         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
43855         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
43856         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
43857         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
43858         * doc/posix-functions/malloc.texi: Document the portability problem
43859         related to malloc(0).
43860
43861 2009-04-26  Bruno Haible  <bruno@clisp.org>
43862
43863         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
43864         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
43865         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
43866
43867 2009-04-25  Bruno Haible  <bruno@clisp.org>
43868
43869         Avoid link error when creating a namespace clean library.
43870         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
43871         as macro with arguments if already defined as an alias.
43872         * lib/signbitf.c (gl_signbitf): Don't undefine.
43873         * lib/signbitd.c (gl_signbitd): Don't undefine.
43874         * lib/signbitl.c (gl_signbitl): Don't undefine.
43875
43876 2009-04-25  Jim Meyering  <meyering@redhat.com>
43877
43878         vc-list-files: fix another quoting bug
43879         * build-aux/vc-list-files: Avoid sed backslash expansion
43880         of pathological directory names.
43881
43882 2009-04-25  Eric Blake  <ebb9@byu.net>
43883
43884         vc-list-files: fix shell quoting error
43885         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
43886         timestamp.
43887
43888 2009-04-25  Jim Meyering  <meyering@redhat.com>
43889
43890         vc-list-files: restore lost functionality with subdir argument
43891         * build-aux/vc-list-files: When given a non-"." sub-directory
43892         argument, substitute the $dir/ prefix back onto each resulting name.
43893         Otherwise, coreutils' root_tests check would fail.
43894
43895 2009-04-24  Eric Blake  <ebb9@byu.net>
43896
43897         vc-list-files: ignore git symlinks
43898         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
43899         than ls-files, to ignore git symlinks.
43900
43901         maint.mk: import improvements from m4
43902         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
43903         (move_if_change): Delete unused macro.
43904         (news-date-check, vc-diff-check): Support VPATH builds.
43905         (announcement): Likewise.  Split --bootstrap-tools list...
43906         (boostrap-tools): ...into separate list, which can be overridden
43907         in cfg.mk.
43908         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
43909         requiring dependency on useless-if-before-free module.
43910         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
43911         Support VPATH builds.
43912
43913 2009-04-24  Jim Meyering  <meyering@redhat.com>
43914
43915         maint.mk: remove coreutils-specific rules and variables
43916         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
43917         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
43918         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
43919
43920         maint.mk: remove obsolete rule
43921         * top/maint.mk (rel-check): Remove rule.
43922         (WGET, WGETFLAGS): Remove now-unused variables.
43923
43924 2009-04-24  Simon Josefsson  <simon@josefsson.org>
43925
43926         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
43927         consistency.
43928
43929         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
43930         '$(PATH_SEPARATOR)' instead of ':'.
43931
43932 2009-04-24  Simon Josefsson  <simon@josefsson.org>
43933
43934         * lib/getopt1.c (main): Use 'const' for static array.
43935
43936 2009-04-24  Simon Josefsson  <simon@josefsson.org>
43937
43938         * top/maint.mk: Sync with coreutils.
43939         * NEWS: Explain incompatibilities.
43940
43941 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43942             Bruno Haible  <bruno@clisp.org>
43943
43944         Fix cross-compilation results.
43945         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
43946         statement, as third argument of AC_TRY_RUN.
43947         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
43948         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
43949         Likewise.
43950         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
43951         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
43952         Likewise.
43953         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
43954         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
43955         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
43956
43957 2009-04-20  Bruno Haible  <bruno@clisp.org>
43958
43959         Avoid test failure on mingw.
43960         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
43961
43962 2009-04-20  Bruno Haible  <bruno@clisp.org>
43963
43964         Avoid compilation error on mingw.
43965         * modules/localename-tests (Depends-on): Add locale.
43966
43967 2009-04-19  Bruno Haible  <bruno@clisp.org>
43968
43969         Support for building a shared library on Windows platforms.
43970         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
43971         (main): Test the presence of UNINORM_NFC here.
43972         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
43973         (main): Test the presence of UNINORM_NFD here.
43974         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
43975         (main): Test the presence of UNINORM_NFKC here.
43976         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
43977         (main): Test the presence of UNINORM_NFKD here.
43978
43979 2009-04-19  Bruno Haible  <bruno@clisp.org>
43980
43981         Avoid a compiler warning.
43982         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
43983         Change type of variable 'sequence'.
43984
43985 2009-04-19  Bruno Haible  <bruno@clisp.org>
43986
43987         * modules/configmake (Makefile.am): When the contents of configmake.h
43988         does not change, arrange to preserve its modification time.
43989
43990 2009-04-17  Simon Josefsson  <simon@josefsson.org>
43991
43992         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
43993         gettext domain.
43994
43995 2009-04-16  Jim Meyering  <meyering@redhat.com>
43996
43997         useless-if-before-free: improve conversion code
43998         * build-aux/useless-if-before-free: Adjust code-in-comment to match
43999         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
44000
44001 2009-04-14  Bruno Haible  <bruno@clisp.org>
44002
44003         * modules/fcntl (Depends-on): Add extensions.
44004         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
44005
44006 2009-04-12  Ben Pfaff  <blp@gnu.org>
44007
44008         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
44009         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
44010
44011 2009-03-20  Ben Pfaff  <blp@gnu.org>
44012
44013         Make rename replace existing destinations on Windows.
44014         * m4/rename.m4: Add test for Mingw.
44015         * lib/rename.c: Add rename replacement that uses MoveFileEx with
44016         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
44017         * doc/posix-functions/rename.texi: Document.
44018
44019 2009-04-10  Bruno Haible  <bruno@clisp.org>
44020
44021         New include file "iconveh.h".
44022         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
44023         * lib/striconveh.h: Include it.
44024         (enum iconv_ilseq_handler): Remove definition.
44025         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
44026         striconveh.h.
44027         * lib/striconveha.c: Include striconveh.h.
44028         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
44029         * modules/striconveh (Files): Add lib/iconveh.h.
44030         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
44031         lib/striconveh.h.
44032
44033 2009-04-10  Bruno Haible  <bruno@clisp.org>
44034
44035         * lib/uniconv.h: Update comment.
44036
44037 2009-04-10  Bruno Haible  <bruno@clisp.org>
44038
44039         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
44040         always.
44041         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
44042         * lib/unistr/u16-mbtouc-aux.c: Likewise.
44043         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
44044         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
44045         "unistring-notinline.h", so that the function gets defined always.
44046         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
44047         * lib/unistr/u8-uctomb.c: Likewise.
44048         * lib/unistr/u16-mbtouc.c: Likewise.
44049         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
44050         * lib/unistr/u16-uctomb.c: Likewise.
44051         * lib/unistr/u32-mbtouc.c: Likewise.
44052         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
44053         * lib/unistr/u32-uctomb.c: Likewise.
44054
44055 2009-04-10  Bruno Haible  <bruno@clisp.org>
44056
44057         Mark 'utime' obsolete.
44058         * modules/utime (Status, Notice): New sections.
44059         Suggested by Jim Meyering.
44060
44061         Fix cross-compile guess for utime test.
44062         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
44063         autoconf.
44064         * doc/posix-functions/utime.texi: Give more precisions.
44065         Reported by Jan <ipif@ymail.com>.
44066
44067 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
44068
44069         filevercmp: correct today's change
44070         * lib/filevercmp.c: Also handle coreutils' test inputs.
44071         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
44072
44073         Fix regression in 'filevercmp' module. Thanks Sven Joachim
44074         for reporting it.
44075         * lib/filevercmp.c: Special handle for "", "." and "..".
44076         * tests/test-filevercmp.c: Enlarge the set suite.
44077
44078 2009-04-07  Jim Meyering  <meyering@redhat.com>
44079
44080         useless-if-before-free: show how to remove braced useless free, too
44081         * build-aux/useless-if-before-free: still only in a comment, though.
44082
44083 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
44084
44085         maint.mk: import changes to syntax-check macros from coreutils
44086         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
44087         Use them in the relevant macros.
44088
44089 2009-04-06  Bruno Haible  <bruno@clisp.org>
44090
44091         Fix unportable use of bit-fields.
44092         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
44093         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
44094         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
44095
44096 2009-04-06  Bruno Haible  <bruno@clisp.org>
44097
44098         Avoid test failures on AIX and OSF/1.
44099         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
44100         that malloc(0) = NULL.
44101         * tests/unicase/test-u8-tolower.c (check): Likewise.
44102         * tests/unicase/test-u8-totitle.c (check): Likewise.
44103         * tests/unicase/test-u8-toupper.c (check): Likewise.
44104         * tests/unicase/test-u16-casefold.c (check): Likewise.
44105         * tests/unicase/test-u16-tolower.c (check): Likewise.
44106         * tests/unicase/test-u16-totitle.c (check): Likewise.
44107         * tests/unicase/test-u16-toupper.c (check): Likewise.
44108         * tests/unicase/test-u32-casefold.c (check): Likewise.
44109         * tests/unicase/test-u32-tolower.c (check): Likewise.
44110         * tests/unicase/test-u32-totitle.c (check): Likewise.
44111         * tests/unicase/test-u32-toupper.c (check): Likewise.
44112         * tests/uninorm/test-u8-nfc.c (check): Likewise.
44113         * tests/uninorm/test-u8-nfd.c (check): Likewise.
44114         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
44115         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
44116         * tests/uninorm/test-u16-nfc.c (check): Likewise.
44117         * tests/uninorm/test-u16-nfd.c (check): Likewise.
44118         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
44119         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
44120         * tests/uninorm/test-u32-nfc.c (check): Likewise.
44121         * tests/uninorm/test-u32-nfd.c (check): Likewise.
44122         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
44123         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
44124
44125 2009-04-05  Bruno Haible  <bruno@clisp.org>
44126
44127         Work around an autoconf limitation.
44128         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
44129         comment line if it would be longer than 3 KB.
44130
44131 2009-04-05  Bruno Haible  <bruno@clisp.org>
44132
44133         Avoid test failure with libiconv-1.13.
44134         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
44135         of the expected test results.
44136
44137 2009-04-05  Bruno Haible  <bruno@clisp.org>
44138
44139         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
44140         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
44141         that it should be installed.
44142
44143 2009-04-05  Bruno Haible  <bruno@clisp.org>
44144
44145         * gnulib-tool: New option --copy-file.
44146         (func_usage): Document it.
44147         (func_dest_tmpfilename): Moved out of func_import.
44148         (func_add_file, func_update_file): New functions, extracted from
44149         func_import.
44150         (func_import): Update.
44151
44152 2009-04-05  Karl Berry  <karl@gnu.org>
44153
44154         * README: prominently mention gnulib-tool.
44155         Rearrange sections so getting the code is near the top.
44156
44157 2009-04-05  Bruno Haible  <bruno@clisp.org>
44158
44159         * lib/unicase.h: Mention u*_cmp2.
44160         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
44161         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
44162         * lib/unicase/ulc-casecmp.c: Likewise.
44163         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
44164         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
44165         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
44166         unistr/u8-cmp.
44167         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
44168         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
44169         unistr/u16-cmp.
44170         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
44171         unistr/u32-cmp.
44172
44173         * lib/uninorm.h: Mention u*_cmp2.
44174         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
44175         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
44176         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
44177         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
44178         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
44179         unistr/u8-cmp.
44180         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
44181         unistr/u16-cmp.
44182         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
44183         unistr/u32-cmp.
44184
44185         New module 'unistr/u32-cmp2'.
44186         * lib/unistr/u32-cmp2.c: New file.
44187         * modules/unistr/u32-cmp2: New file.
44188
44189         New module 'unistr/u16-cmp2'.
44190         * lib/unistr/u16-cmp2.c: New file.
44191         * modules/unistr/u16-cmp2: New file.
44192
44193         New module 'unistr/u8-cmp2'.
44194         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
44195         * lib/unistr/u8-cmp2.c: New file.
44196         * lib/unistr/u-cmp2.h: New file.
44197         * modules/unistr/u8-cmp2: New file.
44198
44199 2009-04-05  Bruno Haible  <bruno@clisp.org>
44200
44201         * lib/unictype.h (uc_property_is_valid): New macro.
44202         * tests/unictype/test-pr_byname.c (main): Use it.
44203
44204         * lib/unistr.h: Doc fixes.
44205         * lib/uniconv.h: Doc fixes.
44206         * lib/unictype.h: Doc fixes.
44207
44208 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
44209
44210         Port coreutils 7.2 to Solaris 8.
44211
44212         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
44213         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
44214         for Solaris 8.  This is a bit of a hack, as it means it's the
44215         caller's responsibility to add -lnsl if needed, but most likely it
44216         won't be needed since only getaddrinfo uses this and getaddrinfo
44217         isn't needed on Solaris 8.
44218
44219         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
44220         problem to Solaris 8 encountered with coreutils 7.2, which
44221         resulted in a message "fnmatch.c:292: warning: passing argument 4
44222         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
44223         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
44224
44225 2009-04-03  Simon Josefsson  <simon@josefsson.org>
44226
44227         * m4/ld-version-script.m4: Add FIXME comment.
44228
44229 2009-04-02  Simon Josefsson  <simon@josefsson.org>
44230
44231         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
44232         SOVERSION variable.
44233
44234 2009-04-02  Bruno Haible  <bruno@clisp.org>
44235
44236         * Makefile (info, html, dvi, pdf): Combine the rules.
44237         Suggested by Jim Meyering.
44238
44239 2009-04-01  Bruno Haible  <bruno@clisp.org>
44240
44241         * Makefile (info, html, dvi, pdf): New targets.
44242         Reported by Reuben Thomas <rrt@sc3d.org>.
44243
44244 2009-04-01  Bruno Haible  <bruno@clisp.org>
44245
44246         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
44247         can be put into PATH.
44248         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
44249
44250 2009-04-01  Bruno Haible  <bruno@clisp.org>
44251
44252         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
44253
44254 2009-04-01  Bruno Haible  <bruno@clisp.org>
44255
44256         Rename module 'visibility'.
44257         * modules/lib-symbol-visibility: Renamed from modules/visibility.
44258         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
44259         * doc/gnulib.texi: Update.
44260         * MODULES.html.sh (Misc): Update.
44261         * NEWS: Mention the change.
44262
44263 2009-04-01  Simon Josefsson  <simon@josefsson.org>
44264
44265         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
44266         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
44267         Eric Blake <ebb9@byu.net> for review.
44268         * MODULES.html.sh: Add lib-msvc-compat.
44269         * doc/gnulib.texi: Link to new section.
44270         * m4/ld-output-def.m4: New file.
44271         * doc/ld-output-def.texi: New file.
44272
44273 2009-04-01  Simon Josefsson  <simon@josefsson.org>
44274
44275         Rename ld-version-script to lib-symbol-versions.  Suggested by
44276         Bruno Haible <bruno@clisp.org>.
44277         * modules/ld-version-script: Renamed to lib-symbol-versions.
44278         * doc/ld-version-script.texi: Fix module name.
44279         * MODULES.html.sh: Add lib-symbol-versions.
44280
44281 2009-03-31  Simon Josefsson  <simon@josefsson.org>
44282
44283         * modules/u64-tests: New file.
44284         * tests/test-u64.c: New file.
44285
44286 2009-03-04  Simon Josefsson  <simon@josefsson.org>
44287
44288         * MODULES.html.sh: Mention u64.
44289         * modules/u64: New module.
44290         * modules/crypto/sha512: Depend on u64 module instead of providing
44291         u64.h.
44292
44293 2009-03-27  Eric Blake  <ebb9@byu.net>
44294
44295         test-strerror: make debugging EAI_SYSTEM easier
44296         * modules/getaddrinfo-tests (Depends-on): Add strerror.
44297         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
44298         failure was EAI_SYSTEM.
44299
44300 2009-03-25  Bruno Haible  <bruno@clisp.org>
44301
44302         Fix a problem with --enable-relocatable on Solaris 7.
44303         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
44304         since 2008-02-24.
44305
44306 2009-03-25  Eric Blake  <ebb9@byu.net>
44307
44308         test-sockets: avoid gcc warning
44309         * tests/test-sockets.c (main): Silence compiler warning.
44310
44311 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
44312
44313         New modules nproc, pthread, contributed by Glen Lenker.
44314
44315         * MODULES.html.sh: Add pthread, nproc.
44316         * lib/nproc.c: New file.
44317         * lib/nproc.h: New file.
44318         * lib/pthread.in.h: New file.
44319         * m4/pthread.m4: New file.
44320         * modules/nproc: New file.
44321         * modules/pthread: New file.
44322
44323 2009-03-24  Simon Josefsson  <simon@josefsson.org>
44324
44325         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
44326         New variable.
44327
44328 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
44329
44330         filevercmp: handle simple~ and numbered.~3~ backup suffixes
44331         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
44332         * tests/test-filevercmp.c: Add tests for backup suffixes.
44333
44334 2009-03-24  Simon Josefsson  <simon@josefsson.org>
44335
44336         * modules/stdlib (Depends-on): Add stdint, needed when defining
44337         struct random_data on, for example, HP-UX 10.20.  Reported by
44338         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44339
44340 2009-03-24  Simon Josefsson  <simon@josefsson.org>
44341
44342         * lib/readline.c (readline): Call fflush on stdout after printing
44343         prompt.
44344
44345 2009-03-20  Bruno Haible  <bruno@clisp.org>
44346
44347         Remove dependency from 'close' module to -lws2_32 on native Windows.
44348         * lib/close-hook.h: New file.
44349         * lib/close-hook.c: New file.
44350         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
44351         w32sock.h.
44352         (_gl_close_fd_maybe_socket): Remove function.
44353         (rpl_close): Invoke execute_all_close_hooks instead of
44354         _gl_close_fd_maybe_socket.
44355         * lib/sockets.c: Include close-hook.h, w32sock.h.
44356         (close_fd_maybe_socket): New function, essentially from lib/close.c.
44357         (close_sockets_hook): New variable.
44358         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
44359         (gl_sockets_cleanup): Unregister it.
44360         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
44361         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
44362         * modules/close-hook: New file.
44363         * modules/close (Files): Remove lib/w32sock.h.
44364         (Depends-on): Add close-hook.
44365         (Link): Remove section.
44366         * modules/sockets (Files): Add lib/w32sock.h.
44367         (Depends-on): Add close-hook.
44368         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
44369         invocation.
44370         * NEWS: Mention that LIB_CLOSE is gone.
44371
44372 2009-03-23  Eric Blake  <ebb9@byu.net>
44373
44374         signal-tests: test previous patch
44375         * tests/test-signal.c: New file.
44376         * modules/signal-tests: Likewise.
44377
44378         signal.h: always support 'volatile sig_atomic_t'
44379         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
44380         (gl_SIGNAL_H_DEFAULTS): Add a default.
44381         * modules/signal (Makefile.am): Substitute if needed.
44382         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
44383         users can blindly add volatile.
44384         * doc/posix-headers/signal.texi (signal.h): Document it.
44385         Reported by Matthew Woehlke.
44386
44387 2009-03-23  Jim Meyering  <meyering@redhat.com>
44388
44389         pathmax: PATH_MAX: use pathconf only when available
44390         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
44391         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
44392         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
44393         This avoids a link failure in a PSP cross-compilation environment
44394         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
44395
44396         * lib/vasnprintf.c (divide): Fix typo in comment.
44397
44398 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44399
44400         * gnulib-tool (func_filter_filelist): Fix comment.
44401
44402 2009-03-20  Bruno Haible  <bruno@clisp.org>
44403
44404         Make sockets.h self-contained.
44405         * lib/sockets.c: Include sockets.h first.
44406         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
44407
44408 2009-03-19  Eric Blake  <ebb9@byu.net>
44409
44410         doc: mention more functions added in cygwin 1.7.0
44411         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
44412         addition.
44413         * doc/posix-functions/log2f.texi: Likewise.
44414
44415 2009-03-19  Jim Meyering  <meyering@redhat.com>
44416
44417         fsusage: avoid syntax error due to statement-before-declaration
44418         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
44419         after all declarations.  Reported by Matthew Woehlke in
44420         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
44421
44422 2009-03-18  Eric Blake  <ebb9@byu.net>
44423
44424         build-aux/compile: sync from automake
44425         * build-aux/compile: New file, from automake.
44426         * config/srclist.txt: Mention build-aux/compile.
44427
44428 2009-03-17  Bruno Haible  <bruno@clisp.org>
44429
44430         * lib/git-merge-changelog.c: Fix typo in comment.
44431         Reported by Reuben Thomas <rrt@sc3d.org>.
44432
44433 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
44434
44435         * m4/regex.m4: update and improve help for
44436         --without-included-regex.
44437
44438 2009-03-17  Simon Josefsson  <simon@josefsson.org>
44439
44440         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
44441         failure on missing include files.
44442
44443 2009-03-17  Eric Blake  <ebb9@byu.net>
44444
44445         doc: mention more functions added in cygwin 1.7.0
44446         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
44447         addition.
44448         * doc/posix-functions/fwscanf.texi: Likewise.
44449         * doc/posix-functions/swprintf.texi: Likewise.
44450         * doc/posix-functions/swscanf.texi: Likewise.
44451         * doc/posix-functions/vfwprintf.texi: Likewise.
44452         * doc/posix-functions/vfwscanf.texi: Likewise.
44453         * doc/posix-functions/vswprintf.texi: Likewise.
44454         * doc/posix-functions/vswscanf.texi: Likewise.
44455         * doc/posix-functions/vwprintf.texi: Likewise.
44456         * doc/posix-functions/vwscanf.texi: Likewise.
44457         * doc/posix-functions/wcscasecmp.texi: Likewise.
44458         * doc/posix-functions/wcsdup.texi: Likewise.
44459         * doc/posix-functions/wcsftime.texi: Likewise.
44460         * doc/posix-functions/wcsncasecmp.texi: Likewise.
44461         * doc/posix-functions/wprintf.texi: Likewise.
44462         * doc/posix-functions/wscanf.texi: Likewise.
44463         * doc/glibc-functions/gethostbyname2.texi: Likewise.
44464
44465 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44466
44467         maint.mk: really add $(AM_MAKEFLAGS)
44468         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
44469         was inadvertently omitted in the last commit.
44470         Spotted by Bruno Haible.
44471
44472         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
44473         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
44474         $(AM_MAKEFLAGS)' rather than plain `make'.
44475
44476         gnulib-tool: execute $MAKE not make
44477         * gnulib-tool: Default $MAKE to 'make'.
44478         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
44479         than make.  Initialize $MAKE in the do-autobuild script.
44480
44481         gnulib-tool: use $MAKE not make in generated files
44482         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
44483         make, in generated files.  Initialize $MAKE in the do-autobuild
44484         script.
44485
44486         * top/GNUmakefile (_have-git-version-gen): Fix typo.
44487
44488         GNUmakefile: disable parallelism only for multiple, recursive targets
44489         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
44490         additions in the Makefile.
44491         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
44492         by Automake.
44493         (.NOTPARALLEL): Only disable parallel builds if multiple targets
44494         are listed on the command line and at least one of them is
44495         listed in $(ALL_RECURSIVE_TARGETS).
44496
44497 2009-03-14  Bruno Haible  <bruno@clisp.org>
44498
44499         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
44500         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
44501         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
44502         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
44503         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
44504         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
44505         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
44506         unistr/u8-uctomb.
44507         * modules/unistr/u8-strchr (Depends-on): Likewise.
44508         * modules/unistr/u8-strrchr (Depends-on): Likewise.
44509         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
44510         unistr/u16-uctomb.
44511         * modules/unistr/u16-strchr (Depends-on): Likewise.
44512         * modules/unistr/u16-strrchr (Depends-on): Likewise.
44513
44514 2009-03-12  Bruno Haible  <bruno@clisp.org>
44515
44516         Work around select() bug on Interix 3.5.
44517         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
44518         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
44519         * m4/select.m4: New file.
44520         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
44521         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
44522         * modules/select (Files): Add m4/select.m4.
44523         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
44524         * modules/nanosleep (Depends-on): Add select.
44525         * modules/poll (Depends-on): Likewise.
44526         * doc/posix-functions/select.texi: Mention the Interix bug.
44527         Reported by Markus Duft <mduft@gentoo.org>.
44528
44529         * lib/select.c: Renamed from lib/winsock-select.c.
44530         * modules/select (Files): Add lib/select.c, remove
44531         lib/winsock-select.c.
44532         (configure.ac): Update.
44533
44534 2009-03-12  Jim Meyering  <meyering@redhat.com>
44535
44536         avoid gcc warnings about unused macro definitions
44537         * lib/readtokens.c (STREQ): Remove unused definition.
44538         * lib/xmalloc.c (SIZE_MAX): Likewise.
44539         * lib/openat-die.c (N_): Likewise.
44540         * lib/mountlist.c (SIZE_MAX): Remove definition.
44541         Instead, include <stdint.h>.
44542         * lib/readutmp.c: Likewise.
44543         * modules/readutmp (Depends-on): Add stdint.
44544         * modules/mountlist (Depends-on): Add stdint.
44545         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
44546
44547 2009-03-10  Bruno Haible  <bruno@clisp.org>
44548
44549         Tests for module 'mbmemcasecoll'.
44550         * modules/mbmemcasecoll-tests: New file.
44551         * tests/test-mbmemcasecoll1.sh: New file.
44552         * tests/test-mbmemcasecoll2.sh: New file.
44553         * tests/test-mbmemcasecoll3.sh: New file.
44554         * tests/test-mbmemcasecoll.c: New file.
44555
44556         New module 'mbmemcasecoll'.
44557         * lib/mbmemcasecoll.h: New file.
44558         * lib/mbmemcasecoll.c: New file.
44559         * modules/mbmemcasecoll: New file.
44560
44561         * tests/test-mbmemcasecmp.h: New file, extracted from
44562         tests/test-mbmemcasecmp.c.
44563         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
44564         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
44565         (main): Update.
44566         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
44567
44568 2009-03-09  Bruno Haible  <bruno@clisp.org>
44569
44570         Tests for module 'mbmemcasecmp'.
44571         * modules/mbmemcasecmp-tests: New file.
44572         * tests/test-mbmemcasecmp1.sh: New file.
44573         * tests/test-mbmemcasecmp2.sh: New file.
44574         * tests/test-mbmemcasecmp3.sh: New file.
44575         * tests/test-mbmemcasecmp.c: New file.
44576
44577         New module 'mbmemcasecmp'.
44578         * lib/mbmemcasecmp.h: New file.
44579         * lib/mbmemcasecmp.c: New file.
44580         * modules/mbmemcasecmp: New file.
44581
44582 2009-03-09  Bruno Haible  <bruno@clisp.org>
44583
44584         Tests for module 'unicase/ulc-casecoll'.
44585         * modules/unicase/ulc-casecoll-tests: New file.
44586         * tests/unicase/test-ulc-casecoll1.sh: New file.
44587         * tests/unicase/test-ulc-casecoll2.sh: New file.
44588         * tests/unicase/test-ulc-casecoll.c: New file.
44589
44590         New module 'unicase/ulc-casecoll'.
44591         * lib/unicase.h (ulc_casecoll): New declaration.
44592         * lib/unicase/ulc-casecoll.c: New file.
44593         * modules/unicase/ulc-casecoll: New file.
44594
44595         New module 'unicase/ulc-casexfrm'.
44596         * lib/unicase.h (ulc_casexfrm): New declaration.
44597         * lib/unicase/ulc-casexfrm.c: New file.
44598         * modules/unicase/ulc-casexfrm: New file.
44599
44600 2009-03-09  Bruno Haible  <bruno@clisp.org>
44601
44602         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
44603         invocations.
44604
44605         * m4/mbscasecmp.m4: Remove file.
44606         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
44607         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
44608
44609         * m4/mbscasestr.m4: Remove file.
44610         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
44611         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
44612
44613         * m4/mbschr.m4: Remove file.
44614         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
44615         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
44616
44617         * m4/mbscspn.m4: Remove file.
44618         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
44619         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
44620
44621         * m4/mbslen.m4: Remove file.
44622         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
44623         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
44624
44625         * m4/mbsncasecmp.m4: Remove file.
44626         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
44627         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
44628
44629         * m4/mbsnlen.m4: Remove file.
44630         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
44631         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
44632
44633         * m4/mbspbrk.m4: Remove file.
44634         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
44635         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
44636
44637         * m4/mbspcasecmp.m4: Remove file.
44638         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
44639         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
44640
44641         * m4/mbsrchr.m4: Remove file.
44642         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
44643         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
44644
44645         * m4/mbssep.m4: Remove file.
44646         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
44647         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
44648
44649         * m4/mbsspn.m4: Remove file.
44650         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
44651         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
44652
44653         * m4/mbsstr.m4: Remove file.
44654         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
44655         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
44656
44657         * m4/mbstok_r.m4: Remove file.
44658         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
44659         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
44660
44661         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
44662
44663         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
44664         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
44665
44666         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
44667
44668 2009-03-08  Bruno Haible  <bruno@clisp.org>
44669
44670         Tests for module 'unicase/ulc-casecmp'.
44671         * modules/unicase/ulc-casecmp-tests: New file.
44672         * tests/unicase/test-ulc-casecmp1.sh: New file.
44673         * tests/unicase/test-ulc-casecmp2.sh: New file.
44674         * tests/unicase/test-ulc-casecmp.c: New file.
44675
44676         New module 'unicase/ulc-casecmp'.
44677         * lib/unicase.h (ulc_casecmp): New declaration.
44678         * lib/unicase/ulc-casecmp.c: New file.
44679         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
44680         'const SRC_UNIT *'.
44681         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
44682         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
44683         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
44684         * modules/unicase/ulc-casecmp: New file.
44685
44686         Tests for module 'unicase/u32-is-cased'.
44687         * modules/unicase/u32-is-cased-tests: New file.
44688         * tests/unicase/test-u32-is-cased.c: New file.
44689
44690         Tests for module 'unicase/u16-is-cased'.
44691         * modules/unicase/u16-is-cased-tests: New file.
44692         * tests/unicase/test-u16-is-cased.c: New file.
44693
44694         Tests for module 'unicase/u8-is-cased'.
44695         * modules/unicase/u8-is-cased-tests: New file.
44696         * tests/unicase/test-u8-is-cased.c: New file.
44697         * tests/unicase/test-is-cased.h: New file.
44698
44699         New module 'unicase/u32-is-cased'.
44700         * lib/unicase/u32-is-cased.c: New file.
44701         * modules/unicase/u32-is-cased: New file.
44702
44703         New module 'unicase/u16-is-cased'.
44704         * lib/unicase/u16-is-cased.c: New file.
44705         * modules/unicase/u16-is-cased: New file.
44706
44707         New module 'unicase/u8-is-cased'.
44708         * lib/unicase/u8-is-cased.c: New file.
44709         * lib/unicase/u-is-cased.h: New file.
44710         * modules/unicase/u8-is-cased: New file.
44711
44712         Tests for module 'unicase/u32-is-casefolded'.
44713         * modules/unicase/u32-is-casefolded-tests: New file.
44714         * tests/unicase/test-u32-is-casefolded.c: New file.
44715
44716         Tests for module 'unicase/u16-is-casefolded'.
44717         * modules/unicase/u16-is-casefolded-tests: New file.
44718         * tests/unicase/test-u16-is-casefolded.c: New file.
44719
44720         Tests for module 'unicase/u8-is-casefolded'.
44721         * modules/unicase/u8-is-casefolded-tests: New file.
44722         * tests/unicase/test-u8-is-casefolded.c: New file.
44723         * tests/unicase/test-is-casefolded.h: New file.
44724
44725         New module 'unicase/u32-is-casefolded'.
44726         * lib/unicase/u32-is-casefolded.c: New file.
44727         * modules/unicase/u32-is-casefolded: New file.
44728
44729         New module 'unicase/u16-is-casefolded'.
44730         * lib/unicase/u16-is-casefolded.c: New file.
44731         * modules/unicase/u16-is-casefolded: New file.
44732
44733         New module 'unicase/u8-is-casefolded'.
44734         * lib/unicase/u8-is-casefolded.c: New file.
44735         * modules/unicase/u8-is-casefolded: New file.
44736
44737         Tests for module 'unicase/u32-is-titlecase'.
44738         * modules/unicase/u32-is-titlecase-tests: New file.
44739         * tests/unicase/test-u32-is-titlecase.c: New file.
44740
44741         Tests for module 'unicase/u16-is-titlecase'.
44742         * modules/unicase/u16-is-titlecase-tests: New file.
44743         * tests/unicase/test-u16-is-titlecase.c: New file.
44744
44745         Tests for module 'unicase/u8-is-titlecase'.
44746         * modules/unicase/u8-is-titlecase-tests: New file.
44747         * tests/unicase/test-u8-is-titlecase.c: New file.
44748         * tests/unicase/test-is-titlecase.h: New file.
44749
44750         New module 'unicase/u32-is-titlecase'.
44751         * lib/unicase/u32-is-titlecase.c: New file.
44752         * modules/unicase/u32-is-titlecase: New file.
44753
44754         New module 'unicase/u16-is-titlecase'.
44755         * lib/unicase/u16-is-titlecase.c: New file.
44756         * modules/unicase/u16-is-titlecase: New file.
44757
44758         New module 'unicase/u8-is-titlecase'.
44759         * lib/unicase/u8-is-titlecase.c: New file.
44760         * modules/unicase/u8-is-titlecase: New file.
44761
44762         Tests for module 'unicase/u32-is-lowercase'.
44763         * modules/unicase/u32-is-lowercase-tests: New file.
44764         * tests/unicase/test-u32-is-lowercase.c: New file.
44765
44766         Tests for module 'unicase/u16-is-lowercase'.
44767         * modules/unicase/u16-is-lowercase-tests: New file.
44768         * tests/unicase/test-u16-is-lowercase.c: New file.
44769
44770         Tests for module 'unicase/u8-is-lowercase'.
44771         * modules/unicase/u8-is-lowercase-tests: New file.
44772         * tests/unicase/test-u8-is-lowercase.c: New file.
44773         * tests/unicase/test-is-lowercase.h: New file.
44774
44775         New module 'unicase/u32-is-lowercase'.
44776         * lib/unicase/u32-is-lowercase.c: New file.
44777         * modules/unicase/u32-is-lowercase: New file.
44778
44779         New module 'unicase/u16-is-lowercase'.
44780         * lib/unicase/u16-is-lowercase.c: New file.
44781         * modules/unicase/u16-is-lowercase: New file.
44782
44783         New module 'unicase/u8-is-lowercase'.
44784         * lib/unicase/u8-is-lowercase.c: New file.
44785         * modules/unicase/u8-is-lowercase: New file.
44786
44787         Tests for module 'unicase/u32-is-uppercase'.
44788         * modules/unicase/u32-is-uppercase-tests: New file.
44789         * tests/unicase/test-u32-is-uppercase.c: New file.
44790
44791         Tests for module 'unicase/u16-is-uppercase'.
44792         * modules/unicase/u16-is-uppercase-tests: New file.
44793         * tests/unicase/test-u16-is-uppercase.c: New file.
44794
44795         Tests for module 'unicase/u8-is-uppercase'.
44796         * modules/unicase/u8-is-uppercase-tests: New file.
44797         * tests/unicase/test-u8-is-uppercase.c: New file.
44798         * tests/unicase/test-is-uppercase.h: New file.
44799
44800         New module 'unicase/u32-is-uppercase'.
44801         * lib/unicase/u32-is-uppercase.c: New file.
44802         * modules/unicase/u32-is-uppercase: New file.
44803
44804         New module 'unicase/u16-is-uppercase'.
44805         * lib/unicase/u16-is-uppercase.c: New file.
44806         * modules/unicase/u16-is-uppercase: New file.
44807
44808         New module 'unicase/u8-is-uppercase'.
44809         * lib/unicase/u8-is-uppercase.c: New file.
44810         * modules/unicase/u8-is-uppercase: New file.
44811
44812         New module 'unicase/u32-is-invariant'.
44813         * lib/unicase/u32-is-invariant.c: New file.
44814         * modules/unicase/u32-is-invariant: New file.
44815
44816         New module 'unicase/u16-is-invariant'.
44817         * lib/unicase/u16-is-invariant.c: New file.
44818         * modules/unicase/u16-is-invariant: New file.
44819
44820         New module 'unicase/u8-is-invariant'.
44821         * lib/unicase/u8-is-invariant.c: New file.
44822         * lib/unicase/invariant.h: New file.
44823         * lib/unicase/u-is-invariant.h: New file.
44824         * modules/unicase/u8-is-invariant: New file.
44825
44826         Tests for module 'unicase/u32-casecoll'.
44827         * modules/unicase/u32-casecoll-tests: New file.
44828         * tests/unicase/test-u32-casecoll.c: New file.
44829
44830         Tests for module 'unicase/u16-casecoll'.
44831         * modules/unicase/u16-casecoll-tests: New file.
44832         * tests/unicase/test-u16-casecoll.c: New file.
44833
44834         Tests for module 'unicase/u8-casecoll'.
44835         * modules/unicase/u8-casecoll-tests: New file.
44836         * tests/unicase/test-u8-casecoll.c: New file.
44837
44838         New module 'unicase/u32-casecoll'.
44839         * lib/unicase/u32-casecoll.c: New file.
44840         * modules/unicase/u32-casecoll: New file.
44841
44842         New module 'unicase/u16-casecoll'.
44843         * lib/unicase/u16-casecoll.c: New file.
44844         * modules/unicase/u16-casecoll: New file.
44845
44846         New module 'unicase/u8-casecoll'.
44847         * lib/unicase/u8-casecoll.c: New file.
44848         * lib/unicase/u-casecoll.h: New file.
44849         * modules/unicase/u8-casecoll: New file.
44850
44851         New module 'unicase/u32-casexfrm'.
44852         * lib/unicase/u32-casexfrm.c: New file.
44853         * modules/unicase/u32-casexfrm: New file.
44854
44855         New module 'unicase/u16-casexfrm'.
44856         * lib/unicase/u16-casexfrm.c: New file.
44857         * modules/unicase/u16-casexfrm: New file.
44858
44859         New module 'unicase/u8-casexfrm'.
44860         * lib/unicase/u8-casexfrm.c: New file.
44861         * lib/unicase/u-casexfrm.h: New file.
44862         * modules/unicase/u8-casexfrm: New file.
44863
44864         Tests for module 'unicase/u32-casecmp'.
44865         * modules/unicase/u32-casecmp-tests: New file.
44866         * tests/unicase/test-u32-casecmp.c: New file.
44867
44868         Tests for module 'unicase/u16-casecmp'.
44869         * modules/unicase/u16-casecmp-tests: New file.
44870         * tests/unicase/test-u16-casecmp.c: New file.
44871
44872         Tests for module 'unicase/u8-casecmp'.
44873         * modules/unicase/u8-casecmp-tests: New file.
44874         * tests/unicase/test-u8-casecmp.c: New file.
44875         * tests/unicase/test-casecmp.h: New file.
44876
44877         New module 'unicase/u32-casecmp'.
44878         * lib/unicase/u32-casecmp.c: New file.
44879         * modules/unicase/u32-casecmp: New file.
44880
44881         New module 'unicase/u16-casecmp'.
44882         * lib/unicase/u16-casecmp.c: New file.
44883         * modules/unicase/u16-casecmp: New file.
44884
44885         New module 'unicase/u8-casecmp'.
44886         * lib/unicase/u8-casecmp.c: New file.
44887         * lib/unicase/u-casecmp.h: New file.
44888         * modules/unicase/u8-casecmp: New file.
44889
44890         Tests for module 'unicase/u32-casefold'.
44891         * modules/unicase/u32-casefold-tests: New file.
44892         * tests/unicase/test-u32-casefold.c: New file.
44893
44894         Tests for module 'unicase/u16-casefold'.
44895         * modules/unicase/u16-casefold-tests: New file.
44896         * tests/unicase/test-u16-casefold.c: New file.
44897
44898         Tests for module 'unicase/u8-casefold'.
44899         * modules/unicase/u8-casefold-tests: New file.
44900         * tests/unicase/test-u8-casefold.c: New file.
44901
44902         New module 'unicase/u32-casefold'.
44903         * lib/unicase/u32-casefold.c: New file.
44904         * modules/unicase/u32-casefold: New file.
44905
44906         New module 'unicase/u16-casefold'.
44907         * lib/unicase/u16-casefold.c: New file.
44908         * modules/unicase/u16-casefold: New file.
44909
44910         New module 'unicase/u8-casefold'.
44911         * lib/unicase/u8-casefold.c: New file.
44912         * lib/unicase/u-casefold.h: New file.
44913         * modules/unicase/u8-casefold: New file.
44914
44915         New module 'unicase/tocasefold'.
44916         * lib/unicase/casefold.h: New file.
44917         * lib/unicase/tocasefold.c: New file.
44918         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
44919         * modules/unicase/tocasefold: New file.
44920
44921         Tests for module 'unicase/u32-totitle'.
44922         * modules/unicase/u32-totitle-tests: New file.
44923         * tests/unicase/test-u32-totitle.c: New file.
44924
44925         Tests for module 'unicase/u16-totitle'.
44926         * modules/unicase/u16-totitle-tests: New file.
44927         * tests/unicase/test-u16-totitle.c: New file.
44928
44929         Tests for module 'unicase/u8-totitle'.
44930         * modules/unicase/u8-totitle-tests: New file.
44931         * tests/unicase/test-u8-totitle.c: New file.
44932
44933         New module 'unicase/u32-totitle'.
44934         * lib/unicase/u32-totitle.c: New file.
44935         * modules/unicase/u32-totitle: New file.
44936
44937         New module 'unicase/u16-totitle'.
44938         * lib/unicase/u16-totitle.c: New file.
44939         * modules/unicase/u16-totitle: New file.
44940
44941         New module 'unicase/u8-totitle'.
44942         * lib/unicase/u8-totitle.c: New file.
44943         * lib/unicase/u-totitle.h: New file.
44944         * modules/unicase/u8-totitle: New file.
44945
44946         Tests for module 'unicase/u32-tolower'.
44947         * modules/unicase/u32-tolower-tests: New file.
44948         * tests/unicase/test-u32-tolower.c: New file.
44949
44950         Tests for module 'unicase/u16-tolower'.
44951         * modules/unicase/u16-tolower-tests: New file.
44952         * tests/unicase/test-u16-tolower.c: New file.
44953
44954         Tests for module 'unicase/u8-tolower'.
44955         * modules/unicase/u8-tolower-tests: New file.
44956         * tests/unicase/test-u8-tolower.c: New file.
44957
44958         New module 'unicase/u32-tolower'.
44959         * lib/unicase/u32-tolower.c: New file.
44960         * modules/unicase/u32-tolower: New file.
44961
44962         New module 'unicase/u16-tolower'.
44963         * lib/unicase/u16-tolower.c: New file.
44964         * modules/unicase/u16-tolower: New file.
44965
44966         New module 'unicase/u8-tolower'.
44967         * lib/unicase/u8-tolower.c: New file.
44968         * modules/unicase/u8-tolower: New file.
44969
44970         Tests for module 'unicase/u32-toupper'.
44971         * modules/unicase/u32-toupper-tests: New file.
44972         * tests/unicase/test-u32-toupper.c: New file.
44973
44974         Tests for module 'unicase/u16-toupper'.
44975         * modules/unicase/u16-toupper-tests: New file.
44976         * tests/unicase/test-u16-toupper.c: New file.
44977
44978         Tests for module 'unicase/u8-toupper'.
44979         * modules/unicase/u8-toupper-tests: New file.
44980         * tests/unicase/test-u8-toupper.c: New file.
44981
44982         New module 'unicase/u32-toupper'.
44983         * lib/unicase/u32-toupper.c: New file.
44984         * modules/unicase/u32-toupper: New file.
44985
44986         New module 'unicase/u16-toupper'.
44987         * lib/unicase/u16-toupper.c: New file.
44988         * modules/unicase/u16-toupper: New file.
44989
44990         New module 'unicase/u8-toupper'.
44991         * lib/unicase/u8-toupper.c: New file.
44992         * modules/unicase/u8-toupper: New file.
44993
44994         New module 'unicase/u32-casemap'.
44995         * lib/unicase/u32-casemap.c: New file.
44996         * modules/unicase/u32-casemap: New file.
44997
44998         New module 'unicase/u16-casemap'.
44999         * lib/unicase/u16-casemap.c: New file.
45000         * modules/unicase/u16-casemap: New file.
45001
45002         New module 'unicase/u8-casemap'.
45003         * lib/unicase/unicasemap.h: New file.
45004         * lib/unicase/u8-casemap.c: New file.
45005         * lib/unicase/u-casemap.h: New file.
45006         * modules/unicase/u8-casemap: New file.
45007
45008         New module 'unicase/special-casing'.
45009         * lib/unicase/special-casing.h: New file.
45010         * lib/unicase/special-casing.c: New file.
45011         * lib/unicase/special-casing-table.gperf: New file, generated by
45012         gen-uni-tables.c.
45013         * modules/unicase/special-casing: New file.
45014
45015         Tests for module 'unicase/locale-language'.
45016         * modules/unicase/locale-language-tests: New file.
45017         * tests/unicase/test-locale-language.sh: New file.
45018         * tests/unicase/test-locale-language.c: New file.
45019
45020         New module 'unicase/locale-language'.
45021         * lib/unicase/locale-language.c: New file.
45022         * lib/unicase/locale-languages.gperf: New file.
45023         * modules/unicase/locale-language: New file.
45024
45025         Generate more tables for case conversion and case folding.
45026         * lib/gen-uni-tables.c (SCC_*): New enum items.
45027         (struct special_casing_rule): New type.
45028         (casing_rules, num_casing_rules, allocated_casing_rules): New
45029         variables.
45030         (add_casing_rule, fill_casing_rules): New functions.
45031         (struct casefold_rule): New type.
45032         (casefolding_rules, num_casefolding_rules,
45033         allocated_casefolding_rules): New variables.
45034         (fill_casefolding_rules): New function.
45035         (unicode_casefold): New variable.
45036         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
45037         sort_casing_rules, output_casing_rules): New functions.
45038         (main): Accept to more arguments: SpecialCasing.txt and
45039         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
45040         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
45041         Output mapping for casefolding.
45042
45043         * lib/unicase.h: Include stdbool.h, uninorm.h.
45044         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
45045         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
45046         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
45047         arguments.
45048         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
45049         resultp arguments.
45050         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
45051         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
45052         resultp arguments.
45053         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
45054         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
45055         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
45056         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
45057         declarations.
45058         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
45059
45060 2009-03-08  Bruno Haible  <bruno@clisp.org>
45061
45062         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
45063         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
45064         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
45065         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
45066
45067 2009-03-07  Bruno Haible  <bruno@clisp.org>
45068
45069         Adjust u*_normcmp, u*_normcoll API.
45070         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
45071         u16_normcoll, u32_normcoll): Change failure conventions.
45072         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
45073         errno and return -1.
45074         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
45075
45076 2009-03-07  Bruno Haible  <bruno@clisp.org>
45077
45078         Tests for module 'uninorm/u32-normcoll'.
45079         * modules/uninorm/u32-normcoll-tests: New file.
45080         * tests/uninorm/test-u32-normcoll.c: New file.
45081
45082         Tests for module 'uninorm/u16-normcoll'.
45083         * modules/uninorm/u16-normcoll-tests: New file.
45084         * tests/uninorm/test-u16-normcoll.c: New file.
45085
45086         Tests for module 'uninorm/u8-normcoll'.
45087         * modules/uninorm/u8-normcoll-tests: New file.
45088         * tests/uninorm/test-u8-normcoll.c: New file.
45089
45090 2009-03-07  Bruno Haible  <bruno@clisp.org>
45091
45092         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
45093         tests/uninorm/test-u32-normcmp.c.
45094         * tests/uninorm/test-u32-normcmp.c: Include it.
45095         (test_nonascii): New function, extracted from main. Add some more
45096         tests.
45097         (main): Invoke test_ascii and test_nonascii.
45098         * modules/uninorm/u32-normcmp-tests (Files): Add
45099         tests/uninorm/test-u32-normcmp.h.
45100         (Depends-on): Remove uninorm/u32-normcmp.
45101
45102         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
45103         tests/uninorm/test-u16-normcmp.c.
45104         * tests/uninorm/test-u16-normcmp.c: Include it.
45105         (test_nonascii): New function, extracted from main. Add some more
45106         tests.
45107         (main): Invoke test_ascii and test_nonascii.
45108         * modules/uninorm/u16-normcmp-tests (Files): Add
45109         tests/uninorm/test-u16-normcmp.h.
45110         (Depends-on): Remove uninorm/u16-normcmp.
45111
45112         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
45113         tests/uninorm/test-u8-normcmp.c.
45114         * tests/uninorm/test-u8-normcmp.c: Include it.
45115         (test_nonascii): New function, extracted from main. Add some more
45116         tests.
45117         (main): Invoke test_ascii and test_nonascii.
45118         * modules/uninorm/u8-normcmp-tests (Files): Add
45119         tests/uninorm/test-u8-normcmp.h.
45120         (Depends-on): Remove uninorm/u8-normcmp.
45121
45122 2009-03-07  Bruno Haible  <bruno@clisp.org>
45123
45124         New module 'uninorm/u32-normcoll'.
45125         * lib/uninorm/u32-normcoll.c: New file.
45126         * modules/uninorm/u32-normcoll: New file.
45127
45128         New module 'uninorm/u16-normcoll'.
45129         * lib/uninorm/u16-normcoll.c: New file.
45130         * modules/uninorm/u16-normcoll: New file.
45131
45132         New module 'uninorm/u8-normcoll'.
45133         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
45134         declarations.
45135         * lib/uninorm/u8-normcoll.c: New file.
45136         * lib/uninorm/u-normcoll.h: New file.
45137         * modules/uninorm/u8-normcoll: New file.
45138
45139         New module 'uninorm/u32-normxfrm'.
45140         * lib/uninorm/u32-normxfrm.c: New file.
45141         * modules/uninorm/u32-normxfrm: New file.
45142
45143         New module 'uninorm/u16-normxfrm'.
45144         * lib/uninorm/u16-normxfrm.c: New file.
45145         * modules/uninorm/u16-normxfrm: New file.
45146
45147         New module 'uninorm/u8-normxfrm'.
45148         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
45149         declarations.
45150         * lib/uninorm/u8-normxfrm.c: New file.
45151         * lib/uninorm/u-normxfrm.h: New file.
45152         * modules/uninorm/u8-normxfrm: New file.
45153
45154 2009-03-07  Bruno Haible  <bruno@clisp.org>
45155
45156         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
45157         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
45158         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
45159
45160 2009-03-07  Bruno Haible  <bruno@clisp.org>
45161
45162         New module 'memxfrm'.
45163         * lib/memxfrm.h: New file.
45164         * lib/memxfrm.c: New file.
45165         * modules/memxfrm: New file.
45166
45167 2009-03-07  Bruno Haible  <bruno@clisp.org>
45168
45169         New module 'memcmp2'.
45170         * lib/memcmp2.h: New file.
45171         * lib/memcmp2.c: New file.
45172         * modules/memcmp2: New file.
45173
45174 2009-03-07  Bruno Haible  <bruno@clisp.org>
45175
45176         Tests for module 'uninorm/decomposing-form'.
45177         * modules/uninorm/decomposing-form-tests: New file.
45178         * tests/uninorm/test-decomposing-form.c: New file.
45179
45180         New module 'uninorm/decomposing-form'.
45181         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
45182         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
45183         Add 'decomposing_variant' field.
45184         * lib/uninorm/decomposing-form.c: New file.
45185         * lib/uninorm/nfc.c (uninorm_nfc): Update.
45186         * lib/uninorm/nfd.c (uninorm_nfd): Update.
45187         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
45188         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
45189         * modules/uninorm/decomposing-form: New file.
45190         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
45191         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
45192
45193 2009-03-07  Bruno Haible  <bruno@clisp.org>
45194
45195         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
45196         strings.
45197
45198 2009-03-06  Bruno Haible  <bruno@clisp.org>
45199
45200         Tests for module 'uninorm/u32-normcmp'.
45201         * tests/uninorm/test-u32-normcmp.c: New file.
45202         * modules/uninorm/u32-normcmp-tests: New file.
45203
45204         Tests for module 'uninorm/u16-normcmp'.
45205         * tests/uninorm/test-u16-normcmp.c: New file.
45206         * modules/uninorm/u16-normcmp-tests: New file.
45207
45208         Tests for module 'uninorm/u8-normcmp'.
45209         * tests/uninorm/test-u8-normcmp.c: New file.
45210         * modules/uninorm/u8-normcmp-tests: New file.
45211
45212         New module 'uninorm/u32-normcmp'.
45213         * lib/uninorm/u32-normcmp.c: New file.
45214         * modules/uninorm/u32-normcmp: New file.
45215
45216         New module 'uninorm/u16-normcmp'.
45217         * lib/uninorm/u16-normcmp.c: New file.
45218         * modules/uninorm/u16-normcmp: New file.
45219
45220         New module 'uninorm/u8-normcmp'.
45221         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
45222         declarations.
45223         * lib/uninorm/u8-normcmp.c: New file.
45224         * lib/uninorm/u-normcmp.h: New file.
45225         * modules/uninorm/u8-normcmp: New file.
45226
45227 2009-03-06  Bruno Haible  <bruno@clisp.org>
45228
45229         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
45230         Reported by Eric Blake.
45231
45232 2009-03-06  Eric Blake  <ebb9@byu.net>
45233             Bruno Haible  <bruno@clisp.org>
45234
45235         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
45236         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
45237         condition.
45238         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
45239         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
45240         condition.
45241         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
45242
45243 2009-03-06  Eric Blake  <ebb9@byu.net>
45244
45245         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
45246         to avoid compiler warnings.
45247         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
45248
45249 2009-03-05  Bruno Haible  <bruno@clisp.org>
45250
45251         * tests/test-ftell.c (main): Disable test beyond end of file on
45252         FreeMiNT.
45253         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
45254
45255 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
45256
45257         * lib/filevercmp.c: Move hidden files up in ordering.
45258         * tests/test-filevercmp.c: Add tests for hidden files.
45259
45260 2009-03-04  Bruno Haible  <bruno@clisp.org>
45261
45262         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
45263         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
45264         AM_CFLAGS.
45265         Reported by Simon Josefsson.
45266
45267 2009-03-03  Bruno Haible  <bruno@clisp.org>
45268
45269         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
45270         Reported by Simon Josefsson.
45271
45272         * doc/ld-version-script.texi: Update node reference.
45273
45274 2009-03-03  Bruno Haible  <bruno@clisp.org>
45275
45276         * modules/visibility (License): Change to 'unlimited'.
45277         Suggested by Simon Josefsson.
45278
45279 2009-03-03  Jim Meyering  <meyering@redhat.com>
45280
45281         unlinkdir: cannot_unlink_dir may modify process state
45282         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
45283         it's neither thread-safe nor appropriate for use in a library.
45284
45285 2009-03-03  Eric Blake  <ebb9@byu.net>
45286
45287         test-closein: silence test under Darwin
45288         * tests/test-closein.sh: Ignore stderr from cat, since we don't
45289         care if it dies from EPIPE or EBADF.
45290
45291 2009-03-03  Bruno Haible  <bruno@clisp.org>
45292
45293         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
45294         earlier.
45295         * doc/visibility.texi: Fix @node and @section.
45296
45297 2009-03-03  Simon Josefsson  <simon@josefsson.org>
45298
45299         * doc/gnulib.texi: Link to sections for ld version script and
45300         visibility.
45301         * doc/visibility.texi: Add @node and @section.
45302         * modules/ld-version-script: New module.
45303         * m4/ld-version-script.m4: New file.
45304         * doc/ld-version-script.texi: New file.
45305
45306 2009-03-02  David Lutterkort  <lutter@redhat.com>
45307
45308         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
45309         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45310
45311 2009-03-02  Bruno Haible  <bruno@clisp.org>
45312
45313         * doc/visibility.texi: Mention libtool's -export-symbols option.
45314
45315 2009-03-02  Jim Meyering  <meyering@redhat.com>
45316
45317         announce-gen: new option: --no-print-checksums
45318         * build-aux/announce-gen (usage): Describe it.
45319         (print_checksums): Print a newline here, not in the [*] footnote.
45320         (main): Honor it.
45321
45322 2009-03-01  Bruno Haible  <bruno@clisp.org>
45323
45324         Use socklen_t in the native Windows replacements prototypes.
45325         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
45326         instead of 'int'.
45327         * lib/getsockopt.c (rpl_getsockopt): Likewise.
45328         * lib/setsockopt.c (rpl_setsockopt): Likewise.
45329         * modules/getsockopt (Depends-on): Add socklen.
45330         * modules/setsockopt (Depends-on): Add socklen.
45331
45332 2009-03-01  Bruno Haible  <bruno@clisp.org>
45333
45334         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
45335         least 4.2.
45336
45337 2009-03-01  Eric Blake  <ebb9@byu.net>
45338             Bruno Haible  <bruno@clisp.org>
45339
45340         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
45341         error messages.
45342         * lib/wait-process.c (wait_subprocess): Omit error message about
45343         deadly signal sent to the child of termsigp != NULL.
45344
45345 2009-03-01  Eric Blake  <ebb9@byu.net>
45346
45347         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
45348
45349 2009-03-01  Bruno Haible  <bruno@clisp.org>
45350
45351         Avoid a gcc warning.
45352         * tests/test-sched.c (b): Make global.
45353         Reported by Eric Blake.
45354
45355 2009-01-19  Martin Lambers  <marlam@marlam.de>
45356
45357         Provide POSIX semantics for socket timeout options on W32.
45358         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
45359         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
45360         * modules/setsockopt: Depend on sys_time module for struct timeval.
45361         * modules/getsockopt: Depend on sys_time module for struct timeval.
45362
45363 2009-03-01  Simon Josefsson  <simon@josefsson.org>
45364
45365         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
45366         __USE_GNU, for consistency with netdb.in.h.
45367         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45368
45369 2009-03-01  Bruno Haible  <bruno@clisp.org>
45370
45371         More support for FreeMiNT.
45372         * lib/fseeko.c (rpl_fseeko): Complete last commit.
45373         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45374
45375 2009-03-01  Bruno Haible  <bruno@clisp.org>
45376
45377         More support for FreeMiNT.
45378         * lib/fpurge.c (fpurge): Correct last commit.
45379         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45380
45381 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45382
45383         Fix unportable awk script in vc-list-files.
45384         * build-aux/vc-list-files: In the replacement awk script, use
45385         substr with a second argument of 1, not zero.
45386         Report by Simon Josefsson.
45387
45388 2009-02-28  Bruno Haible  <bruno@clisp.org>
45389
45390         More support for FreeMiNT.
45391         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
45392         to FreeMiNT today.
45393         * lib/fwriting.c (fwriting): Likewise.
45394         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
45395
45396 2009-02-28  Bruno Haible  <bruno@clisp.org>
45397
45398         * tests/test-freadseek.c (main): Disable test beyond end of file on
45399         FreeMiNT.
45400         * tests/test-ftello.c (main): Likewise.
45401         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
45402
45403 2009-02-28  Bruno Haible  <bruno@clisp.org>
45404
45405         Add tentative support for FreeMiNT.
45406         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
45407         * lib/fpurge.c (fpurge): Likewise.
45408         * lib/freadable.c (freadable): Likewise.
45409         * lib/freading.c (freading): Likewise.
45410         * lib/freadptr.c (freadptr): Likewise.
45411         * lib/freadseek.c (freadptrinc): Likewise.
45412         * lib/fseeko.c (rpl_fseeko): Likewise.
45413         * lib/fseterr.c (fseterr): Likewise.
45414         * lib/fwritable.c (fwritable): Likewise.
45415         * lib/fwriting.c (fwriting): Likewise.
45416         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
45417         Hourihane.
45418         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
45419
45420 2009-02-28  Bruno Haible  <bruno@clisp.org>
45421
45422         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
45423         SIGCHLD.
45424         Reported by Jim Meyering.
45425
45426 2009-02-28  Bruno Haible  <bruno@clisp.org>
45427
45428         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
45429         Mention the results of these tests on various platforms.
45430         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
45431         order.
45432         * doc/posix-functions/printf.texi: Likewise.
45433         * doc/posix-functions/snprintf.texi: Likewise.
45434         * doc/posix-functions/sprintf.texi: Likewise.
45435         * doc/posix-functions/vfprintf.texi: Likewise.
45436         * doc/posix-functions/vprintf.texi: Likewise.
45437         * doc/posix-functions/vsnprintf.texi: Likewise.
45438         * doc/posix-functions/vsprintf.texi: Likewise.
45439         * doc/glibc-functions/obstack_printf.texi: Likewise.
45440         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
45441
45442 2009-02-28  Bruno Haible  <bruno@clisp.org>
45443
45444         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
45445         Reported by Loïc Minier <lool@dooz.org>.
45446
45447 2009-02-27  Bruno Haible  <bruno@clisp.org>
45448
45449         * gnulib-tool (func_import): Make the sed expression used to create the
45450         sed script for updating the .gitignore file POSIX compliant.
45451         Reported by Eric Blake.
45452
45453 2009-02-27  Bruno Haible  <bruno@clisp.org>
45454
45455         * gnulib-tool (sed): Don't alias as "sed --posix".
45456         Reported by Eric Blake.
45457
45458 2009-02-27  Bruno Haible  <bruno@clisp.org>
45459
45460         Avoid test link errors.
45461         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
45462         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
45463         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
45464         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
45465         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45466
45467 2009-02-27  Bruno Haible  <bruno@clisp.org>
45468
45469         Avoid spurious "(cached)" in configure output.
45470         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
45471         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
45472         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
45473         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
45474         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
45475         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
45476         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
45477         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
45478         Reported by Eric Blake.
45479
45480 2009-02-27  Eric Blake  <ebb9@byu.net>
45481
45482         printf: fix regression in previous patch
45483         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
45484
45485 2009-02-27  Bruno Haible  <bruno@clisp.org>
45486
45487         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
45488         value.
45489         * lib/stdint.in.h: Likewise.
45490         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
45491
45492 2009-02-27  Eric Blake  <ebb9@byu.net>
45493
45494         doc: mention more functions added in cygwin 1.7.0
45495         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
45496         addition.
45497         * doc/posix-functions/open_wmemstream.texi: Likewise.
45498         * doc/posix-functions/wcsnlen.texi: Likewise.
45499         * doc/posix-functions/wcsnrtombs.texi: Likewise.
45500         * doc/posix-functions/wcstod.texi: Likewise.
45501         * doc/posix-functions/wcstof.texi: Likewise.
45502         * doc/posix-functions/wcstoimax.texi: Likewise.
45503         * doc/posix-functions/wcstok.texi: Likewise.
45504         * doc/posix-functions/wcstoumax.texi: Likewise.
45505
45506         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
45507         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
45508         * doc/posix-functions/fprintf.texi: Update.
45509         * doc/posix-functions/printf.texi: Update.
45510         * doc/posix-functions/snprintf.texi: Update.
45511         * doc/posix-functions/sprintf.texi: Update.
45512         * doc/posix-functions/vfprintf.texi: Update.
45513         * doc/posix-functions/vprintf.texi: Update.
45514         * doc/posix-functions/vsnprintf.texi: Update.
45515         * doc/posix-functions/vsprintf.texi: Update.
45516         * doc/glibc-functions/obstack_printf.texi: Update.
45517         * doc/glibc-functions/obstack_vprintf.texi: Update.
45518
45519 2009-02-26  Eric Blake  <ebb9@byu.net>
45520
45521         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
45522         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
45523         compilation bug by using runtime conversion.
45524         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
45525         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
45526         * modules/ceill-tests (Files): Use nan.h.
45527         * modules/floorl-tests (Files): Likewise.
45528         * modules/frexpl-tests (Files): Likewise.
45529         * modules/isnanl-tests (Files): Likewise.
45530         * modules/ldexpl-tests (Files): Likewise.
45531         * modules/roundl-tests (Files): Likewise.
45532         * modules/truncl-tests (Files): Likewise.
45533         * tests/test-ceill.c (main): Use a working NaN.
45534         * tests/test-floorl.c (main): Likewise.
45535         * tests/test-frexpl.c (main): Likewise.
45536         * tests/test-isnan.c (test_long_double): Likewise.
45537         * tests/test-isnanl.h (main): Likewise.
45538         * tests/test-ldexpl.h (main): Likewise.
45539         * tests/test-roundl.h (main): Likewise.
45540         * tests/test-truncl.h (main): Likewise.
45541         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
45542
45543 2009-02-26  Eric Blake  <ebb9@byu.net>
45544             Bruno Haible  <bruno@clisp.org>
45545
45546         Work around a *printf bug with %ls on Solaris.
45547         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
45548         precision is specified, sprintf stops converting the wide string
45549         argument when the number of bytes that have been produced by this
45550         conversion equals or exceeds the precision.
45551         * doc/posix-functions/fprintf.texi: Update.
45552         * doc/posix-functions/printf.texi: Update.
45553         * doc/posix-functions/snprintf.texi: Update.
45554         * doc/posix-functions/sprintf.texi: Update.
45555         * doc/posix-functions/vfprintf.texi: Update.
45556         * doc/posix-functions/vprintf.texi: Update.
45557         * doc/posix-functions/vsnprintf.texi: Update.
45558         * doc/posix-functions/vsprintf.texi: Update.
45559         * doc/glibc-functions/obstack_printf.texi: Update.
45560         * doc/glibc-functions/obstack_vprintf.texi: Update.
45561
45562 2009-02-26  Eric Blake  <ebb9@byu.net>
45563
45564         stdlib: favor compiler check of random.h
45565         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
45566         to avoid an ObjC random.h installed by Swarm.
45567
45568 2009-02-26  Bruno Haible  <bruno@clisp.org>
45569
45570         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
45571         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
45572         Reported by Gary V. Vaughan <gary@gnu.org>.
45573
45574 2009-02-26  Bruno Haible  <bruno@clisp.org>
45575
45576         Fix *printf behaviour regarding the %ls directive.
45577         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
45578         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
45579         NEED_PRINTF_DIRECTIVE_LS.
45580         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
45581         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
45582         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
45583         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
45584         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
45585         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
45586         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
45587         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
45588         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
45589         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
45590         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
45591         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
45592         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
45593         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
45594         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
45595         * doc/posix-functions/fprintf.texi: Update.
45596         * doc/posix-functions/printf.texi: Update.
45597         * doc/posix-functions/snprintf.texi: Update.
45598         * doc/posix-functions/sprintf.texi: Update.
45599         * doc/posix-functions/vfprintf.texi: Update.
45600         * doc/posix-functions/vprintf.texi: Update.
45601         * doc/posix-functions/vsnprintf.texi: Update.
45602         * doc/posix-functions/vsprintf.texi: Update.
45603         * doc/glibc-functions/obstack_printf.texi: Update.
45604         * doc/glibc-functions/obstack_vprintf.texi: Update.
45605         Reported by Eric Blake.
45606
45607 2009-02-25  Bruno Haible  <bruno@clisp.org>
45608
45609         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
45610         with known value.
45611         Reported by Gary V. Vaughan <gary@gnu.org>.
45612
45613 2009-02-25  Bruno Haible  <bruno@clisp.org>
45614
45615         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
45616         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
45617         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
45618         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
45619         Reported by Gary V. Vaughan <gary@gnu.org>.
45620
45621 2009-02-25  Bruno Haible  <bruno@clisp.org>
45622
45623         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
45624         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
45625         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
45626         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
45627         Reported by Gary V. Vaughan <gary@gnu.org>.
45628
45629 2009-02-25  Eric Blake  <ebb9@byu.net>
45630
45631         tests: skip fseek/ftell tests if ungetc is broken
45632         * m4/ungetc.m4: New file.
45633         * modules/fseek-tests: Split test, so ungetc dependency is
45634         separate from rest of test.
45635         * modules/fseeko-tests: Likewise.
45636         * modules/ftell-tests: Likewise.
45637         * modules/ftello-tests: Likewise.
45638         * tests/test-fseek.c (main): Isolate ungetc dependency.
45639         * tests/test-fseeko.c (main): Likewise.
45640         * tests/test-ftell.c (main): Likewise.
45641         * tests/test-ftello.c (main): Likewise.
45642         * tests/test-fseek2.sh: New file.
45643         * tests/test-fseeko2.sh: Likewise.
45644         * tests/test-ftell2.sh: Likewise.
45645         * tests/test-ftello2.sh: Likewise.
45646
45647 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
45648
45649         test-getaddrinfo: fix usage of skip return code 77
45650         * tests/test-gettaddrinfo.c: Return skip code 77 only
45651         for first occurance of skip (4x77 is not 77)
45652
45653 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
45654
45655         strtod: avoid C99 decl-after-statement
45656         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
45657
45658 2009-02-24  Eric Blake  <ebb9@byu.net>
45659
45660         strtod: detect HP-UX 11.31 bug
45661         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
45662         Reported by Gary V. Vaughan.
45663
45664 2009-02-23  Bruno Haible  <bruno@clisp.org>
45665
45666         Fix invalid read past end of memory block.
45667         * lib/vasnprintf.c (DCHAR_SET): Define.
45668         (local_wcslen): Define only when needed.
45669         (local_strnlen, local_wcsnlen): New functions.
45670         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
45671         directives that involve a conversion ourselves.
45672         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
45673         wcsnlen, mbrtowc, wcrtomb.
45674         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
45675         * tests/test-vasprintf-posix.c (test_function): Likewise.
45676         * tests/test-snprintf-posix.h (test_function): Likewise.
45677         * tests/test-sprintf-posix.h (test_function): Likewise.
45678         Reported by Ben Pfaff <blp@cs.stanford.edu>.
45679
45680 2009-02-22  Bruno Haible  <bruno@clisp.org>
45681
45682         Implement new clarified decomposition of Hangul syllables.
45683         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
45684         of type LTV, return only a pairwise decomposition.
45685         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
45686         Likewise.
45687         * tests/uninorm/test-decomposition.c (main): Updated expected result.
45688         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
45689         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
45690
45691 2009-02-22  Bruno Haible  <bruno@clisp.org>
45692
45693         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
45694         zero-length results and shrink excess allocated memory.
45695         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
45696         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
45697         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
45698         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
45699         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
45700         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
45701         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
45702         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
45703         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
45704         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
45705         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
45706         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
45707
45708 2009-02-21  Bruno Haible  <bruno@clisp.org>
45709
45710         * doc/gnulib.texi: Include safe-alloc.texi earlier.
45711         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
45712         spaces after a period. Put a space between a macro name and its
45713         argument list. Trivial rewordings.
45714         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
45715         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
45716         (main): Return 0 explicitly.
45717
45718 2009-02-21  Bruno Haible  <bruno@clisp.org>
45719
45720         Tests for module 'uninorm/filter'.
45721         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
45722         * modules/uninorm/filter-tests: New file.
45723
45724         New module 'uninorm/filter'.
45725         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
45726         uninorm_filter_flush, uninorm_filter_free): New declarations.
45727         * lib/uninorm/uninorm-filter.c: New file.
45728         * modules/uninorm/filter: New file.
45729
45730 2009-02-21  Bruno Haible  <bruno@clisp.org>
45731
45732         Tests for module 'uninorm/nfkc'.
45733         * tests/uninorm/test-nfkc.c: New file.
45734         * tests/uninorm/test-u8-nfkc.c: New file.
45735         * tests/uninorm/test-u16-nfkc.c: New file.
45736         * tests/uninorm/test-u32-nfkc.c: New file.
45737         * tests/uninorm/test-u32-nfkc-big.sh: New file.
45738         * tests/uninorm/test-u32-nfkc-big.c: New file.
45739         * modules/uninorm/nfkc-tests: New file.
45740
45741         New module 'uninorm/nfkc'.
45742         * lib/uninorm/nfkc.c: New file.
45743         * modules/uninorm/nfkc: New file.
45744
45745         Tests for module 'uninorm/nfkd'.
45746         * tests/uninorm/test-nfkd.c: New file.
45747         * tests/uninorm/test-u8-nfkd.c: New file.
45748         * tests/uninorm/test-u16-nfkd.c: New file.
45749         * tests/uninorm/test-u32-nfkd.c: New file.
45750         * tests/uninorm/test-u32-nfkd-big.sh: New file.
45751         * tests/uninorm/test-u32-nfkd-big.c: New file.
45752         * modules/uninorm/nfkd-tests: New file.
45753
45754         New module 'uninorm/nfkd'.
45755         * lib/uninorm/nfkd.c: New file.
45756         * modules/uninorm/nfkd: New file.
45757
45758         Tests for module 'uninorm/nfc'.
45759         * tests/uninorm/test-nfc.c: New file.
45760         * tests/uninorm/test-u8-nfc.c: New file.
45761         * tests/uninorm/test-u16-nfc.c: New file.
45762         * tests/uninorm/test-u32-nfc.c: New file.
45763         * tests/uninorm/test-u32-nfc-big.sh: New file.
45764         * tests/uninorm/test-u32-nfc-big.c: New file.
45765         * modules/uninorm/nfc-tests: New file.
45766
45767         New module 'uninorm/nfc'.
45768         * lib/uninorm/nfc.c: New file.
45769         * modules/uninorm/nfc: New file.
45770
45771         Tests for module 'uninorm/nfd'.
45772         * tests/uninorm/test-nfd.c: New file.
45773         * tests/uninorm/test-u8-nfd.c: New file.
45774         * tests/uninorm/test-u16-nfd.c: New file.
45775         * tests/uninorm/test-u32-nfd.c: New file.
45776         * tests/uninorm/test-u32-nfd-big.sh: New file.
45777         * tests/uninorm/test-u32-nfd-big.c: New file.
45778         * tests/uninorm/test-u32-normalize-big.h: New file.
45779         * tests/uninorm/test-u32-normalize-big.c: New file.
45780         * tests/uninorm/NormalizationTest.txt: New file, created from
45781         Unicode 5.1.0 NormalizationTest.txt.
45782         * modules/uninorm/nfd-tests: New file.
45783
45784         New module 'uninorm/nfd'.
45785         * lib/uninorm/nfd.c: New file.
45786         * modules/uninorm/nfd: New file.
45787
45788         New module 'uninorm/u32-normalize'.
45789         * lib/uninorm/u32-normalize.c: New file.
45790         * modules/uninorm/u32-normalize: New file.
45791
45792         New module 'uninorm/u16-normalize'.
45793         * lib/uninorm/u16-normalize.c: New file.
45794         * modules/uninorm/u16-normalize: New file.
45795
45796         New module 'uninorm/u8-normalize'.
45797         * lib/uninorm/u8-normalize.c: New file.
45798         * lib/uninorm/normalize-internal.h: New file.
45799         * lib/uninorm/u-normalize-internal.h: New file.
45800         * modules/uninorm/u8-normalize: New file.
45801
45802         New module 'uninorm/decompose-internal'.
45803         * lib/uninorm/decompose-internal.c: New file.
45804         * modules/uninorm/decompose-internal: New file.
45805
45806         Tests for module 'uninorm/composition'.
45807         * tests/uninorm/test-composition.c: New file.
45808         * modules/uninorm/composition-tests: New file.
45809
45810         New module 'uninorm/composition'.
45811         * lib/uninorm/composition.c: New file.
45812         * lib/uninorm/composition-table.gperf: New file, generated by
45813         gen-uni-tables.
45814         * modules/uninorm/composition: New file.
45815
45816         Tests for module 'uninorm/compat-decomposition'.
45817         * tests/uninorm/test-compat-decomposition.c: New file.
45818         * modules/uninorm/compat-decomposition-tests: New file.
45819
45820         New module 'uninorm/compat-decomposition'.
45821         * lib/uninorm/decompose-internal.h: New file.
45822         * lib/uninorm/compat-decomposition.c: New file.
45823         * modules/uninorm/compat-decomposition: New file.
45824
45825         Tests for module 'uninorm/canonical-decomposition'.
45826         * tests/uninorm/test-canonical-decomposition.c: New file.
45827         * modules/uninorm/canonical-decomposition-tests: New file.
45828
45829         New module 'uninorm/canonical-decomposition'.
45830         * lib/uninorm/canonical-decomposition.c: New file.
45831         * modules/uninorm/canonical-decomposition: New file.
45832
45833         Tests for module 'uninorm/decomposition'.
45834         * tests/uninorm/test-decomposition.c: New file.
45835         * modules/uninorm/decomposition-tests: New file.
45836
45837         New module 'uninorm/decomposition'.
45838         * lib/uninorm/decomposition.c: New file.
45839         * modules/uninorm/decomposition: New file.
45840
45841         New module 'uninorm/decomposition-table'.
45842         * lib/uninorm/decomposition-table.h: New file.
45843         * lib/uninorm/decomposition-table.c: New file.
45844         * lib/uninorm/decomposition-table1.h: New file, generated by
45845         gen-uni-tables.
45846         * lib/uninorm/decomposition-table2.h: New file, generated by
45847         gen-uni-tables.
45848         * modules/uninorm/decomposition-table: New file.
45849
45850         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
45851         (UC_DECOMP_*): New enumeration items.
45852         (get_decomposition): New function.
45853         (struct decomp_table): New type.
45854         (output_decomposition, output_decomposition_tables): New functions.
45855         (unicode_composition_exclusions): New variable.
45856         (fill_composition_exclusions, debug_output_composition_tables): New
45857         functions.
45858         (main): Accept one more argument. Invoke fill_composition_exclusions.
45859         Output decomposition and composition tables.
45860
45861         New module 'uninorm/base'.
45862         * lib/uninorm.h: New file.
45863         * lib/unictype.h: Update comment.
45864         * modules/uninorm/base: New file.
45865
45866 2009-02-21  David Lutterkort  <lutter@redhat.com>
45867
45868         Tests for module 'safe-alloc'.
45869         * tests/test-safe-alloc.c: New file.
45870         * modules/safe-alloc-tests: New file.
45871
45872         New module 'safe-alloc'.
45873         * lib/safe-alloc.h: New file.
45874         * lib/safe-alloc.c: New file.
45875         * m4/safe-alloc.m4: New file.
45876         * modules/safe-alloc: New file.
45877         * doc/safe-alloc.texi: New file.
45878         * doc/gnulib.texi: Include it.
45879         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
45880         safe-alloc.
45881
45882 2009-02-18  Bruno Haible  <bruno@clisp.org>
45883
45884         Fix link error on non-glibc systems.
45885         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
45886         variable.
45887         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45888
45889 2009-02-18  Jim Meyering  <meyering@redhat.com>
45890
45891         fts: avoid used-uninitialized error due to recent change
45892         * lib/fts.c (fts_read): Guard uses of the new member,
45893         parent->fts_n_dirs_remaining, since it's not relevant for
45894         the parent of a directory specified on the command-line.
45895
45896 2009-02-17  James Youngman  <jay@gnu.org>
45897             Bruno Haible  <bruno@clisp.org>
45898
45899         * m4/include_next.m4: Reformulate comment.
45900
45901 2009-02-16  Jim Meyering  <meyering@redhat.com>
45902
45903         fts: add #if guards so that the fts_lgpl module still builds
45904         * lib/fts.c: Guard just-added hash-table-using parts with
45905         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
45906         Reported by Simon Josefsson.
45907
45908 2009-02-15  Bruno Haible  <bruno@clisp.org>
45909
45910         * modules/array-mergesort-tests: New file.
45911         * tests/test-array-mergesort.c: New file.
45912
45913         New module 'array-mergesort'.
45914         * modules/array-mergesort: New file.
45915         * lib/array-mergesort.h: New file.
45916
45917 2009-02-15  Bruno Haible  <bruno@clisp.org>
45918
45919         Fix 2009-02-07 commit.
45920         * lib/gen-uni-tables.c (output_predicate, output_category,
45921         output_combclass, output_bidi_category, output_decimal_digit,
45922         output_digit, output_numeric, output_mirror, output_scripts,
45923         output_ident_category, output_simple_mapping): Fix format directives.
45924         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
45925
45926 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
45927
45928         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
45929         fixes are available from IBM.
45930
45931 2009-02-13  Jim Meyering  <meyering@redhat.com>
45932
45933         fts: arrange not to stat non-directories in more cases
45934         This makes GNU find (when it doesn't need to stat each file)
45935         *much* more efficient at traversing reiserfs file systems.
45936         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
45937         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
45938         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
45939         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
45940         (leaf_optimization_applies): New function.
45941         (LCO_hash, LCO_compare): New helper functions.
45942         (link_count_optimize_ok): New function.
45943         (fts_stat): Initialize new member (if dir).
45944         (fts_read): Decrement parent's fts_n_dirs_remaining count if
45945         we've just stat'ed a directory.  Skip the stat call when possible.
45946         ---
45947         Note this AFS-related exchange:
45948         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
45949         and note find's pioctl call in find/fstype.c.
45950         But that is necessary only if you want to enable the
45951         optimization for AFS, and for now, I don't.
45952
45953         fts: move a function definition "up" (no semantic change)
45954         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
45955         "up" to precede upcoming use of a related function.
45956
45957 2009-02-11  Jim Meyering  <meyering@redhat.com>
45958
45959         fts: correct internal computation of nlinks (optimization-related)
45960         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
45961         whether the current entry is a directory, so don't test it.
45962
45963 2009-02-10  Bruno Haible  <bruno@clisp.org>
45964
45965         Tests for module 'uniwbrk/ulc-wordbreaks'.
45966         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
45967         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
45968         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
45969
45970         Tests for module 'uniwbrk/u32-wordbreaks'.
45971         * modules/uniwbrk/u32-wordbreaks-tests: New file.
45972         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
45973
45974         Tests for module 'uniwbrk/u16-wordbreaks'.
45975         * modules/uniwbrk/u16-wordbreaks-tests: New file.
45976         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
45977
45978         Tests for module 'uniwbrk/u8-wordbreaks'.
45979         * modules/uniwbrk/u8-wordbreaks-tests: New file.
45980         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
45981
45982 2009-02-10  Bruno Haible  <bruno@clisp.org>
45983
45984         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
45985         property.
45986         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
45987         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
45988         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
45989
45990 2009-02-10  Simon Josefsson  <simon@josefsson.org>
45991
45992         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
45993         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
45994
45995 2009-02-10  Bruno Haible  <bruno@clisp.org>
45996
45997         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
45998         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
45999         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
46000         * lib/unilbrk/u8-possible-linebreaks.c: Update.
46001         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
46002         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
46003
46004 2009-02-09  Simon Josefsson  <simon@josefsson.org>
46005
46006         * lib/sockets.h (gl_fd_to_handle): New function.
46007
46008         * tests/test-sockets.c: Call gl_fd_to_handle.
46009
46010 2009-02-09  Bruno Haible  <bruno@clisp.org>
46011
46012         * doc/havelib.texi: Document the conventions on bi-arch systems.
46013
46014 2009-02-08  Bruno Haible  <bruno@clisp.org>
46015
46016         Document the AC_LIB_LINKFLAGS macro.
46017         * doc/havelib.texi: New file, mostly written on 2005-05-24.
46018         * doc/gnulib.texi: Include it.
46019
46020 2009-02-08  Bruno Haible  <bruno@clisp.org>
46021
46022         Fix wrong order of sections, compared to TOC.
46023         * doc/gnulib.texi: Include relocatable-maint.texi after the
46024         "Regular expressions" node, not before.
46025
46026 2009-02-08  Bruno Haible  <bruno@clisp.org>
46027
46028         Tests for module 'unicase/totitle'.
46029         * modules/unicase/totitle-tests: New file.
46030
46031         Tests for module 'unicase/tolower'.
46032         * modules/unicase/tolower-tests: New file.
46033
46034         Tests for module 'unicase/toupper'.
46035         * modules/unicase/toupper-tests: New file.
46036         * tests/unicase/test-mapping-part1.h: New file.
46037         * tests/unicase/test-mapping-part2.h: New file.
46038
46039         New module 'unicase/totitle'.
46040         * modules/unicase/totitle: New file.
46041         * lib/unicase/totitle.c: New file.
46042
46043         New module 'unicase/tolower'.
46044         * modules/unicase/tolower: New file.
46045         * lib/unicase/tolower.c: New file.
46046
46047         New module 'unicase/toupper'.
46048         * modules/unicase/toupper: New file.
46049         * lib/unicase/toupper.c: New file.
46050         * lib/unicase/simple-mapping.h: New file.
46051
46052         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
46053         (mapping_table): New structure.
46054         (output_simple_mapping): New function.
46055         (main): Invoke output_simple_mapping_test and output_simple_mapping.
46056         * modules/gen-uni-tables (Description): Update.
46057         * lib/unicase/toupper.h: New file, automatically generated by
46058         gen-uni-tables.
46059         * lib/unicase/tolower.h: New file, automatically generated by
46060         gen-uni-tables.
46061         * lib/unicase/totitle.h: New file, automatically generated by
46062         gen-uni-tables.
46063         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
46064         gen-uni-tables.
46065         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
46066         gen-uni-tables.
46067         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
46068         gen-uni-tables.
46069
46070         New module 'unicase/base'.
46071         * modules/unicase/base: New file.
46072         * lib/unicase.h: New file.
46073
46074 2009-02-08  Bruno Haible  <bruno@clisp.org>
46075
46076         New module 'uniwbrk/ulc-wordbreaks'.
46077         * modules/uniwbrk/ulc-wordbreaks: New file.
46078         * lib/uniwbrk/ulc-wordbreaks.c: New file.
46079
46080         New module 'uniwbrk/u32-wordbreaks'.
46081         * modules/uniwbrk/u32-wordbreaks: New file.
46082         * lib/uniwbrk/u32-wordbreaks.c: New file.
46083
46084         New module 'uniwbrk/u16-wordbreaks'.
46085         * modules/uniwbrk/u16-wordbreaks: New file.
46086         * lib/uniwbrk/u16-wordbreaks.c: New file.
46087
46088         New module 'uniwbrk/u8-wordbreaks'.
46089         * modules/uniwbrk/u8-wordbreaks: New file.
46090         * lib/uniwbrk/u8-wordbreaks.c: New file.
46091         * lib/uniwbrk/u-wordbreaks.h: New file.
46092
46093         New module 'uniwbrk/table'.
46094         * modules/uniwbrk/table: New file.
46095         * lib/uniwbrk/wbrktable.h: New file.
46096         * lib/uniwbrk/wbrktable.c: New file.
46097
46098         New module 'uniwbrk/wordbreak-property'.
46099         * modules/uniwbrk/wordbreak-property: New file.
46100         * lib/uniwbrk/wordbreak-property.c: New file.
46101
46102         * lib/gen-uni-tables.c (WBP_*): New enum items.
46103         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
46104         (unicode_org_wbp): New variable.
46105         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
46106         New functions.
46107         (wbp_table): New structure.
46108         (output_wbp, output_wbrk_tables): New functions.
46109         (main): Accept additional argument. Invoke fill_org_wbp,
46110         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
46111         output_wbrk_tables.
46112         * modules/gen-uni-tables (Description): Update.
46113         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
46114         gen-uni-tables.
46115
46116         New module 'uniwbrk/base'.
46117         * modules/uniwbrk/base: New file.
46118         * lib/uniwbrk.h: New file.
46119
46120 2009-02-08  Bruno Haible  <bruno@clisp.org>
46121
46122         Update to Unicode 5.1.0.
46123         * lib/gen-uni-tables.c (is_property_alphabetic): Include
46124         U+2185..U+2188.
46125         (is_property_default_ignorable_code_point): Don't include characters
46126         of category Cc or Cs and not-a-characters.
46127         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
46128         U+0D79, U+109E, U+109F, U+A60C.
46129         * lib/unictype/bidi_of.h: Regenerated.
46130         * lib/unictype/blocks.h: Regenerated.
46131         * lib/unictype/categ_C.h: Regenerated.
46132         * lib/unictype/categ_Cf.h: Regenerated.
46133         * lib/unictype/categ_Cn.h: Regenerated.
46134         * lib/unictype/categ_L.h: Regenerated.
46135         * lib/unictype/categ_Ll.h: Regenerated.
46136         * lib/unictype/categ_Lm.h: Regenerated.
46137         * lib/unictype/categ_Lo.h: Regenerated.
46138         * lib/unictype/categ_Lu.h: Regenerated.
46139         * lib/unictype/categ_M.h: Regenerated.
46140         * lib/unictype/categ_Mc.h: Regenerated.
46141         * lib/unictype/categ_Me.h: Regenerated.
46142         * lib/unictype/categ_Mn.h: Regenerated.
46143         * lib/unictype/categ_N.h: Regenerated.
46144         * lib/unictype/categ_Nd.h: Regenerated.
46145         * lib/unictype/categ_Nl.h: Regenerated.
46146         * lib/unictype/categ_No.h: Regenerated.
46147         * lib/unictype/categ_P.h: Regenerated.
46148         * lib/unictype/categ_Pd.h: Regenerated.
46149         * lib/unictype/categ_Pe.h: Regenerated.
46150         * lib/unictype/categ_Pf.h: Regenerated.
46151         * lib/unictype/categ_Pi.h: Regenerated.
46152         * lib/unictype/categ_Po.h: Regenerated.
46153         * lib/unictype/categ_Ps.h: Regenerated.
46154         * lib/unictype/categ_S.h: Regenerated.
46155         * lib/unictype/categ_Sk.h: Regenerated.
46156         * lib/unictype/categ_Sm.h: Regenerated.
46157         * lib/unictype/categ_So.h: Regenerated.
46158         * lib/unictype/categ_of.h: Regenerated.
46159         * lib/unictype/combining.h: Regenerated.
46160         * lib/unictype/ctype_alnum.h: Regenerated.
46161         * lib/unictype/ctype_alpha.h: Regenerated.
46162         * lib/unictype/ctype_graph.h: Regenerated.
46163         * lib/unictype/ctype_lower.h: Regenerated.
46164         * lib/unictype/ctype_print.h: Regenerated.
46165         * lib/unictype/ctype_punct.h: Regenerated.
46166         * lib/unictype/ctype_upper.h: Regenerated.
46167         * lib/unictype/decdigit.h: Regenerated.
46168         * lib/unictype/digit.h: Regenerated.
46169         * lib/unictype/mirror.h: Regenerated.
46170         * lib/unictype/numeric.h: Regenerated.
46171         * lib/unictype/pr_alphabetic.h: Regenerated.
46172         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
46173         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
46174         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
46175         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
46176         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
46177         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
46178         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
46179         * lib/unictype/pr_combining.h: Regenerated.
46180         * lib/unictype/pr_dash.h: Regenerated.
46181         * lib/unictype/pr_decimal_digit.h: Regenerated.
46182         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
46183         * lib/unictype/pr_deprecated.h: Regenerated.
46184         * lib/unictype/pr_diacritic.h: Regenerated.
46185         * lib/unictype/pr_extender.h: Regenerated.
46186         * lib/unictype/pr_format_control.h: Regenerated.
46187         * lib/unictype/pr_grapheme_base.h: Regenerated.
46188         * lib/unictype/pr_grapheme_extend.h: Regenerated.
46189         * lib/unictype/pr_grapheme_link.h: Regenerated.
46190         * lib/unictype/pr_id_continue.h: Regenerated.
46191         * lib/unictype/pr_id_start.h: Regenerated.
46192         * lib/unictype/pr_ideographic.h: Regenerated.
46193         * lib/unictype/pr_ignorable_control.h: Regenerated.
46194         * lib/unictype/pr_lowercase.h: Regenerated.
46195         * lib/unictype/pr_math.h: Regenerated.
46196         * lib/unictype/pr_numeric.h: Regenerated.
46197         * lib/unictype/pr_other_alphabetic.h: Regenerated.
46198         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
46199         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
46200         * lib/unictype/pr_other_id_continue.h: Regenerated.
46201         * lib/unictype/pr_other_lowercase.h: Regenerated.
46202         * lib/unictype/pr_other_math.h: Regenerated.
46203         * lib/unictype/pr_punctuation.h: Regenerated.
46204         * lib/unictype/pr_sentence_terminal.h: Regenerated.
46205         * lib/unictype/pr_soft_dotted.h: Regenerated.
46206         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
46207         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
46208         * lib/unictype/pr_unified_ideograph.h: Regenerated.
46209         * lib/unictype/pr_uppercase.h: Regenerated.
46210         * lib/unictype/pr_xid_continue.h: Regenerated.
46211         * lib/unictype/pr_xid_start.h: Regenerated.
46212         * lib/unictype/pr_zero_width.h: Regenerated.
46213         * lib/unictype/scripts.h: Regenerated.
46214         * lib/unictype/scripts_byname.gperf: Regenerated.
46215         * lib/unictype/sy_java_ident.h: Regenerated.
46216         * lib/unilbrk/lbrkprop1.h: Regenerated.
46217         * lib/unilbrk/lbrkprop2.h: Regenerated.
46218         * tests/unictype/test-categ_C.c: Regenerated.
46219         * tests/unictype/test-categ_Cf.c: Regenerated.
46220         * tests/unictype/test-categ_Cn.c: Regenerated.
46221         * tests/unictype/test-categ_L.c: Regenerated.
46222         * tests/unictype/test-categ_Ll.c: Regenerated.
46223         * tests/unictype/test-categ_Lm.c: Regenerated.
46224         * tests/unictype/test-categ_Lo.c: Regenerated.
46225         * tests/unictype/test-categ_Lu.c: Regenerated.
46226         * tests/unictype/test-categ_M.c: Regenerated.
46227         * tests/unictype/test-categ_Mc.c: Regenerated.
46228         * tests/unictype/test-categ_Me.c: Regenerated.
46229         * tests/unictype/test-categ_Mn.c: Regenerated.
46230         * tests/unictype/test-categ_N.c: Regenerated.
46231         * tests/unictype/test-categ_Nd.c: Regenerated.
46232         * tests/unictype/test-categ_Nl.c: Regenerated.
46233         * tests/unictype/test-categ_No.c: Regenerated.
46234         * tests/unictype/test-categ_P.c: Regenerated.
46235         * tests/unictype/test-categ_Pd.c: Regenerated.
46236         * tests/unictype/test-categ_Pe.c: Regenerated.
46237         * tests/unictype/test-categ_Pf.c: Regenerated.
46238         * tests/unictype/test-categ_Pi.c: Regenerated.
46239         * tests/unictype/test-categ_Po.c: Regenerated.
46240         * tests/unictype/test-categ_Ps.c: Regenerated.
46241         * tests/unictype/test-categ_S.c: Regenerated.
46242         * tests/unictype/test-categ_Sk.c: Regenerated.
46243         * tests/unictype/test-categ_Sm.c: Regenerated.
46244         * tests/unictype/test-categ_So.c: Regenerated.
46245         * tests/unictype/test-ctype_alnum.c: Regenerated.
46246         * tests/unictype/test-ctype_alpha.c: Regenerated.
46247         * tests/unictype/test-ctype_graph.c: Regenerated.
46248         * tests/unictype/test-ctype_lower.c: Regenerated.
46249         * tests/unictype/test-ctype_print.c: Regenerated.
46250         * tests/unictype/test-ctype_punct.c: Regenerated.
46251         * tests/unictype/test-ctype_upper.c: Regenerated.
46252         * tests/unictype/test-decdigit.h: Regenerated.
46253         * tests/unictype/test-digit.h: Regenerated.
46254         * tests/unictype/test-numeric.h: Regenerated.
46255         * tests/unictype/test-pr_alphabetic.c: Regenerated.
46256         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
46257         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
46258         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
46259         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
46260         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
46261         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
46262         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
46263         * tests/unictype/test-pr_combining.c: Regenerated.
46264         * tests/unictype/test-pr_dash.c: Regenerated.
46265         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
46266         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
46267         * tests/unictype/test-pr_deprecated.c: Regenerated.
46268         * tests/unictype/test-pr_diacritic.c: Regenerated.
46269         * tests/unictype/test-pr_extender.c: Regenerated.
46270         * tests/unictype/test-pr_format_control.c: Regenerated.
46271         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
46272         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
46273         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
46274         * tests/unictype/test-pr_id_continue.c: Regenerated.
46275         * tests/unictype/test-pr_id_start.c: Regenerated.
46276         * tests/unictype/test-pr_ideographic.c: Regenerated.
46277         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
46278         * tests/unictype/test-pr_lowercase.c: Regenerated.
46279         * tests/unictype/test-pr_math.c: Regenerated.
46280         * tests/unictype/test-pr_numeric.c: Regenerated.
46281         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
46282         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
46283         Regenerated.
46284         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
46285         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
46286         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
46287         * tests/unictype/test-pr_other_math.c: Regenerated.
46288         * tests/unictype/test-pr_punctuation.c: Regenerated.
46289         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
46290         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
46291         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
46292         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
46293         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
46294         * tests/unictype/test-pr_uppercase.c: Regenerated.
46295         * tests/unictype/test-pr_xid_continue.c: Regenerated.
46296         * tests/unictype/test-pr_xid_start.c: Regenerated.
46297         * tests/unictype/test-pr_zero_width.c: Regenerated.
46298
46299         Update to Unicode 5.1.0.
46300         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
46301         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
46302         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
46303         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
46304         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
46305         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
46306         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
46307         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
46308         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
46309         (nonspacing_table_ind): Update.
46310         * tests/uniwidth/test-uc_width2.sh: Update expected result.
46311
46312         Update to Unicode 5.1.0.
46313         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
46314         code transform.
46315         * lib/uniname/uniname.c (unicode_character_name,
46316         unicode_name_character): Add the range 0x1Fxxx to the code transform.
46317         * lib/uniname/uninames.h: Regenerated.
46318         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
46319
46320 2009-02-07  Bruno Haible  <bruno@clisp.org>
46321
46322         Merge gen-ctype and gen-lbrk into a single program.
46323         * lib/gen-uni-tables.c: New file, incorporating
46324         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
46325         Add directory prefixes to the names of the generated files.
46326         * lib/unictype/gen-ctype.c: Remove file.
46327         * lib/unilbrk/gen-lbrk.c: Remove file.
46328         * modules/gen-uni-tables: New file.
46329         * modules/unictype/gen-ctype: Remove file.
46330         * modules/unilbrk/gen-lbrk: Remove file.
46331
46332 2009-02-07  Bruno Haible  <bruno@clisp.org>
46333
46334         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
46335
46336         New module 'unistr/u32-strcoll'.
46337         * modules/unistr/u32-strcoll: New file.
46338         * lib/unistr/u32-strcoll.c: New file.
46339
46340         New module 'unistr/u16-strcoll'.
46341         * modules/unistr/u16-strcoll: New file.
46342         * lib/unistr/u16-strcoll.c: New file.
46343
46344         New module 'unistr/u8-strcoll'.
46345         * modules/unistr/u8-strcoll: New file.
46346         * lib/unistr/u8-strcoll.c: New file.
46347         * lib/unistr/u-strcoll.h: New file.
46348
46349 2009-02-07  Bruno Haible  <bruno@clisp.org>
46350
46351         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
46352         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
46353         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
46354         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
46355         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
46356         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
46357
46358 2009-02-07  Bruno Haible  <bruno@clisp.org>
46359
46360         Make 64-bit clean.
46361         * lib/unictype/gen-ctype.c (output_predicate, output_category,
46362         output_combclass, output_bidi_category, output_decimal_digit,
46363         output_digit, output_numeric, output_mirror, output_scripts,
46364         output_ident_category): Use proper width specifier in format strings.
46365
46366 2009-02-07  Bruno Haible  <bruno@clisp.org>
46367
46368         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
46369         failure behaviour.
46370
46371 2009-02-07  Jim Meyering  <meyering@redhat.com>
46372
46373         regex: avoid compilation failure with upcoming gcc-4.4
46374         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
46375         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
46376         "... error: integer overflow in preprocessor expression".
46377
46378 2009-02-05  Ben Pfaff  <blp@gnu.org>
46379
46380         Fix link errors on Windows when close module is used.
46381         * modules/close: Add $(LIB_CLOSE) to Link section.
46382         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
46383         $(LIB_CLOSE) on Windows.
46384
46385 2009-02-05  Jim Meyering  <meyering@redhat.com>
46386
46387         still avoid unused-parameter warnings, but do it cleanly
46388         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
46389         (get_fs_usage): Cast to void instead.
46390         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
46391         (dev_from_mount_options, read_file_system_list): Cast to void.
46392         Prompted by Bruno Haible.
46393
46394 2009-02-04  Jim Meyering  <meyering@redhat.com>
46395
46396         fsusage.c: correct copyright year
46397         * lib/fsusage.c: Reflect year in which the change is pushed into
46398
46399         avoid misc. warnings
46400         * lib/fsusage.c (UNUSED_PARAM): Define.
46401         (get_fs_usage): Mark parameter "disk" as unused.
46402         * lib/getugroups.c (getgrent): Use "void" in prototype.
46403         * lib/mountlist.c: Mark unused parameters.
46404         (read_file_system_list): Declare a local with "const".
46405         * lib/nanosleep.c (getnow): Declare static.
46406         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
46407
46408         dirfd: set errno upon failure
46409         * lib/dirfd.c: Include <errno.h>.
46410         Set errno to ENOTSUP when returning -1.
46411         * modules/dirfd (Depends-on): Add errno.
46412         Suggested by John Kodis <kodis@comcast.net>.
46413
46414 2009-02-01  Bruno Haible  <bruno@clisp.org>
46415
46416         Don't assume sizeof (long) >= sizeof (void *).
46417         * lib/memcmp.c: Include stdint.h.
46418         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
46419         srcp2 to 'const byte *'.
46420         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
46421         types to uintptr_t.
46422         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
46423         * modules/memcmp (Depends-on): Add stdint.
46424         Reported by Ozkan Sezer <sezeroz@gmail.com>.
46425
46426 2009-01-30  Eric Blake  <ebb9@byu.net>
46427
46428         fix more require-before-expand issues
46429         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
46430         expand, AC_PROG_AWK.
46431         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
46432
46433 2009-01-28  Eric Blake  <ebb9@byu.net>
46434
46435         version-etc: use consistent URL formatting
46436         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
46437         Improve formatting.  Use fputs for string without %.
46438
46439 2009-01-28  Jim Meyering  <meyering@redhat.com>
46440
46441         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
46442         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
46443         "underquoted definition of NAME" from autoconf-2.59.
46444
46445 2009-01-28  Bruno Haible  <bruno@clisp.org>
46446
46447         * doc/gnulib.texi: Add "Obsolete modules" to index.
46448
46449 2009-01-28  Jim Meyering  <meyering@redhat.com>
46450
46451         useless-if-before-free: recognize more variants
46452         * build-aux/useless-if-before-free: Also recognize e.g.,
46453         if (NULL != p) free (p);
46454
46455 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
46456
46457         test-getaddrinfo: skip (don't fail) this test when there's no network
46458         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
46459         on the presumption that it means you lack network access.
46460
46461 2009-01-26  Jim Meyering  <meyering@redhat.com>
46462
46463         fflush: avoid warnings on modern systems
46464         * lib/fflush.c (rpl_fflush): Move declarations of locals,
46465         pos and result, into scopes where they're used.
46466
46467 2009-01-26  Eric Blake  <ebb9@byu.net>
46468
46469         Silence warning reintroduced by recent extensions patch.
46470         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
46471         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
46472         autoconf.
46473
46474         Backport improved autoconf semantics of AC_DEFUN_ONCE.
46475         * m4/00gnulib.m4: New file.
46476         * gnulib-tool (func_get_filelist): Always use it.
46477         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
46478         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
46479
46480 2009-01-25  Bruno Haible  <bruno@clisp.org>
46481
46482         Make test-quotearg work on MacOS X and AIX.
46483         * tests/test-quotearg.sh: New file.
46484         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
46485         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
46486         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
46487         include <libintl.h>.
46488         (fake_locale): Remove variable.
46489         (gettext, dgettext, dcgettext): Remove functions.
46490         (main): Instead of setting a fake locale, set a real locale. Call
46491         textdomain and bindtextdomain.
46492         * modules/quotearg-tests (Files): Add the new files.
46493         (Depends-on): Add gettext, setenv, unsetenv.
46494         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
46495         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
46496         Augment TESTS_ENVIRONMENT.
46497
46498 2009-01-25  Bruno Haible  <bruno@clisp.org>
46499
46500         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
46501         fr_FR.ISO8859-1 locale on MacOS X.
46502         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
46503         ja_JP.eucJP locale on MacOS X.
46504         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
46505         zh_CN.GB18030 locale on MacOS X.
46506
46507 2009-01-25  Bruno Haible  <bruno@clisp.org>
46508
46509         Avoid link errors on MacOS X 10.3.
46510         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
46511         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
46512
46513 2009-01-25  Bruno Haible  <bruno@clisp.org>
46514
46515         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
46516         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
46517         * modules/pipe (Files): Remove m4/posix_spawn.m4.
46518         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
46519         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
46520         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
46521         posix_spawnattr_init, posix_spawnattr_setsigmask,
46522         posix_spawnattr_setflags, posix_spawnattr_destroy.
46523
46524         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
46525         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
46526         * modules/execute (Files): Remove m4/posix_spawn.m4.
46527         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
46528         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
46529         posix_spawnattr_init, posix_spawnattr_setsigmask,
46530         posix_spawnattr_setflags, posix_spawnattr_destroy.
46531
46532 2009-01-25  Bruno Haible  <bruno@clisp.org>
46533
46534         * lib/glthread/threadlib.c: Include <stdlib.h>.
46535
46536 2009-01-25  Bruno Haible  <bruno@clisp.org>
46537
46538         * lib/glthread/threadlib.c (dummy): New declaration.
46539
46540 2009-01-25  Bruno Haible  <bruno@clisp.org>
46541
46542         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
46543         multibyte characters also for the GB18030 encoding. Don't crash when
46544         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
46545
46546 2009-01-25  Bruno Haible  <bruno@clisp.org>
46547
46548         Avoid redefining 'struct random_data' on OSF/1 5.1.
46549         * lib/stdlib.in.h: Include <random.h> if it exists.
46550         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
46551         HAVE_RANDOM_H. Include <random.h> when testing whether
46552         'struct random_data' exists.
46553         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
46554
46555 2009-01-25  Bruno Haible  <bruno@clisp.org>
46556
46557         Don't install charset.alias on MacOS X >= 10.3.
46558         * lib/localcharset.c (DARWIN7): New macro.
46559         (get_charset_aliases): Hardcode the result for Darwin7.
46560         * modules/localcharset (install-exec-local): Don't install
46561         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
46562
46563 2009-01-25  Bruno Haible  <bruno@clisp.org>
46564
46565         Don't install charset.alias on mingw and Cygwin.
46566         * modules/localcharset (install-exec-local): Don't install
46567         charset.alias on mingw and Cygwin, if the file does not yet exist.
46568         The result for these platforms is hardcoded in localcharset.c.
46569
46570 2009-01-25  Bruno Haible  <bruno@clisp.org>
46571
46572         Make it possible again to use AC_GNU_SOURCE together with gnulib.
46573         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
46574         before requiring AC_USE_SYSTEM_EXTENSIONS.
46575
46576 2009-01-25  Jim Meyering  <meyering@redhat.com>
46577
46578         c-strtod: avoid warnings
46579         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
46580         "assignment discards qualifiers from pointer target type" warnings.
46581
46582 2009-01-24  Bruno Haible  <bruno@clisp.org>
46583
46584         Add support for non-UTF-8 locales on MacOS X.
46585         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
46586         canonical encodings. For Darwin 7 and newer, don't map traditional
46587         encodings to UTF-8.
46588         Reported by Vincent Lefevre <vincent@vinc17.org>
46589         at <http://savannah.gnu.org/bugs/?25235>.
46590
46591 2009-01-24  Bruno Haible  <bruno@clisp.org>
46592
46593         * doc/gnulib.texi (Obsolete modules): New section.
46594         Reported by Mike Frysinger <vapier@gentoo.org>.
46595
46596 2009-01-24  Bruno Haible  <bruno@clisp.org>
46597
46598         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
46599         (%.dvi): New rule.
46600
46601 2009-01-24  Bruno Haible  <bruno@clisp.org>
46602
46603         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
46604         Reported by Eric Blake.
46605
46606 2009-01-24  Bruno Haible  <bruno@clisp.org>
46607
46608         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
46609         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
46610         Reported by Gary V. Vaughan <gary@gnu.org>.
46611
46612 2009-01-24  Bruno Haible  <bruno@clisp.org>
46613
46614         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
46615
46616 2009-01-23  Bruno Haible  <bruno@clisp.org>
46617
46618         Make c-strtod, c-strtold usable in libraries.
46619         * lib/c-strtod.c: Include string.h instead of xalloc.h.
46620         (C_STRTOD): Call strdup instead of xstrdup.
46621         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
46622         * modules/c-strtold (Depends-on): Likewise.
46623         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
46624         * NEWS: Mention the change.
46625         Reported by Michael Gold <mgold@ncf.ca>.
46626
46627 2009-01-23  Jim Meyering  <meyering@redhat.com>
46628
46629         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
46630         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
46631         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
46632
46633 2009-01-23  Simon Josefsson  <simon@josefsson.org>
46634
46635         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
46636         GNU CoreUtils.
46637         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
46638         * modules/version-etc (Description): Update.
46639
46640 2009-01-22  Bruno Haible  <bruno@clisp.org>
46641
46642         Cache the C locale object.
46643         * lib/c-strtod.c (c_locale_cache): New variable.
46644         (c_locale): New function.
46645         (C_STRTOD): Use it, and don't call freelocale.
46646         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
46647         Suggested by Paolo Bonzini.
46648
46649 2009-01-21  Bruno Haible  <bruno@clisp.org>
46650
46651         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
46652         conditions other than overflow.
46653
46654 2009-01-21  Bruno Haible  <bruno@clisp.org>
46655
46656         * lib/c-strtod.c: Include errno.h.
46657         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
46658         value from STRTOD_L and STRTOD.
46659
46660 2009-01-21  Bruno Haible  <bruno@clisp.org>
46661         and Jim Meyering  <meyering@redhat.com>
46662
46663         nanosleep: skip configure test (fail it) for apple universal builds
46664         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
46665         universal builds, assume that nanosleep does not work.
46666         * modules/nanosleep (Depends-on): Add multiarch.
46667
46668         mktime: skip configure test (fail it) for apple universal builds
46669         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
46670         universal builds, assume that mktime does not work.
46671         * modules/mktime (Depends-on): Add multiarch.
46672
46673 2009-01-21  Eric Blake  <ebb9@byu.net>
46674
46675         multiarch: avoid expand-before-require warning
46676         * modules/multiarch (configure.ac): Require, rather than expand,
46677         gl_MULTIARCH.
46678         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
46679         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
46680         enforce that all clients require it.  Partial reversion of
46681         2008-12-29 patch.
46682
46683         error: avoid expand-before-require warning
46684         * modules/errno (configure.ac): Require, rather than expand,
46685         gl_HEADER_ERRNO_H.
46686         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
46687         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
46688         enforce that all clients require it.
46689
46690         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
46691         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
46692         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
46693         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
46694
46695 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
46696
46697         Revert:
46698         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
46699
46700         regex: do not depend on obsolete modules.
46701         * modules/regex: Remove memcmp and memmove.
46702
46703 2009-01-20  Bruno Haible  <bruno@clisp.org>
46704
46705         Make the 'link' module link on Windows NT 4.
46706         * lib/link.c (_WIN32_WINNT): Don't define.
46707         (CreateHardLinkFuncType): New type.
46708         (CreateHardLinkFunc, initialized): New variables.
46709         (initialize): New function.
46710         (link): Invoke CreateHardLink indirectly through the function pointer.
46711
46712 2009-01-20  Bruno Haible  <bruno@clisp.org>
46713
46714         Fix compilation failure on mingw.
46715         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
46716
46717 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
46718
46719         * doc/c-strtod.texi: Mention a couple of restrictions.
46720
46721 2009-01-20  Jim Meyering  <meyering@redhat.com>
46722
46723         gettimeofday: move more declarations out of functions
46724         * lib/gettimeofday.c: Move extern declarations of tzset and
46725         gmtime out of containing functions.  Prompted by Bruno Haible.
46726
46727 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
46728
46729         regex: do not depend on obsolete modules.
46730         * modules/regex: Remove memcmp and memmove.
46731
46732 2009-01-19  Bruno Haible  <bruno@clisp.org>
46733
46734         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
46735         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
46736         gl_BIGENDIAN, not AC_C_BIGENDIAN.
46737         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
46738         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
46739
46740 2009-01-19  Bruno Haible  <bruno@clisp.org>
46741
46742         * tests/test-link.c: Include <errno.h>.
46743         (main): Exit with code 77 when a hard link cannot be created due to
46744         the file system.
46745         * tests/test-link.sh: Skip test when a hard link cannot be created due
46746         to the file system.
46747         Suggested by Eric Blake.
46748
46749 2009-01-19  Martin Lambers  <marlam@marlam.de>
46750
46751         * modules/link-tests: New file.
46752         * tests/test-link.sh: New file.
46753         * tests/test-link.c: New file.
46754
46755 2009-01-19  Eric Blake  <ebb9@byu.net>
46756
46757         doc: mention another function added in cygwin 1.7.0
46758         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
46759         Another new function in cygwin 1.7.
46760
46761 2009-01-19  Bruno Haible  <bruno@clisp.org>
46762
46763         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
46764         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
46765         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
46766         gl_BIGENDIAN, not AC_C_BIGENDIAN.
46767         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
46768         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
46769         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
46770         * m4/md4.m4 (gl_MD4): Likewise.
46771         * m4/md5.m4 (gl_MD5): Likewise.
46772         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
46773         * m4/sha1.m4 (gl_SHA1): Likewise.
46774         * m4/sha256.m4 (gl_SHA256): Likewise.
46775         * m4/sha512.m4 (gl_SHA512): Likewise.
46776
46777 2009-01-19  Bruno Haible  <bruno@clisp.org>
46778
46779         * modules/uniname/uniname-tests (Depends-on): Add progname.
46780         * tests/uniname/test-uninames.c: Include progname.h.
46781         (main): Call set_program_name.
46782
46783         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
46784         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
46785         (main): Call set_program_name.
46786
46787         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
46788         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
46789         (main): Call set_program_name.
46790
46791         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
46792         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
46793         (main): Call set_program_name.
46794
46795         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
46796         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
46797         (main): Call set_program_name.
46798
46799         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
46800         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
46801         (main): Call set_program_name.
46802
46803         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
46804         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
46805         (main): Call set_program_name.
46806
46807         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
46808         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
46809         (main): Call set_program_name.
46810
46811         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
46812         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
46813         (main): Call set_program_name.
46814
46815 2009-01-19  Eric Blake  <ebb9@byu.net>
46816
46817         test-unistd: test previous patch
46818         * tests/test-unistd.c: Test *_FILENO macros.
46819
46820         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
46821         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
46822         Guarantee a definition.
46823         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
46824         * modules/unistd-safer (Depends-on): Add dependency on unistd.
46825         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
46826         * lib/dup-safer.c (STDERR_FILENO): Likewise.
46827         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
46828         Likewise.
46829         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
46830         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
46831         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
46832         Likewise.
46833         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
46834         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
46835         (STDERR_FILENO): Likewise.
46836         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
46837         (STDERR_FILENO): Likewise.
46838         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
46839         (STDERR_FILENO): Likewise.
46840         Reported by Elbert Pol.
46841
46842 2009-01-19  Eric Blake  <ebb9@byu.net>
46843
46844         doc: mention more functions added in cygwin 1.7.0
46845         * doc/posix-functions/abort.texi (abort): Update wording related
46846         to cygwin.
46847         * doc/posix-functions/daylight.texi (daylight): Likewise.
46848         * doc/posix-functions/optarg.texi (optarg): Likewise.
46849         * doc/posix-functions/optarg.texi (opterr): Likewise.
46850         * doc/posix-functions/optarg.texi (optind): Likewise.
46851         * doc/posix-functions/optarg.texi (optopt): Likewise.
46852         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
46853         worked in 1.5.x, and was withdrawn in 1.7.
46854         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
46855         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
46856         cygwin versions.
46857         * doc/posix-functions/perror.texi (perror): Likewise.
46858         * doc/posix-functions/printf.texi (printf): Likewise.
46859         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
46860         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
46861         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
46862         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
46863         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
46864         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
46865         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
46866         Likewise.
46867         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
46868         Likewise.
46869         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
46870         this function.
46871         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
46872         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
46873         Likewise.
46874         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
46875         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
46876         * doc/posix-functions/confstr.texi (confstr): Likewise.
46877         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
46878         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
46879         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
46880         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
46881         * doc/posix-functions/fputws.texi (fputws): Likewise.
46882         * doc/posix-functions/fwide.texi (fwide): Likewise.
46883         * doc/posix-functions/getwc.texi (getwc): Likewise.
46884         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
46885         * doc/posix-functions/putwc.texi (putwc): Likewise.
46886         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
46887         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
46888         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
46889         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
46890         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
46891         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
46892         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
46893         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
46894         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
46895         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
46896         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
46897
46898 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
46899
46900         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
46901         * lib/ioctl.c: Include <sys/ioctl.h>.
46902
46903 2009-01-19  Simon Josefsson  <simon@josefsson.org>
46904
46905         * modules/getdate-tests (Depends-on): Add progname.
46906         * tests/test-getdate.c: Use progname module, to avoid link errors
46907         on non-glibc systems.
46908
46909 2009-01-18  Simon Josefsson  <simon@josefsson.org>
46910
46911         * modules/filenamecat-tests (Depends-on): Add progname.
46912         * modules/fstrcmp-tests (Depends-on): Likewise.
46913
46914         * tests/test-filenamecat.c: Use progname module, to avoid link
46915         errors on non-glibc systems.
46916         * tests/test-fstrcmp.c: Likewise.
46917
46918 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
46919
46920         gettimeofday: avoid warning: nested extern declaration of 'localtime'
46921         * lib/gettimeofday.c: Move extern declaration out of function.
46922
46923 2009-01-18  Bruno Haible  <bruno@clisp.org>
46924
46925         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
46926         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
46927         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
46928
46929 2009-01-18  Bruno Haible  <bruno@clisp.org>
46930
46931         * lib/strftime.c (MEMPCPY): Remove unused macro.
46932         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
46933
46934 2009-01-18  Martin Lambers  <marlam@marlam.de>
46935
46936         New module 'link'.
46937         * lib/unistd.in.h (link): New declaration.
46938         * lib/link.c: New file.
46939         * m4/link.m4: New file.
46940         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
46941         HAVE_LINK.
46942         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
46943         * modules/link: New file.
46944         * doc/posix-functions/link.texi: Mention the new module.
46945
46946 2009-01-18  Bruno Haible  <bruno@clisp.org>
46947
46948         * tests/test-avltree_list.c (main): Call set_program_name.
46949         * tests/test-avltree_oset.c (main): Likewise.
46950         * tests/test-obstack-printf.c: Include progname.h.
46951         (main): Call set_program_name.
46952         * tests/test-quotearg.c: Include progname.h.
46953         (main): Call set_program_name.
46954         * tests/test-xmemdup0.c: Include progname.h.
46955         (main): Call set_program_name.
46956
46957 2009-01-18  Bruno Haible  <bruno@clisp.org>
46958
46959         New module 'alphasort'.
46960         * lib/dirent.in.h (alphasort): New declaration.
46961         * lib/alphasort.c: New file, from glibc with modifications.
46962         * m4/alphasort.m4: New file.
46963         * modules/alphasort: New file.
46964         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
46965         HAVE_ALPHASORT.
46966         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
46967         HAVE_ALPHASORT.
46968         * doc/posix-functions/alphasort.texi: Mention the new module and the
46969         portability problems.
46970
46971 2009-01-18  Bruno Haible  <bruno@clisp.org>
46972
46973         New module 'scandir'.
46974         * lib/dirent.in.h (scandir): New declaration.
46975         * lib/scandir.c: New file, from glibc with modifications.
46976         * m4/scandir.m4: New file.
46977         * modules/scandir: New file.
46978         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
46979         HAVE_SCANDIR.
46980         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
46981         HAVE_SCANDIR.
46982         * doc/posix-functions/scandir.texi: Mention the new module and the
46983         portability problems.
46984
46985 2009-01-17  Bruno Haible  <bruno@clisp.org>
46986
46987         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
46988         Update documentation.
46989         (func_remove_suffix): Escape all dots in the suffix. Update
46990         documentation.
46991         (func_filter_filelist): Update documentation.
46992         Reported by Ralf Wildenhues.
46993
46994 2009-01-17  Bruno Haible  <bruno@clisp.org>
46995
46996         * modules/dprintf-posix-tests: New file.
46997         * tests/test-dprintf-posix.sh: New file.
46998         * tests/test-dprintf-posix.c: New file.
46999
47000         New modules 'dprintf', 'dprintf-posix'.
47001         * lib/stdio.in.h (dprintf): New declaration.
47002         * lib/dprintf.c: New file.
47003         * m4/dprintf.m4: New file.
47004         * m4/dprintf-posix.m4: New file.
47005         * modules/dprintf: New file.
47006         * modules/dprintf-posix: New file.
47007         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
47008         HAVE_DPRINTF, REPLACE_DPRINTF.
47009         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
47010         HAVE_DPRINTF, REPLACE_DPRINTF.
47011         * doc/posix-functions/dprintf.texi: Mention the new modules.
47012
47013 2009-01-17  Bruno Haible  <bruno@clisp.org>
47014
47015         * modules/vdprintf-posix-tests: New file.
47016         * tests/test-vdprintf-posix.sh: New file.
47017         * tests/test-vdprintf-posix.c: New file.
47018
47019         New modules 'vdprintf', 'vdprintf-posix'.
47020         * lib/stdio.in.h (vdprintf): New declaration.
47021         * lib/vdprintf.c: New file.
47022         * m4/vdprintf.m4: New file.
47023         * m4/vdprintf-posix.m4: New file.
47024         * modules/vdprintf: New file.
47025         * modules/vdprintf-posix: New file.
47026         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
47027         HAVE_VDPRINTF, REPLACE_VDPRINTF.
47028         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
47029         HAVE_VDPRINTF, REPLACE_VDPRINTF.
47030         * doc/posix-functions/vdprintf.texi: Mention the new modules.
47031
47032 2009-01-17  Bruno Haible  <bruno@clisp.org>
47033
47034         Fix replacement of fopen on mingw.
47035         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
47036         mingw.
47037
47038 2009-01-17  Bruno Haible  <bruno@clisp.org>
47039
47040         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
47041         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
47042
47043 2009-01-17  Bruno Haible  <bruno@clisp.org>
47044
47045         Avoid test-fflush2.sh failure on mingw.
47046         * tests/test-fflush2.c: Include binary-io.h.
47047         (main): Put standard input into binary mode.
47048         * modules/fflush-tests (Depends-on): Add binary-io.
47049
47050 2009-01-17  Bruno Haible  <bruno@clisp.org>
47051
47052         * lib/wchar.in.h: In another particular situation, include only the
47053         system's <wchar.h> file.
47054         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
47055         Reported by Albert Chin-A-Young <china@thewrittenword.com>
47056         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
47057
47058 2009-01-17  Bruno Haible  <bruno@clisp.org>
47059
47060         Support for stripping executables in --enable-relocatable.
47061         * build-aux/install-reloc: Expect one more argument, or an environment
47062         variable RELOC_STRIP_PROG. If set, strip the destination program and
47063         its wrapper.
47064         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
47065         RELOC_STRIP_PROG.
47066         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
47067         to set RELOCATABLE_STRIP.
47068         * NEWS: Mention the new Makefile requirement.
47069
47070 2009-01-17  Bruno Haible  <bruno@clisp.org>
47071
47072         * build-aux/install-reloc: Remove debugging information left over by
47073         C compiler on MacOS X.
47074
47075 2009-01-17  Bruno Haible  <bruno@clisp.org>
47076
47077         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
47078         * lib/progreloc.c (find_executable): Fix type of pointer passed to
47079         _NSGetExecutablePath.
47080
47081 2009-01-16  Jim Meyering  <meyering@redhat.com>
47082
47083         strerror: avoid warnings about discarding "const"
47084         * lib/strerror.c (rpl_strerror): Instead of returning a const
47085         string from each and every "case", use a variable, and add a single
47086         cast after the switch.
47087
47088 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
47089
47090         * lib/arpa_inet.in.h: Add extern "C" block for C++.
47091
47092 2009-01-16  Bruno Haible  <bruno@clisp.org>
47093
47094         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
47095         array initializer syntax that also works in C++ mode.
47096         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47097
47098 2009-01-16  Jim Meyering  <meyering@redhat.com>
47099
47100         poll: suppress a warning
47101         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
47102         to ignore "...unsigned expression < 0 is always false" warnings.
47103
47104 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
47105
47106         poll: remove declarations of unused variables
47107         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
47108         sockbuf and optlen.
47109
47110 2009-01-15  Bruno Haible  <bruno@clisp.org>
47111
47112         Make fflush-after-ungetc POSIX compliant on BSD systems.
47113         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
47114         (clear_ungetc_buffer): Implement also for other systems.
47115         (rpl_fflush): On glibc systems, invoke
47116         clear_ungetc_buffer_preserving_position. Otherwise, invoke
47117         clear_ungetc_buffer after fetching the stream's position, not before.
47118
47119 2009-01-15  Bruno Haible  <bruno@clisp.org>
47120
47121         Make fflush-after-ungetc POSIX compliant on glibc systems.
47122         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
47123         after ungetc.
47124         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
47125         (rpl_fflush): On glibc systems, simply call the system's fflush
47126         function after clearing the ungetc buffer.
47127         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
47128         Instead, lseek only to the end of file, then use the system's fseeko
47129         for the rest. On glibc systems, reset the EOF indicator bit.
47130
47131 2009-01-15  Jim Meyering  <meyering@redhat.com>
47132
47133         openmp.m4: revert quote-adding change, for portability to older autoconf
47134         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
47135         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
47136         Simon Josefsson noticed the problem when using autoconf-2.61.
47137
47138 2009-01-15  Bruno Haible  <bruno@clisp.org>
47139
47140         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
47141         * tests/test-fflush2.c (ASSERT): Always fail.
47142         (main): Add two tests for fflush() after ungetc(), taking into account
47143         the Austin Group's clarification.
47144         Suggested by Eric Blake.
47145
47146 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
47147
47148         mktime.m4: remove K&R-style function prototypes
47149         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
47150         for the Sun C++ compiler.
47151
47152 2009-01-14  Bruno Haible  <bruno@clisp.org>
47153
47154         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
47155         while including <wchar.h>.
47156         * lib/wchar.in.h: In two particular situations on HP-UX, include only
47157         the system's <wchar.h> file.
47158         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47159
47160 2009-01-14  Bruno Haible  <bruno@clisp.org>
47161
47162         * m4/csharp.m4: Don't mention gettext on the serial number line.
47163         * m4/csharpexec.m4: Likewise.
47164         * m4/eaccess.m4: Likewise.
47165         * m4/javaexec.m4: Likewise.
47166         * m4/sig_atomic_t.m4: Likewise.
47167         * m4/tmpdir.m4: Likewise.
47168         * m4/intldir.m4: Bump gettext version.
47169         * m4/lib-ld.m4: Likewise.
47170
47171 2009-01-14  Bruno Haible  <bruno@clisp.org>
47172
47173         * lib/progname.c (set_program_name): Add more comments.
47174         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
47175
47176 2009-01-14  Simon Josefsson  <simon@josefsson.org>
47177
47178         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
47179         were sys/stat.h does not define it.
47180
47181 2009-01-14  Jim Meyering  <meyering@redhat.com>
47182
47183         many *.m4 files: improve m4 quoting
47184         99% of this change was performed by running the following commands:
47185         git ls-files | grep '\.m4$' | xargs perl -pi \
47186           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
47187           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
47188           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
47189           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
47190         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
47191         The remainder were to add Copyright dates, increment serial numbers,
47192         undo some changes in comments, exclude m4/intl.m4, and add quotes
47193         around the "1" in ",1" where the unusual spacing prohibited the
47194         above regexps from doing the job.  For more details, see
47195         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
47196         * m4/acl.m4: Modified.
47197         * m4/afs.m4: Likewise.
47198         * m4/alloca.m4: Likewise.
47199         * m4/argp.m4: Likewise.
47200         * m4/argz.m4: Likewise.
47201         * m4/atexit.m4: Likewise.
47202         * m4/bison-i18n.m4: Likewise.
47203         * m4/bison.m4: Likewise.
47204         * m4/byteswap.m4: Likewise.
47205         * m4/c-stack.m4: Likewise.
47206         * m4/c-strtod.m4: Likewise.
47207         * m4/calloc.m4: Likewise.
47208         * m4/canonicalize-lgpl.m4: Likewise.
47209         * m4/chown.m4: Likewise.
47210         * m4/clock_time.m4: Likewise.
47211         * m4/codeset.m4: Likewise.
47212         * m4/copy-file.m4: Likewise.
47213         * m4/csharp.m4: Likewise.
47214         * m4/csharpcomp.m4: Likewise.
47215         * m4/csharpexec.m4: Likewise.
47216         * m4/d-ino.m4: Likewise.
47217         * m4/d-type.m4: Likewise.
47218         * m4/dirfd.m4: Likewise.
47219         * m4/double-slash-root.m4: Likewise.
47220         * m4/eaccess.m4: Likewise.
47221         * m4/eealloc.m4: Likewise.
47222         * m4/environ.m4: Likewise.
47223         * m4/errno_h.m4: Likewise.
47224         * m4/euidaccess.m4: Likewise.
47225         * m4/execute.m4: Likewise.
47226         * m4/fatal-signal.m4: Likewise.
47227         * m4/fchdir.m4: Likewise.
47228         * m4/fcntl_h.m4: Likewise.
47229         * m4/fileblocks.m4: Likewise.
47230         * m4/filenamecat.m4: Likewise.
47231         * m4/findprog.m4: Likewise.
47232         * m4/flexmember.m4: Likewise.
47233         * m4/fnmatch.m4: Likewise.
47234         * m4/fopen.m4: Likewise.
47235         * m4/fpending.m4: Likewise.
47236         * m4/fprintf-posix.m4: Likewise.
47237         * m4/free.m4: Likewise.
47238         * m4/frexp.m4: Likewise.
47239         * m4/frexpl.m4: Likewise.
47240         * m4/fsusage.m4: Likewise.
47241         * m4/ftruncate.m4: Likewise.
47242         * m4/gc-camellia.m4: Likewise.
47243         * m4/gc-random.m4: Likewise.
47244         * m4/gc.m4: Likewise.
47245         * m4/getaddrinfo.m4: Likewise.
47246         * m4/getcwd-abort-bug.m4: Likewise.
47247         * m4/getcwd-path-max.m4: Likewise.
47248         * m4/getdate.m4: Likewise.
47249         * m4/getdomainname.m4: Likewise.
47250         * m4/getgroups.m4: Likewise.
47251         * m4/gethostname.m4: Likewise.
47252         * m4/gethrxtime.m4: Likewise.
47253         * m4/getline.m4: Likewise.
47254         * m4/getloadavg.m4: Likewise.
47255         * m4/getndelim2.m4: Likewise.
47256         * m4/getpass.m4: Likewise.
47257         * m4/gettext.m4: Likewise.
47258         * m4/gettime.m4: Likewise.
47259         * m4/gettimeofday.m4: Likewise.
47260         * m4/gnulib-common.m4: Likewise.
47261         * m4/group-member.m4: Likewise.
47262         * m4/host-os.m4: Likewise.
47263         * m4/iconv.m4: Likewise.
47264         * m4/iconv_open.m4: Likewise.
47265         * m4/inet_ntop.m4: Likewise.
47266         * m4/inet_pton.m4: Likewise.
47267         * m4/inline.m4: Likewise.
47268         * m4/intldir.m4: Likewise.
47269         * m4/intlmacosx.m4: Likewise.
47270         * m4/intmax.m4: Likewise.
47271         * m4/intmax_t.m4: Likewise.
47272         * m4/inttypes.m4: Likewise.
47273         * m4/inttypes_h.m4: Likewise.
47274         * m4/inttypes-pri.m4: Likewise.
47275         * m4/isapipe.m4: Likewise.
47276         * m4/isnand.m4: Likewise.
47277         * m4/isnanf.m4: Likewise.
47278         * m4/isnanl.m4: Likewise.
47279         * m4/javacomp.m4: Likewise.
47280         * m4/javaexec.m4: Likewise.
47281         * m4/jm-winsz1.m4: Likewise.
47282         * m4/jm-winsz2.m4: Likewise.
47283         * m4/lchown.m4: Likewise.
47284         * m4/lcmessage.m4: Likewise.
47285         * m4/ldexpl.m4: Likewise.
47286         * m4/lib-ld.m4: Likewise.
47287         * m4/lib-link.m4: Likewise.
47288         * m4/libsigsegv.m4: Likewise.
47289         * m4/link-follow.m4: Likewise.
47290         * m4/localcharset.m4: Likewise.
47291         * m4/locale-fr.m4: Likewise.
47292         * m4/locale-ja.m4: Likewise.
47293         * m4/locale-tr.m4: Likewise.
47294         * m4/locale-zh.m4: Likewise.
47295         * m4/lock.m4: Likewise.
47296         * m4/longlong.m4: Likewise.
47297         * m4/ls-mntd-fs.m4: Likewise.
47298         * m4/lstat.m4: Likewise.
47299         * m4/malloc.m4: Likewise.
47300         * m4/mathl.m4: Likewise.
47301         * m4/mbrtowc.m4: Likewise.
47302         * m4/mbstate_t.m4: Likewise.
47303         * m4/mbswidth.m4: Likewise.
47304         * m4/memchr.m4: Likewise.
47305         * m4/memcmp.m4: Likewise.
47306         * m4/memcpy.m4: Likewise.
47307         * m4/memmem.m4: Likewise.
47308         * m4/memmove.m4: Likewise.
47309         * m4/mempcpy.m4: Likewise.
47310         * m4/memrchr.m4: Likewise.
47311         * m4/memset.m4: Likewise.
47312         * m4/minmax.m4: Likewise.
47313         * m4/mkdir-slash.m4: Likewise.
47314         * m4/mkdtemp.m4: Likewise.
47315         * m4/mktime.m4: Likewise.
47316         * m4/mmap-anon.m4: Likewise.
47317         * m4/mountlist.m4: Likewise.
47318         * m4/nanosleep.m4: Likewise.
47319         * m4/nls.m4: Likewise.
47320         * m4/nocrash.m4: Likewise.
47321         * m4/open.m4: Likewise.
47322         * m4/openat.m4: Likewise.
47323         * m4/openmp.m4: Likewise.
47324         * m4/pathmax.m4: Likewise.
47325         * m4/perl.m4: Likewise.
47326         * m4/physmem.m4: Likewise.
47327         * m4/pipe.m4: Likewise.
47328         * m4/po.m4: Likewise.
47329         * m4/poll.m4: Likewise.
47330         * m4/posixtm.m4: Likewise.
47331         * m4/posixver.m4: Likewise.
47332         * m4/printf-frexp.m4: Likewise.
47333         * m4/printf-frexpl.m4: Likewise.
47334         * m4/printf-posix.m4: Likewise.
47335         * m4/printf-posix-rpl.m4: Likewise.
47336         * m4/printf.m4: Likewise.
47337         * m4/progtest.m4: Likewise.
47338         * m4/putenv.m4: Likewise.
47339         * m4/readline.m4: Likewise.
47340         * m4/readlink.m4: Likewise.
47341         * m4/readutmp.m4: Likewise.
47342         * m4/realloc.m4: Likewise.
47343         * m4/regex.m4: Likewise.
47344         * m4/relocatable.m4: Likewise.
47345         * m4/relocatable-lib.m4: Likewise.
47346         * m4/rename-dest-slash.m4: Likewise.
47347         * m4/rename.m4: Likewise.
47348         * m4/rmdir-errno.m4: Likewise.
47349         * m4/rmdir.m4: Likewise.
47350         * m4/roundf.m4: Likewise.
47351         * m4/roundl.m4: Likewise.
47352         * m4/rpmatch.m4: Likewise.
47353         * m4/save-cwd.m4: Likewise.
47354         * m4/selinux-selinux-h.m4: Likewise.
47355         * m4/setenv.m4: Likewise.
47356         * m4/settime.m4: Likewise.
47357         * m4/sig2str.m4: Likewise.
47358         * m4/sig_atomic_t.m4: Likewise.
47359         * m4/signalblocking.m4: Likewise.
47360         * m4/signbit.m4: Likewise.
47361         * m4/sigpipe.m4: Likewise.
47362         * m4/sockets.m4: Likewise.
47363         * m4/sockpfaf.m4: Likewise.
47364         * m4/st_dm_mode.m4: Likewise.
47365         * m4/stat-time.m4: Likewise.
47366         * m4/stdbool.m4: Likewise.
47367         * m4/stdint.m4: Likewise.
47368         * m4/stdint_h.m4: Likewise.
47369         * m4/stpcpy.m4: Likewise.
47370         * m4/stpncpy.m4: Likewise.
47371         * m4/strcase.m4: Likewise.
47372         * m4/strchrnul.m4: Likewise.
47373         * m4/strcspn.m4: Likewise.
47374         * m4/strdup.m4: Likewise.
47375         * m4/strftime.m4: Likewise.
47376         * m4/strndup.m4: Likewise.
47377         * m4/strnlen.m4: Likewise.
47378         * m4/strpbrk.m4: Likewise.
47379         * m4/strptime.m4: Likewise.
47380         * m4/strsep.m4: Likewise.
47381         * m4/strtod.m4: Likewise.
47382         * m4/strtoimax.m4: Likewise.
47383         * m4/strtok_r.m4: Likewise.
47384         * m4/strtol.m4: Likewise.
47385         * m4/strtoll.m4: Likewise.
47386         * m4/strtoul.m4: Likewise.
47387         * m4/strtoull.m4: Likewise.
47388         * m4/strtoumax.m4: Likewise.
47389         * m4/strverscmp.m4: Likewise.
47390         * m4/threadlib.m4: Likewise.
47391         * m4/timegm.m4: Likewise.
47392         * m4/tm_gmtoff.m4: Likewise.
47393         * m4/tmpdir.m4: Likewise.
47394         * m4/tmpfile.m4: Likewise.
47395         * m4/tzset.m4: Likewise.
47396         * m4/uintmax_t.m4: Likewise.
47397         * m4/unlinkdir.m4: Likewise.
47398         * m4/unlocked-io.m4: Likewise.
47399         * m4/uptime.m4: Likewise.
47400         * m4/userspec.m4: Likewise.
47401         * m4/utimbuf.m4: Likewise.
47402         * m4/utime.m4: Likewise.
47403         * m4/utimes-null.m4: Likewise.
47404         * m4/utimes.m4: Likewise.
47405         * m4/vararrays.m4: Likewise.
47406         * m4/vasnprintf.m4: Likewise.
47407         * m4/vfprintf-posix.m4: Likewise.
47408         * m4/vprintf-posix.m4: Likewise.
47409         * m4/wait-process.m4: Likewise.
47410         * m4/wchar_t.m4: Likewise.
47411         * m4/wint_t.m4: Likewise.
47412         * m4/write-any-file.m4: Likewise.
47413         * m4/yield.m4: Likewise.
47414
47415 2009-01-13  Bruno Haible  <bruno@clisp.org>
47416
47417         Avoid test-copy-file.sh failures when ACL support insufficient.
47418         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
47419         TESTS_ENVIRONMENT.
47420         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
47421         Reported by Jim Meyering.
47422
47423 2009-01-13  Bruno Haible  <bruno@clisp.org>
47424
47425         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
47426         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
47427         * modules/unistdio/u8-printf-parse (Files): Likewise.
47428         * modules/unistdio/u32-printf-parse (Files): Likewise.
47429         * modules/unistdio/ulc-printf-parse (Files): Likewise.
47430
47431 2009-01-13  Simon Josefsson  <simon@josefsson.org>
47432
47433         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
47434         and m4/inttypes_h.m4 too.
47435
47436 2009-01-12  Eric Blake  <ebb9@byu.net>
47437
47438         tests: IRIX 6.2 cc can't compile -0.0 into .data
47439         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
47440         rather than at compile-time.
47441         * tests/test-floorl.c (minus_zero): Likewise.
47442         * tests/test-frexpl.c (minus_zero): Likewise.
47443         * tests/test-isnan.c (minus_zerol): Likewise.
47444         * tests/test-isnanl.h (minus_zero): Likewise.
47445         * tests/test-ldexpl.c (minus_zero): Likewise.
47446         * tests/test-roundl.c (minus_zero): Likewise.
47447         * tests/test-signbit.c (minus_zerol): Likewise.
47448         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
47449         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
47450         * tests/test-truncl.c (minus_zero): Likewise.
47451         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
47452         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
47453         Reported by Tom G. Christensen and Nelson H. F. Beebe.
47454
47455 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
47456
47457         regex: fix glibc bug 9697
47458         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
47459         handling.
47460
47461 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
47462
47463         regex: fix glibc bug 697
47464         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
47465         being NULL also if there are no backreferences.
47466
47467 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
47468
47469         regex: merge glibc changes
47470         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
47471         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
47472         re_string_skip_chars, re_string_reconstruct): Likewise.
47473         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
47474
47475 2009-01-07  Jim Meyering  <meyering@redhat.com>
47476
47477         poll: filter through cppi
47478         * lib/poll.c: Indent cpp directives to reflect nesting.
47479
47480 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
47481
47482         poll: don't return uninitialized
47483         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
47484
47485 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
47486
47487         avoid compile failure on AIX 6.1
47488         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
47489         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
47490
47491 2009-01-04  Jim Meyering  <meyering@redhat.com>
47492
47493         remove duplicate inclusion of <stdio.h>
47494         * tests/test-fprintf-posix.c: Likewise.
47495         * tests/test-printf-posix.c: Likewise.
47496         * tests/test-snprintf-posix.c: Likewise.
47497         * tests/test-sprintf-posix.c: Likewise.
47498         * tests/test-vasprintf-posix.c: Likewise.
47499         * tests/test-vfprintf-posix.c: Likewise.
47500         * tests/test-vprintf-posix.c: Likewise.
47501         * tests/test-vsnprintf-posix.c: Likewise.
47502         * tests/test-vsprintf-posix.c: Likewise.
47503
47504 2009-01-03  Jim Meyering  <meyering@redhat.com>
47505
47506         gnulib-tool: fix sed-based filtering
47507         * gnulib-tool (func_filter_filelist): Remove extra backslash
47508         in sed_fff_filter definition.
47509
47510 2009-01-02  Jim Meyering  <meyering@redhat.com>
47511
47512         strftime: avoid compilation failure on Solaris 2.6
47513         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
47514         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
47515         Don't #define mbrlen or mbsinit, since now they're guaranteed to
47516         be available.  Reported by Tom G. Christensen.  Details in
47517         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
47518
47519 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47520             Bruno Haible  <bruno@clisp.org>
47521
47522         Speed up gnulib-tool by doing more string processing through shell
47523         built-ins.
47524         * gnulib-tool (fast_func_append): New variable.
47525         (func_remove_prefix, func_remove_suffix): New functions.
47526         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
47527         (func_filter_filelist): New function.
47528         (func_get_dependencies): Use func_remove_suffix instead of sed.
47529         (func_get_automake_snippet): Use func_filter_filelist instead of a
47530         subshell and sed invocation.
47531
47532 2009-01-01  Bruno Haible  <bruno@clisp.org>
47533
47534         Fix a security bug.
47535         * gnulib-tool (func_import, import, update): Don't allow the characters
47536         '"', '$', '`', '\' in macro arguments that become part of commands that
47537         are evaluated.
47538
47539 2009-01-01  Bruno Haible  <bruno@clisp.org>
47540
47541         * gnulib-tool (func_reset_sigpipe): Add more comments.
47542
47543 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47544
47545         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
47546         func_emit_tests_Makefile_am, func_import): Abort loops early if we
47547         already know the answer.
47548
47549 2009-01-01  Jim Meyering  <meyering@redhat.com>
47550
47551         * lib/version-etc.c (version_etc_va): Update copyright year.
47552
47553 2008-12-30  Bruno Haible  <bruno@clisp.org>
47554
47555         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
47556         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
47557         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
47558
47559 2008-12-29  Eric Blake  <ebb9@byu.net>
47560
47561         multiarch: avoid autoconf AC_REQUIRE bug
47562         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
47563         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
47564         2.63 and older.
47565         Reported by Bruno Haible, and analyzed in
47566         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
47567
47568 2008-12-29  Bruno Haible  <bruno@clisp.org>
47569
47570         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
47571         files in subdirectories correctly.
47572         Reported by Ralf Wildenhues.
47573
47574 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47575
47576         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
47577         rather than 'join FILE -', for Solaris join.
47578
47579 2008-12-29  Bruno Haible  <bruno@clisp.org>
47580
47581         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
47582         quoting.
47583         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
47584         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
47585         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
47586         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
47587         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
47588         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
47589         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
47590         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
47591         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
47592         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
47593         * m4/nls.m4 (AM_NLS): Likewise.
47594         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
47595         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
47596         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
47597         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
47598         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
47599         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
47600         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
47601         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
47602         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
47603         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
47604         * m4/xsize.m4 (gl_XSIZE): Likewise.
47605         Suggested by Jim Meyering.
47606
47607 2008-11-17  Bruce Korb  <bkorb@gnu.org>
47608
47609         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
47610         * lib/parse-duration.c: use a switch instead of cascading if's.
47611
47612 2008-12-29  Eric Blake  <ebb9@byu.net>
47613
47614         wchar.h: supply WEOF on Irix 5.3
47615         * lib/wchar.in.h (wint_t): Also supply WEOF.
47616         * lib/wctype.in.h (wint_t): Likewise.
47617         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
47618         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
47619         Reported by Tom G. Christensen.
47620
47621 2008-12-26  Bruno Haible  <bruno@clisp.org>
47622
47623         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
47624         i486, i586, i686.
47625
47626 2008-12-26  Bruno Haible  <bruno@clisp.org>
47627
47628         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
47629
47630 2008-12-26  Bruno Haible  <bruno@clisp.org>
47631
47632         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
47633         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
47634         not __STDC_CONSTANT_MACROS.
47635         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
47636
47637 2008-12-25  Bruno Haible  <bruno@clisp.org>
47638
47639         Add support for universal builds to vasnprintf.
47640         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
47641         universal builds, guess no.
47642         * modules/vasnprintf-posix (Depends-on): Add multiarch.
47643         * modules/vasprintf-posix (Depends-on): Likewise.
47644         * modules/fprintf-posix (Depends-on): Likewise.
47645         * modules/vfprintf-posix (Depends-on): Likewise.
47646         * modules/snprintf-posix (Depends-on): Likewise.
47647         * modules/vsnprintf-posix (Depends-on): Likewise.
47648         * modules/sprintf-posix (Depends-on): Likewise.
47649         * modules/vsprintf-posix (Depends-on): Likewise.
47650         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
47651         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47652         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47653         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47654         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47655         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47656         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47657
47658         Add support for universal builds to <inttypes.h>.
47659         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
47660         _SCNu64_PREFIX): In Apple
47661         universal builds, define directly, using _LP64.
47662         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
47663         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
47664         * modules/inttypes (Depends-on): Add multiarch.
47665         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
47666
47667         Add support for universal builds to <stdint.h>.
47668         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
47669         universal builds, define directly, using _LP64.
47670         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
47671         Apple universal builds, don't test for the size and suffix of ptrdiff_t
47672         and size_t.
47673         * modules/stdint (Depends-on): Add multiarch.
47674         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
47675
47676         New module 'multiarch'.
47677         * modules/multiarch: New file.
47678         * m4/multiarch.m4: New file.
47679
47680 2008-12-25  Bruno Haible  <bruno@clisp.org>
47681
47682         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
47683
47684 2008-12-25  Bruno Haible  <bruno@clisp.org>
47685
47686         * modules/btowc (License): Relicense under LGPLv2+.
47687         * modules/mbsinit (License): Likewise.
47688         * modules/mbrtowc (License): Likewise.
47689         * modules/wcrtomb (License): Likewise.
47690         * modules/streq (License): Likewise.
47691         Reported by David Lutterkort <lutter@redhat.com>.
47692
47693 2008-12-23  Bruno Haible  <bruno@clisp.org>
47694
47695         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
47696
47697 2008-12-23  Bruno Haible  <bruno@clisp.org>
47698
47699         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
47700         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
47701         GETADDRINFO_LIB, not in LIBS.
47702         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
47703         * modules/canon-host (Link): Likewise.
47704         * NEWS: Mention the change.
47705         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
47706         GETADDRINFO_LIB.
47707
47708 2008-12-22  Bruno Haible  <bruno@clisp.org>
47709
47710         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
47711         * doc/posix-functions/iswalpha_l.texi: Likewise.
47712         * doc/posix-functions/iswblank_l.texi: Likewise.
47713         * doc/posix-functions/iswcntrl_l.texi: Likewise.
47714         * doc/posix-functions/iswctype_l.texi: Likewise.
47715         * doc/posix-functions/iswdigit_l.texi: Likewise.
47716         * doc/posix-functions/iswgraph_l.texi: Likewise.
47717         * doc/posix-functions/iswlower_l.texi: Likewise.
47718         * doc/posix-functions/iswprint_l.texi: Likewise.
47719         * doc/posix-functions/iswpunct_l.texi: Likewise.
47720         * doc/posix-functions/iswspace_l.texi: Likewise.
47721         * doc/posix-functions/iswupper_l.texi: Likewise.
47722         * doc/posix-functions/iswxdigit_l.texi: Likewise.
47723         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
47724         * doc/posix-functions/open_wmemstream.texi: Likewise.
47725         * doc/posix-functions/swscanf.texi: Likewise.
47726         * doc/posix-functions/towctrans_l.texi: Likewise.
47727         * doc/posix-functions/towlower.texi: Likewise.
47728         * doc/posix-functions/towlower_l.texi: Likewise.
47729         * doc/posix-functions/towupper.texi: Likewise.
47730         * doc/posix-functions/towupper_l.texi: Likewise.
47731         * doc/posix-functions/vfwprintf.texi: Likewise.
47732         * doc/posix-functions/vfwscanf.texi: Likewise.
47733         * doc/posix-functions/vswscanf.texi: Likewise.
47734         * doc/posix-functions/vwprintf.texi: Likewise.
47735         * doc/posix-functions/vwscanf.texi: Likewise.
47736         * doc/posix-functions/wcpcpy.texi: Likewise.
47737         * doc/posix-functions/wcpncpy.texi: Likewise.
47738         * doc/posix-functions/wcscasecmp.texi: Likewise.
47739         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
47740         * doc/posix-functions/wcscoll_l.texi: Likewise.
47741         * doc/posix-functions/wcsdup.texi: Likewise.
47742         * doc/posix-functions/wcsncasecmp.texi: Likewise.
47743         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
47744         * doc/posix-functions/wcsnlen.texi: Likewise.
47745         * doc/posix-functions/wcsnrtombs.texi: Likewise.
47746         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
47747         * doc/posix-functions/wctrans_l.texi: Likewise.
47748         * doc/posix-functions/wctype_l.texi: Likewise.
47749         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
47750         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
47751         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
47752         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
47753         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
47754         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
47755         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
47756         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
47757         * doc/glibc-functions/wcschrnul.texi: Likewise.
47758         * doc/glibc-functions/wcsftime_l.texi: Likewise.
47759         * doc/glibc-functions/wcstod_l.texi: Likewise.
47760         * doc/glibc-functions/wcstof_l.texi: Likewise.
47761         * doc/glibc-functions/wcstol_l.texi: Likewise.
47762         * doc/glibc-functions/wcstold_l.texi: Likewise.
47763         * doc/glibc-functions/wcstoll_l.texi: Likewise.
47764         * doc/glibc-functions/wcstoq.texi: Likewise.
47765         * doc/glibc-functions/wcstoul_l.texi: Likewise.
47766         * doc/glibc-functions/wcstoull_l.texi: Likewise.
47767         * doc/glibc-functions/wcstouq.texi: Likewise.
47768         * doc/glibc-functions/wmempcpy.texi: Likewise.
47769
47770 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
47771             Eric Blake  <ebb9@byu.net>
47772             Paolo Bonzini  <bonzini@gnu.org>
47773             Bruno Haible  <bruno@clisp.org>
47774
47775         Make c-stack work on Haiku.
47776         * lib/c-stack.c (SA_ONSTACK): Define fallback.
47777         (c_stack_action): Use SA_ONSTACK flag.
47778
47779 2008-12-22  Bruno Haible  <bruno@clisp.org>
47780
47781         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
47782
47783 2008-12-22  Bruno Haible  <bruno@clisp.org>
47784
47785         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
47786         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
47787         being overridden.
47788         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
47789         New macros.
47790         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
47791         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
47792         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
47793         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
47794
47795 2008-12-22  Bruno Haible  <bruno@clisp.org>
47796
47797         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
47798         from test code.
47799
47800 2008-12-22  Eric Blake  <ebb9@byu.net>
47801
47802         Avoid gcc warnings on cygwin.
47803         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
47804         Avoid unused variable.
47805         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
47806         Likewise.
47807
47808 2008-12-22  Bruno Haible  <bruno@clisp.org>
47809
47810         Remove HAVE_MBRTOWC conditionals.
47811         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
47812         (mbscasecmp): Assume mbrtowc function.
47813         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
47814         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
47815         * lib/mbschr.c: Include mbuiter.h unconditionally.
47816         (mbschr): Assume mbrtowc function.
47817         * lib/mbscspn.c: Include mbuiter.h unconditionally.
47818         (mbscspn): Assume mbrtowc function.
47819         * lib/mbslen.c: Include mbuiter.h unconditionally.
47820         (mbslen): Assume mbrtowc function.
47821         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
47822         (mbsncasecmp): Assume mbrtowc function.
47823         * lib/mbsnlen.c: Include mbiter.h unconditionally.
47824         (mbsnlen): Assume mbrtowc function.
47825         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
47826         (mbspbrk): Assume mbrtowc function.
47827         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
47828         (mbspcasecmp): Assume mbrtowc function.
47829         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
47830         (mbsrchr): Assume mbrtowc function.
47831         * lib/mbssep.c: Include mbuiter.h unconditionally.
47832         (mbssep): Assume mbrtowc function.
47833         * lib/mbsspn.c: Include mbuiter.h unconditionally.
47834         (mbsspn): Assume mbrtowc function.
47835         * lib/mbsstr.c: Include mbuiter.h unconditionally.
47836         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
47837         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
47838         (mbstok_r): Assume mbrtowc function.
47839         * lib/propername.c: Include mbuiter.h unconditionally.
47840         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
47841         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
47842         (trim2): Assume mbrtowc function.
47843         * lib/mbswidth.c (mbsinit): Remove fallback definition.
47844         (mbsnwidth): Assume mbrtowc function.
47845         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
47846         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
47847         fallback definitions.
47848         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
47849
47850 2008-12-22  Bruno Haible  <bruno@clisp.org>
47851
47852         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
47853
47854 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
47855
47856         * modules/regex: Request emulations for the mb*/wc* functions we need.
47857         * m4/regex.m4: Don't look for those functions here.
47858         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
47859
47860 2008-12-22  Bruno Haible  <bruno@clisp.org>
47861
47862         * modules/fnmatch (Depends-on): Remove duplicated dependency.
47863
47864 2008-12-21  Bruno Haible  <bruno@clisp.org>
47865
47866         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
47867         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
47868         (Include): Remove conditionalization.
47869         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
47870         (Include): Remove conditionalization.
47871         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
47872         (Include): Remove conditionalization.
47873         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
47874         * m4/mbfile.m4 (gl_MBFILE): Likewise.
47875         * NEWS: Mention the change.
47876         Reported by Alan Hourihane <alanh@fairlite.co.uk>
47877         via Sergey Poznyakoff <gray@gnu.org.ua>.
47878
47879 2008-12-21  Bruno Haible  <bruno@clisp.org>
47880
47881         * MODULES.html.sh (Extended multibyte and wide character utilities
47882         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
47883         wcrtomb, wcsrtombs.
47884         (Support for systems lacking POSIX:2008): Add accept, bind, close,
47885         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
47886         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
47887         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
47888
47889 2008-12-21  Bruno Haible  <bruno@clisp.org>
47890
47891         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
47892
47893 2008-12-21  Bruno Haible  <bruno@clisp.org>
47894
47895         * modules/wcsnrtombs-tests: New file.
47896         * tests/test-wcsnrtombs1.sh: New file.
47897         * tests/test-wcsnrtombs2.sh: New file.
47898         * tests/test-wcsnrtombs3.sh: New file.
47899         * tests/test-wcsnrtombs4.sh: New file.
47900         * tests/test-wcsnrtombs.c: New file.
47901
47902         New module 'wcsnrtombs'.
47903         * lib/wchar.in.h (wcsnrtombs): New declaration.
47904         * lib/wcsnrtombs.c: New file.
47905         * lib/wcsrtombs-state.c: New file.
47906         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
47907         (internal_state): Remove variable.
47908         * m4/wcsnrtombs.m4: New file.
47909         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
47910         compilation units.
47911         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
47912         HAVE_WCSNRTOMBS.
47913         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
47914         HAVE_WCSNRTOMBS.
47915         * modules/wcsnrtombs: New file.
47916         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
47917         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
47918
47919 2008-12-21  Bruno Haible  <bruno@clisp.org>
47920
47921         * modules/wcsrtombs-tests: New file.
47922         * tests/test-wcsrtombs1.sh: New file.
47923         * tests/test-wcsrtombs2.sh: New file.
47924         * tests/test-wcsrtombs3.sh: New file.
47925         * tests/test-wcsrtombs4.sh: New file.
47926         * tests/test-wcsrtombs.c: New file.
47927
47928         New module 'wcsrtombs'.
47929         * lib/wchar.in.h (wcsrtombs): New declaration.
47930         * lib/wcsrtombs.c: New file.
47931         * m4/wcsrtombs.m4: New file.
47932         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
47933         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
47934         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
47935         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
47936         * modules/wcsrtombs: New file.
47937         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
47938         bugs.
47939
47940 2008-12-21  Bruno Haible  <bruno@clisp.org>
47941
47942         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
47943         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
47944         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
47945         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
47946         if not correct.
47947         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
47948         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
47949         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
47950         m4/locale-zh.m4, m4/codeset.m4.
47951         * doc/posix-functions/wcrtomb.texi: Document the bug.
47952
47953 2008-12-21  Bruno Haible  <bruno@clisp.org>
47954
47955         Work around a btowc() bug on IRIX 6.5.
47956         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
47957         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
47958         REPLACE_WTOBC if not.
47959         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
47960         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
47961         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
47962
47963 2008-12-21  Bruno Haible  <bruno@clisp.org>
47964
47965         * modules/wcrtomb-tests: New file.
47966         * tests/test-wcrtomb.sh: New file.
47967         * tests/test-wcrtomb.c: New file.
47968
47969         New module 'wcrtomb'.
47970         * lib/wchar.in.h (wcrtomb): New declaration.
47971         * lib/wcrtomb.c: New file.
47972         * m4/wcrtomb.m4: New file.
47973         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
47974         HAVE_WCRTOMB.
47975         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
47976         HAVE_WCRTOMB.
47977         * modules/wcrtomb: New file.
47978         * doc/posix-functions/wcrtomb.texi: Mention the new module.
47979
47980 2008-12-21  Bruno Haible  <bruno@clisp.org>
47981
47982         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
47983         * modules/mbsrtowcs (Files): Likewise.
47984         * modules/wctob (Files): Likewise.
47985         * modules/c-strcase-tests (Files): Likewise.
47986         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
47987         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
47988         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
47989         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
47990         * modules/vasnprintf-posix-tests (Files): Likewise.
47991
47992 2008-12-21  William Pursell  <bill.pursell@gmail.com>
47993
47994         gitlog-to-changelog: pass all command-line arguments to git-log
47995         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
47996         it is sometimes convenient to filter the commits in various ways.
47997         gitlog-to-changelog only allows --since to specify a start date,
47998         but git-log itself supports many other filtering mechanisms.
47999         At the moment, I want to filter by branch name.  Rather than
48000         adding a --branch option to gitlog-to-changelog, it seems more
48001         flexible to simply pass all options directly to git-log and let
48002         git do the work.  Notice that this effectively makes --since a
48003         redundant option for gitlog-to-changelog, but removing it would
48004         require current usage to change since calls would then require
48005         an additional '--'.
48006
48007 2008-12-21  Bruno Haible  <bruno@clisp.org>
48008
48009         * modules/mbsnrtowcs-tests: New file.
48010         * tests/test-mbsnrtowcs1.sh: New file.
48011         * tests/test-mbsnrtowcs2.sh: New file.
48012         * tests/test-mbsnrtowcs3.sh: New file.
48013         * tests/test-mbsnrtowcs4.sh: New file.
48014         * tests/test-mbsnrtowcs.c: New file.
48015
48016         New module 'mbsnrtowcs'.
48017         * lib/wchar.in.h (mbsnrtowcs): New declaration.
48018         * lib/mbsnrtowcs.c: New file.
48019         * lib/mbsrtowcs-state.c: New file.
48020         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
48021         (internal_state): Remove variable.
48022         * m4/mbsnrtowcs.m4: New file.
48023         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
48024         compilation units.
48025         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
48026         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
48027         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
48028         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
48029         * modules/mbsnrtowcs: New file.
48030         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
48031         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
48032         portability problem.
48033
48034 2008-12-21  Bruno Haible  <bruno@clisp.org>
48035
48036         Work around mbsrtowcs bug.
48037         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
48038         (gl_FUNC_MBSRTOWCS): Invoke it.
48039         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48040         m4/locale-zh.m4.
48041         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
48042
48043 2008-12-21  Bruno Haible  <bruno@clisp.org>
48044
48045         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
48046
48047 2008-12-21  Bruno Haible  <bruno@clisp.org>
48048
48049         Update doc for AIX.
48050         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
48051         16-bit wchar_t type.
48052         * doc/posix-functions/btowc.texi: Likewise.
48053         * doc/posix-functions/fgetwc.texi: Likewise.
48054         * doc/posix-functions/fgetws.texi: Likewise.
48055         * doc/posix-functions/fputwc.texi: Likewise.
48056         * doc/posix-functions/fputws.texi: Likewise.
48057         * doc/posix-functions/fwide.texi: Likewise.
48058         * doc/posix-functions/fwprintf.texi: Likewise.
48059         * doc/posix-functions/fwscanf.texi: Likewise.
48060         * doc/posix-functions/getwchar.texi: Likewise.
48061         * doc/posix-functions/getwc.texi: Likewise.
48062         * doc/posix-functions/iswalnum.texi: Likewise.
48063         * doc/posix-functions/iswalpha.texi: Likewise.
48064         * doc/posix-functions/iswblank.texi: Likewise.
48065         * doc/posix-functions/iswcntrl.texi: Likewise.
48066         * doc/posix-functions/iswctype.texi: Likewise.
48067         * doc/posix-functions/iswdigit.texi: Likewise.
48068         * doc/posix-functions/iswgraph.texi: Likewise.
48069         * doc/posix-functions/iswlower.texi: Likewise.
48070         * doc/posix-functions/iswprint.texi: Likewise.
48071         * doc/posix-functions/iswpunct.texi: Likewise.
48072         * doc/posix-functions/iswspace.texi: Likewise.
48073         * doc/posix-functions/iswupper.texi: Likewise.
48074         * doc/posix-functions/iswxdigit.texi: Likewise.
48075         * doc/posix-functions/mbrtowc.texi: Likewise.
48076         * doc/posix-functions/mbsrtowcs.texi: Likewise.
48077         * doc/posix-functions/mbstowcs.texi: Likewise.
48078         * doc/posix-functions/mbtowc.texi: Likewise.
48079         * doc/posix-functions/putwchar.texi: Likewise.
48080         * doc/posix-functions/putwc.texi: Likewise.
48081         * doc/posix-functions/swprintf.texi: Likewise.
48082         * doc/posix-functions/tolower.texi: Likewise.
48083         * doc/posix-functions/toupper.texi: Likewise.
48084         * doc/posix-functions/towctrans.texi: Likewise.
48085         * doc/posix-functions/ungetwc.texi: Likewise.
48086         * doc/posix-functions/vswprintf.texi: Likewise.
48087         * doc/posix-functions/wcrtomb.texi: Likewise.
48088         * doc/posix-functions/wcscat.texi: Likewise.
48089         * doc/posix-functions/wcschr.texi: Likewise.
48090         * doc/posix-functions/wcscmp.texi: Likewise.
48091         * doc/posix-functions/wcscoll.texi: Likewise.
48092         * doc/posix-functions/wcscpy.texi: Likewise.
48093         * doc/posix-functions/wcscspn.texi: Likewise.
48094         * doc/posix-functions/wcsftime.texi: Likewise.
48095         * doc/posix-functions/wcslen.texi: Likewise.
48096         * doc/posix-functions/wcsncat.texi: Likewise.
48097         * doc/posix-functions/wcsncmp.texi: Likewise.
48098         * doc/posix-functions/wcsncpy.texi: Likewise.
48099         * doc/posix-functions/wcspbrk.texi: Likewise.
48100         * doc/posix-functions/wcsrchr.texi: Likewise.
48101         * doc/posix-functions/wcsrtombs.texi: Likewise.
48102         * doc/posix-functions/wcsspn.texi: Likewise.
48103         * doc/posix-functions/wcsstr.texi: Likewise.
48104         * doc/posix-functions/wcstod.texi: Likewise.
48105         * doc/posix-functions/wcstof.texi: Likewise.
48106         * doc/posix-functions/wcstoimax.texi: Likewise.
48107         * doc/posix-functions/wcstok.texi: Likewise.
48108         * doc/posix-functions/wcstold.texi: Likewise.
48109         * doc/posix-functions/wcstoll.texi: Likewise.
48110         * doc/posix-functions/wcstol.texi: Likewise.
48111         * doc/posix-functions/wcstombs.texi: Likewise.
48112         * doc/posix-functions/wcstoull.texi: Likewise.
48113         * doc/posix-functions/wcstoul.texi: Likewise.
48114         * doc/posix-functions/wcstoumax.texi: Likewise.
48115         * doc/posix-functions/wcswidth.texi: Likewise.
48116         * doc/posix-functions/wcsxfrm.texi: Likewise.
48117         * doc/posix-functions/wctob.texi: Likewise.
48118         * doc/posix-functions/wctomb.texi: Likewise.
48119         * doc/posix-functions/wctrans.texi: Likewise.
48120         * doc/posix-functions/wctype.texi: Likewise.
48121         * doc/posix-functions/wcwidth.texi: Likewise.
48122         * doc/posix-functions/wmemchr.texi: Likewise.
48123         * doc/posix-functions/wmemcmp.texi: Likewise.
48124         * doc/posix-functions/wmemcpy.texi: Likewise.
48125         * doc/posix-functions/wmemmove.texi: Likewise.
48126         * doc/posix-functions/wmemset.texi: Likewise.
48127         * doc/posix-functions/wprintf.texi: Likewise.
48128         * doc/posix-functions/wscanf.texi: Likewise.
48129
48130 2008-12-21  Bruno Haible  <bruno@clisp.org>
48131
48132         Update doc for HP-UX 11.11.
48133         * doc/posix-functions/btowc.texi: Clarify that the function is missing
48134         in HP-UX version 11.00, not in all versions of HP-UX 11.
48135         * doc/posix-functions/fwide.texi: Likewise.
48136         * doc/posix-functions/fwprintf.texi: Likewise.
48137         * doc/posix-functions/fwscanf.texi: Likewise.
48138         * doc/posix-functions/inet_ntop.texi: Likewise.
48139         * doc/posix-functions/inet_pton.texi: Likewise.
48140         * doc/posix-functions/mbrlen.texi: Likewise.
48141         * doc/posix-functions/mbrtowc.texi: Likewise.
48142         * doc/posix-functions/mbsinit.texi: Likewise.
48143         * doc/posix-functions/mbsrtowcs.texi: Likewise.
48144         * doc/posix-functions/swprintf.texi: Likewise.
48145         * doc/posix-functions/swscanf.texi: Likewise.
48146         * doc/posix-functions/towctrans.texi: Likewise.
48147         * doc/posix-functions/vfwprintf.texi: Likewise.
48148         * doc/posix-functions/vswprintf.texi: Likewise.
48149         * doc/posix-functions/vwprintf.texi: Likewise.
48150         * doc/posix-functions/wcrtomb.texi: Likewise.
48151         * doc/posix-functions/wcsrtombs.texi: Likewise.
48152         * doc/posix-functions/wcsstr.texi: Likewise.
48153         * doc/posix-functions/wctob.texi: Likewise.
48154         * doc/posix-functions/wctrans.texi: Likewise.
48155         * doc/posix-functions/wmemchr.texi: Likewise.
48156         * doc/posix-functions/wmemcmp.texi: Likewise.
48157         * doc/posix-functions/wmemcpy.texi: Likewise.
48158         * doc/posix-functions/wmemmove.texi: Likewise.
48159         * doc/posix-functions/wmemset.texi: Likewise.
48160         * doc/posix-functions/wprintf.texi: Likewise.
48161         * doc/posix-functions/wscanf.texi: Likewise.
48162
48163 2008-12-21  Bruno Haible  <bruno@clisp.org>
48164
48165         Work around a portability problem.
48166         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
48167         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
48168
48169 2008-12-20  Bruno Haible  <bruno@clisp.org>
48170
48171         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
48172         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
48173         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
48174         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
48175         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
48176
48177         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
48178         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
48179         set.
48180         (GNULIB_defined_mbstate_t): New macro.
48181         (mbsinit): Redefine if REPLACE_MBSINIT is set.
48182         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
48183         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
48184         reuses the system's mbrtowc function but works around the bugs.
48185         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
48186         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
48187         macros.
48188         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
48189         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
48190         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
48191         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
48192         REPLACE_MBSINIT if mbsinit needs to be overridden.
48193         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
48194         REPLACE_MBSINIT, REPLACE_MBRTOWC.
48195         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
48196         REPLACE_MBSINIT, REPLACE_MBRTOWC.
48197         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
48198         m4/locale-zh.m4.
48199         (Depends): Add mbsinit.
48200         * modules/mbsinit (Depends): Add mbrtowc.
48201         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
48202
48203 2008-12-20  Bruno Haible  <bruno@clisp.org>
48204
48205         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
48206         so that there are no conversion errors on AIX.
48207         * tests/test-mbsrtowcs.c (main): LIkewise.
48208
48209 2008-12-20  Bruno Haible  <bruno@clisp.org>
48210
48211         Work around wctob bug on Solaris <= 9.
48212         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
48213         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
48214         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
48215         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
48216         * modules/wctob (Files): Add m4/locale-fr.m4.
48217         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
48218
48219 2008-12-20  Bruno Haible  <bruno@clisp.org>
48220
48221         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
48222         /dev/null.
48223         * tests/test-select-in.sh: Likewise.
48224         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48225
48226 2008-12-20  Bruno Haible  <bruno@clisp.org>
48227
48228         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
48229         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
48230         Cygwin 1.5.x.
48231
48232 2008-12-20  Bruno Haible  <bruno@clisp.org>
48233
48234         Ensure mbstate_t is defined on HP-UX 11.11.
48235         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
48236         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
48237         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
48238         AC_USE_SYSTEM_EXTENSIONS.
48239         * modules/fnmatch (Depends-on): Add extensions.
48240         * modules/mbrlen (Depends-on): Likewise.
48241         * modules/mbrtowc (Depends-on): Likewise.
48242         * modules/mbsinit (Depends-on): Likewise.
48243         * modules/mbsrtowcs (Depends-on): Likewise.
48244         * modules/mbswidth (Depends-on): Likewise.
48245         * modules/quotearg (Depends-on): Likewise.
48246         * modules/strftime (Depends-on): Likewise.
48247
48248 2008-12-20  Bruno Haible  <bruno@clisp.org>
48249
48250         Ensure wctob is declared on IRIX 6.5.
48251         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
48252         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
48253         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
48254         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
48255         of HAVE_WCTOB.
48256         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
48257         HAVE_WCTOB.
48258         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
48259
48260 2008-12-19  Bruno Haible  <bruno@clisp.org>
48261
48262         * modules/mbsrtowcs-tests: New file.
48263         * tests/test-mbsrtowcs1.sh: New file.
48264         * tests/test-mbsrtowcs2.sh: New file.
48265         * tests/test-mbsrtowcs3.sh: New file.
48266         * tests/test-mbsrtowcs4.sh: New file.
48267         * tests/test-mbsrtowcs.c: New file.
48268
48269         New module 'mbsrtowcs'.
48270         * lib/wchar.in.h (mbsrtowcs): New declaration.
48271         * lib/mbsrtowcs.c: New file.
48272         * m4/mbsrtowcs.m4: New file.
48273         * modules/mbsrtowcs: New file.
48274         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
48275         HAVE_MBSRTOWCS.
48276         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
48277         HAVE_MBSRTOWCS.
48278         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
48279
48280 2008-12-19  Bruno Haible  <bruno@clisp.org>
48281
48282         New module 'mbrlen'.
48283         * lib/wchar.in.h (mbrlen): New declaration.
48284         * lib/mbrlen.c: New file.
48285         * m4/mbrlen.m4: New file.
48286         * modules/mbrlen: New file.
48287         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
48288         HAVE_MBRLEN.
48289         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
48290         HAVE_MBRLEN.
48291         * doc/posix-functions/mbrlen.texi: Document the new module.
48292
48293 2008-12-19  Bruno Haible  <bruno@clisp.org>
48294
48295         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
48296         * modules/mbrtowc (Depends-on): Add verify.
48297         Suggested by Paul Eggert.
48298
48299 2008-12-18  Bruno Haible  <bruno@clisp.org>
48300
48301         * modules/mbsinit-tests: New file.
48302         * tests/test-mbsinit.sh: New file.
48303         * tests/test-mbsinit.c: New file.
48304
48305 2008-12-18  Bruno Haible  <bruno@clisp.org>
48306
48307         * modules/mbrtowc-tests: New file.
48308         * tests/test-mbrtowc1.sh: New file.
48309         * tests/test-mbrtowc2.sh: New file.
48310         * tests/test-mbrtowc3.sh: New file.
48311         * tests/test-mbrtowc4.sh: New file.
48312         * tests/test-mbrtowc.c: New file.
48313
48314         New module 'mbrtowc'.
48315         * lib/wchar.in.h (mbstate_t): Override when the system does not have
48316         mbsinit and mbrtowc.
48317         (mbrtowc): New declaration.
48318         * lib/mbrtowc.c: New file.
48319         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
48320         * modules/mbrtowc: New file.
48321         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
48322         HAVE_MBRTOWC.
48323         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
48324         HAVE_MBRTOWC.
48325         * doc/posix-functions/mbrtowc.texi: Document the new module.
48326
48327 2008-12-18  Bruno Haible  <bruno@clisp.org>
48328
48329         New module 'wctob'.
48330         * lib/wchar.in.h (wctob): New declaration.
48331         * lib/wctob.c: New file.
48332         * m4/wctob.m4: New file.
48333         * modules/wctob: New file.
48334         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
48335         HAVE_WCTOB.
48336         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
48337         * doc/posix-functions/wctob.texi: Document the new module.
48338
48339 2008-12-18  Bruno Haible  <bruno@clisp.org>
48340
48341         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
48342         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
48343
48344 2008-12-18  Simon Josefsson  <simon@josefsson.org>
48345
48346         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
48347         G. Christensen" <tgc@jupiterrise.com>.
48348
48349         * lib/flock.c: Need to include errno.h.  Reported by "Tom
48350         G. Christensen" <tgc@jupiterrise.com>.
48351
48352         * lib/flock.c: Need to include string.h.  Reported by "Tom
48353         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
48354         <ebb9@byu.net>.
48355
48356 2008-12-18  Bruno Haible  <bruno@clisp.org>
48357
48358         * m4/locale-ja.m4: New file, from GNU gettext.
48359
48360 2008-12-17  Bruno Haible  <bruno@clisp.org>
48361
48362         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
48363         Suggested by Eric Blake.
48364
48365 2008-12-17  Bruno Haible  <bruno@clisp.org>
48366
48367         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
48368
48369 2008-12-17  Bruno Haible  <bruno@clisp.org>
48370
48371         * lib/mbsinit.c: Include verify.h. Verify an assumption.
48372         * modules/mbsinit (Depends-on): Add verify.
48373         Suggested by Paul Eggert.
48374
48375 2008-12-17  Bruno Haible  <bruno@clisp.org>
48376
48377         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
48378         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
48379         gl_FUNC_MBRTOWC.
48380         * m4/mbiter.m4 (gl_MBITER): LIkewise.
48381         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
48382         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
48383         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
48384         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
48385         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
48386         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
48387         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
48388         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
48389         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
48390         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
48391         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
48392         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
48393         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
48394         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
48395         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
48396         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
48397         * modules/trim (configure.ac): Likewise.
48398
48399 2008-12-17  Bruno Haible  <bruno@clisp.org>
48400
48401         * modules/btowc-tests: New file.
48402         * tests/test-btowc1.sh: New file.
48403         * tests/test-btowc2.sh: New file.
48404         * tests/test-btowc.c: New file.
48405
48406         New module 'btowc'.
48407         * lib/wchar.in.h (btowc): New declaration.
48408         * lib/btowc.c: New file.
48409         * m4/btowc.m4: New file.
48410         * modules/btowc: New file.
48411         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
48412         HAVE_BTOWC.
48413         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
48414         * doc/posix-functions/btowc.texi: Document the new module.
48415
48416 2008-12-17  Bruno Haible  <bruno@clisp.org>
48417
48418         New module 'mbsinit'.
48419         * lib/wchar.in.h (mbsinit): New declaration.
48420         * lib/mbsinit.c: New file.
48421         * m4/mbsinit.m4: New file.
48422         * modules/mbsinit: New file.
48423         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
48424         HAVE_MBSINIT.
48425         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
48426         HAVE_MBSINIT.
48427         * doc/posix-functions/mbsinit.texi: Document the new module.
48428
48429 2008-12-16  Bruno Haible  <bruno@clisp.org>
48430
48431         * lib/unistd.in.h: Add comment.
48432         * tests/test-environ.c: Don't include <stdlib.h>.
48433
48434 2008-12-16  Bruno Haible  <bruno@clisp.org>
48435
48436         * lib/parse-duration.h (parse_duration): Document return value
48437         convention.
48438         * lib/parse-duration.c: Include specification header first. Add
48439         comments.
48440         (_): Remove macro.
48441         (parse_year_month_day, parse_hour_minute_second): Move side effects
48442         outside of strchr call.
48443         (parse_non_iso8601): Move side effects outside of isspace call.
48444         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
48445         call.
48446
48447 2008-12-16  Bruno Haible  <bruno@clisp.org>
48448
48449         * tests/test-parse-duration.sh: Produce no output when the test
48450         succeeds.
48451
48452 2008-12-16  Bruno Haible  <bruno@clisp.org>
48453
48454         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
48455         expressions.
48456
48457 2008-12-15  Bruno Haible  <bruno@clisp.org>
48458
48459         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
48460         * doc/glibc-functions/flistxattr.texi: Likewise.
48461         * doc/glibc-functions/fopencookie.texi: Likewise.
48462         * doc/glibc-functions/fremovexattr.texi: Likewise.
48463         * doc/glibc-functions/fsetxattr.texi: Likewise.
48464         * doc/glibc-functions/getxattr.texi: Likewise.
48465         * doc/glibc-functions/lgetxattr.texi: Likewise.
48466         * doc/glibc-functions/listxattr.texi: Likewise.
48467         * doc/glibc-functions/llistxattr.texi: Likewise.
48468         * doc/glibc-functions/lremovexattr.texi: Likewise.
48469         * doc/glibc-functions/lsetxattr.texi: Likewise.
48470         * doc/glibc-functions/removexattr.texi: Likewise.
48471         * doc/glibc-functions/setxattr.texi: Likewise.
48472         * doc/posix-functions/open_memstream.texi: Likewise.
48473
48474 2008-12-15  Eric Blake  <ebb9@byu.net>
48475
48476         Update doc for cygwin 1.7.
48477         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
48478         functions.
48479         * doc/posix-functions/fchmodat.texi: Likewise.
48480         * doc/posix-functions/fchownat.texi: Likewise.
48481         * doc/posix-functions/fdopendir.texi: Likewise.
48482         * doc/posix-functions/fmemopen.texi: Likewise.
48483         * doc/posix-functions/freeaddrinfo.texi: Likewise.
48484         * doc/posix-functions/fstatat.texi: Likewise.
48485         * doc/posix-functions/futimens.texi: Likewise.
48486         * doc/posix-functions/gai_strerror.texi: Likewise.
48487         * doc/posix-functions/getaddrinfo.texi: Likewise.
48488         * doc/posix-functions/getnameinfo.texi: Likewise.
48489         * doc/posix-functions/if_freenameindex.texi: Likewise.
48490         * doc/posix-functions/if_indextoname.texi: Likewise.
48491         * doc/posix-functions/if_nameindex.texi: Likewise.
48492         * doc/posix-functions/if_nametoindex.texi: Likewise.
48493         * doc/posix-functions/insque.texi: Likewise.
48494         * doc/posix-functions/linkat.texi: Likewise.
48495         * doc/posix-functions/llrint.texi: Likewise.
48496         * doc/posix-functions/llrintf.texi: Likewise.
48497         * doc/posix-functions/llrintl.texi: Likewise.
48498         * doc/posix-functions/lockf.texi: Likewise.
48499         * doc/posix-functions/lrintl.texi: Likewise.
48500         * doc/posix-functions/mkdirat.texi: Likewise.
48501         * doc/posix-functions/mkfifoat.texi: Likewise.
48502         * doc/posix-functions/mknodat.texi: Likewise.
48503         * doc/posix-functions/mq_close.texi: Likewise.
48504         * doc/posix-functions/mq_getattr.texi: Likewise.
48505         * doc/posix-functions/mq_notify.texi: Likewise.
48506         * doc/posix-functions/mq_open.texi: Likewise.
48507         * doc/posix-functions/mq_receive.texi: Likewise.
48508         * doc/posix-functions/mq_send.texi: Likewise.
48509         * doc/posix-functions/mq_setattr.texi: Likewise.
48510         * doc/posix-functions/mq_timedreceive.texi: Likewise.
48511         * doc/posix-functions/mq_timedsend.texi: Likewise.
48512         * doc/posix-functions/mq_unlink.texi: Likewise.
48513         * doc/posix-functions/open_memstream.texi: Likewise.
48514         * doc/posix-functions/openat.texi: Likewise.
48515         * doc/posix-functions/posix_fadvise.texi: Likewise.
48516         * doc/posix-functions/posix_fallocate.texi: Likewise.
48517         * doc/posix-functions/posix_madvise.texi: Likewise.
48518         * doc/posix-functions/posix_memalign.texi: Likewise.
48519         * doc/posix-functions/posix_openpt.texi: Likewise.
48520         * doc/posix-functions/readlinkat.texi: Likewise.
48521         * doc/posix-functions/remque.texi: Likewise.
48522         * doc/posix-functions/renameat.texi: Likewise.
48523         * doc/posix-functions/rintl.texi: Likewise.
48524         * doc/posix-functions/sem_unlink.texi: Likewise.
48525         * doc/posix-functions/shm_open.texi: Likewise.
48526         * doc/posix-functions/shm_unlink.texi: Likewise.
48527         * doc/posix-functions/signgam.texi: Likewise.
48528         * doc/posix-functions/sigset.texi: Likewise.
48529         * doc/posix-functions/stpcpy.texi: Likewise.
48530         * doc/posix-functions/stpncpy.texi: Likewise.
48531         * doc/posix-functions/strerror.texi: Likewise.
48532         * doc/posix-functions/strtod.texi: Likewise.
48533         * doc/posix-functions/symlinkat.texi: Likewise.
48534         * doc/posix-functions/unlinkat.texi: Likewise.
48535         * doc/posix-functions/utimensat.texi: Likewise.
48536         * doc/glibc-functions/bindresvport.texi: Likewise.
48537         * doc/glibc-functions/dn_expand.texi: Likewise.
48538         * doc/glibc-functions/exp10.texi: Likewise.
48539         * doc/glibc-functions/exp10f.texi: Likewise.
48540         * doc/glibc-functions/fgetxattr.texi: Likewise.
48541         * doc/glibc-functions/flistxattr.texi: Likewise.
48542         * doc/glibc-functions/fopencookie.texi: Likewise.
48543         * doc/glibc-functions/freeifaddrs.texi: Likewise.
48544         * doc/glibc-functions/fremovexattr.texi: Likewise.
48545         * doc/glibc-functions/fsetxattr.texi: Likewise.
48546         * doc/glibc-functions/getifaddrs.texi: Likewise.
48547         * doc/glibc-functions/getxattr.texi: Likewise.
48548         * doc/glibc-functions/lgetxattr.texi: Likewise.
48549         * doc/glibc-functions/listxattr.texi: Likewise.
48550         * doc/glibc-functions/llistxattr.texi: Likewise.
48551         * doc/glibc-functions/lremovexattr.texi: Likewise.
48552         * doc/glibc-functions/lsetxattr.texi: Likewise.
48553         * doc/glibc-functions/pow10.texi: Likewise.
48554         * doc/glibc-functions/pow10f.texi: Likewise.
48555         * doc/glibc-functions/rcmd_af.texi: Likewise.
48556         * doc/glibc-functions/removexattr.texi: Likewise.
48557         * doc/glibc-functions/res_init.texi: Likewise.
48558         * doc/glibc-functions/res_mkquery.texi: Likewise.
48559         * doc/glibc-functions/res_query.texi: Likewise.
48560         * doc/glibc-functions/res_querydomain.texi: Likewise.
48561         * doc/glibc-functions/res_send.texi: Likewise.
48562         * doc/glibc-functions/rresvport_af.texi: Likewise.
48563         * doc/glibc-functions/setxattr.texi: Likewise.
48564         * doc/glibc-functions/strcasestr.texi: Likewise.
48565
48566 2008-12-15  Bruno Haible  <bruno@clisp.org>
48567
48568         Fix compilation error on OSF/1 4.0.
48569         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
48570         <sys/time.h>, simply delegate to the system header.
48571         Reported by Daniel Richard G. <oss@teragram.com>.
48572
48573 2008-12-15  Bruno Haible  <bruno@clisp.org>
48574
48575         * doc/posix-functions/openat.texi: Mention the 'openat' module.
48576         * doc/posix-functions/fchmodat.texi: Likewise.
48577         * doc/posix-functions/fchownat.texi: Likewise.
48578         * doc/posix-functions/fdopendir.texi: Likewise.
48579         * doc/posix-functions/fstatat.texi: Likewise.
48580         * doc/posix-functions/mkdirat.texi: Likewise.
48581         * doc/posix-functions/unlinkat.texi: Likewise.
48582
48583 2008-12-14  Bruno Haible  <bruno@clisp.org>
48584
48585         Update doc for POSIX:2008.
48586         * doc/posix-functions/faccessat.texi: New file.
48587         * doc/posix-functions/fchmodat.texi: New file.
48588         * doc/posix-functions/fchownat.texi: New file.
48589         * doc/posix-functions/fdopendir.texi: New file.
48590         * doc/posix-functions/fstatat.texi: New file.
48591         * doc/posix-functions/futimens.texi: New file.
48592         * doc/posix-functions/linkat.texi: New file.
48593         * doc/posix-functions/mkdirat.texi: New file.
48594         * doc/posix-functions/mkfifoat.texi: New file.
48595         * doc/posix-functions/mknodat.texi: New file.
48596         * doc/posix-functions/open_wmemstream.texi: New file.
48597         * doc/posix-functions/openat.texi: New file.
48598         * doc/posix-functions/psiginfo.texi: New file.
48599         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
48600         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
48601         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
48602         * doc/posix-functions/readlinkat.texi: New file.
48603         * doc/posix-functions/renameat.texi: New file.
48604         * doc/posix-functions/strerror_l.texi: New file.
48605         * doc/posix-functions/symlinkat.texi: New file.
48606         * doc/posix-functions/unlinkat.texi: New file.
48607         * doc/posix-functions/utimensat.texi: New file.
48608         * doc/gnulib.texi (Function Substitutes): Add these subsections.
48609
48610 2008-12-14  Bruno Haible  <bruno@clisp.org>
48611
48612         Update doc for POSIX:2008.
48613         * doc/posix-functions/alphasort.texi: Renamed from
48614         doc/glibc-functions/alphasort.texi.
48615         * doc/posix-functions/dirfd.texi: Renamed from
48616         doc/glibc-functions/dirfd.texi.
48617         * doc/posix-functions/dprintf.texi: Renamed from
48618         doc/glibc-functions/dprintf.texi.
48619         * doc/posix-functions/duplocale.texi: Renamed from
48620         doc/glibc-functions/duplocale.texi.
48621         * doc/posix-functions/fexecve.texi: Renamed from
48622         doc/glibc-functions/fexecve.texi.
48623         * doc/posix-functions/fmemopen.texi: Renamed from
48624         doc/glibc-functions/fmemopen.texi.
48625         * doc/posix-functions/freelocale.texi: Renamed from
48626         doc/glibc-functions/freelocale.texi.
48627         * doc/posix-functions/getdate_err.texi: Renamed from
48628         doc/glibc-functions/getdate_err.texi.
48629         * doc/posix-functions/isalnum_l.texi: Renamed from
48630         doc/glibc-functions/isalnum_l.texi.
48631         * doc/posix-functions/isalpha_l.texi: Renamed from
48632         doc/glibc-functions/isalpha_l.texi.
48633         * doc/posix-functions/isblank_l.texi: Renamed from
48634         doc/glibc-functions/isblank_l.texi.
48635         * doc/posix-functions/iscntrl_l.texi: Renamed from
48636         doc/glibc-functions/iscntrl_l.texi.
48637         * doc/posix-functions/isdigit_l.texi: Renamed from
48638         doc/glibc-functions/isdigit_l.texi.
48639         * doc/posix-functions/isgraph_l.texi: Renamed from
48640         doc/glibc-functions/isgraph_l.texi.
48641         * doc/posix-functions/islower_l.texi: Renamed from
48642         doc/glibc-functions/islower_l.texi.
48643         * doc/posix-functions/isprint_l.texi: Renamed from
48644         doc/glibc-functions/isprint_l.texi.
48645         * doc/posix-functions/ispunct_l.texi: Renamed from
48646         doc/glibc-functions/ispunct_l.texi.
48647         * doc/posix-functions/isspace_l.texi: Renamed from
48648         doc/glibc-functions/isspace_l.texi.
48649         * doc/posix-functions/isupper_l.texi: Renamed from
48650         doc/glibc-functions/isupper_l.texi.
48651         * doc/posix-functions/iswalnum_l.texi: Renamed from
48652         doc/glibc-functions/iswalnum_l.texi.
48653         * doc/posix-functions/iswalpha_l.texi: Renamed from
48654         doc/glibc-functions/iswalpha_l.texi.
48655         * doc/posix-functions/iswblank_l.texi: Renamed from
48656         doc/glibc-functions/iswblank_l.texi.
48657         * doc/posix-functions/iswcntrl_l.texi: Renamed from
48658         doc/glibc-functions/iswcntrl_l.texi.
48659         * doc/posix-functions/iswctype_l.texi: Renamed from
48660         doc/glibc-functions/iswctype_l.texi.
48661         * doc/posix-functions/iswdigit_l.texi: Renamed from
48662         doc/glibc-functions/iswdigit_l.texi.
48663         * doc/posix-functions/iswgraph_l.texi: Renamed from
48664         doc/glibc-functions/iswgraph_l.texi.
48665         * doc/posix-functions/iswlower_l.texi: Renamed from
48666         doc/glibc-functions/iswlower_l.texi.
48667         * doc/posix-functions/iswprint_l.texi: Renamed from
48668         doc/glibc-functions/iswprint_l.texi.
48669         * doc/posix-functions/iswpunct_l.texi: Renamed from
48670         doc/glibc-functions/iswpunct_l.texi.
48671         * doc/posix-functions/iswspace_l.texi: Renamed from
48672         doc/glibc-functions/iswspace_l.texi.
48673         * doc/posix-functions/iswupper_l.texi: Renamed from
48674         doc/glibc-functions/iswupper_l.texi.
48675         * doc/posix-functions/iswxdigit_l.texi: Renamed from
48676         doc/glibc-functions/iswxdigit_l.texi.
48677         * doc/posix-functions/isxdigit_l.texi: Renamed from
48678         doc/glibc-functions/isxdigit_l.texi.
48679         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
48680         doc/glibc-functions/mbsnrtowcs.texi.
48681         * doc/posix-functions/mkdtemp.texi: Renamed from
48682         doc/glibc-functions/mkdtemp.texi.
48683         * doc/posix-functions/newlocale.texi: Renamed from
48684         doc/glibc-functions/newlocale.texi.
48685         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
48686         doc/glibc-functions/nl_langinfo_l.texi.
48687         * doc/posix-functions/open_memstream.texi: Renamed from
48688         doc/glibc-functions/open_memstream.texi.
48689         * doc/posix-functions/opterr.texi: Renamed from
48690         doc/glibc-functions/opterr.texi.
48691         * doc/posix-functions/optind.texi: Renamed from
48692         doc/glibc-functions/optind.texi.
48693         * doc/posix-functions/optopt.texi: Renamed from
48694         doc/glibc-functions/optopt.texi.
48695         * doc/posix-functions/psignal.texi: Renamed from
48696         doc/glibc-functions/psignal.texi.
48697         * doc/posix-functions/scandir.texi: Renamed from
48698         doc/glibc-functions/scandir.texi.
48699         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
48700         doc/glibc-functions/sched_get_priority_min.texi.
48701         * doc/posix-functions/signgam.texi: Renamed from
48702         doc/glibc-functions/signgam.texi.
48703         * doc/posix-functions/stpcpy.texi: Renamed from
48704         doc/glibc-functions/stpcpy.texi.
48705         * doc/posix-functions/stpncpy.texi: Renamed from
48706         doc/glibc-functions/stpncpy.texi.
48707         * doc/posix-functions/strcasecmp_l.texi: Renamed from
48708         doc/glibc-functions/strcasecmp_l.texi.
48709         * doc/posix-functions/strcoll_l.texi: Renamed from
48710         doc/glibc-functions/strcoll_l.texi.
48711         * doc/posix-functions/strfmon_l.texi: Renamed from
48712         doc/glibc-functions/strfmon_l.texi.
48713         * doc/posix-functions/strftime_l.texi: Renamed from
48714         doc/glibc-functions/strftime_l.texi.
48715         * doc/posix-functions/strncasecmp_l.texi: Renamed from
48716         doc/glibc-functions/strncasecmp_l.texi.
48717         * doc/posix-functions/strndup.texi: Renamed from
48718         doc/glibc-functions/strndup.texi.
48719         * doc/posix-functions/strnlen.texi: Renamed from
48720         doc/glibc-functions/strnlen.texi.
48721         * doc/posix-functions/strsignal.texi: Renamed from
48722         doc/glibc-functions/strsignal.texi.
48723         * doc/posix-functions/strxfrm_l.texi: Renamed from
48724         doc/glibc-functions/strxfrm_l.texi.
48725         * doc/posix-functions/timer_gettime.texi: Renamed from
48726         doc/glibc-functions/timer_gettime.texi.
48727         * doc/posix-functions/tolower_l.texi: Renamed from
48728         doc/glibc-functions/tolower_l.texi.
48729         * doc/posix-functions/toupper_l.texi: Renamed from
48730         doc/glibc-functions/toupper_l.texi.
48731         * doc/posix-functions/towctrans_l.texi: Renamed from
48732         doc/glibc-functions/towctrans_l.texi.
48733         * doc/posix-functions/towlower_l.texi: Renamed from
48734         doc/glibc-functions/towlower_l.texi.
48735         * doc/posix-functions/towupper_l.texi: Renamed from
48736         doc/glibc-functions/towupper_l.texi.
48737         * doc/posix-functions/uselocale.texi: Renamed from
48738         doc/glibc-functions/uselocale.texi.
48739         * doc/posix-functions/vdprintf.texi: Renamed from
48740         doc/glibc-functions/vdprintf.texi.
48741         * doc/posix-functions/wcpcpy.texi:
48742         Renamed from doc/glibc-functions/wcpcpy.texi.
48743         * doc/posix-functions/wcpncpy.texi: Renamed from
48744         doc/glibc-functions/wcpncpy.texi.
48745         * doc/posix-functions/wcscasecmp.texi: Renamed from
48746         doc/glibc-functions/wcscasecmp.texi.
48747         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
48748         doc/glibc-functions/wcscasecmp_l.texi.
48749         * doc/posix-functions/wcscoll_l.texi: Renamed from
48750         doc/glibc-functions/wcscoll_l.texi.
48751         * doc/posix-functions/wcsdup.texi: Renamed from
48752         doc/glibc-functions/wcsdup.texi.
48753         * doc/posix-functions/wcsncasecmp.texi: Renamed from
48754         doc/glibc-functions/wcsncasecmp.texi.
48755         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
48756         doc/glibc-functions/wcsncasecmp_l.texi.
48757         * doc/posix-functions/wcsnlen.texi: Renamed from
48758         doc/glibc-functions/wcsnlen.texi.
48759         * doc/posix-functions/wcsnrtombs.texi: Renamed from
48760         doc/glibc-functions/wcsnrtombs.texi.
48761         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
48762         doc/glibc-functions/wcsxfrm_l.texi.
48763         * doc/posix-functions/wctrans_l.texi: Renamed from
48764         doc/glibc-functions/wctrans_l.texi.
48765         * doc/posix-functions/wctype_l.texi: Renamed from
48766         doc/glibc-functions/wctype_l.texi.
48767         * doc/gnulib.texi (Function Substitutes): Add these subsections.
48768         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
48769         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
48770         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
48771         these subsections.
48772         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
48773         Remove sections.
48774
48775 2008-12-14  Bruno Haible  <bruno@clisp.org>
48776
48777         Update doc for POSIX:2008.
48778         * doc/posix-functions/*.texi: Update URL of POSIX specification.
48779
48780 2008-12-14  Bruno Haible  <bruno@clisp.org>
48781
48782         Update doc for POSIX:2008.
48783         * doc/pastposix-functions/bcmp.texi: Renamed from
48784         doc/posix-functions/bcmp.texi.
48785         * doc/pastposix-functions/bcopy.texi: Renamed from
48786         doc/posix-functions/bcopy.texi.
48787         * doc/pastposix-functions/bsd_signal.texi: Renamed from
48788         doc/posix-functions/bsd_signal.texi.
48789         * doc/pastposix-functions/bzero.texi: Renamed from
48790         doc/posix-functions/bzero.texi.
48791         * doc/pastposix-functions/ecvt.texi: Renamed from
48792         doc/posix-functions/ecvt.texi.
48793         * doc/pastposix-functions/fcvt.texi: Renamed from
48794         doc/posix-functions/fcvt.texi.
48795         * doc/pastposix-functions/ftime.texi: Renamed from
48796         doc/posix-functions/ftime.texi.
48797         * doc/pastposix-functions/gcvt.texi: Renamed from
48798         doc/posix-functions/gcvt.texi.
48799         * doc/pastposix-functions/getcontext.texi: Renamed from
48800         doc/posix-functions/getcontext.texi.
48801         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
48802         doc/posix-functions/gethostbyaddr.texi.
48803         * doc/pastposix-functions/gethostbyname.texi: Renamed from
48804         doc/posix-functions/gethostbyname.texi.
48805         * doc/pastposix-functions/getwd.texi: Renamed from
48806         doc/posix-functions/getwd.texi.
48807         * doc/pastposix-functions/h_errno.texi: Renamed from
48808         doc/posix-functions/h_errno.texi.
48809         * doc/pastposix-functions/index.texi: Renamed from
48810         doc/posix-functions/index.texi.
48811         * doc/pastposix-functions/makecontext.texi: Renamed from
48812         doc/posix-functions/makecontext.texi.
48813         * doc/pastposix-functions/mktemp.texi: Renamed from
48814         doc/posix-functions/mktemp.texi.
48815         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
48816         doc/posix-functions/pthread_attr_getstackaddr.texi.
48817         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
48818         doc/posix-functions/pthread_attr_setstackaddr.texi.
48819         * doc/pastposix-functions/rindex.texi: Renamed from
48820         doc/posix-functions/rindex.texi.
48821         * doc/pastposix-functions/scalb.texi: Renamed from
48822         doc/posix-functions/scalb.texi.
48823         * doc/pastposix-functions/setcontext.texi: Renamed from
48824         doc/posix-functions/setcontext.texi.
48825         * doc/pastposix-functions/swapcontext.texi: Renamed from
48826         doc/posix-functions/swapcontext.texi.
48827         * doc/pastposix-functions/ualarm.texi: Renamed from
48828         doc/posix-functions/ualarm.texi.
48829         * doc/pastposix-functions/usleep.texi: Renamed from
48830         doc/posix-functions/usleep.texi.
48831         * doc/pastposix-functions/vfork.texi: Renamed from
48832         doc/posix-functions/vfork.texi.
48833         * doc/pastposix-functions/wcswcs.texi: Renamed from
48834         doc/posix-functions/wcswcs.texi.
48835         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
48836         (Function Substitutes): Update.
48837
48838 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48839
48840         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
48841         m4/strerror.m4.
48842
48843 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48844             Bruno Haible  <bruno@clisp.org>
48845
48846         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
48847
48848 2008-12-13  Bruno Haible  <bruno@clisp.org>
48849
48850         * modules/strtoull (Depends-on): Remove unistd.
48851
48852 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48853
48854         * modules/strtoull (Depends-on): Add stdlib.
48855
48856 2008-12-11  Simon Josefsson  <simon@josefsson.org>
48857
48858         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
48859
48860 2008-12-10  Jim Meyering  <meyering@redhat.com>
48861
48862         gl_ASSERT: don't say assertions are disabled when they're not
48863         * m4/assert.m4 (gl_ASSERT): Do not make configure report
48864         "checking whether to enable assertions... no", when they are in
48865         fact enabled.  This is solely a bug in the output of configure.
48866         In spite of saying "no", NDEBUG was not defined in that case.
48867         Also, as noted by Eric Blake, leave assertions enabled upon
48868         --enable-assert=INVALID.
48869
48870 2008-12-10  Bruno Haible  <bruno@clisp.org>
48871
48872         Change MODULES.html to refer to POSIX:2008 where possible.
48873         * MODULES.html.sh (POSIX2008_URL): New variable.
48874         (posix_headers): Remove sys/timeb, ucontext.
48875         (posix2001_headers): New variable.
48876         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
48877         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
48878         index, makecontext, mktemp, pthread_attr_getstackaddr,
48879         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
48880         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
48881         (posix2001_functions): New variable.
48882         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
48883         otherwise.
48884
48885 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48886
48887         add missing include to parse-duration.c
48888         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
48889         * modules/parse-duration (Depends-on): Add xalloc.
48890
48891         fix sed script reading maint.mk
48892         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
48893         (syntax-check-rules): Use it.
48894
48895 2008-12-09  Bruno Haible  <bruno@clisp.org>
48896
48897         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
48898         MacOS X 10.4/PowerPC.
48899         Reported by Simon Josefsson.
48900
48901 2008-12-08  Jim Meyering  <meyering@redhat.com>
48902
48903         work around mingw's lack of some S_IF definitions
48904         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
48905         Reported by Simon Josefsson.
48906
48907 2008-12-08  Bruno Haible  <bruno@clisp.org>
48908
48909         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
48910         applied to variables. Needed on MacOS X 10.4/PowerPC.
48911         Reported by Simon Josefsson.
48912
48913 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
48914         and Eric Blake  <ebb9@byu.net>
48915
48916         assert: honor --enable-assert
48917         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
48918         order to honor --enable-assert, rather than treating it as a
48919         synonym for --disable-assert.
48920
48921 2008-12-08  Jim Meyering  <meyering@redhat.com>
48922
48923         * lib/posixtm.c: Remove now-useless declaration of mktime.
48924
48925         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
48926
48927 2008-12-07  Bruno Haible  <bruno@clisp.org>
48928
48929         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
48930         test_once): Mark functions as static.
48931         * tests/test-tls.c (test_tls): Likewise.
48932
48933 2008-12-07  Bruno Haible  <bruno@clisp.org>
48934
48935         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
48936         iconv_register_autodetect.
48937
48938 2008-12-07  Jim Meyering  <meyering@redhat.com>
48939
48940         posixtm.c: avoid a warning
48941         * lib/posixtm.c (posixtime): Don't initialize tm0.
48942         It's no longer needed to placate gcc4's -Wuninitialized,
48943         and the attempt to placate would elicit a new warning.
48944
48945         unicodeio.c: mark unused parameters
48946         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
48947         (fallback_failure_callback): Likewise.
48948
48949 2008-12-07  Bruno Haible  <bruno@clisp.org>
48950
48951         * gnulib-tool (func_create_testdir): When building the tests
48952         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
48953         Reported by Simon Josefsson.
48954
48955 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48956
48957         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
48958
48959 2008-12-06  Bruno Haible  <bruno@clisp.org>
48960
48961         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
48962         Suggested by Eric Blake.
48963
48964 2008-12-06  Bruno Haible  <bruno@clisp.org>
48965
48966         Fix a c-stack test failure on MacOS X.
48967         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
48968         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
48969         handler for SIGBUS as well.
48970         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
48971         install a signal handler for SIGBUS as well.
48972         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
48973
48974 2008-12-06  Bruno Haible  <bruno@clisp.org>
48975
48976         Advocacy documentation.
48977         * doc/gnulib-intro.texi (Benefits): New section.
48978         * doc/gnulib.texi: Update.
48979
48980 2008-12-06  Bruno Haible  <bruno@clisp.org>
48981
48982         Document the 'manywarnings' module.
48983         * doc/manywarnings.texi: New file.
48984         * doc/gnulib.texi: Include it.
48985
48986 2008-12-05  Eric Blake  <ebb9@byu.net>
48987
48988         tests: silence some gcc warnings
48989         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
48990         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
48991         type mismatches.
48992
48993 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48994             Bruno Haible  <bruno@clisp.org>
48995
48996         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
48997
48998 2008-11-29  Jim Meyering  <meyering@redhat.com>
48999
49000         unicodeio.c: mark unused parameters
49001         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
49002         (fallback_failure_callback): Likewise.
49003
49004         fts: fix a thinko
49005         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
49006         (set_stat_type): Return S_IF*-valued "type" directly.
49007         Prompted by James Youngman's spotting a related bug.
49008         Confirmed by further testing through find.
49009
49010         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
49011         * lib/fts.c (D_TYPE): Define.
49012         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
49013         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
49014         (s_ifmt_shift_bits): New function.
49015         (set_stat_type): New function.
49016         (fts_build): When not calling fts_stat, call set_stat_type
49017         to propagate dirent.d_type info to fts_read caller.
49018         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
49019         fts_statp->st_mode type information may be valid.
49020
49021 2008-11-28  Simon Josefsson  <simon@josefsson.org>
49022
49023         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
49024         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
49025         <sds@gnu.org>.
49026
49027 2008-11-20  Bruno Haible  <bruno@clisp.org>
49028
49029         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
49030         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
49031         INCLUDE_NEXT.
49032         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
49033         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
49034         * modules/math (Makefile.am): Substitute
49035         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
49036         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49037
49038 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
49039             Bruno Haible  <bruno@clisp.org>
49040
49041         * lib/stdint.in.h: Define all type macros so that their expansion is
49042         a single typedef'ed token. Fixes a compilation failure in Boost which
49043         does "using ::int8_t;".
49044
49045 2008-11-18  Simon Josefsson  <simon@josefsson.org>
49046
49047         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
49048         gl_MANYWARN_ALL_GCC.
49049         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
49050         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
49051         * modules/manywarnings: New file.
49052         * MODULES.html.sh: Mention manywarnings module.
49053
49054 2008-11-18  Bruno Haible  <bruno@clisp.org>
49055
49056         * doc/gnulib-tool.texi (Unit tests): New section.
49057
49058 2008-11-18  Simon Josefsson  <simon@josefsson.org>
49059
49060         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
49061         paths like 'lib/po/foo.po'.
49062
49063 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49064
49065         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
49066         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
49067
49068 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49069
49070         * m4/warnings.m4: Use CPPFLAGS to really check whether the
49071         parameter works.
49072
49073 2008-11-17  Simon Josefsson  <simon@josefsson.org>
49074
49075         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
49076
49077 2008-11-17  Bruce Korb  <bkorb@gnu.org>
49078
49079         * modules/parse-duration-tests: New file.
49080         * tests/test-parse-duration.sh: New file.
49081         * tests/test-parse-duration.c: New file.
49082
49083         New module 'parse-duration'.
49084         * lib/parse-duration.h: New file.
49085         * lib/parse-duration.c: New file.
49086         * modules/parse-duration: New file.
49087
49088 2008-11-17  Bruno Haible  <bruno@clisp.org>
49089
49090         * tests/test-select-out.sh: Comment out the first pipe test.
49091         Reported by Simon Josefsson.
49092
49093 2008-11-17  Bruno Haible  <bruno@clisp.org>
49094
49095         * modules/getaddrinfo (Depends-on): Add servent, hostent.
49096         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
49097         gl_HOSTENT.
49098
49099 2008-11-17  Bruno Haible  <bruno@clisp.org>
49100
49101         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
49102         -lnetwork and -lnet. Needed for Haiku and BeOS.
49103
49104 2008-11-16  Bruno Haible  <bruno@clisp.org>
49105
49106         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
49107
49108 2008-11-16  Bruno Haible  <bruno@clisp.org>
49109
49110         Avoid test failure on Haiku.
49111         * tests/test-fsync.c: Include <errno.h>.
49112         (main): Don't require that fsync (0) fails.
49113
49114 2008-11-15  Bruno Haible  <bruno@clisp.org>
49115
49116         New module 'hostent'.
49117         * modules/hostent: New file.
49118         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
49119
49120 2008-11-15  Bruno Haible  <bruno@clisp.org>
49121
49122         New module 'servent'.
49123         * modules/servent: New file.
49124         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
49125
49126 2008-11-15  Bruno Haible  <bruno@clisp.org>
49127
49128         Avoid generating same test program with two different rules.
49129         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
49130         test-frexp to test-frexp-nolibm.
49131         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
49132         test-frexpl to test-frexpl-nolibm.
49133
49134 2008-11-15  Bruno Haible  <bruno@clisp.org>
49135
49136         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
49137         $(FREXPL_LIBM).
49138
49139 2008-11-15  Bruno Haible  <bruno@clisp.org>
49140
49141         * lib/netdb.in.h: Activate the definitions also when the system's
49142         <netdb.h> has 'struct addrinfo'.
49143         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
49144         EAI_OVERFLOW or AI_NUMERICSERV.
49145         * doc/posix-headers/netdb.texi: Document the problem.
49146
49147 2008-11-15  Bruno Haible  <bruno@clisp.org>
49148
49149         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
49150
49151         Make the 'sched' module work on platforms where <sched.h> exists but
49152         is incomplete (such as Haiku).
49153         * lib/sched.in.h; Include the system's <sched.h> if it exists.
49154         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
49155         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
49156         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
49157         HAVE_STRUCT_SCHED_PARAM.
49158         * modules/sched (Depends-on): Add include_next.
49159         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
49160         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
49161         * doc/posix-headers/sched.texi: Document the issue.
49162
49163 2008-11-13  Jim Meyering  <meyering@redhat.com>
49164
49165         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
49166         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
49167         test would fail due to the difference in the Report bugs to ...
49168         line.  The expected address is empty, "<>", while the actual
49169         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
49170
49171 2008-11-12  Bruno Haible  <bruno@clisp.org>
49172
49173         lstat: don't compile lstat.c on systems lacking lstat
49174         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
49175         which don't have lstat; this is handled by lib/sys_stat.in.h already.
49176         Reported by Daniel P. Berrange via Jim Meyering.
49177
49178 2008-11-12  Jim Meyering  <meyering@redhat.com>
49179
49180         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
49181
49182 2008-11-12  Simon Josefsson  <simon@josefsson.org>
49183
49184         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
49185         instead.
49186
49187 2008-11-12  Bruno Haible  <bruno@clisp.org>
49188
49189         * lib/unicodeio.c: Include unistr.h.
49190         (utf8_wctomb): Remove function.
49191         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
49192
49193 2008-11-12  Simon Josefsson  <simon@josefsson.org>
49194
49195         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
49196         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
49197         <bruno@clisp.org>.
49198         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
49199
49200 2008-11-12  Simon Josefsson  <simon@josefsson.org>
49201
49202         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
49203         * doc/gnulib.texi: Add section for warnings.
49204
49205 2008-11-11  Bruno Haible  <bruno@clisp.org>
49206
49207         * lib/sockets.h: Add a comment.
49208
49209 2008-11-11  Karl Berry  <karl@gnu.org>
49210
49211         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
49212
49213 2008-11-11  Eric Blake  <ebb9@byu.net>
49214
49215         fdl.texi: avoid git symlinks
49216         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
49217
49218 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49219
49220         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
49221
49222 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49223
49224         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
49225         (gl_WARN_ADD): Substitute $2 if literal.
49226
49227 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49228
49229         * m4/warning.m4: Remove.
49230
49231 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
49232
49233         * m4/warnings.m4: Almost complete rewrite. :-)
49234
49235 2008-11-10  Simon Josefsson  <simon@josefsson.org>
49236
49237         * modules/warnings: New module.
49238         * m4/warnings.m4: New file.
49239         * MODULES.html.sh: Mention warnings module.
49240         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
49241         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49242
49243 2008-11-10  Eric Blake  <ebb9@byu.net>
49244
49245         fdl.texi: make a symlink to the latest version
49246         * doc/standards.texi: Revert today's earlier change.
49247         * doc/fdl-1.2.texi: Rename from old fdl.texi...
49248         * doc/fdl.texi: ...and replace this with a symlink to the newer
49249         fdl-1.3.texi.
49250
49251 2008-11-10  Bruno Haible  <bruno@clisp.org>
49252
49253         * tests/test-select-fd.c (main): Accept the result file name as fourth
49254         argument.
49255         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
49256         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
49257
49258 2008-11-10  Bruno Haible  <bruno@clisp.org>
49259
49260         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
49261         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
49262         as autoconf-substituted macros.
49263         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
49264         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
49265         gl_NETDB_H_DEFAULTS. Set these variables.
49266         * modules/netdb (Makefile.am): Substitute these variables.
49267
49268 2008-11-10  Eric Blake  <ebb9@byu.net>
49269
49270         standards.texi: include correct file for FDL 1.3
49271         * doc/standards.texi (GNU Free Documentation License): Change
49272         include file to pull in FDL 1.3, not 1.2.
49273
49274         fdl.texi: revert accidental change to license
49275         * doc/fdl.texi: This is FDL 1.2, not 1.3.
49276
49277 2008-11-10  Bruno Haible  <bruno@clisp.org>
49278
49279         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
49280         cross-compiling guesses also when the native compile gives no result.
49281
49282 2008-11-10  Bruno Haible  <bruno@clisp.org>
49283
49284         * lib/spawni.c (__spawni): Force variable into the stack.
49285
49286 2008-11-10  Bruno Haible  <bruno@clisp.org>
49287
49288         Add support for Haiku.
49289         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
49290         glibc and BeOS, but also on Haiku.
49291         * lib/fpurge.c (fpurge): Likewise.
49292         * lib/freadable.c (freadable): Likewise.
49293         * lib/freadahead.c (freadahead): Likewise.
49294         * lib/freading.c (freading): Likewise.
49295         * lib/freadptr.c (freadptr): Likewise.
49296         * lib/freadseek.c (freadptrinc): Likewise.
49297         * lib/fseeko.c (rpl_fseeko): Likewise.
49298         * lib/fseterr.c (fseterr): Likewise.
49299         * lib/fwritable.c (fwritable): Likewise.
49300         * lib/fwriting.c (fwriting): Likewise.
49301         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
49302
49303 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
49304
49305         * lib/config.charset: Treat Haiku like BeOS.
49306
49307 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
49308
49309         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
49310         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
49311
49312 2008-11-08  Bruno Haible  <bruno@clisp.org>
49313
49314         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
49315         AC_CACHE_CHECK.
49316
49317 2008-11-08  Bruno Haible  <bruno@clisp.org>
49318
49319         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
49320
49321 2008-11-08  Bruno Haible  <bruno@clisp.org>
49322
49323         * tests/test-select-fd.c: New file.
49324         * tests/test-select-in.sh: New file.
49325         * tests/test-select-out.sh: New file.
49326         * tests/test-select-stdin.c: New file.
49327         * modules/select-tests (Files): Add the new files.
49328         (Depends-on): Add gettimeofday.
49329         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
49330         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
49331         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
49332
49333 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
49334             Bruno Haible  <bruno@clisp.org>
49335
49336         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
49337
49338 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
49339
49340         * build-aux/pmccabe2html: Added support for C++ source files.
49341
49342 2008-11-05  Ben Pfaff  <blp@gnu.org>
49343
49344         Fix lib/close.c build on Windows.
49345         * modules/close (Files): Add lib/w32sock.h.
49346
49347 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
49348
49349         Accept Bison's NEWS format.
49350         * build-aux/announce-gen (print_news_deltas): Tweak
49351         $re_prefix.
49352
49353 2008-11-04  Bruno Haible  <bruno@clisp.org>
49354
49355         * modules/random_r (Maintainer): Add glibc.
49356
49357 2008-11-04  Simon Josefsson  <simon@josefsson.org>
49358
49359         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
49360         by karl@freefriends.org (Karl Berry).
49361         * doc/alloca.texi: Likewise.
49362         * doc/c-ctype.texi: Likewise.
49363         * doc/c-strcase.texi: Likewise.
49364         * doc/c-strcaseeq.texi: Likewise.
49365         * doc/c-strcasestr.texi: Likewise.
49366         * doc/c-strstr.texi: Likewise.
49367         * doc/c-strtod.texi: Likewise.
49368         * doc/c-strtold.texi: Likewise.
49369         * doc/ctime.texi: Likewise.
49370         * doc/error.texi: Likewise.
49371         * doc/fdl.texi: Likewise.
49372         * doc/gcd.texi: Likewise.
49373         * doc/getdate.texi: Likewise.
49374         * doc/gnulib-intro.texi: Likewise.
49375         * doc/gnulib-tool.texi: Likewise.
49376         * doc/gnulib.texi: Likewise.
49377         * doc/inet_ntoa.texi: Likewise.
49378         * doc/maintain.texi: Likewise.
49379         * doc/make-stds.texi: Likewise.
49380         * doc/quote.texi: Likewise.
49381         * doc/regexprops-generic.texi: Likewise.
49382         * doc/standards.texi: Likewise.
49383         * doc/verify.texi: Likewise.
49384         * doc/visibility.texi: Likewise.
49385         * doc/gnulib.texi (GNU Free Documentation License): Include
49386         fdl-1.3.texi instead of fdl.texi.
49387
49388 2008-11-04  Simon Josefsson  <simon@josefsson.org>
49389
49390         * doc/fdl-1.3.texi: New file, from
49391         <http://www.gnu.org/licenses/fdl-1.3.texi>.
49392         * modules/fdl-1.3: Add.
49393         * MODULES.html.sh: Add fdl-1.3.
49394
49395 2008-11-03  Bruno Haible  <bruno@clisp.org>
49396
49397         Make determination of absolute name of header file work with AIX xlc.
49398         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
49399         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
49400         preprocessing.
49401         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
49402         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
49403
49404 2008-11-03  Simon Josefsson  <simon@josefsson.org>
49405
49406         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
49407         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
49408         <ludo@gnu.org>.
49409
49410 2008-11-02  Bruno Haible  <bruno@clisp.org>
49411
49412         Mark 'strpbrk' obsolete.
49413         * modules/strpbrk (Status, Notice): New sections.
49414         * modules/strtok_r (Depends-on): Add strpbrk.
49415
49416 2008-11-02  Bruno Haible  <bruno@clisp.org>
49417
49418         Mark 'strdup' obsolete.
49419         * modules/strdup (Status, Notice): New sections.
49420         * modules/findprog (Depends-on): Add strdup.
49421         * modules/getaddrinfo (Depends-on): Likewise.
49422         * modules/localename (Depends-on): Likewise.
49423         * modules/relocatable-lib (Depends-on): Likewise.
49424         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
49425         * modules/relocatable-prog (Depends-on): Likewise.
49426         * modules/trim (Depends-on): Likewise.
49427         * modules/unictype/gen-ctype (Depends-on): Likewise.
49428         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
49429
49430 2008-11-02  Bruno Haible  <bruno@clisp.org>
49431
49432         Mark 'strcspn' obsolete.
49433         * modules/strcspn (Status, Notice): New sections.
49434
49435 2008-11-02  Bruno Haible  <bruno@clisp.org>
49436
49437         Mark 'rmdir' obsolete.
49438         * modules/rmdir (Status, Notice): New sections.
49439         * modules/clean-temp (Depends-on): Add rmdir.
49440         * modules/openat (Depends-on): Likewise.
49441
49442 2008-11-02  Bruno Haible  <bruno@clisp.org>
49443
49444         Mark 'raise' obsolete.
49445         * modules/raise (Status, Notice): New sections.
49446         (Include): Specify <signal.h>.
49447         * modules/stdio (Depends-on): Add raise.
49448         * modules/write (Depends-on): Likewise.
49449
49450 2008-11-02  Bruno Haible  <bruno@clisp.org>
49451
49452         Mark 'memset' obsolete.
49453         * modules/memset (Status, Notice): New sections.
49454
49455 2008-11-02  Bruno Haible  <bruno@clisp.org>
49456
49457         Mark 'memmove' obsolete.
49458         * modules/memmove (Status, Notice): New sections.
49459         * modules/argp (Depends-on): Add memmove.
49460         * modules/argz (Depends-on): Likewise.
49461         * modules/canonicalize (Depends-on): Likewise.
49462         * modules/canonicalize-lgpl (Depends-on): Likewise.
49463         * modules/fts (Depends-on): Likewise.
49464         * modules/getcwd (Depends-on): Likewise.
49465         * modules/human (Depends-on): Likewise.
49466         * modules/regex (Depends-on): Likewise.
49467         * modules/striconveh (Depends-on): Likewise.
49468         * modules/trim (Depends-on): Likewise.
49469         * modules/unistr/u8-move (Depends-on): Likewise.
49470         * modules/unistr/u16-move (Depends-on): Likewise.
49471         * modules/unistr/u32-move (Depends-on): Likewise.
49472
49473 2008-11-02  Bruno Haible  <bruno@clisp.org>
49474
49475         Mark 'memcpy' obsolete.
49476         * modules/memcpy (Status, Notice): New sections.
49477
49478 2008-11-02  Bruno Haible  <bruno@clisp.org>
49479
49480         Mark 'memcmp' obsolete.
49481         * modules/memcmp (Status, Notice): New sections.
49482         * modules/argmatch (Depends-on): Add memchr.
49483         * modules/backupfile (Depends-on): Likewise.
49484         * modules/c-strcasestr (Depends-on): Likewise.
49485         * modules/crypto/des (Depends-on): Likewise.
49486         * modules/csharpcomp (Depends-on): Likewise.
49487         * modules/fnmatch (Depends-on): Likewise.
49488         * modules/git-merge-changelog (Depends-on): Likewise.
49489         * modules/isnand (Depends-on): Likewise.
49490         * modules/isnand-nolibm (Depends-on): Likewise.
49491         * modules/isnanf (Depends-on): Likewise.
49492         * modules/isnanf-nolibm (Depends-on): Likewise.
49493         * modules/isnanl (Depends-on): Likewise.
49494         * modules/isnanl-nolibm (Depends-on): Likewise.
49495         * modules/mbchar (Depends-on): Likewise.
49496         * modules/memcoll (Depends-on): Likewise.
49497         * modules/quotearg (Depends-on): Likewise.
49498         * modules/regex (Depends-on): Likewise.
49499         * modules/relocatable-prog (Depends-on): Likewise.
49500         * modules/same (Depends-on): Likewise.
49501         * modules/signbit (Depends-on): Likewise.
49502         * modules/strcasestr-simple (Depends-on): Likewise.
49503         * modules/unictype/gen-ctype (Depends-on): Likewise.
49504         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
49505         * modules/uniname/uniname (Depends-on): Likewise.
49506         * modules/unistr/u8-cmp (Depends-on): Likewise.
49507
49508 2008-11-02  Bruno Haible  <bruno@clisp.org>
49509
49510         Mark 'memchr' obsolete.
49511         * modules/memchr (Status, Notice): New sections.
49512         * modules/argp (Depends-on): Add memchr.
49513         * modules/base64 (Depends-on): Likewise.
49514         * modules/c-strcasestr (Depends-on): Likewise.
49515         * modules/chdir-long (Depends-on): Likewise.
49516         * modules/fnmatch (Depends-on): Likewise.
49517         * modules/getsubopt (Depends-on): Likewise.
49518         * modules/git-merge-changelog (Depends-on): Likewise.
49519         * modules/glob (Depends-on): Likewise.
49520         * modules/strcasestr-simple (Depends-on): Likewise.
49521         * modules/strnlen (Depends-on): Likewise.
49522
49523 2008-11-02  Bruno Haible  <bruno@clisp.org>
49524
49525         Mark 'atexit' obsolete.
49526         * modules/atexit (Status, Notice): New sections.
49527         * modules/chdir-long (Depends-on): Add atexit.
49528         * modules/wait-process (Depends-on): Likewise.
49529
49530 2008-11-02  Bruno Haible  <bruno@clisp.org>
49531
49532         * gnulib-tool: New option --with-obsolete.
49533         (func_usage): Document it.
49534         (func_modules_transitive_closure): Drop obsolete dependencies if
49535         incobsolete is not true.
49536         (func_import): Read and save the incobsolete variable to the cache.
49537
49538 2008-11-02  Bruno Haible  <bruno@clisp.org>
49539
49540         * modules/TEMPLATE-EXTENDED: New field 'Status'.
49541         * gnulib-tool: New option --extract-status.
49542         (func_usage): Document it.
49543         (sed_extract_prog): Recognize it.
49544         (func_get_status): New function.
49545
49546 2008-10-30  Simon Josefsson  <simon@josefsson.org>
49547
49548         * modules/sockets (License): Change from LGPL to LGPLv2+.
49549
49550 2008-10-28  Simon Josefsson  <simon@josefsson.org>
49551
49552         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
49553
49554 2008-10-28  Simon Josefsson  <simon@josefsson.org>
49555
49556         * MODULES.html.sh (Support for systems lacking POSIX:2001):
49557         Mention times and sys_times.
49558         * modules/sys_times, modules/sys_times-tests: New modules.
49559         * modules/times, modules/times-tests: Likewise
49560         * m4/sys_times_h.m4: New file.
49561         * lib/sys_times.in.h: Likewise
49562         * lib/times.c: Likewise.
49563         * tests/test-sys_times.c: Likewise.
49564         * tests/test-times.c: Likewise.
49565         * doc/posix-headers/sys_times.texi: Update.
49566         * doc/posix-functions/times.texi: Update.
49567
49568 2008-10-28  Jim Meyering  <meyering@redhat.com>
49569
49570         * modules/tempname (Depends-on): Add lstat.
49571
49572         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
49573
49574 2008-10-28  Simon Josefsson  <simon@josefsson.org>
49575
49576         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
49577         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
49578         using idiom used elsewhere in gnulib.
49579
49580 2008-10-27  Jim Meyering  <meyering@redhat.com>
49581
49582         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
49583
49584 2008-10-27  Simon Josefsson  <simon@josefsson.org>
49585
49586         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
49587         TESTS_ENVIRONMENT, for shell scripts that needs to call built
49588         programs.
49589         * tests/test-argp-2.sh: Use $EXEEXT when needed.
49590
49591 2008-10-27  Simon Josefsson  <simon@josefsson.org>
49592
49593         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
49594
49595 2008-10-27  Bruno Haible  <bruno@clisp.org>
49596
49597         * tests/test-lstat.c: Include <stdio.h>.
49598
49599 2008-10-27  Simon Josefsson  <simon@josefsson.org>
49600
49601         * modules/lstat-tests: New module.
49602         * tests/test-lstat.c: New file.
49603
49604 2008-10-26  Jim Meyering  <meyering@redhat.com>
49605
49606         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
49607
49608 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49609             Bruno Haible  <bruno@clisp.org>
49610
49611         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
49612         * modules/configmake (Include): Add a note that the include must come
49613         after all system headers.
49614         * lib/javaversion.c: Include configmake.h after all other includes.
49615
49616 2008-10-26  Bruno Haible  <bruno@clisp.org>
49617
49618         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
49619         HAVE_STRUCT_RANDOM_DATA to 1.
49620         (gl_STDLIB_H): Simplify.
49621
49622 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49623
49624         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
49625         substitute HAVE_STRUCT_RANDOM_DATA.
49626         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
49627         random_data.
49628         * modules/stdlib (Makefile.am): Substitute
49629         HAVE_STRUCT_RANDOM_DATA.
49630
49631 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49632
49633         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
49634         * doc/gnulib-intro.texi (Copyright): Likewise.
49635
49636 2008-10-26  Simon Josefsson  <simon@josefsson.org>
49637
49638         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
49639         findings.
49640
49641 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
49642             Bruno Haible  <bruno@clisp.org>
49643
49644         * lib/unistd.in.h: Include <winsock2.h>.
49645         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
49646         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
49647         Provide dummy declarations.
49648         (gethostname): Override.
49649         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
49650         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
49651         gl_PREREQ_SYS_H_WINSOCK2.
49652         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
49653         * doc/posix-functions/gethostname.texi: More details.
49654
49655 2008-10-25  Bruno Haible  <bruno@clisp.org>
49656
49657         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
49658         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
49659         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
49660
49661         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
49662         here ...
49663         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
49664         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
49665         gl_UNISTD_H_DEFAULTS.
49666
49667 2008-10-25  Eric Blake  <ebb9@byu.net>
49668
49669         signbit: avoid spurious compiler failure
49670         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
49671         declarations inside function.
49672
49673 2008-10-24  Simon Josefsson  <simon@josefsson.org>
49674             Bruno Haible  <bruno@clisp.org>
49675
49676         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
49677         * modules/random_r (Depends-on): Add stdint.
49678
49679 2008-10-24  Bruno Haible  <bruno@clisp.org>
49680
49681         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
49682         Eggert.
49683         * modules/strerror (License): Likewise.
49684
49685 2008-10-24  Jim Meyering  <meyering@redhat.com>
49686
49687         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
49688         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
49689
49690 2008-10-24  Eric Blake  <ebb9@byu.net>
49691
49692         getgroups: fix compilation when getgroups is available
49693         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
49694         but with <config.h> override of getgroups disabled.
49695
49696 2008-10-24  Simon Josefsson  <simon@josefsson.org>
49697
49698         * doc/gnulib.texi (Header files): Add note about C++ problems.
49699         Explained by Bruno Haible <bruno@clisp.org>.
49700
49701 2008-10-23  Bruno Haible  <bruno@clisp.org>
49702
49703         Define a dummy SA_NODEFER macro on Interix.
49704         * lib/signal.in.h (SA_NODEFER): Define fallback.
49705         Reported by Aleksey Cheusov <cheusov@tut.by> via
49706         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
49707
49708 2008-10-23  Bruno Haible  <bruno@clisp.org>
49709
49710         * modules/freadahead (License): Change to LGPLv2+.
49711         Suggested by Simon Josefsson.
49712
49713 2008-10-23  Jim Meyering  <meyering@redhat.com>
49714
49715         random_r: new module
49716         * modules/random_r: New file.
49717         * m4/random_r.m4: New file.
49718         * lib/random_r.c: New file, from glibc.
49719         * modules/random_r-tests: New file.
49720         * tests/test-random_r.c: New file.
49721         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
49722          Declare.
49723         (RAND_MAX): Define.
49724         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
49725         * modules/stdlib: Substitute them, too.
49726         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
49727         * doc/glibc-functions/initstate_r.texi: Mention the new module.
49728         * doc/glibc-functions/random_r.texi: Likewise.
49729         * doc/glibc-functions/setstate_r.texi: Likewise.
49730         * doc/glibc-functions/srandom_r.texi: Likewise.
49731         * config/srclist.txt: Mention it.
49732
49733 2008-10-23  David Lutterkort  <lutter@redhat.com>
49734
49735         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
49736         link requirement
49737
49738 2008-10-23  Jim Meyering  <meyering@redhat.com>
49739
49740         selinux-h: mark parameters of stub functions as intentionally unused
49741         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
49742         * lib/se-context.in.h: Likewise.
49743
49744 2008-10-22  Simon Josefsson  <simon@josefsson.org>
49745
49746         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
49747
49748 2008-10-22  Simon Josefsson  <simon@josefsson.org>
49749
49750         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
49751
49752 2008-10-22  Eric Blake  <ebb9@byu.net>
49753
49754         glthread/thread: avoid compiler warning
49755         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
49756         Add unreachable abort to silence compiler.
49757
49758 2008-10-22  Eric Blake  <ebb9@byu.net>
49759
49760         netdb: also supply struct addrinfo for cygwin 1.5.x
49761         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
49762         older cygwin.
49763         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
49764         cygwin.
49765         * doc/posix-headers/netdb.texi (netdb.h): Document this.
49766
49767 2008-10-22  Bruno Haible  <bruno@clisp.org>
49768
49769         * users.txt: Update entry about pspp.
49770
49771 2008-10-21  Bruno Haible  <bruno@clisp.org>
49772
49773         Simplification.
49774         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
49775         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
49776
49777         Simplification.
49778         * lib/ioctl.c (ioctl): Don't undefine.
49779         * lib/socket.c (socket): Don't undefine.
49780
49781         Remove unused module indicator macros.
49782         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
49783         GNULIB_$1 as a C macro.
49784
49785         * doc/posix-functions/close.texi: Undo last change.
49786         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
49787         Windows platforms.
49788
49789 2008-10-21  Bruno Haible  <bruno@clisp.org>
49790
49791         Add gethostname() declaration to <unistd.h>.
49792         * lib/unistd.in.h (gethostname): New declaration.
49793         * lib/gethostname.c: Include <unistd.h>.
49794         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
49795         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
49796         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
49797         and HAVE_GETHOSTNAME.
49798         * modules/gethostname (Depends-on): Add unistd.
49799         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49800         (Include): Specify <unistd.h>.
49801         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
49802         HAVE_GETHOSTNAME.
49803         * tests/test-gethostname.c: Include <unistd.h> first.
49804
49805 2008-10-21  Bruno Haible  <bruno@clisp.org>
49806
49807         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
49808         * modules/select-tests (Depends-on): Likewise.
49809         Reported by Simon Josefsson.
49810
49811 2008-10-21  Simon Josefsson  <simon@josefsson.org>
49812
49813         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
49814         * lib/accept.c: New file, based on winsock.c.
49815         * lib/bind.c: New file, based on winsock.c.
49816         * lib/connect.c: New file, based on winsock.c.
49817         * lib/getpeername.c: New file, based on winsock.c.
49818         * lib/getsockname.c: New file, based on winsock.c.
49819         * lib/getsockopt.c: New file, based on winsock.c.
49820         * lib/ioctl.c: New file, based on winsock.c.
49821         * lib/listen.c: New file, based on winsock.c.
49822         * lib/recv.c: New file, based on winsock.c.
49823         * lib/recvfrom.c: New file, based on winsock.c.
49824         * lib/send.c: New file, based on winsock.c.
49825         * lib/sendto.c: New file, based on winsock.c.
49826         * lib/setsockopt.c: New file, based on winsock.c.
49827         * lib/shutdown.c: New file, based on winsock.c.
49828         * lib/socket.c: New file, based on winsock.c.
49829         * lib/w32sock.h: New file, based on winsock.c.
49830         * lib/winsock.c: Remove file.
49831         * modules/accept: Likewise.
49832         * modules/bind: Likewise.
49833         * modules/connect: Likewise.
49834         * modules/getpeername: Likewise.
49835         * modules/getsockname: Likewise.
49836         * modules/getsockopt: Likewise.
49837         * modules/ioctl: Likewise.
49838         * modules/listen: Likewise.
49839         * modules/recv: Likewise.
49840         * modules/recvfrom: Likewise.
49841         * modules/send: Likewise.
49842         * modules/sendto: Likewise.
49843         * modules/setsockopt: Likewise.
49844         * modules/shutdown: Likewise.
49845         * modules/socket: Use socket.c instead of winsock.c.
49846         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
49847         * doc/posix-functions/accept.texi: Doc fix.
49848         * doc/posix-functions/bind.texi: Doc fix.
49849         * doc/posix-functions/close.texi: Doc fix.
49850         * doc/posix-functions/connect.texi: Doc fix.
49851         * doc/posix-functions/getpeername.texi: Doc fix.
49852         * doc/posix-functions/getsockname.texi: Doc fix.
49853         * doc/posix-functions/getsockopt.texi: Doc fix.
49854         * doc/posix-functions/ioctl.texi: Doc fix.
49855         * doc/posix-functions/listen.texi: Doc fix.
49856         * doc/posix-functions/recv.texi: Doc fix.
49857         * doc/posix-functions/recvfrom.texi: Doc fix.
49858         * doc/posix-functions/send.texi: Doc fix.
49859         * doc/posix-functions/sendto.texi: Doc fix.
49860         * doc/posix-functions/setsockopt.texi: Doc fix.
49861         * doc/posix-functions/shutdown.texi: Doc fix.
49862         * doc/posix-functions/socket.texi: Doc fix.
49863
49864 2008-10-20  Bruno Haible  <bruno@clisp.org>
49865
49866         Take into account the role of SIGABRT_COMPAT on Windows 2008.
49867         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
49868         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
49869         as an alias for SIGABRT.
49870         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
49871         (sigaction): Map it to SIGABRT.
49872         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
49873
49874 2008-10-20  Bruno Haible  <bruno@clisp.org>
49875
49876         * lib/fts.c: Don't include lstat.h.
49877         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
49878
49879         Move the lstat() declaration to <sys/stat.h>.
49880         * lib/lstat.h: Remove file.
49881         * lib/sys_stat.in.h: Add special invocation convention.
49882         (lstat): New declaration.
49883         * lib/lstat.c (orig_lstat): New function.
49884         (rpl_lstat): Use orig_lstat instead of lstat.
49885         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
49886         AC_C_INLINE. Set REPLACE_LSTAT.
49887         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
49888         and REPLACE_LSTAT.
49889         * modules/lstat (Files): Remove lib/lstat.h.
49890         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
49891         (Include): Specify <sys/stat.h> instead of lstat.h.
49892         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
49893         REPLACE_LSTAT.
49894         * NEWS: Mention the change.
49895
49896 2008-10-20  Bruno Haible  <bruno@clisp.org>
49897
49898         * modules/posix_spawn-tests: New file.
49899         * tests/test-posix_spawn3.c: New file.
49900
49901 2008-10-20  Bruno Haible  <bruno@clisp.org>
49902
49903         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
49904         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
49905         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
49906         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
49907         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
49908
49909 2008-10-20  Bruno Haible  <bruno@clisp.org>
49910
49911         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
49912         of posix_spawn on AIX 5.3.
49913
49914 2008-10-20  Bruno Haible  <bruno@clisp.org>
49915
49916         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
49917
49918 2008-10-20  Bruno Haible  <bruno@clisp.org>
49919
49920         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
49921         of AC_LANG_PROGRAM.
49922
49923 2008-10-20  Simon Josefsson  <simon@josefsson.org>
49924
49925         * lib/netdb.in.h: Don't define GNU specific constants until they
49926         are supported or needed.  Reported by Bruno Haible
49927         <bruno@clisp.org>.
49928
49929 2008-10-20  Simon Josefsson  <simon@josefsson.org>
49930
49931         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
49932
49933 2008-10-20  Simon Josefsson  <simon@josefsson.org>
49934
49935         * lib/getaddrinfo.h: Remove file.
49936         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
49937         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
49938         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
49939         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
49940         * modules/netdb: Substitute GNULIB_GETADDRINFO.
49941         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
49942         * tests/test-getaddrinfo.c: Likewise.
49943         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
49944         * NEWS: Mention change.
49945
49946 2008-10-19  Bruno Haible  <bruno@clisp.org>
49947
49948         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
49949
49950 2008-10-19  Bruno Haible  <bruno@clisp.org>
49951
49952         * lib/wait-process.c: Include simply <sys/wait.h>.
49953         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
49954         WIFSTOPPED): Remove fallback definitions.
49955         * modules/wait-process (Depends-on): Add sys_wait.
49956
49957         New module 'sys_wait'.
49958         * modules/sys_wait: New file.
49959         * lib/sys_wait.in.h: New file, partially copied from
49960         lib/wait-process.c.
49961         * m4/sys_wait_h.m4: New file.
49962         * doc/posix-headers/sys_wait.texi: Mention the new module.
49963
49964 2008-10-19  Bruno Haible  <bruno@clisp.org>
49965
49966         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
49967
49968 2008-10-19  Bruno Haible  <bruno@clisp.org>
49969
49970         Assume that waitpid() fills an 'int' status, not a 'union wait'.
49971         * lib/wait-process.c (WAIT_T): Remove type.
49972         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
49973         (wait_subprocess): Update.
49974
49975 2008-10-19  Bruno Haible  <bruno@clisp.org>
49976
49977         New module 'atoll'.
49978         * modules/atoll: New file.
49979         * lib/stdlib.in.h (atoll): New declaration.
49980         * lib/atoll.c: New file, from glibc with modifications.
49981         * m4/atoll.m4: New file.
49982         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
49983         HAVE_ATOLL.
49984         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
49985         * doc/posix-functions/atoll.texi: Mention the new module.
49986
49987 2008-10-19  Bruno Haible  <bruno@clisp.org>
49988
49989         Add strtoull() declaration to <stdlib.h>.
49990         * lib/stdlib.in.h (strtoull): New declaration.
49991         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
49992         Set HAVE_STRTOULL.
49993         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
49994         HAVE_STRTOULL.
49995         * modules/strtoull (Depends-on): Add stdlib.
49996         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
49997         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
49998         HAVE_STRTOULL.
49999
50000 2008-10-19  Bruno Haible  <bruno@clisp.org>
50001
50002         Add strtoll() declaration to <stdlib.h>.
50003         * lib/stdlib.in.h (strtoll): New declaration.
50004         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
50005         Set HAVE_STRTOLL.
50006         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
50007         HAVE_STRTOLL.
50008         * modules/strtoll (Depends-on): Add stdlib.
50009         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50010         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
50011
50012 2008-10-19  Bruno Haible  <bruno@clisp.org>
50013
50014         * modules/bcopy (Depends-on): Add strings.
50015         (Include): Specify <strings.h>.
50016
50017 2008-10-19  Bruno Haible  <bruno@clisp.org>
50018
50019         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
50020
50021 2008-10-19  Bruno Haible  <bruno@clisp.org>
50022
50023         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
50024         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
50025         mingw.
50026
50027 2008-10-19  Bruno Haible  <bruno@clisp.org>
50028
50029         * lib/atanl.c: Don't include isnanl.h.
50030         * lib/cosl.c: Likewise.
50031         * lib/ldexpl.c: Likewise.
50032         * lib/logl.c: Likewise.
50033         * lib/sinl.c: Likewise.
50034         * lib/sqrtl.c: Likewise.
50035         * lib/tanl.c: Likewise.
50036
50037         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
50038         * lib/isnanf.h: Remove file.
50039         * lib/isnand.h: Remove file.
50040         * lib/isnanl.h: Remove file.
50041         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
50042         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
50043         macros.
50044         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
50045         HAVE_ISNANF, don't define it as a C macro.
50046         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
50047         HAVE_ISNAND, don't define it as a C macro.
50048         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
50049         HAVE_ISNANL, don't define it as a C macro.
50050         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
50051         HAVE_ISNAN[FDL].
50052         * modules/isnanf (Files): Remove lib/isnanf.h.
50053         (Depends-on): Add math.
50054         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50055         (Include): Specify <math.h> instead of isnanf.h.
50056         * modules/isnand (Files): Remove lib/isnand.h.
50057         (Depends-on): Add math.
50058         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50059         (Include): Specify <math.h> instead of isnand.h.
50060         * modules/isnanl (Files): Remove lib/isnanl.h.
50061         (Depends-on): Add math.
50062         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
50063         (Include): Specify <math.h> instead of isnanl.h.
50064         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
50065         HAVE_ISNAN[FDL].
50066         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
50067         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
50068         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
50069         * NEWS: Mention the change.
50070
50071 2008-10-18  Bruno Haible  <bruno@clisp.org>
50072
50073         Add getusershell(), setusershell(), endusershell() declarations to
50074         <unistd.h>.
50075         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
50076         declarations.
50077         * lib/getusershell.c: Include unistd.h.
50078         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
50079         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
50080         HAVE_GETUSERSHELL.
50081         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
50082         and HAVE_GETUSERSHELL.
50083         * modules/getusershell (Depends-on): Add unistd, extensions.
50084         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50085         (Include): Specify <unistd.h>.
50086         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
50087         HAVE_GETUSERSHELL.
50088
50089 2008-10-18  Bruno Haible  <bruno@clisp.org>
50090
50091         Add a getloadavg() declaration to <stdlib.h>.
50092         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
50093         getloadavg declaration.
50094         (getloadavg): New declaration.
50095         * lib/getloadavg.c: Include <stdlib.h> first.
50096         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
50097         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
50098         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
50099         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
50100         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
50101         * modules/getloadavg (Depends-on): Add stdlib, extensions.
50102         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50103         (Include): Specify <stdlib.h>.
50104         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
50105         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
50106
50107 2008-10-18  Bruno Haible  <bruno@clisp.org>
50108
50109         * lib/dirchownmod.c: Don't include lchmod.h.
50110
50111         Move the lchmod() declaration to <sys/stat.h>.
50112         * lib/lchmod.h: Remove file.
50113         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
50114         (lchmod): New declaration, moved here from lib/lchown.h.
50115         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
50116         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
50117         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
50118         and HAVE_LCHMOD.
50119         * modules/lchmod (Files): Remove lib/lchmod.h.
50120         (Depends-on): Add sys_stat, extensions.
50121         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
50122         (Include): Specify <sys/stat.h> instead of lchmod.h.
50123         * modules/sys_stat (Depends-on): Add link-warning.
50124         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
50125         definition of GL_LINK_WARNING.
50126         * NEWS: Mention the change.
50127
50128 2008-10-18  Bruno Haible  <bruno@clisp.org>
50129
50130         * lib/fchdir.c: Don't include dirfd.h.
50131         * lib/fts.c: Likewise.
50132         * lib/getcwd.c: Likewise.
50133         * lib/glob.c: Likewise.
50134
50135         Move the dirfd() declaration to <dirent.h>.
50136         * lib/dirfd.h: Remove file.
50137         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
50138         (dirfd): New declaration.
50139         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
50140         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
50141         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
50142         HAVE_DECL_DIRFD.
50143         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
50144         HAVE_DECL_DIRFD.
50145         * modules/dirfd (Files): Remove lib/dirfd.h.
50146         (Depends-on): Add dirent, extensions.
50147         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
50148         (Include): Specify <dirent.h> instead of dirfd.h.
50149         * modules/dirent (Depends-on): Add link-warning.
50150         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
50151         definition of GL_LINK_WARNING.
50152         * NEWS: Mention the change.
50153
50154 2008-10-18  Bruno Haible  <bruno@clisp.org>
50155
50156         Move the euidaccess() declaration to <unistd.h>.
50157         * lib/euidaccess.h: Remove file.
50158         * lib/unistd.in.h (euidaccess): New declaration.
50159         * lib/euidaccess.c: Don't include euidaccess.h.
50160         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
50161         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
50162         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
50163         and HAVE_EUIDACCESS.
50164         * modules/euidaccess (Files): Remove lib/euidaccess.h.
50165         (Depends-on): Add unistd.
50166         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50167         (Include): Specify <unistd.h> instead of euidaccess.h.
50168         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
50169         HAVE_EUIDACCESS.
50170         * NEWS: Mention the change.
50171
50172 2008-10-18  Bruno Haible  <bruno@clisp.org>
50173
50174         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
50175
50176         Move the getdomainname() declaration to <unistd.h>.
50177         * lib/getdomainname.h: Remove file.
50178         * lib/unistd.in.h (getdomainname): New declaration.
50179         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
50180         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
50181         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
50182         HAVE_GETDOMAINNAME.
50183         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50184         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
50185         * modules/getdomainname (Files): Remove lib/getdomainname.h.
50186         (Depends-on): Add unistd, extensions.
50187         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
50188         (Includes): Specify <unistd.h> instead of getdomainname.h.
50189         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
50190         HAVE_GETDOMAINNAME.
50191         * NEWS: Mention the change.
50192
50193 2008-10-18  Bruno Haible  <bruno@clisp.org>
50194
50195         * modules/dirent: New file.
50196         * m4/dirent_h.m4: New file.
50197         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
50198         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
50199         * modules/fchdir (Files): Remove lib/dirent.in.h.
50200         (Depends-on): Add dirent.
50201         (Makefile.am): Move rules to modules/dirent.
50202         * doc/posix-headers/dirent.texi: Mention the new module.
50203
50204 2008-10-18  Bruno Haible  <bruno@clisp.org>
50205
50206         Avoid -Wunused-parameter warnings in public gnulib header files.
50207         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
50208         macro.
50209         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
50210
50211 2008-10-18  Bruno Haible  <bruno@clisp.org>
50212
50213         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
50214         * doc/glibc-functions/error.texi: Mention the module 'error'.
50215         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
50216         * doc/glibc-functions/getdomainname.texi: Mention the module
50217         'getdomainname'.
50218         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
50219         * doc/glibc-functions/getpagesize.texi: Mention the module
50220         'getpagesize'.
50221         * doc/glibc-functions/getusershell.texi: Mention the module
50222         'getusershell'.
50223         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
50224         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
50225         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
50226         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
50227         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
50228         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
50229         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
50230         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
50231         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
50232         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
50233         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
50234         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
50235         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
50236         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
50237
50238 2008-10-17  Bruno Haible  <bruno@clisp.org>
50239
50240         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
50241         HP-UX and IRIX, use -0.0L.
50242         * tests/test-ceill.c (minus_zero): Likewise.
50243         * tests/test-floorl.c (minus_zero): Likewise.
50244         * tests/test-frexpl.c (minus_zero): Likewise.
50245         * tests/test-isnan.c (minus_zerol): Likewise.
50246         * tests/test-isnanl.h (minus_zero): Likewise.
50247         * tests/test-ldexpl.c (minus_zero): Likewise.
50248         * tests/test-roundl.c (minus_zero): Likewise.
50249         * tests/test-signbit.c (minus_zerol): Likewise.
50250         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
50251         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
50252         * tests/test-truncl.c (minus_zero): Likewise.
50253         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
50254         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
50255         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
50256         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
50257
50258 2008-10-17  Bruno Haible  <bruno@clisp.org>
50259
50260         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
50261         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
50262         that it gets activated only for gcc >= 3.0.
50263         * lib/dirent.in.h: Likewise.
50264         * lib/errno.in.h: Likewise.
50265         * lib/fcntl.in.h: Likewise.
50266         * lib/float.in.h: Likewise.
50267         * lib/iconv.in.h: Likewise.
50268         * lib/inttypes.in.h: Likewise.
50269         * lib/locale.in.h: Likewise.
50270         * lib/math.in.h: Likewise.
50271         * lib/netdb.in.h: Likewise.
50272         * lib/netinet_in.in.h: Likewise.
50273         * lib/search.in.h: Likewise.
50274         * lib/signal.in.h: Likewise.
50275         * lib/spawn.in.h: Likewise.
50276         * lib/stdarg.in.h: Likewise.
50277         * lib/stdint.in.h: Likewise.
50278         * lib/stdio.in.h: Likewise.
50279         * lib/stdlib.in.h: Likewise.
50280         * lib/string.in.h: Likewise.
50281         * lib/strings.in.h: Likewise.
50282         * lib/sys_file.in.h: Likewise.
50283         * lib/sys_ioctl.in.h: Likewise.
50284         * lib/sys_select.in.h: Likewise.
50285         * lib/sys_socket.in.h: Likewise.
50286         * lib/sys_stat.in.h: Likewise.
50287         * lib/sys_time.in.h: Likewise.
50288         * lib/sysexits.in.h: Likewise.
50289         * lib/time.in.h: Likewise.
50290         * lib/unistd.in.h: Likewise.
50291         * lib/wchar.in.h: Likewise.
50292         * lib/wctype.in.h: Likewise.
50293         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50294
50295 2008-10-17  Jim Meyering  <meyering@redhat.com>
50296
50297         ignore-value: don't depend on inline module
50298         * modules/ignore-value (Depends-on): Remove 'inline'.
50299         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
50300         Suggestion from Bruno Haible.
50301
50302 2008-10-17  Bruno Haible  <bruno@clisp.org>
50303
50304         New implementation of condition variables for Win32.
50305         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
50306         (gl_linked_waitqueue_t): New type.
50307         (gl_cond_t): Use it.
50308         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
50309         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
50310         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
50311         (glthread_cond_init_func, glthread_cond_wait_func,
50312         glthread_cond_timedwait_func, glthread_cond_signal_func,
50313         glthread_cond_broadcast_func, glthread_cond_destroy_func):
50314         Reimplemented on the basis of gl_linked_waitqueue_t.
50315         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
50316         gl_waitqueue_t.
50317         (gl_rwlock_t): Update.
50318         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
50319
50320 2008-10-17  Simon Josefsson  <simon@josefsson.org>
50321
50322         * modules/recvfrom (Depends-on): Add dependency on getpeername.
50323         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
50324
50325 2008-10-17  Jim Meyering  <meyering@redhat.com>
50326
50327         ignore-value: new module
50328         * modules/ignore-value: New file.
50329         * lib/ignore-value.h: New file.
50330         * MODULES.html.sh (Compiler warning management): New section,
50331         just for this module.  More to come.
50332
50333 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
50334
50335         open-safer.c: avoid 'signed and unsigned in conditional...' warning
50336         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
50337         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
50338
50339 2008-10-16  Jim Meyering  <meyering@redhat.com>
50340
50341         openat-die.c: avoid 'no previous prototype' warning
50342         * lib/openat-die.c: Include "openat.h".
50343         Reported by Reuben Thomas <rrt@sc3d.org>.
50344
50345 2008-10-16  Simon Josefsson  <simon@josefsson.org>
50346
50347         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
50348         * lib/netdb.in.h: Fix typo.
50349         Reported by Bruno Haible  <bruno@clisp.org>
50350
50351         * lib/netdb.in.h: Include sys/socket.h for platforms without
50352         netdb.h, to get structures like hostent on MinGW.
50353         * modules/netdb (Depends-on): Add sys_socket.
50354
50355 2008-10-15  Simon Josefsson  <simon@josefsson.org>
50356
50357         * modules/netdb, modules/netdb-tests: New file.
50358         * m4/netdb_h.m4: New file.
50359         * lib/netdb.in.h: Add, currently just an empty file pending
50360         definitions.
50361         * tests/test-netdb.c: New file.
50362         * doc/posix-headers/netdb.texi: Mention that we replace it if
50363         needed.
50364         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50365         netdb.
50366
50367 2008-10-15  Simon Josefsson  <simon@josefsson.org>
50368
50369         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
50370         with code.
50371
50372 2008-10-13  Bruno Haible  <bruno@clisp.org>
50373
50374         * lib/glthread/cond.c (glthread_cond_wait_func,
50375         glthread_cond_timedwait_func): Add a comment.
50376
50377 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50378
50379         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
50380         * tests/test-select.c: Likewise,
50381
50382 2008-10-13  Bruno Haible  <bruno@clisp.org>
50383
50384         * lib/glthread/cond.c (glthread_cond_wait_func,
50385         glthread_cond_timedwait_func): Fix variable name.
50386         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
50387
50388 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
50389
50390         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
50391         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
50392         struct sockaddr.sa_len.
50393         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
50394
50395 2008-10-13  Simon Josefsson  <simon@josefsson.org>
50396
50397         * build-aux/pmccabe2html: Add css and css_url parameters.
50398
50399 2008-10-12  Bruno Haible  <bruno@clisp.org>
50400
50401         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
50402         calling aclx_get.
50403         Reported by Rainer Tammer <tammer@tammer.net>.
50404
50405 2008-10-12  Bruno Haible  <bruno@clisp.org>
50406
50407         Use msvcrt aware primitives for creation/termination of Win32 threads.
50408         * lib/glthread/thread.c: Include <process.h>.
50409         (glthread_create_func): Use _beginthreadex instead of CreateThread.
50410         (wrapper_func): Update signature.
50411         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
50412
50413 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
50414             Bruno Haible  <bruno@clisp.org>
50415
50416         Provide a Win32 implementation of the 'cond' module.
50417         * lib/glthread/cond.h [USE_WIN32]: New implementation.
50418         * lib/glthread/cond.c (glthread_cond_init_func,
50419         glthread_cond_wait_func, glthread_cond_timedwait_func,
50420         glthread_cond_signal_func, glthread_cond_broadcast_func,
50421         glthread_cond_destroy_func) [USE_WIN32]: New functions.
50422         * modules/cond (Dependencies): Add gettimeofday.
50423
50424 2008-10-11  Bruno Haible  <bruno@clisp.org>
50425
50426         Make sleep work on older versions of mingw.
50427         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
50428         only whether it exists.
50429         * doc/posix-functions/sleep.texi: Mention the problem with older
50430         versions of mingw.
50431
50432 2008-10-11  Bruno Haible  <bruno@clisp.org>
50433
50434         New module 'shutdown'.
50435         * modules/shutdown: New file.
50436         * lib/sys_socket.in.h (shutdown): New declaration.
50437         * lib/winsock.c (shutdown): New function.
50438         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
50439         GNULIB_SHUTDOWN.
50440         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
50441         * doc/posix-functions/shutdown.texi: Document the new module.
50442
50443 2008-10-11  Jim Meyering  <meyering@redhat.com>
50444
50445         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
50446
50447 2008-10-11  Bruno Haible  <bruno@clisp.org>
50448
50449         New module 'fclose'.
50450         * modules/fclose: New file.
50451         * lib/stdio.in.h (fclose): New declaration.
50452         * lib/fclose.c: New file.
50453         * m4/fclose.m4: New file.
50454         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
50455         REPLACE_FCLOSE.
50456         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
50457         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
50458         REPLACE_FCLOSE.
50459         * modules/close (Depends-on): fclose.
50460         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
50461
50462 2008-10-11  Bruno Haible  <bruno@clisp.org>
50463
50464         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
50465         set errno and don't call _close.
50466
50467 2008-10-10  Bruno Haible  <bruno@clisp.org>
50468
50469         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
50470         ACL, not afterwards. Fixes test failure on Cygwin.
50471
50472 2008-10-09  Ben Pfaff  <blp@gnu.org>
50473
50474         * build-aux/announce-gen: Fix gnulib version related part of usage
50475         message.  Die with a useful error message if no tarballs are
50476         found.
50477
50478 2008-10-10  Jim Meyering  <meyering@redhat.com>
50479
50480         bootstrap: use git's --depth=N option only if it's supported
50481         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
50482         recognize the --depth option.  Reported by Pádraig Brady.
50483
50484 2008-10-09  Bruno Haible  <bruno@clisp.org>
50485
50486         New module 'ioctl'.
50487         * modules/ioctl: New file.
50488         * lib/sys_socket.in.h (ioctl): Remove declaration.
50489         * lib/winsock.c: Include <sys/ioctl.h>.
50490         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
50491         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
50492         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
50493         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
50494         * doc/posix-functions/ioctl.texi: Mention the new module.
50495
50496 2008-10-09  Bruno Haible  <bruno@clisp.org>
50497
50498         New module 'sys_ioctl'.
50499         * lib/sys_ioctl.in.h: New file.
50500         * m4/sys_ioctl_h.m4: New file.
50501         * modules/sys_ioctl: New file.
50502         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
50503
50504 2008-10-09  Bruno Haible  <bruno@clisp.org>
50505
50506         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
50507         * lib/winsock.c: Include <stdarg.h>.
50508         (rpl_ioctl): Change to second argument 'int' and then varargs.
50509
50510 2008-10-09  Bruno Haible  <bruno@clisp.org>
50511
50512         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
50513         when the sys_socket module is present and the system has <winsock2.h>.
50514
50515 2008-10-09  Bruno Haible  <bruno@clisp.org>
50516
50517         * doc/posix-functions/close.texi: Mention module 'close' instead of
50518         module 'sys_socket'.
50519
50520 2008-10-09  Bruno Haible  <bruno@clisp.org>
50521
50522         * doc/glibc-headers/sys_ioctl.texi: New file.
50523         * doc/gnulib.texi: Include it.
50524
50525 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50526             Bruno Haible  <bruno@clisp.org>
50527
50528         Combine the two replacements of 'close'.
50529         * lib/sys_socket.in.h (close): Define to a reminder to include
50530         <unistd.h>.
50531         (_gl_close_fd_maybe_socket): New declaration.
50532         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
50533         * lib/winsock.c (close): Remove undefinition.
50534         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
50535         needed for the gnulib module 'close'.
50536         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
50537         define to an error symbol or to a warning, if suitable.
50538         * lib/close.c: Include <sys/socket.h>.
50539         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
50540         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
50541         UNISTD_H_HAVE_WINSOCK2_H.
50542         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
50543         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50544         UNISTD_H_HAVE_WINSOCK2_H.
50545         * modules/sys_socket (Files): Add m4/unistd_h.m4.
50546         (configure.ac): Set a module indicator.
50547         (Makefile.am): Substitute GNULIB_CLOSE.
50548         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
50549         * modules/poll-tests (Depends-on): Add close.
50550         * modules/select-tests (Depends-on): Likewise.
50551
50552 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50553             Bruno Haible  <bruno@clisp.org>
50554
50555         New module 'close'.
50556         * modules/close: New file.
50557         * lib/unistd.in.h (close): Move declaration out of the
50558         FCHDIR_REPLACEMENT scope.
50559         (_gl_unregister_fd): New declaration.
50560         * lib/close.c: New file.
50561         * lib/fchdir.c (rpl_close): Remove function.
50562         * m4/close.m4: New file.
50563         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
50564         close.
50565         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
50566         REPLACE_CLOSE.
50567         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
50568         REPLACE_CLOSE.
50569         * modules/fchdir (Depends-on): Add close.
50570
50571 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50572             Bruno Haible  <bruno@clisp.org>
50573
50574         * lib/fcntl.in.h (open): Simplify conditionals.
50575         (_gl_register_fd): New declaration.
50576         * lib/fchdir.c (rpl_open): Remove function.
50577         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
50578         also.
50579         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
50580         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
50581         open.
50582
50583 2008-10-09  Jim Meyering  <meyering@redhat.com>
50584
50585         GNUmakefile: use the more name-space-friendly "_version"
50586         * top/GNUmakefile (_dummy): Update.
50587         (_version): Rename from "version".
50588
50589 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50590             Bruno Haible  <bruno@clisp.org>
50591
50592         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
50593         rpl_close.
50594         (_gl_register_fd): New function, extracted from rpl_open.
50595         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
50596         (rpl_open, rpl_opendir): Use _gl_register_fd.
50597
50598 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
50599
50600         Fix organization of 'open' replacement.
50601         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
50602         (gl_FUNC_OPEN): Use it.
50603         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
50604
50605 2008-10-08  Bruno Haible  <bruno@clisp.org>
50606
50607         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
50608
50609 2008-10-08  Simon Josefsson  <simon@josefsson.org>
50610
50611         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
50612         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
50613         listen).
50614
50615 2008-10-08  Eric Blake  <ebb9@byu.net>
50616
50617         GNUmakefile: add 'make version' target
50618         * top/GNUmakefile (_curr-ver): Split version update rules...
50619         (version): ...into a target.
50620
50621 2008-10-07  Bruno Haible  <bruno@clisp.org>
50622
50623         Use a more portable replacement expression for -0.0L.
50624         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
50625         instead of -0.0L. Fix m4 quotation.
50626
50627         * tests/test-signbit.c: Include <float.h>.
50628         (minus_zero): New variable.
50629         (test_signbitl): Use minus_zero instead of -zero.
50630         * modules/signbit-tests (Depends-on): Add float.
50631
50632         * tests/test-ceill.c: Include <float.h>.
50633         (zero): Remove variable.
50634         (minus_zero): New variable.
50635         (main): Use minus_zero instead of -zero.
50636         * modules/ceill-tests (Depends-on): Add float.
50637
50638         * tests/test-floorl.c: Include <float.h>.
50639         (zero): Remove variable.
50640         (minus_zero): New variable.
50641         (main): Use minus_zero instead of -zero.
50642         * modules/floorl-tests (Depends-on): Add float.
50643
50644         * tests/test-roundl.c: Include <float.h>.
50645         (zero): Remove variable.
50646         (minus_zero): New variable.
50647         (main): Use minus_zero instead of -zero.
50648         * modules/roundl-tests (Depends-on): Add float.
50649
50650         * tests/test-truncl.c: Include <float.h>.
50651         (zero): Remove variable.
50652         (minus_zero): New variable.
50653         (main): Use minus_zero instead of -zero.
50654         * modules/truncl-tests (Depends-on): Add float.
50655
50656         * tests/test-frexpl.c (zero): Remove variable.
50657         (minus_zero): New variable.
50658         (main): Use minus_zero instead of -zero.
50659         * modules/frexpl-tests (Depends-on): Add float.
50660
50661         * tests/test-isnan.c (zerol): Remove variable.
50662         (minus_zerol): New variable.
50663         (test_long_double): Use minus_zerol instead of -zerol.
50664         * modules/isnan-tests (Depends-on): Add float.
50665
50666         * tests/test-isnanl.h (zero): Remove variable.
50667         (minus_zero): New variable.
50668         (main): Use minus_zero instead of -zero.
50669         * modules/isnanl-nolibm-tests (Depends-on): Add float.
50670         * modules/isnanl-tests (Depends-on): Add float.
50671
50672         * tests/test-ldexpl.c (zero): Remove variable.
50673         (minus_zero): New variable.
50674         (main): Use minus_zero instead of -zero.
50675         * modules/ldexpl-tests (Depends-on): Add float.
50676
50677         * tests/test-snprintf-posix.h (zerol): Remove variable.
50678         (minus_zerol): New variable.
50679         (test_function): Use minus_zerol instead of -zerol.
50680         * modules/snprintf-posix-tests (Depends-on): Add float.
50681         * modules/vsnprintf-posix-tests (Depends-on): Add float.
50682
50683         * tests/test-sprintf-posix.h (zerol): Remove variable.
50684         (minus_zerol): New variable.
50685         (test_function): Use minus_zerol instead of -zerol.
50686         * modules/sprintf-posix-tests (Depends-on): Add float.
50687         * modules/vsprintf-posix-tests (Depends-on): Add float.
50688
50689         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
50690         (minus_zerol): New variable.
50691         (test_function): Use minus_zerol instead of -zerol.
50692         * modules/vasnprintf-posix-tests (Depends-on): Add float.
50693
50694         * tests/test-vasprintf-posix.c (zerol): Remove variable.
50695         (minus_zerol): New variable.
50696         (test_function): Use minus_zerol instead of -zerol.
50697         * modules/vasprintf-posix-tests (Depends-on): Add float.
50698
50699 2008-10-07  Simon Josefsson  <simon@josefsson.org>
50700
50701         * MODULES.html.sh (Support for building documentation): Mention
50702         pmccabe2html.  Sort entries.
50703
50704         Add pmccabe2html module, from gnupdf.
50705         * build-aux/pmccabe.css: New file.
50706         * build-aux/pmccabe2html: New file.
50707         * m4/pmccabe2html.m4: New file.
50708         * modules/pmccabe2html: New file.
50709
50710 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
50711
50712         flock: new module
50713         * MODULES.html.sh: Add to list of modules.
50714         * lib/flock.c: flock implementation for Windows and Unix systems
50715         which have fcntl.
50716         * doc/glibc-functions/flock.texi: Update documentation.
50717         * lib/sys_file.in.h: <sys/file.h> header file.
50718         * m4/flock.m4: M4 macros.
50719         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
50720         * modules/flock: flock module.
50721         * modules/flock-tests: flock tests module.
50722         * modules/sys_file: sys/file.h module.
50723         * tests/test-flock.c: test suite for flock.
50724
50725 2008-10-06  Jim Meyering  <meyering@redhat.com>
50726
50727         bootstrap: check for LT_INIT more portably still ;-)
50728         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
50729         Spotted by Bruno Haible.
50730
50731 2008-10-06  Eric Blake  <ebb9@byu.net>
50732
50733         test-signbit: avoid tripping Irix cc bug on -0.0L
50734         * tests/test-signbit.c (minus_zerol): Delete, and replace with
50735         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
50736         entire testsuite consistent and avoids an Irix 6.2 bug.
50737
50738 2008-10-05  Bruno Haible  <bruno@clisp.org>
50739             Jim Meyering  <jim@meyering.net>
50740
50741         Add an option for ignoring EPIPE during close_stdout.
50742         * lib/closeout.h: Include <stdbool.h>.
50743         (close_stdout_set_ignore_EPIPE): New declaration.
50744         * lib/closeout.c: Include <stdbool.h>.
50745         (ignore_EPIPE): New variable.
50746         (close_stdout_set_ignore_EPIPE): New function.
50747         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
50748         * lib/close-stream.c (close_stream): Mention the possible EPIPE
50749         failure.
50750         * modules/closeout (Depends-on): Add stdbool.
50751
50752 2008-10-05  Bruno Haible  <bruno@clisp.org>
50753
50754         * modules/accept: New file.
50755         * modules/bind: New file.
50756         * modules/connect: New file.
50757         * modules/getpeername: New file.
50758         * modules/getsockname: New file.
50759         * modules/getsockopt: New file.
50760         * modules/listen: New file.
50761         * modules/recv: New file.
50762         * modules/recvfrom: New file.
50763         * modules/send: New file.
50764         * modules/sendto: New file.
50765         * modules/setsockopt: New file.
50766         * modules/socket: New file.
50767         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
50768         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
50769         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
50770         the particular module is requested. Add a link warning when the
50771         particular module is not requested.
50772         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
50773         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
50774         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
50775         the particular module is requested.
50776         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
50777         gl_SYS_SOCKET_H_DEFAULTS): New macros.
50778         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
50779         * modules/sys_socket (Depends-on): Add link-warning.
50780         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
50781         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
50782         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
50783         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
50784         GL_LINK_WARNING.
50785         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
50786         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
50787         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
50788         * doc/posix-functions/getpeername.texi: Mention the new module
50789         'getpeername'.
50790         * doc/posix-functions/getsockname.texi: Mention the new module
50791         'getsockname'.
50792         * doc/posix-functions/getsockopt.texi: Mention the new module
50793         'getsockopt'.
50794         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
50795         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
50796         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
50797         * doc/posix-functions/send.texi: Mention the new module 'send'.
50798         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
50799         * doc/posix-functions/setsockopt.texi: Mention the new module
50800         'setsockopt'.
50801         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
50802         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
50803         listen, connect, accept.
50804         * modules/select-tests (Depends-on): Likewise.
50805
50806 2008-10-05  Bruno Haible  <bruno@clisp.org>
50807
50808         * lib/winsock.c (strerror): Remove unused #undef.
50809         (rpl_close): Remove unused local variable.
50810
50811         * modules/sys_socket (Depends-on); Add errno.
50812
50813 2008-10-05  Bruno Haible  <bruno@clisp.org>
50814
50815         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
50816         (select): Add a link warning when the 'select' module is not used.
50817         * modules/sys_select (Depends-on): Add link-warning.
50818         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
50819         Suggested by Paolo Bonzini.
50820
50821 2008-10-05  Jim Meyering  <meyering@redhat.com>
50822
50823         bootstrap: check for LT_INIT more portably
50824         * build-aux/bootstrap: Avoid using grep -E, since it's not
50825         portable enough.  Suggestion from Bruno Haible.
50826
50827 2008-10-05  Bruno Haible  <bruno@clisp.org>
50828
50829         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
50830         as being fixed by gnulib.
50831
50832 2008-10-05  Bruno Haible  <bruno@clisp.org>
50833
50834         * modules/select-tests: New file, mostly copied from
50835         modules/sys_select-tests.
50836         * tests/test-select.c: New file, mostly copied from
50837         tests/test-sys_select.c.
50838         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
50839         * modules/sys_select-tests (Depends-on): Remove all dependencies.
50840         (Makefile.am): Remove test_sys_select_LDADD.
50841
50842         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
50843         to an undefined symbol, for an error message.
50844         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
50845         (gl_SYS_SELECT_H_DEFAULTS): New macro.
50846         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
50847         winsock-select.c here.
50848         * modules/sys_select (Files): Remove lib/winsock-select.c.
50849         (Depends-on): Remove alloca.
50850         (Makefile.am): Substitute GNULIB_SELECT.
50851         * modules/select: New file.
50852         * doc/posix-functions/select.texi: Update.
50853
50854 2008-10-05  Bruno Haible  <bruno@clisp.org>
50855
50856         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
50857         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
50858         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
50859         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
50860         getdtablesize.
50861         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
50862         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
50863
50864 2008-10-05  Bruno Haible  <bruno@clisp.org>
50865
50866         * modules/getdtablesize-tests: New file.
50867         * tests/test-getdtablesize.c: New file.
50868
50869         New module 'getdtablesize'.
50870         * lib/unistd.in.h (getdtablesize): New declaration.
50871         * lib/getdtablesize.c: New file.
50872         * m4/getdtablesize.m4: New file.
50873         * modules/getdtablesize: New file.
50874         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
50875         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
50876         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
50877         HAVE_GETDTABLESIZE.
50878         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
50879
50880 2008-10-05  Bruno Haible  <bruno@clisp.org>
50881
50882         * modules/sched (Makefile.am): Fix typo.
50883         Reported by Simon Josefsson.
50884
50885 2008-10-05  Jim Meyering  <meyering@redhat.com>
50886
50887         bootstrap: check for LT_INIT, too
50888         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
50889         are deprecated.  Suggestion from Ralf Wildenhues.
50890
50891 2008-10-05  Bruno Haible  <bruno@clisp.org>
50892
50893         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
50894         overriding them by ours.
50895         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
50896
50897 2008-10-05  Jim Meyering  <meyering@redhat.com>
50898
50899         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
50900         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
50901         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
50902
50903 2008-10-04  Bruno Haible  <bruno@clisp.org>
50904
50905         * modules/dup2 (License): Change to LGPLv2+.
50906         * modules/sleep (License): Likewise.
50907         * modules/perror (License): Likewise.
50908         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
50909         Blake.
50910         * modules/signal (License): Likewise.
50911         * modules/sigprocmask (License): Likewise.
50912         * modules/raise (License): Change to LGPLv2+, with approval by Jim
50913         Meyering.
50914
50915 2008-10-04  Bruno Haible  <bruno@clisp.org>
50916
50917         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
50918         Reported by Rainer Tammer <tammer@tammer.net>.
50919
50920 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
50921             Bruno Haible  <bruno@clisp.org>
50922
50923         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
50924         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
50925         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
50926
50927 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
50928
50929         filevercmp: new module
50930         * lib/filevercmp.h: New function filevercmp comparing version strings.
50931         * lib/filevercmp.c: Implementation of filevercmp function.
50932         * modules/filevercmp: Module metadata.
50933         * tests/test-filevercmp.c: Unit test for new module.
50934         * modules/filevercmp-tests: Unit test metadata.
50935         * MODULES.html.sh: Add filevercmp module.
50936
50937 2008-10-03  Bruno Haible  <bruno@clisp.org>
50938
50939         * lib/c-ctype.h: Add comment.
50940         Reported by Jim Meyering.
50941
50942 2008-10-02  Bruno Haible  <bruno@clisp.org>
50943
50944         * modules/posix_spawn-internal (Depends-on): Add 'open'.
50945
50946 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
50947
50948         * build-aux/bootstrap: Allow renaming bootstrap, and change the
50949         name of bootstrap.conf accordingly.
50950
50951 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
50952
50953         * build-aux/bootstrap: Install git-merge-changelog configuration
50954         items into .gitconfig if needed.
50955
50956 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
50957
50958         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
50959         git repository, and initialize/update it accordingly.
50960
50961 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
50962
50963         * modules/fsync-tests: New file.
50964         * tests/test-fsync.c: New file.
50965
50966         New module 'fsync'.
50967         * lib/fsync.c: New file.
50968         * m4/fsync.m4: New file.
50969         * modules/fsync: New file.
50970         * lib/unistd.in.h (fsync): New declaration.
50971         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
50972         GNULIB_FSYNC and HAVE_FSYNC.
50973         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
50974         * MODULES.html.sh (posix_functions): Add fsync.
50975         * doc/posix-functions/fsync.texi: Mention the new module.
50976
50977 2008-10-02  Jim Meyering  <meyering@redhat.com>
50978
50979         fts.c: sync with similar code from coreutils' remove.c
50980         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
50981         Guard also with "#if defined __linux__", since for now at least,
50982         this code is Linux-kernel-specific.
50983
50984 2008-10-02  Jim Meyering  <meyering@redhat.com>
50985
50986         fts: bug fixes
50987         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
50988         Include <sys/vfs.h>, not <sys/statfs.h>.
50989
50990         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
50991         Include <sys/vfs.h>, not <sys/statfs.h>.
50992
50993 2008-10-01  Bruno Haible  <bruno@clisp.org>
50994
50995         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
50996         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
50997         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
50998         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
50999         * doc/posix-functions/posix_spawnp.texi: Likewise.
51000         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
51001         whether posix_spawn actually works.
51002         * m4/pipe.m4 (gl_PIPE): Likewise.
51003         * modules/execute (Files): Add m4/posix_spawn.m4.
51004         * modules/pipe (Files): Add m4/posix_spawn.m4.
51005         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
51006
51007 2008-10-01  Jim Meyering  <meyering@redhat.com>
51008
51009         remove trailing spaces
51010         * NEWS: Likewise.
51011         * lib/poll.c (poll): Likewise.
51012         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
51013         * lib/winsock.c (rpl_close): Likewise.
51014         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
51015         * modules/yield: Likewise.
51016         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
51017         * tests/test-sys_select.c (connect_to_socket): Likewise.
51018
51019         fts.c: adjust a new interface to be more generally useful
51020         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
51021         (fts_build): Adjust caller.
51022
51023 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51024
51025         * modules/cond-tests: New file.
51026         * tests/test-cond.c: New file.
51027
51028 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51029             Bruno Haible  <bruno@clisp.org>
51030
51031         * modules/cond (Dependencies): Add errno, time.
51032         * lib/glthread/cond.h: Include <time.h>.
51033         (gl_cond_define, gl_cond_define_initialized): Use the same definition
51034         across platforms.
51035
51036 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51037             Bruno Haible  <bruno@clisp.org>
51038
51039         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
51040
51041 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51042             Bruno Haible  <bruno@clisp.org>
51043
51044         * modules/tls-tests (Depends-on): Add thread, yield.
51045         (configure.ac): Remove all checks.
51046         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
51047         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
51048         gl_thread_self): Remove definitions. Include glthread/thread.h and
51049         glthread/yield.h instead.
51050         (test_tls): Pass an additional NULL argument to gl_thread_join.
51051
51052 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51053             Bruno Haible  <bruno@clisp.org>
51054
51055         * modules/lock-tests (Depends-on): Add thread, yield.
51056         (configure.ac): Remove all checks.
51057         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
51058         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
51059         gl_thread_self): Remove definitions. Include glthread/thread.h and
51060         glthread/yield.h instead.
51061         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
51062         additional NULL argument to gl_thread_join.
51063
51064 2008-09-30  Bruno Haible  <bruno@clisp.org>
51065
51066         Fix the Win32 implementation of the 'thread' module.
51067         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
51068         pointer type.
51069         (gl_thread_self): Invoke gl_thread_self_func.
51070         (gl_thread_self_func): New declaration.
51071         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
51072         (do_init_self_key, init_self_key): New functions.
51073         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
51074         Remove some fields.
51075         (running_threads, running_lock): Remove variables.
51076         (get_current_thread_handle): New function.
51077         (gl_thread_self_func, wrapper_func, glthread_create_func,
51078         glthread_join_func, gl_thread_exit_func): Largely rewritten and
51079         simplified.
51080
51081 2008-09-30  Bruno Haible  <bruno@clisp.org>
51082
51083         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
51084         files.
51085
51086 2008-09-30  Jim Meyering  <meyering@redhat.com>
51087
51088         fts.m4: correct the test for statfs.f_type
51089         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
51090         when checking for statfs.f_type.
51091
51092 2008-09-15  Simon Josefsson  <simon@josefsson.org>
51093
51094         tests: avoid some compiler warnings
51095         * tests/test-memchr.c (main): Pass NULL indirectly.
51096         * tests/test-getdate.c (main): Remove unused variable 'ret'.
51097
51098 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
51099
51100         getdate.y: disallow countable dayshifts like "4 yesterday ago"
51101         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
51102         exactly specified dayshifts.
51103         (dayshift): New rule.
51104         (rel): Add dayshift.
51105         (relative_time_table) [tomorrow, yesterday, today, now]:
51106         Use tDAY_SHIFT in place of tDAY_UNIT.
51107         * tests/test-getdate.c: Add tests for now-disallowed countable
51108         dayshifts, e.g., "4 yesterday ago".
51109
51110 2008-09-29  Bruno Haible  <bruno@clisp.org>
51111
51112         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
51113         * tests/test-posix_spawn1.in.sh: Renamed from
51114         tests/test-posix_spawn.in.sh.
51115         * tests/test-posix_spawn2.c: New file.
51116         * tests/test-posix_spawn2.in.sh: New file.
51117         * modules/posix_spawnp-tests (Files): Update.
51118         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
51119
51120 2008-09-29  Bruno Haible  <bruno@clisp.org>
51121
51122         Propagate effects of putenv/setenv/unsetenv to child processes.
51123         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
51124         * lib/pipe.c (create_pipe): Likewise.
51125
51126 2008-09-29  Bruno Haible  <bruno@clisp.org>
51127
51128         Enable use of shell scripts as executables in mingw.
51129         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
51130         run the program as a shell script.
51131         * lib/pipe.c (create_pipe): Likewise.
51132         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
51133         resulting array.
51134
51135 2008-09-29  Eric Blake  <ebb9@byu.net>
51136
51137         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
51138
51139 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
51140
51141         * doc/posix-functions/accept.texi: Update mingw problems.
51142         * doc/posix-functions/bind.texi: Update mingw problems.
51143         * doc/posix-functions/close.texi: Update mingw problems.
51144         * doc/posix-functions/connect.texi: Update mingw problems.
51145         * doc/posix-functions/getpeername.texi: Update mingw problems.
51146         * doc/posix-functions/getsockname.texi: Update mingw problems.
51147         * doc/posix-functions/getsockopt.texi: Update mingw problems.
51148         * doc/posix-functions/ioctl.texi: Update mingw problems.
51149         * doc/posix-functions/listen.texi: Update mingw problems.
51150         * doc/posix-functions/recv.texi: Update mingw problems.
51151         * doc/posix-functions/recvfrom.texi: Update mingw problems.
51152         * doc/posix-functions/select.texi: Update mingw problems.
51153         * doc/posix-functions/send.texi: Update mingw problems.
51154         * doc/posix-functions/sendto.texi: Update mingw problems.
51155         * doc/posix-functions/setsockopt.texi: Update mingw problems.
51156         * doc/posix-functions/socket.texi: Update mingw problems.
51157
51158 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
51159             Bruno Haible  <bruno@clisp.org>
51160
51161         * lib/sys_select.in.h: Include sys/time.h.
51162         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
51163         * modules/sys_select: Depend on sys_time.
51164         * tests/test-sys_select.c: Test that sys/select.h defines struct
51165         timeval fully.
51166
51167 2008-09-29  Bruno Haible  <bruno@clisp.org>
51168
51169         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
51170         * lib/sys_select.in.h: Likewise.
51171
51172 2008-09-29  Bruno Haible  <bruno@clisp.org>
51173
51174         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
51175
51176 2008-09-29  Bruno Haible  <bruno@clisp.org>
51177
51178         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
51179         Set LIBSOCKET instead of augmenting LIBS.
51180         * modules/sockets (Link): New section.
51181         * modules/sockets-tests (test_sockets_LDADD): New variable.
51182         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
51183         * modules/poll-tests (test_poll_LDADD): New variable.
51184         * NEWS: Document the change.
51185
51186 2008-09-29  Bruno Haible  <bruno@clisp.org>
51187
51188         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
51189         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
51190         ARPA_INET_H directly.
51191         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
51192
51193 2008-09-28  Bruno Haible  <bruno@clisp.org>
51194
51195         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
51196         from gl_HEADER_SYS_SOCKET.
51197         (gl_HEADER_SYS_SOCKET): Invoke it.
51198         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
51199
51200 2008-09-28  Bruno Haible  <bruno@clisp.org>
51201
51202         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
51203         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
51204         Needed on OSF/1 4.0.
51205
51206 2008-09-28  Bruno Haible  <bruno@clisp.org>
51207
51208         Override open more carefully.
51209         * lib/open.c (orig_open): New function.
51210         (rpl_open): Use orig_open instead of open.
51211         * lib/fcntl.in.h: Add special invocation convention.
51212         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
51213         (gl_FUNC_OPEN): Invoke it.
51214
51215         Override freopen more carefully.
51216         * lib/freopen.c (orig_freopen): New function.
51217         (rpl_freopen): Use orig_freopen instead of freopen.
51218         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
51219         (gl_FUNC_FREOPEN): Invoke it.
51220
51221         Override fopen more carefully.
51222         * lib/fopen.c (orig_fopen): New function.
51223         (rpl_fopen): Use orig_fopen instead of fopen.
51224         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
51225         (gl_FUNC_FOPEN): Invoke it.
51226         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
51227
51228 2008-09-28  Bruno Haible  <bruno@clisp.org>
51229
51230         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
51231         SIGPIPE.
51232
51233 2008-09-28  Bruno Haible  <bruno@clisp.org>
51234
51235         * tests/test-sigaction.c (handler, main): Disable the check whether
51236         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
51237         glibc systems with LinuxThreads.
51238
51239 2008-09-28  Bruno Haible  <bruno@clisp.org>
51240
51241         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
51242
51243         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
51244         with AIX xlc.
51245         * lib/fcntl.in.h (open): Likewise.
51246         Reported by Rainer Tammer <tammer@tammer.net>.
51247
51248 2008-09-28  Bruno Haible  <bruno@clisp.org>
51249
51250         * modules/posix_spawnp-tests: New file.
51251         * tests/test-posix_spawn.c: New file.
51252         * tests/test-posix_spawn.in.sh: New file.
51253
51254         New module 'posix_spawnp'.
51255         * modules/posix_spawnp: New file.
51256         * lib/spawnp.c: New file, from GNU libc with modifications.
51257         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
51258
51259         New module 'posix_spawn'.
51260         * modules/posix_spawn: New file.
51261         * lib/spawn.c: New file, from GNU libc with modifications.
51262         * doc/posix-functions/posix_spawn.texi: Mention the new module.
51263
51264         New module 'posix_spawnattr_destroy'.
51265         * modules/posix_spawnattr_destroy: New file.
51266         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
51267         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
51268         module.
51269
51270         New module 'posix_spawnattr_setsigmask'.
51271         * modules/posix_spawnattr_setsigmask: New file.
51272         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
51273         modifications.
51274         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
51275         new module.
51276
51277         New module 'posix_spawnattr_getsigmask'.
51278         * modules/posix_spawnattr_getsigmask: New file.
51279         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
51280         modifications.
51281         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
51282         new module.
51283
51284         New module 'posix_spawnattr_setsigdefault'.
51285         * modules/posix_spawnattr_setsigdefault: New file.
51286         * lib/spawnattr_setdefault.c: New file, from GNU libc with
51287         modifications.
51288         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
51289         new module.
51290
51291         New module 'posix_spawnattr_getsigdefault'.
51292         * modules/posix_spawnattr_getsigdefault: New file.
51293         * lib/spawnattr_getdefault.c: New file, from GNU libc with
51294         modifications.
51295         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
51296         new module.
51297
51298         New module 'posix_spawnattr_setschedpolicy'.
51299         * modules/posix_spawnattr_setschedpolicy: New file.
51300         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
51301         modifications.
51302         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
51303         new module.
51304
51305         New module 'posix_spawnattr_getschedpolicy'.
51306         * modules/posix_spawnattr_getschedpolicy: New file.
51307         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
51308         modifications.
51309         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
51310         new module.
51311
51312         New module 'posix_spawnattr_setschedparam'.
51313         * modules/posix_spawnattr_setschedparam: New file.
51314         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
51315         modifications.
51316         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
51317         new module.
51318
51319         New module 'posix_spawnattr_getschedparam'.
51320         * modules/posix_spawnattr_getschedparam: New file.
51321         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
51322         modifications.
51323         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
51324         new module.
51325
51326         New module 'posix_spawnattr_setpgroup'.
51327         * modules/posix_spawnattr_setpgroup: New file.
51328         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
51329         modifications.
51330         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
51331         module.
51332
51333         New module 'posix_spawnattr_getpgroup'.
51334         * modules/posix_spawnattr_getpgroup: New file.
51335         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
51336         modifications.
51337         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
51338         module.
51339
51340         New module 'posix_spawnattr_setflags'.
51341         * modules/posix_spawnattr_setflags: New file.
51342         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
51343         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
51344         module.
51345
51346         New module 'posix_spawnattr_getflags'.
51347         * modules/posix_spawnattr_getflags: New file.
51348         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
51349         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
51350         module.
51351
51352         New module 'posix_spawnattr_init'.
51353         * modules/posix_spawnattr_init: New file.
51354         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
51355         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
51356         module.
51357
51358         New module 'posix_spawn_file_actions_destroy'.
51359         * modules/posix_spawn_file_actions_destroy: New file.
51360         * lib/spawn_faction_destroy.c: New file, from GNU libc with
51361         modifications.
51362         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
51363         the new module.
51364
51365         New module 'posix_spawn_file_actions_addopen'.
51366         * modules/posix_spawn_file_actions_addopen: New file.
51367         * lib/spawn_faction_addopen.c: New file, from GNU libc with
51368         modifications.
51369         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
51370         the new module.
51371
51372         New module 'posix_spawn_file_actions_adddup2'.
51373         * modules/posix_spawn_file_actions_adddup2: New file.
51374         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
51375         modifications.
51376         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
51377         the new module.
51378
51379         New module 'posix_spawn_file_actions_addclose'.
51380         * modules/posix_spawn_file_actions_addclose: New file.
51381         * lib/spawn_faction_addclose.c: New file, from GNU libc with
51382         modifications.
51383         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
51384         the new module.
51385
51386         New module 'posix_spawn_file_actions_init'.
51387         * modules/posix_spawn_file_actions_init: New file.
51388         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
51389         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
51390         new module.
51391
51392         New module 'posix_spawn-internal'.
51393         * modules/posix_spawn-internal: New file.
51394         * lib/spawn_int.h: New file, from GNU libc with modifications.
51395         * lib/spawni.c: New file, from GNU libc with modifications.
51396         * m4/posix_spawn.m4: New file.
51397
51398         New module 'spawn'.
51399         * modules/spawn: New file.
51400         * lib/spawn.in.h: New file, from GNU libc with modifications.
51401         * m4/spawn_h.m4: New file.
51402         * doc/posix-headers/spawn.texi: Mention the new module.
51403
51404 2008-09-28  Bruno Haible  <bruno@clisp.org>
51405
51406         * modules/sched-tests: New file.
51407         * tests/test-sched.c: New file.
51408
51409         New module 'sched'.
51410         * modules/sched: New file.
51411         * lib/sched.in.h: New file.
51412         * m4/sched_h.m4: New file.
51413         * doc/posix-headers/sched.texi: Mention the new module.
51414
51415 2008-09-27  Eric Blake  <ebb9@byu.net>
51416
51417         Fix previous patch, and tweak references to $0.
51418         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
51419         (func_version, func_gnulib_dir): Don't call this program
51420         gnulib-tool.
51421         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
51422         with using $0 in function.
51423         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
51424         (func_fatal_error): Reuse the name the user invoked us with.
51425
51426 2008-09-27  Bruno Haible  <bruno@clisp.org>
51427
51428         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
51429         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
51430         (gl_ICONV_H): Not here.
51431         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
51432         instead of assigning ICONV_H directly.
51433
51434         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
51435         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
51436         WCHAR_H directly.
51437
51438 2008-09-27  Bruno Haible  <bruno@clisp.org>
51439
51440         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
51441         * modules/arpa_inet (Depends-on): Add link-warning.
51442         (Makefile.am): Insert the definition of GL_LINK-WARNING.
51443         * modules/unistd (Makefile.am): Likewise.
51444
51445 2008-09-26  Bruno Haible  <bruno@clisp.org>
51446
51447         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
51448         variables.
51449         (func_version): Essentially copied from gnulib-tool.
51450         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
51451         func_readlink): Copied from gnulib-tool.
51452
51453 2008-09-26  Bruno Haible  <bruno@clisp.org>
51454
51455         * gnulib-tool (func_version): Change directory to $gnulib_dir before
51456         invoking git-version-gen.
51457
51458 2008-09-26  Bruno Haible  <bruno@clisp.org>
51459
51460         * posix-modules: Update to directory names changed on 2008-01-19.
51461         Remove commas in output before splitting into words. No more need to
51462         avoid 'ftruncate' since 2007-02-19.
51463
51464 2008-09-26  Bruno Haible  <bruno@clisp.org>
51465
51466         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
51467
51468 2008-09-26  Bruno Haible  <bruno@clisp.org>
51469
51470         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
51471         * modules/fwriteerror (Depends-on): Add errno.
51472
51473 2008-09-26  Bruno Haible  <bruno@clisp.org>
51474
51475         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
51476         * tests/test-vc-list-files-cvs.sh: Likewise.
51477
51478 2008-09-26  Bruno Haible  <bruno@clisp.org>
51479
51480         * doc/posix-headers/sys_resource.texi: Reorder items.
51481
51482 2008-09-26  Jim Meyering  <meyering@redhat.com>
51483
51484         fts: tweak inode comparison function
51485         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
51486         inode numbers, as documented.
51487
51488         fts: sort dirent entries on inode number before traversing
51489         This avoids a quadratic, seek-related performance penalty when
51490         operating on a directory containing many entries (measurable at 10k;
51491         3.5 hours at 2 million entries with a cold cache) on certain types
51492         of file systems, including ext3 and ext4, but not tmpfs.
51493         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
51494         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
51495         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
51496         (fs_handles_readdir_ordered_dirents_efficiently): New function.
51497         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
51498         (fts_build): Set the stat.st_ino member from D_INO.
51499         If it is likely to be useful, sort dirent entries on inode number.
51500
51501         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
51502         and the struct statfs.f_type member.
51503         * modules/fts (Depends-on): Add d-ino.
51504
51505 2008-09-26  Bruno Haible  <bruno@clisp.org>
51506
51507         * modules/sigpipe-die (Depends-on): Add sigpipe.
51508
51509         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
51510         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
51511         and GNULIB_STDIO_H_SIGPIPE are set.
51512         * lib/stdio-write.c: New file.
51513         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
51514         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
51515         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
51516         REPLACE_STDIO_WRITE_FUNCS.
51517         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
51518         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
51519         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
51520         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
51521         * modules/stdio (Files): Add lib/stdio-write.c.
51522         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
51523         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
51524         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
51525         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
51526         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
51527         REPLACE_FPRINTF_POSIX.
51528         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
51529         REPLACE_PRINTF_POSIX.
51530         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
51531         REPLACE_VFPRINTF_POSIX.
51532         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
51533         REPLACE_VPRINTF_POSIX.
51534         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
51535         SIGPIPE issue.
51536         * doc/posix-functions/fputc.texi: Likewise.
51537         * doc/posix-functions/fputs.texi: Likewise.
51538         * doc/posix-functions/fwrite.texi: Likewise.
51539         * doc/posix-functions/printf.texi: Likewise.
51540         * doc/posix-functions/putc.texi: Likewise.
51541         * doc/posix-functions/putchar.texi: Likewise.
51542         * doc/posix-functions/puts.texi: Likewise.
51543         * doc/posix-functions/vfprintf.texi: Likewise.
51544         * doc/posix-functions/vprintf.texi: Likewise.
51545
51546         * modules/safe-write (Depends-on): Add write.
51547
51548         * modules/sigpipe-tests: New file.
51549         * tests/test-sigpipe.c: New file.
51550         * tests/test-sigpipe.sh: New file.
51551
51552         * modules/write: New file.
51553         * lib/unistd.in.h: Include <sys/types.h>.
51554         (write): New declaration.
51555         * lib/write.c: New file.
51556         * m4/write.m4: New file.
51557         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
51558         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
51559         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
51560         GNULIB_WRITE, REPLACE_WRITE.
51561         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
51562         and the SIGPIPE issue.
51563
51564         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
51565         (raise): New declaration.
51566         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
51567         (ext_signal): New function.
51568         (rpl_raise): New function.
51569         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
51570         GNULIB_SIGNAL_H_SIGPIPE.
51571         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
51572         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
51573
51574         * modules/sigpipe: New file.
51575         * m4/sigpipe.m4: New file.
51576
51577 2008-09-25  Derek Price  <derek@ximbiot.com>
51578             Bruno Haible  <bruno@clisp.org>
51579
51580         * gnulib-tool (func_import): Report all license incompatibilities, not
51581         just the first one.
51582
51583 2008-09-25  Bruno Haible  <bruno@clisp.org>
51584
51585         * gnulib-tool (func_import): When computing the edits, consider not
51586         only the Makefile.ams that exist but also those that will be generated.
51587
51588 2008-09-25  Simon Josefsson  <simon@josefsson.org>
51589
51590         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
51591         fixes gnulib-tool --test warning about duplicate dependency.
51592
51593 2008-09-25  Bruno Haible  <bruno@clisp.org>
51594
51595         * gnulib-tool: Don't ask the user to perform edits in the generated
51596         Makefile.ams.
51597         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
51598         apply to the Makefile.am being generated.
51599         (func_emit_tests_Makefile_am): Execute edits that apply to the
51600         Makefile.am being generated.
51601         (func_import): Setup list of Makefile.am edits before emitting the
51602         Makefile.ams, not at the end.
51603         (func_create_testdir): Update.
51604         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51605
51606 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51607
51608         * gnulib-tool (func_import): Store the --tests-base option in the
51609         comment in gnulib-cache.m4.
51610
51611 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
51612
51613         * NEWS: Document increased portability that sys_select now provides.
51614
51615         * lib/sys_select.in.h: Install select wrapper.
51616         * lib/sys_socket.in.h: Use more descriptive name when there is no
51617         select wrapper.
51618         * lib/winsock-select.c: New.
51619         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
51620         Require gl_HEADER_SYS_SOCKET.
51621         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
51622         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
51623         * tests/test-sys_select.c: Add functional tests.
51624
51625 2008-09-24  Eric Blake  <ebb9@byu.net>
51626
51627         open, fopen: close fd leak in last patch
51628         * lib/open.c (rpl_open): Close fd before returning error.
51629         * lib/fopen.c (rpl_fopen): Close fd before returning error.
51630         * doc/posix-functions/open.texi (open): Document that Irix also
51631         has the bug.
51632         * doc/posix-functions/fopen.texi (fopen): Likewise.
51633         Reported by Paolo Bonzini.
51634
51635 2008-09-24  Bruno Haible  <bruno@clisp.org>
51636
51637         Ensure that a filename ending in a slash cannot be used to access a
51638         non-directory.
51639         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
51640         to check whether it's really a directory.
51641         * lib/fopen.c: Include fcntl.h, unistd.h.
51642         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
51643         and fdopen().
51644         * modules/fopen (Depends-on): Add unistd.
51645         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
51646         * tests/test-fopen.c (main): Likewise.
51647         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
51648         * doc/posix-functions/fopen.texi: Likewise.
51649         Reported by Eric Blake.
51650
51651 2008-09-23  Eric Blake  <ebb9@byu.net>
51652
51653         c-stack: avoid compiler optimizations when provoking overflow
51654         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
51655         recursion harder to optimize, to ensure a stack overflow occurs.
51656         * tests/test-c-stack.c (recurse): Likewise.
51657         Borrowed from libsigsegv.
51658
51659         c-stack: work around Irix sigaltstack bug
51660         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
51661         whether sigaltstack uses wrong end of stack_t (copied in part from
51662         libsigsegv).
51663         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
51664         Irix bug, without requiring an over-allocation.
51665         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
51666         bug.
51667
51668         fopen: document mingw bug on directories
51669         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
51670         not allowing a stream visiting a directory, even though reading
51671         from such a stream is not portable.
51672
51673 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
51674
51675         * lib/poll.c: Rewrite.
51676         * modules/poll: Depend on alloca.
51677
51678 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
51679
51680         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
51681         instead define prototypes for a full set of wrappers.  Ensure
51682         that Cygwin does not use the compatibility code, which is only
51683         for MinGW.
51684         * lib/winsock.c: New.
51685         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
51686         * modules/sys_socket: Add lib/winsock.c.
51687
51688         * modules/poll-tests: Add errno and perror.
51689         * tests/test-poll.c: Use ioctl, not ioctlsocket.
51690
51691 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
51692
51693         * tests/test-poll.c: Downgrade minimum needed Winsock version.
51694
51695 2008-09-23  Bruno Haible  <bruno@clisp.org>
51696
51697         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
51698         * doc/glibc-functions/*: Likewise.
51699
51700 2008-09-23  Simon Josefsson  <simon@josefsson.org>
51701
51702         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
51703         success.
51704
51705 2008-09-22  Eric Blake  <ebb9@byu.net>
51706             Bruno Haible  <bruno@clisp.org>
51707
51708         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
51709         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
51710         supply %A but mishandle pseudo-NaN.
51711         Reported by Simon Josefsson.
51712
51713 2008-09-21  Bruno Haible  <bruno@clisp.org>
51714
51715         * tests/test-lock.c (main): Tweak skip message.
51716         * tests/test-tls.c (main): Likewise.
51717
51718 2008-09-21  Bruno Haible  <bruno@clisp.org>
51719
51720         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
51721         whether 'struct sigaction' has sa_sigaction here...
51722         (gl_PREREQ_SIG_HANDLER_H): ... not here.
51723         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
51724
51725 2008-09-21  Bruno Haible  <bruno@clisp.org>
51726
51727         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
51728         section.
51729         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
51730         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
51731         the new section.
51732         (Support for obsolete systems lacking POSIX:2001): New section.
51733         (String handling <string.h>): Move strdup to the new section.
51734         Suggested by Simon Josefsson and Paolo Bonzini.
51735
51736 2008-09-21  Bruno Haible  <bruno@clisp.org>
51737
51738         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
51739         exponents in %e and %g results on 'long double'. Needed for mingw's
51740         improved *printf functions.
51741         * tests/test-vasprintf-posix.c (test_function): Likewise.
51742         * tests/test-snprintf-posix.h (test_function): Likewise.
51743         * tests/test-sprintf-posix.h (test_function): Likewise.
51744         Reported by Eric Blake.
51745
51746 2008-09-21  Bruno Haible  <bruno@clisp.org>
51747
51748         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
51749         * tests/test-sprintf-posix.h (test_function): Likewise.
51750
51751 2008-09-21  Bruno Haible  <bruno@clisp.org>
51752
51753         * modules/getpass (Depends-on): Add strdup-posix.
51754
51755         New module 'strdup-posix'.
51756         * modules/strdup-posix: New file.
51757         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
51758         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
51759         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
51760         REPLACE_STRDUP.
51761         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
51762         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
51763         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
51764         strdup-posix.
51765
51766         * modules/strdup (Depends-on): Remove malloc-posix.
51767
51768 2008-09-20  Bruno Haible  <bruno@clisp.org>
51769
51770         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
51771         Wildenhues.
51772
51773 2008-09-20  Bruno Haible  <bruno@clisp.org>
51774
51775         Ensure that wint_t gets defined on IRIX 5.3.
51776         * lib/wchar.in.h (wint_t): Define if not defined by the system.
51777         * lib/wctype.in.h (wint_t): Likewise.
51778         (__wctype_wint_t): Remove type.
51779         (isw*): Use wint_t instead of __wctype_wint_t.
51780         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
51781         * modules/wchar (Files): Add m4/wint_t.m4.
51782         (Makefile.am): Substitute HAVE_WINT_T.
51783         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
51784         * tests/test-wctype.c: Check that wint_t is defined.
51785         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
51786         * doc/posix-headers/wctype.texi: Likewise.
51787         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51788
51789 2008-09-18  Bruno Haible  <bruno@clisp.org>
51790
51791         * gnulib-tool (func_exit): Update comment.
51792
51793 2008-09-18  Simon Josefsson  <simon@josefsson.org>
51794
51795         * modules/getaddrinfo (Depends-on): Remove strdup, this module
51796         assumes strdup exists and does not depend on strdup to return
51797         ENOMEM on out of memory conditions.
51798
51799 2008-09-18  Bruno Haible  <bruno@clisp.org>
51800
51801         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
51802         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
51803         digits for the exponent.
51804
51805 2008-09-18  Jim Meyering  <meyering@redhat.com>
51806             Bruno Haible  <bruno@clisp.org>
51807
51808         * lib/vasnprintf.c (decimal_point_char): Define also if
51809         NEED_PRINTF_INFINITE_LONG_DOUBLE.
51810
51811 2008-09-16  Bruno Haible  <bruno@clisp.org>
51812         and Eric Blake  <ebb9@byu.net>
51813
51814         vasnprintf: support Irix 5.3
51815         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
51816         that mishandle long double infinity.
51817         Reported by Tom G. Christensen.
51818
51819 2008-09-16  Bruno Haible  <bruno@clisp.org>
51820
51821         * doc/glibc-functions/scandir.texi: Mention the function is missing on
51822         Solaris 9.
51823         * doc/glibc-functions/alphasort.texi: Likewise.
51824         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
51825
51826 2008-09-16  Jim Meyering  <meyering@redhat.com>
51827
51828         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
51829         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
51830         a umask modification leak out of a subshell.  Otherwise, the
51831         opensolaris /bin/sh would be accepted and thus cause unwarranted
51832         failures in the coreutils test suite.
51833
51834 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
51835
51836         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
51837         to succeed.
51838
51839 2008-09-16  Jim Meyering  <meyering@redhat.com>
51840
51841         avoid spurious test failure when library is built without ACL support
51842         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
51843         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
51844         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
51845         * tests/test-copy-acl.sh: Likewise.
51846
51847 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51848
51849         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
51850         based on character occurrence counts.
51851
51852 2008-09-15  Eric Blake  <ebb9@byu.net>
51853
51854         tests: avoid some compiler warnings
51855         * tests/test-memchr.c (main): Pass NULL indirectly.
51856         * tests/test-closein.c (main): Avoid unused variable.
51857
51858 2008-09-15  Bruno Haible  <bruno@clisp.org>
51859
51860         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
51861         are missing on OpenBSD 4.0 individually.
51862         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51863
51864 2008-09-15  Bruno Haible  <bruno@clisp.org>
51865
51866         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
51867         * doc/posix-functions/strerror.texi: Mention also Cygwin.
51868         * doc/posix-functions/perror.texi: Likewise.
51869         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
51870         is missing.
51871         Reported by Eric Blake.
51872
51873         * lib/errno.in.h: Use replacement values >= 2000.
51874         Reported by Eric Blake.
51875
51876 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51877
51878         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
51879         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
51880         limit.
51881         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
51882         compareseq was aborted.
51883
51884 2008-09-14  Bruno Haible  <bruno@clisp.org>
51885
51886         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
51887         yvec_edit_count.
51888         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
51889         (fstrcmp_bounded): Simplify result computation accordingly.
51890
51891 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51892
51893         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
51894         (fstrcmp): Define in terms of fstrcmp_bounded.
51895         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
51896         lower_bound argument.
51897         Return quickly if the result is certainly < lower_bound.
51898         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
51899
51900 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51901
51902         * lib/diffseq.h (EARLY_ABORT): New macro.
51903         (compareseq): Change return type to bool. Return true when EARLY_ABORT
51904         evaluates to true.
51905
51906 2008-09-14  Bruno Haible  <bruno@clisp.org>
51907
51908         * modules/perror-tests: New file.
51909         * tests/test-perror.sh: New file.
51910         * tests/test-perror.c: New file.
51911
51912         New module 'perror'.
51913         * lib/stdio.in.h (perror): New declaration.
51914         * lib/perror.c: New file.
51915         * m4/perror.m4: New file.
51916         * modules/perror: New file.
51917         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
51918         * doc/posix-functions/perror.texi: Mention the perror module.
51919         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
51920         REPLACE_PERROR.
51921         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
51922         REPLACE_PERROR.
51923
51924 2008-09-14  Bruno Haible  <bruno@clisp.org>
51925
51926         * modules/stdio (Makefile.am): Reorder to match the order in
51927         lib/stdio.in.h.
51928         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
51929
51930 2008-09-13  Bruno Haible  <bruno@clisp.org>
51931
51932         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
51933
51934 2008-09-13  Bruno Haible  <bruno@clisp.org>
51935
51936         Extend strerror to cover the added errno values.
51937         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
51938         (rpl_strerror): Provide error messages for the added errno values and
51939         for the WSA* values.
51940         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
51941         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
51942         strerror.
51943         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
51944         * modules/strerror (Depends-on): Add errno.
51945         * doc/posix-functions/strerror.texi: Document the change.
51946         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
51947         and EOVERFLOW.
51948
51949 2008-09-13  Bruno Haible  <bruno@clisp.org>
51950
51951         * modules/EOVERFLOW: Remove file.
51952         * m4/eoverflow.m4: Remove file.
51953         * modules/EOVERFLOW-tests: Remove file.
51954         * tests/test-EOVERFLOW.c: Remove file.
51955         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
51956         * modules/ftell (Depends-on): Likewise.
51957         * modules/getdelim (Depends-on): Likewise.
51958         * modules/getugroups (Depends-on): Likewise.
51959         * modules/poll (Depends-on): Likewise.
51960         * modules/snprintf (Depends-on): Likewise.
51961         * modules/sprintf-posix (Depends-on): Likewise.
51962         * modules/vasnprintf (Depends-on): Likewise.
51963         * modules/vasprintf (Depends-on): Likewise.
51964         * modules/vfprintf-posix (Depends-on): Likewise.
51965         * modules/vsnprintf (Depends-on): Likewise.
51966         * modules/vsprintf-posix (Depends-on): Likewise.
51967         * modules/xvasprintf (Depends-on): Likewise.
51968         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
51969         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
51970         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
51971         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
51972         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
51973         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
51974         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
51975         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
51976         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
51977         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
51978         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
51979         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
51980         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
51981         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
51982         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
51983         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
51984         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
51985         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
51986         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
51987         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
51988         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
51989         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
51990         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
51991         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
51992         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
51993         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
51994         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
51995         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
51996         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
51997         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
51998         * MODULES.html.sh: Remove EOVERFLOW.
51999         * NEWS: Mention the change.
52000
52001 2008-09-13  Bruno Haible  <bruno@clisp.org>
52002
52003         * modules/errno-tests: New file.
52004         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
52005
52006         * lib/errno.in.h: New file.
52007         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
52008         * modules/errno: New file.
52009         * doc/posix-headers/errno.texi: Update documentation.
52010         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
52011
52012 2008-09-13  Bruno Haible  <bruno@clisp.org>
52013
52014         * tests/test-poll.c: Use #if for native Windows, rather than testing
52015         __MSVCRT__.
52016
52017 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52018             Bruno Haible  <bruno@clisp.org>
52019
52020         * lib/glob.c: Don't include <pwd.h> on native Windows.
52021         (WINDOWS32): New macro.
52022         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
52023
52024 2008-09-13  Bruno Haible  <bruno@clisp.org>
52025
52026         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
52027         (ETIMEDOUT): Remove macro.
52028         (glthread_cond_timedwait_multithreaded): New declaration.
52029         (glthread_cond_timedwait): Use it.
52030         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
52031         (glthread_cond_timedwait_multithreaded): New function.
52032
52033 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52034
52035         * modules/poll-tests: Do not check for io.h.
52036         * tests/test-poll.c: Check for __MSVCRT__ instead.
52037
52038 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52039
52040         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
52041         * modules/poll-tests: Add inet_pton, stdbool, sockets.
52042         * tests/test-poll.c: Use them.  Use _pipe on Windows.
52043
52044 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
52045
52046         * modules/poll-tests: New.
52047         * tests/test-poll.c: New.
52048
52049 2008-09-12  Eric Blake  <ebb9@byu.net>
52050
52051         frexp: test for NetBSD failure on -0.0
52052         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
52053         not all, bugs from NetBSD 3.0 have been fixed.
52054         * doc/posix-functions/frexp.texi (frexp): Document bug.
52055         Reported by Thomas Klausner.
52056
52057         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
52058         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
52059         literal -0.0.
52060         Reported by Jonathan C. Patschke <jp@centtech.com>.
52061
52062 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52063
52064         * lib/glthread/cond.h: Use dummy implementation also if
52065         USE_WIN32_THREADS.
52066
52067 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52068
52069         * modules/fnmatch-posix (License): Change to LGPLv2+.
52070         * modules/fnmatch-gnu (License): Likewise.
52071
52072 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52073
52074         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
52075
52076 2008-09-11  Jim Meyering  <meyering@redhat.com>
52077
52078         * users.txt: Add gtk-vnc.
52079
52080 2008-09-08  Simon Josefsson  <simon@josefsson.org>
52081
52082         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
52083         rotate amounts.
52084
52085         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
52086         required for 16-bit and 8-bit rotates.
52087         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
52088         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
52089         UINT8_MAX instead of hard-coded constants.
52090         Suggested by Paul Eggert.
52091
52092 2008-09-07  Bruno Haible  <bruno@clisp.org>
52093
52094         * tests/test-striconveh.c (main): Check behaviour when converting from
52095         UTF-7.
52096
52097         Make striconveh work better with stateful encodings.
52098         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
52099         that iconv does not increment the inptr when returning -1/EINVAL.
52100
52101 2008-09-07  Bruno Haible  <bruno@clisp.org>
52102
52103         * build-aux/config.rpath: Update according to libtool-2.2.6.
52104         * build-aux/config.libpath: Likewise.
52105
52106 2008-09-06  Bruno Haible  <bruno@clisp.org>
52107
52108         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
52109         * lib/freadptr.c (freadptr): Likewise.
52110         * lib/freadseek.c (freadptrinc): Likewise.
52111         Reported by Simon Josefsson.
52112
52113 2008-09-06  Bruno Haible  <bruno@clisp.org>
52114
52115         * modules/freadptr (License): Change to LGPLv2+.
52116         * modules/freadseek (License): Likewise.
52117         Suggested by Eric Blake.
52118
52119         * modules/memchr2 (License): Change to LGPLv2+.
52120         Approved by Eric Blake.
52121
52122 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52123             Bruno Haible  <bruno@clisp.org>
52124
52125         Make gnulib-tool work with native 'sed' on AIX.
52126         * gnulib-tool (sed_noop): New variable.
52127         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
52128         func_add_or_update, func_create_testdir): Use it to initialize sed
52129         script variables.
52130         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52131
52132 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
52133             Bruno Haible  <bruno@clisp.org>
52134
52135         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
52136         also works after #include directives.
52137
52138 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
52139
52140         getdate.y: reject an out-of-range timezone value
52141         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
52142         the range [-24...+24].  When specified with only one or two digits,
52143         * tests/test-getdate.c: Tests for the fix.
52144         * doc/getdate.texi: Document this change.
52145
52146 2008-09-03  Bruno Haible  <bruno@clisp.org>
52147
52148         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
52149
52150 2008-09-02  Simon Josefsson  <simon@josefsson.org>
52151
52152         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
52153         <bruce.korb@gmail.com> with ideas from Ben Pfaff
52154         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
52155         Blake <ebb9@byu.net>.
52156
52157         * tests/test-bitrotate.c: Add more test vectors.
52158
52159 2008-09-02  Eric Blake  <ebb9@byu.net>
52160
52161         vasnprintf-posix: handle large precision via %.*d
52162         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
52163         when handling it ourselves.
52164         * tests/test-vasnprintf-posix.c (test_function): Add test.
52165         * tests/test-snprintf-posix.h (test_function): Likewise.
52166         * tests/test-sprintf-posix.h (test_function): Likewise.
52167         * tests/test-vasprintf-posix.c (test_function): Likewise.
52168         Reported by Alain Guibert.
52169
52170 2008-09-01  Eric Blake  <ebb9@byu.net>
52171
52172         c-stack: make configure-time check more robust
52173         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
52174         successful sigaction call.
52175         Reported by Tom G. Christensen.
52176
52177 2008-09-01  Bruno Haible  <bruno@clisp.org>
52178
52179         New module 'findprog-lgpl'.
52180         * modules/findprog-lgpl: New file.
52181         * lib/findprog-lgpl.c: New file.
52182         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
52183         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
52184         to decide whether to use strdup or xstrdup, concatenated_filename or
52185         xconcatenated_filename.
52186
52187 2008-09-01  Bruno Haible  <bruno@clisp.org>
52188
52189         Split module 'concat-filename' into 'concat-filename' (LGPL) and
52190         'xconcat-filename' (GPL).
52191         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
52192         (License): Change to LGPLv2+.
52193         * modules/xconcat-filename: New file.
52194         * lib/concat-filename.h (concatenated_filename): Change specification.
52195         (xconcatenated_filename): New declaration.
52196         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
52197         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
52198         memory situations.
52199         * lib/xconcat-filename.c: New file.
52200         * NEWS: Mention the change.
52201         * lib/findprog.c: Include concat-filename.h, not filename.h.
52202         (find_in_path): Use xconcatenated_filename instead of
52203         concatenated_filename.
52204         * lib/javacomp.c: Include concat-filename.h, not filename.h.
52205         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
52206         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
52207         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
52208         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
52209         instead of concatenated_filename.
52210         * lib/javaexec.c: Include concat-filename.h, not filename.h.
52211         (execute_java_class): Use xconcatenated_filename instead of
52212         concatenated_filename.
52213         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
52214         * modules/javacomp (Depends-on): Likewise.
52215         * modules/javaexec (Depends-on): Likewise.
52216
52217 2008-09-01  Bruno Haible  <bruno@clisp.org>
52218
52219         Split module 'filename' into 'filename' and 'concat-filename'.
52220         * modules/filename: Keep only lib/filename.h.
52221         (License): Change to LGPLv2+.
52222         * modules/concat-filename: New file, extracted from modules/filename.
52223         * lib/filename.h (concatenated_filename): Remove declaration.
52224         * lib/concat-filename.h: New file, extracted from lib/filename.h.
52225         * lib/concat-filename.c: Include concat-filename.h.
52226         * NEWS: Mention the change.
52227
52228 2008-09-01  Simon Josefsson  <simon@josefsson.org>
52229
52230         * lib/bitrotate.h (rotl8, rotr8): Add.
52231
52232         * modules/bitrotate (configure.ac): Need
52233         AC_REQUIRE([AC_C_INLINE]).
52234         (Description): Mention stdint.h.  Reported by Bruno Haible
52235         <bruno@clisp.org>.
52236
52237         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
52238         Paolo Bonzini <bonzini@gnu.org>.
52239
52240 2008-08-31  Bruno Haible  <bruno@clisp.org>
52241
52242         Assume Solaris specific bi-arch conventions on Solaris systems.
52243         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
52244         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
52245         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
52246         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
52247         like acl_libdirstem.
52248         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
52249         acl_libdirstem.
52250         * NEWS: Mention the change.
52251         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
52252
52253 2008-08-31  Jim Meyering  <meyering@redhat.com>
52254
52255         * lib/strftime.h: Add comments describing the two added arguments.
52256
52257         remove duplicate #include directives
52258         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
52259         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
52260
52261 2008-08-31  Bruno Haible  <bruno@clisp.org>
52262
52263         New module 'sigpipe-die'.
52264         * modules/sigpipe-die: New file.
52265         * lib/sigpipe-die.h: New file.
52266         * lib/sigpipe-die.c: New file.
52267         * MODULES.html.sh (Signal handling): Add sigpipe-die.
52268
52269 2008-08-31  Bruno Haible  <bruno@clisp.org>
52270
52271         Don't override previously installed signal handlers.
52272         * lib/fatal-signal.c (saved_sigactions): New variable.
52273         (uninstall_handlers): Reset the signal to the saved handler, not
52274         to SIG_DFL (except when ignored).
52275         (install_handlers): Save the previous handlers.
52276
52277 2008-08-30  Bruno Haible  <bruno@clisp.org>
52278
52279         * gnulib-tool (func_reset_sigpipe): New function.
52280         (func_get_automake_snippet, func_modules_transitive_closure,
52281         func_import): Invoke it before a join command that reads from stdin,
52282         to avoid "echo: write error: Broken pipe" error messages on stderr.
52283         Reported by Sam Steingold <sds@gnu.org>.
52284
52285 2008-08-30  Bruno Haible  <bruno@clisp.org>
52286
52287         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
52288         Code copied from m4/open.m4.
52289         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
52290         access and the filename ends in a slash. Code copied from lib/open.c.
52291         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
52292         * tests/test-fopen.c (main): Check against bug with trailing slash.
52293
52294 2008-08-29  Bruno Haible  <bruno@clisp.org>
52295
52296         Avoid some "gcc -pedantic" warnings.
52297         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
52298         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
52299         * lib/dirent.in.h: Likewise.
52300         * lib/fcntl.in.h: Likewise.
52301         * lib/float.in.h: Likewise.
52302         * lib/iconv.in.h: Likewise.
52303         * lib/inttypes.in.h: Likewise.
52304         * lib/locale.in.h: Likewise.
52305         * lib/math.in.h: Likewise.
52306         * lib/netinet_in.in.h: Likewise.
52307         * lib/search.in.h: Likewise.
52308         * lib/signal.in.h: Likewise.
52309         * lib/stdarg.in.h: Likewise.
52310         * lib/stdint.in.h: Likewise.
52311         * lib/stdio.in.h: Likewise.
52312         * lib/stdlib.in.h: Likewise.
52313         * lib/string.in.h: Likewise.
52314         * lib/strings.in.h: Likewise.
52315         * lib/sys_select.in.h: Likewise.
52316         * lib/sys_socket.in.h: Likewise.
52317         * lib/sys_stat.in.h: Likewise.
52318         * lib/sys_time.in.h: Likewise.
52319         * lib/sysexits.in.h: Likewise.
52320         * lib/time.in.h: Likewise.
52321         * lib/unistd.in.h: Likewise.
52322         * lib/wchar.in.h: Likewise.
52323         * lib/wctype.in.h: Likewise.
52324         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
52325         * modules/fchdir (Makefile.am): Likewise.
52326         * modules/fcntl (Makefile.am): Likewise.
52327         * modules/float (Makefile.am): Likewise.
52328         * modules/iconv_open (Makefile.am): Likewise.
52329         * modules/inttypes (Makefile.am): Likewise.
52330         * modules/locale (Makefile.am): Likewise.
52331         * modules/math (Makefile.am): Likewise.
52332         * modules/netinet_in (Makefile.am): Likewise.
52333         * modules/search (Makefile.am): Likewise.
52334         * modules/signal (Makefile.am): Likewise.
52335         * modules/stdarg (Makefile.am): Likewise.
52336         * modules/stdint (Makefile.am): Likewise.
52337         * modules/stdio (Makefile.am): Likewise.
52338         * modules/stdlib (Makefile.am): Likewise.
52339         * modules/string (Makefile.am): Likewise.
52340         * modules/strings (Makefile.am): Likewise.
52341         * modules/sys_select (Makefile.am): Likewise.
52342         * modules/sys_socket (Makefile.am): Likewise.
52343         * modules/sys_stat (Makefile.am): Likewise.
52344         * modules/sys_time (Makefile.am): Likewise.
52345         * modules/sysexits (Makefile.am): Likewise.
52346         * modules/time (Makefile.am): Likewise.
52347         * modules/unistd (Makefile.am): Likewise.
52348         * modules/wchar (Makefile.am): Likewise.
52349         * modules/wctype (Makefile.am): Likewise.
52350         Reported by Reuben Thomas <rrt@sc3d.org>.
52351
52352 2008-08-29  Bruno Haible  <bruno@clisp.org>
52353
52354         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
52355         any more.
52356
52357 2008-08-29  Simon Josefsson  <simon@josefsson.org>
52358
52359         * MODULES.html.sh (Misc): Add bitrotate.
52360
52361         * modules/bitrotate: New file.
52362
52363         * lib/bitrotate.h: New file.
52364
52365         * modules/bitrotate-tests: New file.
52366
52367         * tests/test-bitrotate.c: New file.
52368
52369         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
52370         on the bitrotate module.
52371
52372         * lib/arctwo.c: Use new bitrotate module.
52373
52374 2008-08-29  Jim Meyering  <meyering@redhat.com>
52375
52376         bootstrap: merge changes from coreutils
52377         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
52378         of copied files.  Remove a kludge, now that this is fixed.
52379         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
52380         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
52381         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
52382
52383 2008-08-29  Bruno Haible  <bruno@clisp.org>
52384
52385         * MODULES.html.sh: Remove --cvs-urls option.
52386
52387 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
52388
52389         maint.mk: adjust to file name change
52390         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
52391
52392 2008-08-28  Jim Meyering  <meyering@redhat.com>
52393
52394         * modules/getndelim2 (License): Relicense to LGPLv2+.
52395         Approved by Richard Stallman for the version of 1995, and by
52396         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
52397
52398 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
52399
52400         * lib/getdelim.c (flockfile, funlockfile): Make all of them
52401         dummy if one is not available.  Do not touch them if
52402         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
52403         (getc_maybe_unlocked): New.
52404         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
52405
52406 2008-08-26  Eric Blake  <ebb9@byu.net>
52407
52408         doc/INSTALL: resync from autoconf
52409         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
52410         (INSTALL_PRELUDE): Delete; this is done more efficiently by
52411         moving...
52412         * install.texi [!autoconf]: ...here.  Resync from autoconf.
52413         * INSTALL: Regenerate.
52414         * INSTALL.ISO: New file.
52415         * INSTALL.UTF-8: Likewise.
52416
52417 2008-08-26  Jim Meyering  <meyering@redhat.com>
52418
52419         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
52420         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
52421         these definitions conditional, so that they may be overridden, too.
52422
52423 2008-08-26  Bruno Haible  <bruno@clisp.org>
52424
52425         Generate INSTALL file variants with prettier quotes.
52426         * doc/Makefile (INSTALL_PRELUDE): New macro.
52427         (INSTALL): Use it.
52428         (INSTALL.ISO, INSTALL.UTF-8): New rules.
52429
52430 2008-08-26  Bruno Haible  <bruno@clisp.org>
52431
52432         Run makeinfo in an English locale.
52433         * doc/Makefile (MAKEINFO): New variable.
52434
52435 2008-08-26  Bruno Haible  <bruno@clisp.org>
52436
52437         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
52438         Suggested by Eric Blake.
52439
52440 2008-08-25  Bruno Haible  <bruno@clisp.org>
52441
52442         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
52443
52444 2008-08-25  Eric Blake  <ebb9@byu.net>
52445
52446         c-stack: test that stack overflow can be caught
52447         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
52448         that platform allows handling stack overflow; at least OS/2 EMX
52449         has sigaltstack, but crashes before transferring control to
52450         handler on stack overflow.
52451         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
52452         check for HAVE_STACK_OVERFLOW_HANDLING.
52453         Reported by Elbert Pol.
52454
52455 2008-08-25  Bruno Haible  <bruno@clisp.org>
52456
52457         * doc/posix-functions/strftime.texi: Fix description of strftime
52458         module.
52459
52460 2008-08-24  Bruno Haible  <bruno@clisp.org>
52461
52462         * tests/uniwidth/test-uc_width2.c: New file.
52463         * tests/uniwidth/test-uc_width2.sh: New file.
52464         * modules/uniwidth/width-tests (Files): Add the new files.
52465         (TESTS): Add uniwidth/test-uc_width2.sh.
52466         (TESTS_ENVIRONMENT): New variable.
52467         (check_PROGRAMS): Add test-uc_width2.
52468         (test_uc_width2_SOURCES): New variable.
52469
52470         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
52471         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
52472         not 0x00AB.
52473         Reported by Alexander V. Lukyanov <lav@netis.ru>.
52474
52475 2008-08-22  Eric Blake  <ebb9@byu.net>
52476
52477         test-lock, test-tls: mention why a test is skipped
52478         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
52479         skipped.
52480         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
52481
52482         count-one-bits: relax license
52483         * modules/count-one-bits (License): Relicense to LGPLv2+.
52484         Suggested by Ludovic Courtès, approved by Ben Pfaff.
52485
52486 2008-08-22  Andreas Schwab  <schwab@suse.de>
52487
52488         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
52489         Remove spurious space in assignment.
52490
52491 2008-08-21  Simon Josefsson  <simon@josefsson.org>
52492
52493         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
52494         Paul Eggert <eggert@CS.UCLA.EDU>.
52495
52496 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
52497
52498         * modules/gettext: Add m4/threadlib.m4.
52499
52500 2008-08-19  Eric Blake  <ebb9@byu.net>
52501
52502         test-c-stack: fix compilation failure on FreeBSD 5.0
52503         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
52504         headers before <sys/resource.h>.
52505         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
52506         the bug.
52507         Reported by Nelson H. F. Beebe.
52508
52509         strverscmp: migrate from "strverscmp.h" to <string.h>
52510         * modules/string (Makefile.am): Add new hooks.
52511         * modules/strverscmp (Files): Remove strverscmp.h.
52512         (Depends-on): Add string.
52513         (configure.ac): Add indicator.
52514         (Include): Mention new header.
52515         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
52516         defaults.
52517         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
52518         results.
52519         * lib/strverscmp.h: Delete.
52520         * lib/string.in.h (strverscmp): Provide declaration, when needed.
52521         * tests/test-strverscmp.c (includes): Adjust client.
52522         * lib/check-version.c (includes): Likewise.
52523         * NEWS: Document the change.
52524
52525         strverscmp: add unit test
52526         * modules/strverscmp-tests: New file.
52527         * tests/test-strverscmp.c: Likewise.
52528
52529 2008-08-19  Simon Josefsson  <simon@josefsson.org>
52530
52531         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
52532         regarding Windows crypto stuff, from Mono.
52533
52534 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
52535
52536         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
52537         if present, for intel RND.  Return error on failures.
52538
52539 2008-08-18  Ben Pfaff  <blp@gnu.org>
52540
52541         gitlog-to-changelog: give better diagnostic for failed pipe-open
52542         * build-aux/gitlog-to-changelog: Improve error message: suggest
52543         that the version of Git may be too old.
52544
52545 2008-08-18  Simon Josefsson  <simon@josefsson.org>
52546
52547         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
52548         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
52549
52550 2008-08-18  Bruno Haible  <bruno@clisp.org>
52551
52552         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
52553         pthread_in_use().
52554
52555 2008-08-18  Bruno Haible  <bruno@clisp.org>
52556
52557         * lib/glthread/threadlib.c: Include <pthread.h>.
52558
52559 2008-08-18  Bruno Haible  <bruno@clisp.org>
52560
52561         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
52562         glthread_recursive_lock_* macros.
52563         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
52564         Fix syntax error.
52565
52566 2008-08-18  Bruno Haible  <bruno@clisp.org>
52567
52568         * lib/glthread/thread.c: Avoid forcing a context switch right after
52569         thread creation.
52570
52571 2008-08-17  Bruno Haible  <bruno@clisp.org>
52572
52573         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
52574         * lib/glthread/thread.h: Provide Win32 specific implementation.
52575         * modules/thread (Files): Add lib/glthread/thread.c.
52576         (Depends-on): Add lock.
52577         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
52578
52579 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52580
52581         New module 'yield'.
52582         * modules/yield: New file.
52583         * lib/glthread/yield.h: New file.
52584         * m4/yield.m4: New file.
52585         * MODULES.html.sh (Multithreading): Add yield.
52586
52587 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52588
52589         New module 'thread'.
52590         * modules/thread: New file.
52591         * lib/glthread/thread.h: New file.
52592         * m4/thread.m4: New file.
52593         * MODULES.html.sh (Multithreading): Add thread.
52594
52595 2008-08-17  Bruno Haible  <bruno@clisp.org>
52596
52597         * lib/glthread/lock.h: Include <stdlib.h> always.
52598         * lib/glthread/tls.h: Likewise.
52599         * lib/glthread/cond.h: Likewise.
52600
52601 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52602
52603         New module 'cond'.
52604         * modules/cond: New file.
52605         * lib/glthread/cond.h: New file.
52606         * lib/glthread/cond.c: New file.
52607         * m4/cond.m4: New file.
52608         * MODULES.html.sh (Multithreading): Add cond.
52609
52610 2008-08-16  Eric Blake  <ebb9@byu.net>
52611
52612         c-stack: fix regression on Irix 5.3 from 2008-06-21
52613         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
52614         sa_sigaction...
52615         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
52616         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
52617         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
52618         * modules/signal (Makefile.am): Use the value.
52619         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
52620         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
52621         * doc/posix-headers/signal.texi (signal.h): Document this
52622         portability issue.
52623         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
52624         Reported by Tom G. Christensen.
52625
52626 2008-08-17  Bruno Haible  <bruno@clisp.org>
52627
52628         New module 'threadlib'.
52629         * modules/threadlib: New file.
52630         * lib/glthread/threadlib.c: New file, extracted from
52631         lib/glthread/lock.c.
52632         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
52633         functions.
52634         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
52635         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
52636         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
52637         macros.
52638         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
52639         (gl_DISABLE_THREADS): Remove macro.
52640         * modules/lock (Files): Remove build-aux/config.rpath.
52641         (Depends-on): Remove havelib. Add threadlib.
52642         (configure.ac-early): Remove section.
52643         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
52644         * modules/tls (Depends-on): Remove lock. Add threadlib.
52645         (Link): New section, copied from threadlib.
52646         * MODULES.html.sh (Multithreading): Add threadlib.
52647
52648 2008-08-14  Bruno Haible  <bruno@clisp.org>
52649
52650         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
52651         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
52652         glthread_rwlock_unlock, glthread_rwlock_destroy,
52653         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
52654         glthread_recursive_lock_destroy): Define as macros always.
52655         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
52656         glthread_lock_lock.
52657         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
52658         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
52659         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
52660         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
52661         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
52662         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
52663         (glthread_recursive_lock_lock_func): Renamed from
52664         glthread_recursive_lock_lock.
52665         (glthread_recursive_lock_unlock_func): Renamed from
52666         glthread_recursive_lock_unlock.
52667         (glthread_recursive_lock_destroy_func): Renamed from
52668         glthread_recursive_lock_destroy.
52669
52670 2008-08-14  Bruno Haible  <bruno@clisp.org>
52671
52672         * lib/glthread/lock.h: Renamed from lib/lock.h.
52673         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
52674         * lib/glthread/tls.h: Renamed from lib/tls.h.
52675         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
52676         * lib/fstrcmp.c: Update includes.
52677         * lib/strsignal.c: Update includes.
52678         * modules/lock (Files, Makefile.am): Update.
52679         (Include): Change to "glthread/lock.h".
52680         * modules/tls (Files, Makefile.am): Update.
52681         (Include): Change to "glthread/tls.h".
52682         * tests/test-lock.c: Update includes.
52683         * tests/test-tls.c: Update includes.
52684         * NEWS: Mention the renamed header files.
52685
52686 2008-08-11  Jim Meyering  <meyering@redhat.com>
52687
52688         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
52689
52690 2008-08-11  Eric Blake  <ebb9@byu.net>
52691
52692         test-c-stack: avoid C99-ism
52693         * tests/test-c-stack.c (main): Fix whitespace, move declaration
52694         before statement.
52695         Reported by Alain Guibert.
52696
52697 2008-08-10  Jim Meyering  <meyering@redhat.com>
52698
52699         ensure that return value of uinttostr et al are not ignored
52700         * lib/inttostr.h (__GNUC_PREREQ): Define.
52701         (__attribute_warn_unused_result__): Define.
52702         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
52703
52704 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
52705
52706         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
52707         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
52708
52709 2008-08-07  Jim Meyering  <meyering@redhat.com>
52710
52711         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
52712
52713         * modules/mkstemp (License): Relicense under LGPLv2+.
52714         * modules/tempname (License): Likewise.
52715
52716 2008-08-06  Bruno Haible  <bruno@clisp.org>
52717
52718         * lib/poll.c (poll): Further micro-optimization.
52719
52720 2008-08-06  Jim Meyering  <meyering@redhat.com>
52721
52722         inet_pton.c: use locale-independent tolower
52723         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
52724         (inet_pton6): Use c_tolower rather than tolower.
52725         * modules/inet_pton (Depends-on): Add c-ctype.
52726
52727 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
52728
52729         * lib/poll.c (poll): Avoid division when timeout is 0, cache
52730         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
52731
52732 2008-08-06  Jim Meyering  <meyering@redhat.com>
52733
52734         * modules/inet_pton (License): Relicense under LGPLv2+.
52735
52736 2008-08-03  Bruno Haible  <bruno@clisp.org>
52737
52738         Additional non-aborting API for lock and tls.
52739         * lib/lock.h: Include <errno.h>.
52740         (glthread_lock_init): New macro/function.
52741         (gl_lock_init): Define as wrapper around glthread_lock_init.
52742         (glthread_lock_lock): New macro/function.
52743         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
52744         (glthread_lock_unlock): New macro/function.
52745         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
52746         (glthread_lock_destroy): New macro/function.
52747         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
52748         (glthread_rwlock_init): New macro/function.
52749         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
52750         (glthread_rwlock_rdlock): New macro/function.
52751         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
52752         (glthread_rwlock_wrlock): New macro/function.
52753         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
52754         (glthread_rwlock_unlock): New macro/function.
52755         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
52756         (glthread_rwlock_destroy): New macro/function.
52757         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
52758         (glthread_recursive_lock_init): New macro/function.
52759         (gl_recursive_lock_init): Define as wrapper around
52760         glthread_recursive_lock_init.
52761         (glthread_recursive_lock_lock): New macro/function.
52762         (gl_recursive_lock_lock): Define as wrapper around
52763         glthread_recursive_lock_lock.
52764         (glthread_recursive_lock_unlock): New macro/function.
52765         (gl_recursive_lock_unlock): Define as wrapper around
52766         glthread_recursive_lock_unlock.
52767         (glthread_recursive_lock_destroy): New macro/function.
52768         (gl_recursive_lock_destroy): Define as wrapper around
52769         glthread_recursive_lock_destroy.
52770         (glthread_once): New macro/function.
52771         (gl_once): Define as wrapper around glthread_once.
52772         Update function declarations.
52773         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
52774         glthread_rwlock_init. Return error code.
52775         (glthread_rwlock_rdlock_multithreaded): Renamed from
52776         glthread_rwlock_rdlock. Return error code.
52777         (glthread_rwlock_wrlock_multithreaded): Renamed from
52778         glthread_rwlock_wrlock. Return error code.
52779         (glthread_rwlock_unlock_multithreaded): Renamed from
52780         glthread_rwlock_unlock. Return error code.
52781         (glthread_rwlock_destroy_multithreaded): Renamed from
52782         glthread_rwlock_destroy. Return error code.
52783         (glthread_recursive_lock_init_multithreaded): Renamed from
52784         glthread_recursive_lock_init. Return error code.
52785         (glthread_recursive_lock_lock_multithreaded): Renamed from
52786         glthread_recursive_lock_lock. Return error code.
52787         (glthread_recursive_lock_unlock_multithreaded): Renamed from
52788         glthread_recursive_lock_unlock. Return error code.
52789         (glthread_recursive_lock_destroy_multithreaded): Renamed from
52790         glthread_recursive_lock_destroy. Return error code.
52791         (glthread_once_call): Make static.
52792         (glthread_once_multithreaded): Renamed from glthread_once.
52793         * lib/tls.h: Include <errno.h>.
52794         (glthread_tls_key_init): New macro/function.
52795         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
52796         (glthread_tls_set): New macro/function.
52797         (gl_tls_set): Define as wrapper around glthread_tls_set.
52798         (glthread_tls_key_destroy): New macro/function.
52799         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
52800         Update function declarations.
52801         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
52802         glthread_tls_get.
52803         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
52804
52805 2008-08-04  Eric Blake  <ebb9@byu.net>
52806
52807         gnumakefile: use space, not TAB, outside of targets
52808         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
52809
52810 2008-08-02  Jim Meyering  <meyering@redhat.com>
52811
52812         getdate.y: avoid locale-dependent date parsing failure
52813         In Turkish locales, getdate would fail to recognize keywords
52814         containing a lowercase "i".  The solution is not to rely on
52815         locale-sensitive case-conversion.
52816         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
52817         (lookup_word): Use c_toupper in place of toupper.
52818         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
52819         Reported by Vefa Bicakci <bicave@superonline.com> in
52820         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
52821         * modules/getdate (Depends-on): Add c-ctype.
52822
52823 2008-08-02  Bruno Haible  <bruno@clisp.org>
52824
52825         * gnulib-tool (func_import): When updating or creating a .gitignore
52826         file, prepend each added line with a slash, and ignore leading slashes
52827         from the existing lines.
52828         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
52829
52830 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52831
52832         Portability fix for GNU make 3.79.1.
52833         * top/GNUmakefile: Avoid 'else COND', which older GNU make
52834         versions do not understand.
52835
52836 2008-08-01  Bruno Haible  <bruno@clisp.org>
52837
52838         Work around bug of HP-UX 10.20 cc with -0.0 literal.
52839         * tests/test-isnanf.h (zero): New variable.
52840         (main): Avoid literal -0.0f.
52841         * tests/test-isnand.h (zero): New variable.
52842         (main): Avoid literal -0.0.
52843         * tests/test-isnanl.h (zero): New variable.
52844         (main): Avoid literal -0.0L.
52845         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
52846         (test_float, test_double, test_long_double): Avoid literals -0.0f,
52847         -0.0, -0.0L.
52848         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
52849         (test_signbitd): Avoid literal -0.0.
52850         (test_signbitl): Avoid literal -0.0L.
52851         * tests/test-ceilf1.c (zero): New variable.
52852         (main): Avoid literal -0.0f.
52853         * tests/test-ceill.c (zero): New variable.
52854         (main): Avoid literal -0.0L.
52855         * tests/test-floorf1.c (zero): New variable.
52856         (main): Avoid literal -0.0f.
52857         * tests/test-floorl.c (zero): New variable.
52858         (main): Avoid literal -0.0L.
52859         * tests/test-roundf1.c (zero): New variable.
52860         (main): Avoid literal -0.0f.
52861         * tests/test-round1.c (zero): New variable.
52862         (main): Avoid literal -0.0.
52863         * tests/test-roundl.c (zero): New variable.
52864         (main): Avoid literal -0.0L.
52865         * tests/test-truncf1.c (zero): New variable.
52866         (main): Avoid literal -0.0f.
52867         * tests/test-trunc1.c (zero): New variable.
52868         (main): Avoid literal -0.0.
52869         * tests/test-truncl.c (zero): New variable.
52870         (main): Avoid literal -0.0L.
52871         * tests/test-frexp.c (zero): New variable.
52872         (main): Avoid literal -0.0.
52873         * tests/test-frexpl.c (zero): New variable.
52874         (main): Avoid literal -0.0L.
52875         * tests/test-ldexpl.c (zero): New variable.
52876         (main): Avoid literal -0.0L.
52877         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
52878         (zerod, zerol): New variables.
52879         (test_function): Avoid literals -0.0, -0.0L.
52880         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
52881         (zerod, zerol): New variables.
52882         (test_function): Avoid literals -0.0, -0.0L.
52883         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
52884         (zerod, zerol): New variables.
52885         (test_function): Avoid literals -0.0, -0.0L.
52886         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
52887         (zerod, zerol): New variables.
52888         (test_function): Avoid literals -0.0, -0.0L.
52889         * tests/test-strtod.c (zero): New variable.
52890         (main): Avoid literal -0.0.
52891         Reported by Jonathan C. Patschke <jp@centtech.com>.
52892
52893 2008-07-31  Jim Meyering  <meyering@redhat.com>
52894
52895         sha256.h: correct definition of SHA224_DIGEST_SIZE
52896         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
52897         Reported by Paulie Pena IV <paulie4@gmail.com>.
52898         Define as 224 / 8, rather than as a literal.
52899         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
52900         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
52901         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
52902
52903 2008-07-31  Bruno Haible  <bruno@clisp.org>
52904
52905         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
52906         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
52907         Reported by Jonathan Patschke <jp@centtech.com>.
52908
52909 2008-07-31  Bruno Haible  <bruno@clisp.org>
52910
52911         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
52912         Reported by Paolo Bonzini <bonzini@gnu.org>.
52913
52914 2008-07-30  Eric Blake  <ebb9@byu.net>
52915
52916         test-strtod: allow compilation without -lm
52917         * tests/test-strtod.c (main): Avoid link dependence on fabs.
52918         Reported by Dennis Clarke <blastwave@gmail.com>.
52919
52920 2008-07-28  Jim Meyering  <meyering@redhat.com>
52921
52922         bootstrap: work also when there are no .po files in po/
52923         * build-aux/bootstrap (update_po_files): Complete the change
52924         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
52925
52926 2008-07-27  Jim Meyering  <meyering@redhat.com>
52927
52928         * users.txt: Add zile.
52929
52930 2008-07-26  Ben Pfaff  <blp@gnu.org>
52931
52932         Add missing dependencies on new m4/exponent[fdl].m4 files.
52933         * modules/isnanf-nolibm: Add m4/exponentf.m4.
52934         * modules/isnand-nolibm: Add m4/exponentd.m4.
52935         * modules/isnanl-nolibm: Add m4/exponentl.m4.
52936         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
52937         m4/isnan[fdl].m4, because the macros actually used moved.
52938         Reported by Jim Meyering.
52939
52940 2008-07-14  Ben Pfaff  <blp@gnu.org>
52941
52942         Add isinf module.
52943         * lib/isinf.c: New file.
52944         * lib/math.in.h: Define isinf macro if we have decided to replace
52945         it.
52946         * m4/isinf.m4: New file.
52947         * m4/math_h.m4: Initialize and substitute variables for isinf
52948         module.
52949         * modules/isinf: New file.
52950         * modules/isinf-tests: New file.
52951         * modules/math: Add substitutions for new module.
52952         * tests/test-isinf.c: New file.
52953         * doc/posix-functions/isinf.texi: Mention new module.
52954         * MODULES.html.sh: Mention new module.
52955
52956 2008-07-14  Ben Pfaff  <blp@gnu.org>
52957
52958         Factor out some macros for use by additional modules.
52959         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
52960         exponentf.m4.
52961         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
52962         exponentd.m4.
52963         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
52964         file exponentl.m4.
52965         * m4/exponentf.m4: New file.
52966         * m4/exponentd.m4: New file.
52967         * m4/exponentl.m4: New file.
52968         * modules/isnanf: Use new file m4/exponentf.m4.
52969         * modules/isnand: Use new file m4/exponentd.m4.
52970         * modules/isnanl: Use new file m4/exponentl.m4.
52971
52972 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
52973
52974         mktime.c: normalize tp->tm_isdst value to -1/0/1.
52975         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
52976         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
52977         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
52978
52979         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
52980         readlink on platforms without PATH_MAX.
52981
52982 2008-07-21  Eric Blake  <ebb9@byu.net>
52983
52984         Warn, not fail, on stale version.
52985         * top/GNUmakefile (_curr-ver): Tone down previous patch.
52986
52987         Don't allow installation with stale devel version number.
52988         * top/GNUmakefile (_is-install-target): New macro.
52989         (_curr-ver): Forbid installation with stale version number.
52990
52991 2008-07-20  Bruno Haible  <bruno@clisp.org>
52992
52993         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
52994         TESTS_ENVIRONMENT.
52995         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
52996
52997 2008-07-20  Bruno Haible  <bruno@clisp.org>
52998
52999         * lib/c-stack.h (c_stack_action): Add documentation.
53000         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
53001
53002 2008-07-20  Bruno Haible  <bruno@clisp.org>
53003
53004         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
53005         * modules/readlink (License): Likewise.
53006
53007 2008-07-17  Eric Blake  <ebb9@byu.net>
53008
53009         * modules/c-stack (Link): Fix typo.
53010
53011         Make c-stack use libsigsegv, when available.
53012         * modules/c-stack (Depends-on): Add libsigsegv.
53013         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
53014         needed.
53015         * lib/c-stack.c (SIGSTKSZ): Define fallback.
53016         (segv_handler, overflow_handler, c_stack_action)
53017         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
53018         implementation when libsigsegv is available, but only when using
53019         the library is necessary.
53020         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
53021         comment, explaining why XSI check fails on Linux.
53022         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
53023         * tests/test-c-stack2.sh: Tweak skip message.
53024         * NEWS: Document new link-time requirements.
53025
53026 2008-07-16  Eric Blake  <ebb9@byu.net>
53027
53028         c-stack: Expose false positives when not using libsigsegv.
53029         * modules/c-stack-tests (Files): Expand test.
53030         * tests/test-c-stack.c (main): Add means to conditionally trigger
53031         non-overflow SIGSEGV.
53032         * tests/test-c-stack2.sh: New file.
53033
53034 2008-07-14  Bruno Haible  <bruno@clisp.org>
53035
53036         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
53037         Reported by Eric Blake.
53038
53039 2008-07-14  Sam Steingold  <sds@gnu.org>
53040             Bruno Haible  <bruno@clisp.org>
53041
53042         New module libsigsegv.
53043         * modules/libsigsegv: New file.
53044         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
53045         modifications.
53046         * MODULES.html.sh (Signal handling): New section.
53047
53048 2008-07-14  Bruno Haible  <bruno@clisp.org>
53049
53050         * modules/unictype/ctype-* (Description): Add the word "function".
53051         Improves the resulting doc in MODULES.html.
53052
53053 2008-07-12  Ben Pfaff  <blp@gnu.org>
53054
53055         Add longlong module.
53056         * modules/longlong: New file.
53057
53058 2008-07-12  Bruno Haible  <bruno@clisp.org>
53059
53060         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
53061         to empty.
53062
53063 2008-07-10  Ben Pfaff  <blp@gnu.org>
53064
53065         Add isnan module.
53066         * doc/posix-functions/isnan.texi: Mention new module.
53067         * lib/math.in.h: Define isnan macro if we have decided to replace
53068         it.
53069         * m4/isnan.m4: New file.
53070         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
53071         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
53072         also.
53073         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
53074         redundancy.
53075         * m4/math_h.m4: Initialize and substitute variables for isnan
53076         module.
53077         * modules/isnan: New file.
53078         * modules/isnan-tests: New file.
53079         * modules/math: Add substitutions for new module.
53080         * tests/test-isnan.c: New file.
53081         * MODULES.html.sh: Mention new module.
53082
53083 2008-07-10  Ben Pfaff  <blp@gnu.org>
53084
53085         Add isnanf module.
53086         * lib/isnanf.m4: New file.
53087         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
53088         (gl_HAVE_ISNANF_IN_LIBM): New macro.
53089         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
53090         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
53091         * modules/isnanf: New file.
53092         * modules/isnanf-tests: New file.
53093         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
53094         files.
53095         * tests/test-isnanf-nolibm.c: factored most of its contents into
53096         new file tests/test-isnanf.h.
53097         * tests/test-isnanf.h: New file.
53098         * tests/test-isnanf.c: New file.
53099         * MODULES.html.sh: Mention new module.
53100         * doc/glibc-functions/isnanf.texi: Mention new module.
53101
53102 2008-07-10  Ben Pfaff  <blp@gnu.org>
53103
53104         Add isnand module.
53105         * lib/isnand.h: New file.
53106         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
53107         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
53108         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
53109         functionality also.
53110         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
53111         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
53112         (gl_HAVE_ISNAND_IN_LIBM): New macro.
53113         * modules/isnand: New file.
53114         * modules/isnand-tests: New file.
53115         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
53116         files.
53117         * tests/test-isnand-nolibm.c: factored most of its contents into
53118         new file tests/test-isnand.h.
53119         * tests/test-isnand.h: New file.
53120         * tests/test-isnand.c: New file.
53121         * MODULES.html.sh: Mention new module.
53122
53123 2008-07-10  Ben Pfaff  <blp@gnu.org>
53124
53125         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
53126         * lib/isnand.h: Rename lib/isnand-nolibm.h.
53127         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
53128         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
53129         * modules/isnanf-nolibm: Update references to renamed files.
53130         * modules/isnand-nolibm: Likewise.
53131         * modules/isnanf-nolibm-tests: Likewise.
53132         * modules/isnand-nolibm-tests: Likewise.
53133         * lib/frexp.c: Likewise.
53134         * lib/isfinite.c: Likewise.
53135         * lib/signbitd.c: Likewise.
53136         * lib/signbitf.c: Likewise.
53137         * lib/vasnprintf.c: Likewise.
53138         * tests/test-ceilf1.c: Likewise.
53139         * tests/test-ceilf2.c: Likewise.
53140         * tests/test-floorf1.c: Likewise.
53141         * tests/test-floorf2.c: Likewise.
53142         * tests/test-frexp.c: Likewise.
53143         * tests/test-round1.c: Likewise.
53144         * tests/test-round2.c: Likewise.
53145         * tests/test-roundf1.c: Likewise.
53146         * tests/test-strtod.c: Likewise.
53147         * tests/test-trunc1.c: Likewise.
53148         * tests/test-trunc2.c: Likewise.
53149         * tests/test-truncf1.c: Likewise.
53150         * tests/test-truncf2.c: Likewise.
53151         * NEWS: Mention the renamed header files.
53152
53153 2008-07-11  Jim Meyering  <meyering@redhat.com>
53154
53155         vc-list-files: make the last-resort awk code more portable
53156         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
53157         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
53158         does not support it.
53159
53160 2008-07-10  Eric Blake  <ebb9@byu.net>
53161
53162         Work with tar's bootstrap.
53163         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
53164         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
53165         an m4 comment.
53166
53167 2008-07-09  Jim Meyering  <meyering@redhat.com>
53168
53169         posix-shell.m4: fix typo that made this test malfunction
53170         * m4/posix-shell.m4: Remove capitalization in variable name.
53171
53172 2008-07-08  Bruno Haible  <bruno@clisp.org>
53173
53174         * m4/onceonly.m4: Update comments.
53175         Reported by Ben Pfaff <blp@cs.stanford.edu>.
53176
53177 2008-07-04  Jim Meyering  <meyering@redhat.com>
53178
53179         * users.txt: Add vc-dwim.
53180         (bison, coreutils): Use the gitweb URL.
53181
53182 2008-07-03  Jim Meyering  <meyering@redhat.com>
53183
53184         * users.txt: Add libffcall.  From Sam Steingold.
53185
53186 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
53187
53188         getdate.y: do not ignore TZ with relative day, month or year offset
53189         * lib/getdate.y (get_date): Move the tz-handling block to follow the
53190         relative-date-handling, since otherwise, the latter would clobber the
53191         sole output (an updated Start value) of the tz-handling block.
53192         * tests/test-getdate.c: Tests for the fix
53193
53194 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53195
53196         Recognize 'foo_LIBRARIES += libgnu.a'.
53197         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
53198         makefile snippet has already specified an installation location,
53199         also using '+='.
53200
53201 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
53202
53203         getdate.y: factor out common actions
53204         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
53205         Use them in place of open-coded actions.
53206
53207 2008-07-01  Simon Josefsson  <simon@josefsson.org>
53208
53209         Add self-test for getdate module.
53210         * modules/getdate-tests: New file.
53211         * tests/test-getdate.c: New file.
53212
53213 2008-06-29  Bruno Haible  <bruno@clisp.org>
53214
53215         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
53216         .gitignore.
53217         Reported by Sylvain Beucler <beuc@beuc.net>.
53218
53219 2008-06-29  Bruno Haible  <bruno@clisp.org>
53220
53221         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
53222         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
53223
53224 2008-06-29  Bruno Haible  <bruno@clisp.org>
53225
53226         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
53227         EXTRA_DIST.
53228         Reported by Sylvain Beucler <beuc@beuc.net>.
53229
53230 2008-06-26  Jim Meyering  <meyering@redhat.com>
53231
53232         make several modules depend on the "open" module
53233         This provides slightly increased consistency when opening-for-write
53234         the name of a non-directory spelled with a trailing slash.
53235         * modules/chdir-safer: Likewise.
53236         * modules/chown: Likewise.
53237         * modules/clean-temp: Likewise.
53238         * modules/copy-file: Likewise.
53239         * modules/fchdir: Likewise.
53240         * modules/fcntl-safer: Likewise.
53241         * modules/pipe: Likewise.
53242         * modules/utime: Likewise.
53243         Prompted by Eric Blake and Bruno Haible.
53244
53245 2008-06-24  Andreas Schwab  <schwab@suse.de>
53246
53247         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
53248         literals can be used as initializers for global variables.
53249
53250 2008-06-23  Eric Blake  <ebb9@byu.net>
53251
53252         Make gnulib-cache.m4 easier to diff.
53253         * gnulib-tool (func_import): Allow newlines when reading cached
53254         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
53255
53256 2008-06-23  Bruno Haible  <bruno@clisp.org>
53257
53258         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
53259         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
53260         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
53261         m4/signalblocking.m4.
53262         (gl_PREREQ_SIGACTION): Don't invoke it.
53263         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
53264         gl_PREREQ_SIG_HANDLER_H.
53265         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
53266         Don't check for sigaction here.
53267
53268 2008-06-23  Bruno Haible  <bruno@clisp.org>
53269
53270         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
53271         (install_handlers): Don't set the SA_RESETHAND flag.
53272
53273 2008-06-23  Bruno Haible  <bruno@clisp.org>
53274
53275         * m4/sigaction.m4: Comment fixes.
53276         * lib/signal.in.h: Likewise.
53277
53278 2008-06-23  Eric Blake  <ebb9@byu.net>
53279
53280         Fix typo.
53281         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
53282
53283         Avoid SA_ namespace.
53284         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
53285         Reported by Ralf Wildenhues.
53286
53287         Avoid test failure due to SA_RESTORER.
53288         * tests/test-sigaction.c (SA_MASK): New macro.
53289         (main): Avoid failing due to extension flags being set.
53290         Reported by Jim Meyering.
53291
53292         Revert use of sig-handler.h in sigprocmask.c.
53293         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
53294         it requires the existence of struct sigaction.
53295         * lib/sigprocmask.c (handler_t): Restore typedef.
53296         (rpl_signal, old_handlers): Use local type.
53297
53298 2008-06-22  Bruno Haible  <bruno@clisp.org>
53299
53300         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
53301         conditionally.
53302         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
53303
53304 2008-06-22  Bruno Haible  <bruno@clisp.org>
53305
53306         * doc/posix-functions/siginterrupt.texi: Move note.
53307
53308         * lib/signal.in.h (SA_RESTART): New macro.
53309         * lib/sigaction.c: Update comment.
53310
53311         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
53312
53313         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
53314         (gl_PREREQ_SIGPROCMASK): Invoke it.
53315         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
53316
53317         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
53318
53319         * lib/sigprocmask.c: Update a comment.
53320
53321 2008-06-21  Eric Blake  <ebb9@byu.net>
53322
53323         Use sigaction module rather than signal().
53324         * modules/c-stack (Depends-on): Add sigaction.
53325         * modules/fatal-signal (Depends-on): Likewise.
53326         * modules/nanosleep (Depends-on): Likewise.
53327         * modules/sigprocmask (Files): Add sig-handler.h.
53328         * modules/sigaction (Files): Likewise.
53329         * lib/sig-handler.h (get_handler): New file, suggested by Paul
53330         Eggert.
53331         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
53332         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
53333         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
53334         (init_fatal_signals): Likewise.
53335         * lib/nanosleep.c (rpl_nanosleep): Likewise.
53336         (siginterrupt): Delete fallback.
53337         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
53338         instead.
53339         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
53340         siginterrupt.
53341
53342         New module sigaction, for mingw.
53343         * modules/sigaction: New module...
53344         * modules/sigaction-tests: ...and its test.
53345         * m4/sigaction.m4: New file.
53346         * lib/sigaction.c: Likewise.
53347         * tests/test-sigaction.c: Likewise.
53348         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
53349         * modules/signal (Makefile.am): Likewise.
53350         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
53351         needed.
53352         * doc/posix-headers/signal.texi (signal.h): Mention provided
53353         types.
53354         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
53355         that sigaction is preferable.
53356         * doc/posix-functions/sigaction.texi (sigaction): Mention new
53357         module.
53358         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53359         sigaction.
53360
53361         Improve robustness of sigprocmask by overriding signal.
53362         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
53363         is in use.
53364         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
53365         (SIGKILL, SIGSTOP): Provide fallbacks.
53366         (rpl_signal): Implement.
53367         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
53368         signal can be called inside handlers.
53369
53370         Fix nanosleep module on mingw.
53371         * modules/nanosleep (Depends-on): Add sys_select.
53372         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
53373
53374         Fix licensing of sigprocmask.
53375         * modules/raise (License): Relicense as LGPL.
53376
53377 2008-06-21  Bruno Haible  <bruno@clisp.org>
53378
53379         * lib/propername.c (proper_name_utf8): Don't use the transliterated
53380         result if it contains question marks.
53381         Reported by Michael Geng <linux@michaelgeng.de>.
53382
53383 2008-06-19  Bruno Haible  <bruno@clisp.org>
53384
53385         Fix CVS-ism.
53386         * doc/gnulib.texi: Include updated-stamp.texi.
53387         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
53388         (updated-stamp.texi): New rule.
53389         (gnulib.info): Depend on it.
53390         * doc/.gitignore: Add updated-stamp.texi.
53391         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
53392
53393 2008-06-19  Bruno Haible  <bruno@clisp.org>
53394
53395         * doc/Makefile (gnulib.info): Update and simplify dependencies.
53396         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
53397
53398 2008-06-19  Eric Blake  <ebb9@byu.net>
53399
53400         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
53401         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
53402         Reported by Stepan Kasal.
53403
53404 2008-06-18  Bruno Haible  <bruno@clisp.org>
53405
53406         * lib/fatal-signal.c (init_fatal_signals): Add comment.
53407         Reported by Eric Blake.
53408
53409 2008-06-18  Eric Blake  <ebb9@byu.net>
53410
53411         Work around cygwin 1.5.25 strsignal bug.
53412         * tests/test-strsignal.c: Allow for const char *.
53413         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
53414
53415 2008-06-18  Simon Josefsson  <simon@josefsson.org>
53416
53417         * users.txt: Update URL to article and add author/date
53418         information.
53419
53420 2008-06-17  Bruno Haible  <bruno@clisp.org>
53421
53422         New macro gl_DISABLE_THREADS.
53423         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
53424         if the user did not pass --enable-threads or --disable-threads option.
53425         (gl_DISABLE_THREADS): New macro.
53426         Reported by Eric Blake <ebb9@byu.net>.
53427
53428 2008-06-17  Bruno Haible  <bruno@clisp.org>
53429
53430         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
53431         when the macro ignores it.
53432         Based on a patch by Eric Blake <ebb9@byu.net>.
53433
53434 2008-06-17  Bruno Haible  <bruno@clisp.org>
53435
53436         * modules/tls (License): Change to LGPLv2+.
53437         Reported by Eric Blake.
53438
53439 2008-06-17  Eric Blake  <ebb9@byu.net>
53440
53441         Simplify c-stack prerequisites.
53442         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
53443         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
53444         no longer requires <ucontext.h> to exist.  Optimize setrlimit
53445         check.
53446         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
53447         <sys/resource.h>.
53448
53449         Move c-stack test into testsuite.
53450         * modules/c-stack-tests: New file.
53451         * lib/c-stack.c [DEBUG]: Move test program...
53452         * tests/test-c-stack.c: ...into this new file.  Skip rather than
53453         fail test if sigaltstack is lacking.
53454         * tests/test-c-stack.sh: New driver file.
53455
53456 2008-06-16  Eric Blake  <ebb9@byu.net>
53457
53458         Use raise module consistently.
53459         * modules/fatal-signal (Depends-on): Add raise.
53460         * modules/sigprocmask (Depends-on): Likewise.
53461         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
53462         * lib/sigprocmask.c (sigprocmask): Likewise.
53463         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
53464         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
53465
53466         Fix compliance bug in sigpending.
53467         * lib/sigprocmask.c (sigpending): Return pending array via
53468         parameter, not return value.
53469
53470 2008-06-14  Eric Blake  <ebb9@byu.net>
53471
53472         Improve obstack-printf test code.
53473         * tests/test-obstack-printf.c (test_function): Fix comment, and
53474         simplify usage of obstack_* in macros.  Add a test for coverage.
53475         Reported by Bruno Haible.
53476
53477 2008-06-14  Bruno Haible  <bruno@clisp.org>
53478
53479         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
53480         array size as a constant, not as a const variable.
53481         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
53482         AC_USE_SYSTEM_EXTENSIONS.
53483         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
53484         Test whether the obstack_printf function actually exists.
53485         * modules/obstack-printf (Depends-on): Add extensions.
53486         (Include): Remove obstack.h.
53487         * modules/obstack-printf-posix (Depends-on): Add extensions.
53488         (Include): Remove obstack.h.
53489
53490 2008-06-13  Eric Blake  <ebb9@byu.net>
53491
53492         Add obstack-printf and obstack-printf-posix modules.
53493         * modules/obstack-printf: New file.
53494         * modules/obstack-printf-posix: Likewise.
53495         * MODULES.html.sh (Misc): Mention them.
53496         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
53497         Likewise.
53498         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
53499         Likewise.
53500         * modules/stdio (Makefile.am): Accomodate new modules.
53501         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
53502         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
53503         Declare.
53504         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
53505         functions.
53506         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
53507         (gl_REPLACE_OBSTACK_PRINTF): New macros
53508         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
53509         * tests/test-obstack-printf.c: New file.
53510         * modules/obstack-printf-tests: Likewise.
53511         * modules/obstack-printf-posix-tests: Likewise.
53512
53513 2008-06-11  Bruno Haible  <bruno@clisp.org>
53514
53515         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
53516         * lib/open.c: Include errno.h.
53517         (open): Fail when attempting to write to a file that has a trailing
53518         slash.
53519         * tests/test-open.c (main): Test against trailing slash bug.
53520         * doc/posix-functions/open.texi: Mention the trailing slash bug.
53521
53522 2008-06-10  Bruno Haible  <bruno@clisp.org>
53523
53524         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
53525         for $? to work inside the trap command, with various /bin/sh-s.
53526         * tests/test-vc-list-files-cvs.sh: Likewise.
53527
53528 2008-06-10  Bruno Haible  <bruno@clisp.org>
53529
53530         * lib/acl-internal.h: Don't include gettext.h here.
53531         * lib/set-mode-acl.c: Include gettext.h here.
53532         * lib/copy-acl.c: Likewise.
53533
53534 2008-06-10  Bruno Haible  <bruno@clisp.org>
53535
53536         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
53537         * lib/wait-process.c (wait_subprocess): Likewise.
53538         * lib/execute.h (execute): Add termsigp argument.
53539         * lib/execute.c (execute): Likewise.
53540         * lib/csharpcomp.c (compile_csharp_using_pnet,
53541         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
53542         * lib/csharpexec.c (execute_csharp_using_pnet,
53543         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
53544         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
53545         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
53546         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
53547         is_jikes_present): Update.
53548         * lib/javaexec.c (execute_java_class): Update.
53549         * lib/javaversion.c (execute_and_read_line): Update.
53550         * NEWS: Document the changes.
53551         Reported by Eric Blake.
53552
53553 2008-06-10  Eric Blake  <ebb9@byu.net>
53554
53555         Add missing include.
53556         * tests/test-strstr.c (includes): Add <signal.h>.
53557         * tests/test-strcasestr.c (includes): Likewise.
53558         * tests/test-memmem.c (includes): Likewise.
53559
53560 2008-06-10  Bruno Haible  <bruno@clisp.org>
53561
53562         * lib/wait-process.c (wait_subprocess): Add an assertion.
53563
53564 2008-06-10  Bruno Haible  <bruno@clisp.org>
53565
53566         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
53567
53568 2008-06-10  Bruno Haible  <bruno@clisp.org>
53569
53570         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
53571         using alarm().
53572         * tests/test-strcasestr.c (main): Likewise.
53573         * tests/test-strstr.c (main): Likewise.
53574
53575 2008-06-09  Bruno Haible  <bruno@clisp.org>
53576
53577         Work around the Solaris 10 ACE ACLs ABI change.
53578         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
53579         declare if ACL_NO_TRIVIAL is present.
53580         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
53581         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
53582         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
53583         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
53584         define if ACL_NO_TRIVIAL is present.
53585         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
53586         and use the current ABI.
53587         (file_has_acl): Use same #if condition as elsewhere.
53588         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
53589         in use, and use the current ABI.
53590         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
53591         Reported by Jim Meyering.
53592
53593 2008-06-09  Eric Blake  <ebb9@byu.net>
53594
53595         Work around environments that (stupidly) ignore SIGALRM.
53596         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
53597         before using alarm().
53598         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
53599         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
53600         Reported by Ian Beckwith <ianb@erislabs.net>.
53601
53602         Produce autobuild blurb earlier in log.
53603         * modules/autobuild (configure.ac-early): Move AB_INIT here.
53604
53605 2008-06-09  Jim Meyering  <meyering@redhat.com>
53606         and OndÅ™ej Vašík  <ovasik@redhat.com>
53607
53608         utimens.c: correct kernel bug work-around
53609         OndÅ™ej Vašík found that the invalid return value of 280 indicates
53610         failure, not success, and the kernel bug we're trying to work
53611         around affects not just the utimensat call, but also the fallback
53612         futimens call.
53613         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
53614         not success.
53615         [HAVE_FUTIMENS]: Use the same work-around, here.
53616
53617 2008-06-09  Jim Meyering  <meyering@redhat.com>
53618
53619         add more guards around definition of ACE_-related code
53620         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
53621         ALLOW and ACE_OWNER are also defined.
53622
53623 2008-06-08  Bruno Haible  <bruno@clisp.org>
53624
53625         * lib/acl-internal.h: Add me as co-author.
53626         * lib/file-has-acl.c: Likewise.
53627         * lib/set-mode-acl.c: Likewise.
53628         * lib/copy-acl.c: Likewise.
53629
53630 2008-06-08  Bruno Haible  <bruno@clisp.org>
53631
53632         Add support for AIX ACLs.
53633         * lib/acl-internal.h (acl_nontrivial): New declaration.
53634         * lib/file-has-acl.c (acl_nontrivial): New function.
53635         (file_has_acl): Add implementation using AIX 4 ACL API.
53636         * lib/set-mode-acl.c (qset_acl): Likewise.
53637         * lib/copy-acl.c (qcopy_acl): Likewise.
53638
53639 2008-06-08  Bruno Haible  <bruno@clisp.org>
53640
53641         Add support for HP-UX ACLs.
53642         * lib/acl-internal.h (acl_nontrivial): New declaration.
53643         * lib/file-has-acl.c (acl_nontrivial): New function.
53644         (file_has_acl): Add implementation using HP-UX 11 ACL API.
53645         * lib/set-mode-acl.c (qset_acl): Likewise.
53646         * lib/copy-acl.c (qcopy_acl): Likewise.
53647
53648 2008-06-08  Bruno Haible  <bruno@clisp.org>
53649
53650         Add support for Cygwin ACLs.
53651         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
53652         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
53653         the chmod_or_fchmod call.
53654         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
53655
53656 2008-06-08  Bruno Haible  <bruno@clisp.org>
53657
53658         Fix bug with setuid modes in Solaris 10+ code.
53659         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
53660         succeeded, when the mode contains some special bits.
53661
53662 2008-06-08  Bruno Haible  <bruno@clisp.org>
53663
53664         Add support for Solaris 7..10 ACLs.
53665         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
53666         declarations.
53667         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
53668         functions.
53669         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
53670         * lib/set-mode-acl.c (qset_acl): Likewise.
53671         * lib/copy-acl.c (qcopy_acl): Likewise.
53672
53673 2008-06-08  Bruno Haible  <bruno@clisp.org>
53674
53675         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
53676         declaration.
53677         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
53678         (acl_access_nontrivial): Remove MacOS X case.
53679         (file_has_acl): Use acl_extended_nontrivial.
53680         * lib/copy-acl.c (qcopy_acl): Likewise.
53681
53682 2008-06-08  Bruno Haible  <bruno@clisp.org>
53683
53684         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
53685
53686 2008-06-08  Jim Meyering  <meyering@redhat.com>
53687
53688         * modules/acl (Maintainer): Add Bruno Haible.
53689
53690 2008-06-07  Bruno Haible  <bruno@clisp.org>
53691
53692         Improve support for Tru64 ACLs.
53693         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
53694         ACL on OSF/1.
53695
53696 2008-06-07  Bruno Haible  <bruno@clisp.org>
53697
53698         Add support for MacOS X ACLs.
53699         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
53700         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
53701         * lib/set-mode-acl.c (qset_acl): Likewise.
53702         * lib/copy-acl.c (qcopy_acl): Likewise.
53703
53704 2008-06-07  Bruno Haible  <bruno@clisp.org>
53705
53706         Fix memory leak introduced on 2008-05-22.
53707         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
53708         use.
53709
53710 2008-06-07  Bruno Haible  <bruno@clisp.org>
53711
53712         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
53713         to construct an empty ACL.
53714
53715 2008-06-07  Bruno Haible  <bruno@clisp.org>
53716
53717         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
53718         precisely.
53719         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
53720
53721 2008-06-07  Bruno Haible  <bruno@clisp.org>
53722
53723         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
53724         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
53725
53726 2008-06-07  Bruno Haible  <bruno@clisp.org>
53727
53728         * doc/posix-functions/_setjmp.texi: Explain the use of this function
53729         regardless of POSIX.
53730         * doc/posix-functions/_longjmp.texi: Likewise.
53731         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
53732         SystemV platform in this case.
53733
53734 2008-06-06  Eric Blake  <ebb9@byu.net>
53735
53736         Document abort() bugs.
53737         * doc/posix-functions/abort.texi (abort): Mention anomalies.
53738
53739         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
53740         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
53741         sigsetjmp.
53742         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
53743         siglongjmp, but only as a macro.
53744         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
53745         is obsolete.
53746         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
53747
53748         Tweak documentation to cover cygwin argz bugs.
53749         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
53750         argz bug fix; no code change needed since no cygwin releases
53751         occurred between the last fix and the bug being tested.
53752         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
53753         module and recently fixed cygwin bugs.
53754         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
53755         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
53756         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
53757         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
53758         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
53759         Likewise.
53760         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
53761         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
53762         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
53763         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
53764         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
53765         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
53766         Likewise.
53767
53768         Avoid gcc warning on cygwin.
53769         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
53770         !ACL_NO_TRIVIAL]: Avoid unused variable.
53771
53772 2008-06-05  Eric Blake  <ebb9@byu.net>
53773
53774         Be tolerant of UNKNOWN version in gnulib-tool test dir.
53775         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
53776         git-version-gen fails to come up with a version.
53777         Reported by Simon Josefsson.
53778
53779 2008-06-05  Jim Meyering  <meyering@redhat.com>
53780             Paul Eggert  <eggert@cs.ucla.edu>
53781
53782         utimens.c: work around a probable Linux kernel bug
53783         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
53784         appears to be a kernel bug that causes utimensat to return 280
53785         instead of 0, indicating success.
53786
53787 2008-06-04  Bruno Haible  <bruno@clisp.org>
53788
53789         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
53790         2008-06-01 commit.
53791
53792 2008-06-04  Bruno Haible  <bruno@clisp.org>
53793
53794         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
53795         * lib/file-has-acl.c (acl_access_nontrivial): New function.
53796         (file_has_acl): Use it. Save errno afterwards.
53797         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
53798
53799 2008-06-03  Bruno Haible  <bruno@clisp.org>
53800
53801         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
53802         draft code. Simplify #ifs.
53803         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
53804         Put Solaris code after POSIX-draft code. Fix comments regarding
53805         Solaris 10, HP-UX. Mention Cygwin.
53806         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
53807
53808 2008-06-03  Eric Blake  <ebb9@byu.net>
53809
53810         Provide fallback for older kernels.
53811         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
53812         Provide runtime fallback if kernel lacks support.
53813         Reported by Mike Frysinger.
53814
53815 2008-06-02  Bruno Haible  <bruno@clisp.org>
53816
53817         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
53818         it exists.
53819
53820 2008-06-02  Bruno Haible  <bruno@clisp.org>
53821
53822         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
53823         * lib/copy-acl.c (qcopy_acl): Update comment.
53824
53825 2008-06-02  Bruno Haible  <bruno@clisp.org>
53826
53827         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
53828         like ACL APIs.
53829
53830 2008-06-02  Bruno Haible  <bruno@clisp.org>
53831
53832         * tests/test-file-has-acl.sh: Use different code for Cygwin.
53833         * tests/test-set-mode-acl.sh: Likewise.
53834         * tests/test-copy-acl.sh: Likewise.
53835         * tests/test-copy-file.sh: Likewise.
53836
53837 2008-06-02  Bruno Haible  <bruno@clisp.org>
53838
53839         * tests/test-file-has-acl.sh: Remove unused code.
53840
53841 2008-06-01  Bruno Haible  <bruno@clisp.org>
53842
53843         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
53844         (copy_acl): Just a wrapper around qcopy_acl that emits the error
53845         messages.
53846         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
53847
53848 2008-06-01  Bruno Haible  <bruno@clisp.org>
53849
53850         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
53851         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
53852         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
53853         APIs.
53854         * modules/acl-tests (configure.ac): Remove tests now contained in
53855         m4/acl.m4.
53856
53857 2008-06-02  Jim Meyering  <meyering@redhat.com>
53858
53859         announce-gen: use a better key-server host name
53860         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
53861         it may be more consistently reliable.  Suggested by Werner Koch
53862         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
53863
53864 2008-06-01  Bruno Haible  <bruno@clisp.org>
53865
53866         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
53867         Reported by Voroskoi Andras <voroskoi@gmail.com>.
53868
53869 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
53870
53871         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
53872
53873 2008-06-01  Bruno Haible  <bruno@clisp.org>
53874
53875         New ACL tests.
53876         * tests/test-file-has-acl.sh: New file.
53877         * tests/test-file-has-acl.c: New file.
53878         * tests/test-set-mode-acl.sh: New file.
53879         * tests/test-set-mode-acl.c: New file.
53880         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
53881         * tests/test-copy-acl.c: New file.
53882         * modules/acl-tests: New file, based on modules/copy-file-tests.
53883         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
53884         (Depends-on): Add acl-tests.
53885         (configure.ac): Remove checks.
53886         (Makefile.am): Don't create test-sameacls program here any more.
53887
53888 2008-06-01  Bruno Haible  <bruno@clisp.org>
53889
53890         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
53891         * tests/test-sameacls.c: Include progname.h.
53892         (main): Invoke set_program_name. Portability fixes for MacOS X,
53893         Solaris, HP-UX.
53894
53895 2008-06-01  Bruno Haible  <bruno@clisp.org>
53896
53897         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
53898         function.
53899         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
53900
53901 2008-06-01  Bruno Haible  <bruno@clisp.org>
53902
53903         * modules/rpmatch (Depends-on): Add strdup.
53904
53905 2008-06-01  Bruno Haible  <bruno@clisp.org>
53906
53907         * lib/pipe.c: Include unistd-safer.h.
53908         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
53909         * modules/pipe (Depends-on): Add unistd-safer.
53910
53911 2008-05-30  Simon Josefsson  <simon@josefsson.org>
53912
53913         * modules/autobuild (configure.ac): Call AB_INIT.
53914
53915 2008-05-30  Simon Josefsson  <simon@josefsson.org>
53916
53917         * tests/test-getaddrinfo.c: Don't print debug messages by default.
53918         Suggested by Bruno Haible <bruno@clisp.org>.
53919
53920 2008-05-30  Simon Josefsson  <simon@josefsson.org>
53921
53922         * tests/test-base64.c: Cast size_t to unsigned long when invoking
53923         printf.  Use %lu instead of %d.  Reported by Bruno Haible
53924         <bruno@clisp.org>.
53925
53926 2008-05-29  Eric Blake  <ebb9@byu.net>
53927
53928         Prefer new POSIX 200x interfaces over futimesat.
53929         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
53930         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
53931         when available.
53932         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
53933
53934 2008-05-28  Bruno Haible  <bruno@clisp.org>
53935
53936         * modules/stpcpy (License): Change to LGPLv2+.
53937         Requested by David Lutterkort <dlutter@redhat.com>.
53938
53939 2008-05-27  Bruno Haible  <bruno@clisp.org>
53940
53941         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
53942         current mingw.
53943         Reported by Jose E. Marchesi <jemarch@gnu.org>.
53944
53945 2008-05-27  Bruno Haible  <bruno@clisp.org>
53946
53947         * modules/iconv_open (Link): New section, from module 'iconv'.
53948         * modules/striconv (Link): Likewise.
53949         * modules/striconveh (Link): Likewise.
53950         * modules/xstriconv (Link): Likewise.
53951         * modules/unicodeio (Link): Likewise.
53952         * modules/propername (Link): Likewise.
53953         Reported by Jim Meyering.
53954
53955 2008-05-26  Jim Meyering  <meyering@redhat.com>
53956
53957         sha256: do not artificially restrict buffer length to be < 2^32
53958         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
53959         uint32_t to size_t.
53960         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
53961         to match.
53962
53963         avoid unaligned access errors, e.g., on sparc
53964         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
53965         direct access through a possibly-unaligned uint64* pointer.
53966         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
53967         direct access through a possibly-unaligned uint32* pointer.
53968         Prompted by this patch from Tom "spot" Callaway:
53969         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
53970
53971         sha512.c: fix typo in comment
53972         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
53973
53974 2008-05-25  Bruno Haible  <bruno@clisp.org>
53975
53976         * lib/set-mode-acl.c: Renamed from lib/acl.c.
53977         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
53978         (Makefile.am): Update lib_SOURCES.
53979
53980 2008-05-25  Bruno Haible  <bruno@clisp.org>
53981
53982         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
53983
53984 2008-05-25  Jim Meyering  <meyering@redhat.com>
53985
53986         useless-if-before-free: freed expr may have white-space differences
53987         * build-aux/useless-if-before-free: Recognize cases in which the
53988         freed expression differs from the tested one in embedded white
53989         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
53990         $1 was used, so we can't make any regexp shy.  Improved tests now
53991         detect this.
53992
53993         useless-if-before-free: accept white space in the expression.
53994         * build-aux/useless-if-before-free: For now, any white space
53995         in the expression must be identical in the free argument.
53996
53997         useless-if-before-free: efficiency tweak
53998         * build-aux/useless-if-before-free: Make the expression-matching
53999         regexp "shy".
54000         Make the *outer* regexp shy, not the expr-matching one.
54001
54002         update code-in-comment to accept cast of free arg
54003         * build-aux/useless-if-before-free: Update regexp.
54004
54005 2008-05-25  Bruno Haible  <bruno@clisp.org>
54006
54007         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
54008         * modules/copy-file-tests (Files, Makefile.am): Update.
54009         * tests/test-copy-file.c (func_test_copy): Update.
54010
54011 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
54012
54013         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
54014
54015 2008-05-23  Bruno Haible  <bruno@clisp.org>
54016
54017         Improve support for ACLs on OSF/1.
54018         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
54019         Remove fallback for unknown flavors of ACLs.
54020
54021 2008-05-22  Bruno Haible  <bruno@clisp.org>
54022
54023         Add support for ACLs on OSF/1.
54024         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
54025         replacements.
54026         (acl_free_text): New macro fallback.
54027         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
54028         acl_free.
54029         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
54030         acl_free_text function. Require AC_C_INLINE.
54031
54032 2008-05-22  Bruno Haible  <bruno@clisp.org>
54033
54034         Make copy_acl work on MacOS X 10.5.
54035         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
54036         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
54037         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
54038         If MODE_INSIDE_ACL, don't assume that every system has the same text
54039         representation for ACLs as FreeBSD.
54040         * lib/copy-acl.c (copy_acl): Add support for platforms with
54041         !MODE_INSIDE_ACL.
54042         * lib/file-has-acl.c (file_has_acl): Likewise.
54043         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
54044         FreeBSD, MacOS X, or IRIX, respectively.
54045
54046 2008-05-22  Bruno Haible  <bruno@clisp.org>
54047
54048         * lib/acl.h: Don't include <sys/acl.h>.
54049         (GETACLCNT): Move fallback to lib/acl-internal.h.
54050         * lib/acl-internal.h: Include <sys/acl.h> here.
54051         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
54052
54053 2008-05-22  Bruno Haible  <bruno@clisp.org>
54054
54055         Split off copy_acl function to separate file.
54056         * lib/copy-acl.c: New file, extracted from lib/acl.c.
54057         * lib/acl.c (copy_acl): Moved function to separate file.
54058         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
54059         * modules/acl (Files): Add lib/copy-acl.c.
54060         (Makefiles.am): Augment lib_SOURCES.
54061
54062 2008-05-22  Bruno Haible  <bruno@clisp.org>
54063
54064         * modules/copy-file-tests: New file.
54065         * tests/test-copy-file.sh: New file.
54066         * tests/test-copy-file.c: New file.
54067         * tests/test-copy-file-sameacls.c: New file.
54068
54069 2008-05-22  Eric Blake  <ebb9@byu.net>
54070
54071         Avoid gcc warning.
54072         * tests/test-memcmp.c (main): Pass NULL indirectly.
54073
54074 2008-05-21  Bruno Haible  <bruno@clisp.org>
54075
54076         Add reference doc about ACLs.
54077         * doc/acl-resources.txt: New file.
54078         * doc/acl-cygwin.txt: New file.
54079
54080 2008-05-21  Bruno Haible  <bruno@clisp.org>
54081
54082         Avoid one more warning from gcc.
54083         * lib/vasnprintf.c (IF_LINT): Update comments.
54084         (VASNPRINTF): Use it also for the 'prefix' array initializer.
54085
54086 2008-05-21  Jim Meyering  <meyering@redhat.com>
54087
54088         avoid a warning from gcc
54089         * lib/vasnprintf.c (IF_LINT): Define.
54090         (scale10_round_decimal_long_double):
54091         Use it to avoid a "may be used uninitialized" warning.
54092         (scale10_round_decimal_double): Likewise.
54093
54094 2008-05-21  Simon Josefsson  <simon@josefsson.org>
54095
54096         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
54097         declared.
54098
54099 2008-05-20  Bruno Haible  <bruno@clisp.org>
54100
54101         * tests/test-memcmp.c (main): Test also the sign of the result. Test
54102         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
54103
54104 2008-05-20  Simon Josefsson  <simon@josefsson.org>
54105
54106         * modules/memcmp-tests: New file.
54107         * tests/test-memcmp.c: New file.
54108
54109 2008-05-19  Bruno Haible  <bruno@clisp.org>
54110
54111         * modules/propername (Notice, configure.ac): Put quoted "..." into
54112         --keyword option.
54113         * lib/propername.h: Update comments accordingly.
54114         Reported by Eric Blake.
54115
54116 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
54117
54118         * modules/getpass-gnu (Depends-on): Add fseeko.
54119
54120 2008-05-19  Simon Josefsson  <simon@josefsson.org>
54121
54122         * modules/base64-tests: New file.
54123
54124 2008-05-19  Bo Borgerson <gigabo@gmail.com>
54125
54126         * lib/base64.c (base64_decode_ctx): If a decode context structure
54127         was passed in use it to ignore newlines.  If a context structure
54128         was _not_ passed in, continue to treat newlines as garbage (this
54129         is the historical behavior).  Formerly base64_decode.
54130         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
54131         takes a decode context structure.
54132         * lib/base64.h (base64_decode): Macro for four-argument calls.
54133         (base64_decode_alloc): Likewise.
54134         * lib/base64.c (base64_decode_ctx): If a decode context structure
54135         was passed in use it to ignore newlines.  If a context structure
54136         was _not_ passed in, continue to treat newlines as garbage (this
54137         is the historical behavior).  Formerly base64_decode.
54138         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
54139         takes a decode context structure.
54140         * lib/base64.h (base64_decode): Macro for four-argument calls.
54141         (base64_decode_alloc): Likewise.
54142
54143 2008-05-19  Jim Meyering  <meyering@redhat.com>
54144
54145         avoid a warning from gcc
54146         * lib/trim.c (IF_LINT): Define.
54147         (trim2): Use it to avoid a "may be used uninitialized" warning.
54148
54149         Fix doc typo.
54150         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
54151
54152 2008-05-19  Bruno Haible  <bruno@clisp.org>
54153
54154         * doc/glibc-functions/getpass.texi: Document limits of other
54155         implementations.
54156
54157 2008-05-19  Simon Josefsson  <simon@josefsson.org>
54158             Bruno Haible <bruno@clisp.org>
54159
54160         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
54161
54162 2008-05-18  Bruno Haible  <bruno@clisp.org>
54163
54164         * modules/propername: New file, from GNU gettext.
54165         * lib/propername.h: New file, from GNU gettext.
54166         * lib/propername.c: New file, from GNU gettext.
54167         * MODULES.html.sh (Internationalization functions): Add propername.
54168
54169 2008-05-16  Jim Meyering  <meyering@redhat.com>
54170             Bruno Haible  <bruno@clisp.org>
54171
54172         Avoid some warnings from "gcc -Wshadow".
54173         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
54174
54175 2008-05-15  Eric Blake  <ebb9@byu.net>
54176
54177         Extend previous patch to cygwin 1.7.0.
54178         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
54179         fast implementation in cygwin >= 1.7.0.
54180         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
54181         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54182
54183 2008-05-15  Bruno Haible  <bruno@clisp.org>
54184
54185         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
54186         implementation in glibc >= 2.9.
54187         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
54188         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
54189
54190 2008-05-15  Bruno Haible  <bruno@clisp.org>
54191
54192         * MODULES.html.sh (Internationalization functions): Remove linebreak.
54193         (Unicode string functions): Add unilbrk/*.
54194         Reported by Karl Berry.
54195
54196 2008-05-15  Eric Blake  <ebb9@byu.net>
54197
54198         Fix violation of <stdbool.h> replacement in regex.
54199         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
54200         * lib/regexec.c (re_search_internal): Likewise.
54201         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
54202
54203 2008-05-15  Jim Meyering  <meyering@redhat.com>
54204
54205         avoid distracting test output when git or cvs is not found
54206         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
54207         * tests/test-vc-list-files-git.sh: Likewise.
54208
54209 2008-05-15  Eric Blake  <ebb9@byu.net>
54210
54211         Glibc finally accepted the memmem speedup code, bugzilla #5514.
54212         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
54213         glibc version.
54214         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
54215         * doc/posix-functions/strstr.texi (strstr): Likewise.
54216         * lib/str-two-way.h (MAX): Sychronize with glibc.
54217
54218 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
54219
54220         * lib/regcomp.c (optimize_utf8): Add a note on why we test
54221         opr.ctx_type.
54222         (calc_first): Initialize constraint field.
54223         (duplicate_node_closure): Use it instead of special casing ANCHORS.
54224         Fix grammar.
54225         (duplicate_node): Merge constraint field for all node types.
54226         (calc_eclosure_iter): Look at constraint field for all node types.
54227         * lib/regex_internal.c (create_cd_newstate): Don't look at
54228         opr.ctx_type.
54229
54230 2008-05-14  Bruno Haible  <bruno@clisp.org>
54231
54232         Help GCC to do better code generation.
54233         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
54234         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
54235         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
54236         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
54237         Declare with attribute 'malloc' if supported.
54238
54239 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
54240
54241         use "echo STR|wc -c" rather than unportable "expr length STR"
54242         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
54243         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
54244
54245 2008-05-14  Jim Meyering  <meyering@redhat.com>
54246
54247         use dd ibs=$n count=1 ... rather than less-portable head -c$n
54248         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
54249         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
54250         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
54251         via Collin Lasse.
54252
54253 2008-05-14  Eric Blake  <ebb9@byu.net>
54254
54255         Avoid quadratic growth in gl_LIBSOURCES.
54256         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
54257         Suggested by Bruno Haible.
54258
54259         Test xmemdup0.
54260         * modules/xmemdup0-tests: New file.
54261         * tests/test-xmemdup0.c: Likewise.
54262
54263 2008-05-13  Eric Blake  <ebb9@byu.net>
54264
54265         Split xmemdup0 into its own module.
54266         * modules/xmemdup0: New file.
54267         * lib/xmemdup0.h: Likewise.
54268         * lib/xmemdup0.c: Likewise.
54269         * MODULES.html.sh (Memory management functions): Add xmemdup0.
54270         * lib/xalloc.h (xmemdup0): Remove.
54271         * lib/xmalloc.c (xmemdup0): Likewise.
54272
54273 2008-05-13  Eric Blake  <ebb9@byu.net>
54274             Bruno Haible  <bruno@clisp.org>
54275
54276         Reduce number of forks required during autoconf.
54277         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
54278         and gl_LIBSOURCES_DIR.
54279         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
54280         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
54281         m4_syscmd per file.
54282         <m4_foreach_w>: Move...
54283         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
54284
54285 2008-05-13  Eric Blake  <ebb9@byu.net>
54286
54287         * gnulib-tool: Fix various comment typos.
54288
54289 2008-05-12  Bruno Haible  <bruno@clisp.org>
54290
54291         Tailor the linebreaking algorithm.
54292         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
54293
54294 2008-05-12  Bruno Haible  <bruno@clisp.org>
54295
54296         Update to Unicode 5.0.0.
54297         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
54298         LBP_JV, LBP_JT. Redistribute values.
54299         (unilbrk_table): Change size.
54300         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
54301         Unicode TR#14 rev. 22.
54302         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
54303         LBP_JV, LBP_JT. Redistribute values.
54304         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
54305         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
54306         Update.
54307         * lib/unilbrk/lbrkprop1.h: Regenerated.
54308         * lib/unilbrk/lbrkprop2.h: Regenerated.
54309         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
54310         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
54311         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
54312         Likewise.
54313         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
54314         Likewise.
54315         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
54316         result.
54317         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
54318         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
54319         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
54320         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
54321         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
54322         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
54323
54324 2008-05-11  Bruno Haible  <bruno@clisp.org>
54325
54326         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
54327
54328 2008-05-11  Bruno Haible  <bruno@clisp.org>
54329
54330         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
54331         * modules/unilbrk/gen-lbrk: New file.
54332
54333 2008-05-11  Bruno Haible  <bruno@clisp.org>
54334
54335         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
54336         * m4/sha512.m4 (gl_SHA512): Likewise.
54337
54338 2008-05-11  Jim Meyering  <meyering@redhat.com>
54339
54340         New modules: crypto/sha256, crypto/sha512 (from coreutils)
54341         * modules/crypto/sha256: New file.
54342         * modules/crypto/sha512: Likewise.
54343         * lib/sha256.c: Likewise.
54344         * lib/sha256.h: Likewise.
54345         * lib/sha512.c: Likewise.
54346         * lib/sha512.h: Likewise.
54347         * lib/u64.h: Likewise.
54348         * m4/sha256.m4: Likewise.
54349         * m4/sha512.m4: Likewise.
54350         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
54351
54352 2008-05-10  Bruno Haible  <bruno@clisp.org>
54353
54354         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
54355         (Input/Output <stdio.h>): Add xprintf.
54356         (Signal handling <signal.h>): Add strsignal.
54357         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
54358         (Core language properties): Add func.
54359         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
54360         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
54361         strings.
54362         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
54363         (Input/output): New section.
54364         (File system functions): Add openat-die, stat-macros.
54365         (Networking functions): Add sockets.
54366         (Unicode string functions): Add unictype/*.
54367         (Support for building libraries and executables): Add gperf.
54368         (Support for building documentation): Add agpl-3.0.
54369         (Misc): Add nocrash.
54370
54371 2008-05-10  Bruno Haible  <bruno@clisp.org>
54372
54373         * modules/unictype/gen-ctype: New file.
54374
54375 2008-05-10  Jim Meyering  <meyering@redhat.com>
54376
54377         Make chdir-safer.c more efficient on a system with no symlinks.
54378         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
54379         also if ELOOP is zero.  Suggested by Bruno Haible.
54380
54381         Make chdir-safer.c slightly safer.
54382         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
54383         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
54384
54385         Avoid compile failure on systems without ELOOP (like mingw).
54386         * lib/chdir-safer.c (ELOOP): Define if not already defined.
54387         Reported by Bruno Haible.
54388
54389 2008-05-10  Bruno Haible  <bruno@clisp.org>
54390
54391         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
54392         (is_utf8_encoding): Use a case-insensitive comparison.
54393         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
54394         streq.
54395
54396 2008-05-10  Bruno Haible  <bruno@clisp.org>
54397
54398         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
54399         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
54400         * lib/unilbrk/ulc-common.h (iconv_string_length,
54401         iconv_string_keeping_offsets): Remove declarations.
54402         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
54403         Don't include <iconv.h>, streq.h, xsize.h.
54404         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
54405         conversion.
54406         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
54407         <iconv.h>, streq.h, xsize.h.
54408         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
54409         conversion.
54410         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
54411         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
54412         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
54413         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
54414
54415 2008-05-10  Bruno Haible  <bruno@clisp.org>
54416
54417         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
54418         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
54419
54420         * modules/unilbrk/u32-width-linebreaks-tests: New file.
54421         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
54422
54423         * modules/unilbrk/u16-width-linebreaks-tests: New file.
54424         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
54425
54426         * modules/unilbrk/u8-width-linebreaks-tests: New file.
54427         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
54428
54429         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
54430         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
54431
54432         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
54433         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
54434
54435         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
54436         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
54437
54438         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
54439         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
54440
54441 2008-05-10  Bruno Haible  <bruno@clisp.org>
54442
54443         Split up 'linebreak' module.
54444         * lib/unilbrk.h: New file, based on lib/linebreak.h.
54445         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
54446         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
54447         modifications.
54448         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
54449         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
54450         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
54451         lib/linebreak.c.
54452         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
54453         lib/linebreak.c.
54454         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
54455         lib/linebreak.c.
54456         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
54457         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
54458         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
54459         lib/linebreak.c.
54460         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
54461         lib/linebreak.c.
54462         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
54463         lib/linebreak.c.
54464         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
54465         lib/linebreak.c.
54466         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
54467         lib/linebreak.c.
54468         * modules/unilbrk/base: New file.
54469         * modules/unilbrk/tables: New file.
54470         * modules/unilbrk/u8-possible-linebreaks: New file.
54471         * modules/unilbrk/u16-possible-linebreaks: New file.
54472         * modules/unilbrk/u32-possible-linebreaks: New file.
54473         * modules/unilbrk/ulc-common: New file.
54474         * modules/unilbrk/ulc-possible-linebreaks: New file.
54475         * modules/unilbrk/u8-width-linebreaks: New file.
54476         * modules/unilbrk/u16-width-linebreaks: New file.
54477         * modules/unilbrk/u32-width-linebreaks: New file.
54478         * modules/unilbrk/ulc-width-linebreaks: New file.
54479         * lib/linebreak.h: Remove file.
54480         * lib/linebreak.c: Remove file.
54481         * m4/linebreak.m4: Remove file.
54482         * modules/linebreak: Remove file.
54483         * NEWS: Mention the changes.
54484
54485 2008-05-09  Eric Blake  <ebb9@byu.net>
54486
54487         Add xmemdup0.
54488         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
54489         implementation.
54490         * lib/xmalloc.c (xmemdup0): New C implementation.
54491
54492 2008-05-08  Bruno Haible  <bruno@clisp.org>
54493
54494         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
54495
54496 2008-05-07  Eric Blake  <ebb9@byu.net>
54497
54498         Support cross-compilation of <wctype.h>.
54499         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
54500         AC_CACHE_CHECK.
54501
54502 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
54503
54504         * build-aux/vc-list-files: Add support for bzr.
54505
54506 2008-05-03  Jim Meyering  <meyering@redhat.com>
54507
54508         avoid failed assertion with tight malloc
54509         * tests/test-getndelim2.c: Correct an off-by-one assertion.
54510
54511 2008-05-03  Simon Josefsson  <simon@josefsson.org>
54512
54513         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
54514         are needed from arpa/inet.h.
54515         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
54516         Reported by Bruno Haible.
54517
54518 2008-05-02  Jim Meyering  <meyering@redhat.com>
54519
54520         avoid compilation error on FreeBSD 6
54521         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
54522
54523 2008-05-01  Jim Meyering  <meyering@redhat.com>
54524
54525         useless-if-before-free: correct --help's exit status description
54526         * build-aux/useless-if-before-free (usage): Like grep, exit 0
54527         for one or more matches, etc.  Reported by Bruno Haible.
54528
54529         vc-list-files: make the stand-alone gnulib test work
54530         * modules/vc-list-files-tests (configure.ac):
54531         Define and AC_SUBST abs_aux_dir.
54532         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
54533         $(abs_top_srcdir) to each script and having each of them
54534         duplicate the work of setting PATH, set PATH here, using
54535         the new variable, abs_aux_dir instead.
54536         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
54537         * tests/test-vc-list-files-git.sh: Likewise.
54538         Reported by Bruno Haible.
54539
54540 2008-05-01  Bruno Haible  <bruno@clisp.org>
54541
54542         * lib/getndelim2.c (getndelim2): Fix newsize computation during
54543         reallocation. Rename 'done' to 'found_delimiter'.
54544
54545 2008-05-01  Jim Meyering  <meyering@redhat.com>
54546
54547         vc-list-files: accommodate /bin/sh like the one from Solaris 10
54548         * build-aux/vc-list-files: Use `...`, not $(...).
54549
54550 2008-04-30  Jim Meyering  <meyering@redhat.com>
54551
54552         add tests for vc-list-files
54553         * modules/vc-list-files-tests: New module.
54554         * tests/test-vc-list-files-cvs.sh: New file.
54555         * tests/test-vc-list-files-git.sh: New file.
54556
54557         avoid a warning from gcc
54558         * lib/getndelim2.c (IF_LINT): Define.
54559         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
54560
54561         vc-list-files: work properly with build-aux/cvsu, too
54562         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
54563         to all cvs-based clauses.
54564
54565         vc-list-files: work properly in the CVS+awk case, too
54566         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
54567
54568         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
54569         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
54570         take more than one file argument, so .  Add quotes, just in case $dir
54571         ever contains a shell meta-character.  Prompted by Soren Hansen in
54572         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
54573
54574 2008-04-29  Eric Blake  <ebb9@byu.net>
54575
54576         Optimize getndelim2 to use block operations when possible.
54577         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
54578         freadseek, and memchr2.
54579         * lib/getndelim2.c (getndelim2): Use them for block reads.
54580
54581 2008-04-29  Bruno Haible  <bruno@clisp.org>
54582
54583         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
54584         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
54585         * modules/inet_ntop (Depends-on): Add extensions.
54586         * modules/inet_pton (Depends-on): Likewise.
54587         Reported by Simon Josefsson.
54588
54589 2008-04-29  Jim Meyering  <meyering@redhat.com>
54590
54591         When the is more than one match in a block, match all of them.
54592         * build-aux/useless-if-before-free: Iterate through each block
54593         until there are no more matches.
54594
54595         Fix broken useless-if-before-free script.
54596         * build-aux/useless-if-before-free: Fix typo: missing "?" after
54597         the expression to match cast of argument to free-like function.
54598
54599 2008-04-29  Eric Blake  <ebb9@byu.net>
54600
54601         Use new header.
54602         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
54603
54604 2008-04-29  Jim Meyering  <meyering@redhat.com>
54605
54606         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
54607         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
54608         by gnulib to exist and to declare e.g., inet_ntop.
54609         Don't include "inet_ntop.h", now removed.
54610
54611         * m4/arpa_inet_h.m4: Remove trailing blanks.
54612
54613 2008-04-29  Eric Blake  <ebb9@byu.net>
54614
54615         Silence valgrind on safe reads beyond potential array bounds.
54616         * lib/rawmemchr.valgrind: New file.
54617         * lib/strchrnul.valgrind: Likewise.
54618         * modules/rawmemchr (Files): Distribute new file.
54619         * modules/strchrnul (Files): Likewise.
54620         Suggested by Bruno Haible.
54621
54622 2008-04-29  Bruno Haible  <bruno@clisp.org>
54623
54624         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
54625         (inet_ntop, inet_pton): Change portability warning's wording.
54626         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
54627         Invoke gl_CHECK_NEXT_HEADERS.
54628         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
54629         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
54630         set ARPA_INET_H.
54631         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
54632         * modules/arpa_inet (Description): No longer only for systems that
54633         lack it.
54634         (Depends-on): Add include_next.
54635         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
54636         HAVE_ARPA_INET_H.
54637
54638 2008-04-29  Jim Meyering  <meyering@redhat.com>
54639
54640         * modules/mkdir (License): Re-license as LGPLv2+.
54641
54642 2008-04-29  Bruno Haible  <bruno@clisp.org>
54643
54644         * modules/rawmemchr (Maintainer): Set to Eric.
54645         * modules/strchrnul (Maintainer): Likewise.
54646
54647 2008-04-29  Simon Josefsson  <simon@josefsson.org>
54648
54649         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
54650         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
54651
54652         * modules/arpa_inet (arpa/inet.h): Use them.
54653
54654 2008-04-28  Eric Blake  <ebb9@byu.net>
54655
54656         Test getndelim2.
54657         * modules/getndelim2-tests: New file.
54658         * tests/test-getndelim2.c: Likewise.
54659         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
54660         stream.
54661         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
54662
54663         * MODULES.html.sh: Document new module.
54664
54665 2008-04-20  Bruno Haible  <bruno@clisp.org>
54666
54667         * lib/c-stack.c (die): Use raise.
54668         * modules/c-stack (Depends-on): Add raise.
54669
54670 2008-04-28  Bruno Haible  <bruno@clisp.org>
54671
54672         Expect rpmatch to be declared.
54673         * lib/yesno.c (rpmatch): Remove declaration.
54674
54675         Declare rpmatch.
54676         * lib/stdlib.in.h (rpmatch): New declaration.
54677         * lib/rpmatch.c: Include <stdlib.h> first.
54678         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
54679         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
54680         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
54681         HAVE_RPMATCH.
54682         * modules/rpmatch (Depends-on): Add stdlib, extensions.
54683         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
54684         (Include): Set to <stdlib.h>.
54685         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
54686         HAVE_RPMATCH.
54687         * NEWS: Document the change.
54688
54689 2008-04-28  Bruno Haible  <bruno@clisp.org>
54690
54691         Change rpmatch to use nl_langinfo when appropriate.
54692         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
54693         (N_): New macro.
54694         (localized_pattern): New function/macro.
54695         (try): Remove match, nomatch arguments. Copy the pattern into safe
54696         memory before caching it.
54697         (rpmatch): Use localized_pattern. Add translator comments.
54698         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
54699         Suggested by Eric Blake.
54700         * modules/rpmatch (Depends-on): Add stdbool.
54701
54702 2008-04-28  Eric Blake  <ebb9@byu.net>
54703
54704         Add rawmemchr module, matching glibc.
54705         * modules/string (Makefile.am): New indicator.
54706         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
54707         * lib/string.in.h (rawmemchr): Declare when appropriate.
54708         * modules/rawmemchr: New file.
54709         * m4/rawmemchr.m4: Likewise.
54710         * lib/rawmemchr.c: Likewise.
54711         * modules/rawmemchr-tests: Likewise.
54712         * tests/test-rawmemchr.c: Likewise.
54713         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
54714         module.
54715         * modules/strchrnul (Depends-on): Add rawmemchr.
54716         * lib/strchrnul.c (strchrnul): Optimize a corner case.
54717
54718         Whitespace cleanup.
54719         * tests/test-strchrnul.c: Reindent.
54720         * lib/strchrnul.c: Likewise.
54721
54722         Optimize and test strchrnul.
54723         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
54724         * modules/strchrnul-tests: New file.
54725         * tests/test-strchrnul.c: Likewise.
54726
54727         Remove intprops dependency.
54728         * modules/memchr (Depends-on): Remove intprops.
54729         * modules/memrchr (Depends-on): Likewise.
54730         * modules/memchr2 (Depends-on): Likewise.
54731         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
54732         * lib/memrchr.c (__memrchr): Likewise.
54733         * lib/memrchr2.c (memchr2): Likewise.
54734         Reported by Simon Josefsson.
54735
54736 2008-04-28  Simon Josefsson  <simon@josefsson.org>
54737
54738         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
54739         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54740
54741 2008-04-28  Simon Josefsson  <simon@josefsson.org>
54742
54743         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
54744
54745         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
54746
54747         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
54748
54749         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
54750         declarations.
54751         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
54752
54753         * m4/inet_pton.m4: Don't check for header files.
54754
54755         * m4/inet_ntop.m4: Don't check for header files.
54756
54757 2008-04-28  Simon Josefsson  <simon@josefsson.org>
54758
54759         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
54760         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
54761         trigger for cygwin).
54762         Reported by Bruno Haible  <bruno@clisp.org>.
54763
54764 2008-04-28  Bruno Haible  <bruno@clisp.org>
54765
54766         * doc/posix-functions/strdup.texi: Mention mingw problem.
54767
54768 2008-04-27  Bruno Haible  <bruno@clisp.org>
54769
54770         * modules/stat-time-tests (Depends-on): Add sleep.
54771         * tests/test-stat-time.c (force_unlink): New function.
54772         (cleanup): Use it.
54773         (test_mtime): Remove the ctime related tests.
54774         (test_ctime): New function, containing the ctime related tests.
54775         (main): Call test_ctime, except on native Windows platforms.
54776
54777 2008-04-27  Bruno Haible  <bruno@clisp.org>
54778
54779         * lib/rpmatch.c (rpmatch): Add some comments.
54780         Reported by James Youngman <jay@gnu.org>.
54781
54782 2008-04-27  Bruno Haible  <bruno@clisp.org>
54783
54784         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
54785         quiet NaNs.
54786
54787 2008-04-27  Bruno Haible  <bruno@clisp.org>
54788
54789         Make test-yesno.sh work on mingw.
54790         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
54791         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
54792         (main): Set stdin to binary mode.
54793         * modules/yesno-tests (Depends-on): Add binary-io.
54794
54795 2008-04-27  Bruno Haible  <bruno@clisp.org>
54796
54797         Fix 'isfinite' on x86, x86_64, ia64 platforms.
54798         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
54799         argument that lie outside the IEEE 854 domain.
54800         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
54801         (gl_ISFINITE): Use it.
54802         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
54803
54804 2008-04-27  Bruno Haible  <bruno@clisp.org>
54805
54806         Allow local renaming in config.h.
54807         * lib/memrchr.c (memrchr): Don't undefine outside libc.
54808
54809 2008-04-27  Bruno Haible  <bruno@clisp.org>
54810
54811         * lib/memchr.c (__memchr): Change type of 'i'.
54812         * lib/memchr2.c (memchr2): Likewise.
54813
54814 2008-04-26  Eric Blake  <ebb9@byu.net>
54815         and Bruno Haible  <bruno@clisp.org>
54816
54817         Optimize and test memrchr.
54818         * modules/memrchr (Depends-on): Add intprops.
54819         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
54820         * modules/memrchr-tests: New file.
54821         * tests/test-memrchr.c: New file.
54822
54823 2008-04-26  Bruno Haible  <bruno@clisp.org>
54824
54825         Add tentative support for DragonFly BSD.
54826         * lib/stdio-impl.h: Add macros for DragonFly BSD.
54827         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
54828         fp.
54829         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
54830         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
54831         * lib/fpurge.c (fpurge): Likewise.
54832         * lib/freadable.c (freaadable): Likewise.
54833         * lib/freadahead.c (freadahead): Likewise.
54834         * lib/freading.c (freading): Likewise.
54835         * lib/freadptr.c (freadptr): Likewise.
54836         * lib/freadseek.c (freadptrinc): Likewise.
54837         * lib/fseeko.c (fseeko): Likewise.
54838         * lib/fseterr.c (fseterr): Likewise.
54839         * lib/fwritable.c (fwritable): Likewise.
54840         * lib/fwriting.c (fwriting): Likewise.
54841
54842 2008-04-26  Bruno Haible  <bruno@clisp.org>
54843
54844         * lib/stdio-impl.h: New file.
54845         * lib/fbufmode.c: Include stdio-impl.h.
54846         (fbufmode): Use fp_, remove redundant #defines.
54847         * lib/fflush.c: Include stdio-impl.h.
54848         (clear_ungetc_buffer): Remove redundant #defines.
54849         * lib/fpurge.c: Include stdio-impl.h.
54850         (fpurge): Remove redundant #defines.
54851         * lib/freadable.c: Include stdio-impl.h.
54852         (freadable): Remove redundant #defines.
54853         * lib/freadahead.c: Include stdio-impl.h.
54854         (freadahead): Remove redundant #defines.
54855         * lib/freading.c: Include stdio-impl.h.
54856         (freading): Remove redundant #defines.
54857         * lib/freadptr.c: Include stdio-impl.h.
54858         (freadptr): Remove redundant #defines.
54859         * lib/freadseek.c: Include stdio-impl.h.
54860         (freadptrinc): Remove redundant #defines.
54861         * lib/fseeko.c: Include stdio-impl.h.
54862         (rpl_fseeko): Remove redundant #defines.
54863         * lib/fseterr.c: Include stdio-impl.h.
54864         (fseterr): Remove redundant #defines.
54865         * lib/fwritable.c: Include stdio-impl.h.
54866         (fwritable: Remove redundant #defines.
54867         * lib/fwriting.c: Include stdio-impl.h.
54868         (fwriting): Remove redundant #defines.
54869         * modules/fbufmode (Files): Add lib/stdio-impl.h.
54870         * modules/fflush (Files): Likewise.
54871         * modules/fpurge (Files): Likewise.
54872         * modules/freadable (Files): Likewise.
54873         * modules/freadahead (Files): Likewise.
54874         * modules/freading (Files): Likewise.
54875         * modules/freadptr (Files): Likewise.
54876         * modules/freadseek (Files): Likewise.
54877         * modules/fseeko (Files): Likewise.
54878         * modules/fseterr (Files): Likewise.
54879         * modules/fwritable (Files): Likewise.
54880         * modules/fwriting (Files): Likewise.
54881
54882 2008-04-26  Bruno Haible  <bruno@clisp.org>
54883
54884         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
54885         restore_seek_optimization, update_fpos_cache): New functions, extracted
54886         from rpl_fflush.
54887         (rpl_fflush): Use them.
54888         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
54889         (gl_REPLACE_FFLUSH): Use it.
54890
54891 2008-04-26  Bruno Haible  <bruno@clisp.org>
54892
54893         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
54894         on Solaris.
54895         * tests/test-xstrtoimax.sh: Likewise.
54896         * tests/test-xstrtoumax.sh: Likewise.
54897         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54898
54899 2008-04-26  Bruno Haible  <bruno@clisp.org>
54900
54901         * modules/memchr-tests: New file.
54902         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
54903
54904 2008-04-26  Eric Blake  <ebb9@byu.net>
54905             Bruno Haible  <bruno@clisp.org>
54906
54907         * lib/memchr.c: Include intprops.h.
54908         (__memchr): Optimize parallel detection of matching bytes. Rename local
54909         variables. Add explanatory comments.
54910
54911 2008-04-26  Bruno Haible  <bruno@clisp.org>
54912
54913         Fix module 'memchr', broken since 2000-10-28.
54914         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
54915
54916 2008-04-26  Bruno Haible  <bruno@clisp.org>
54917
54918         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
54919         comments.
54920
54921 2008-04-25  Eric Blake  <ebb9@byu.net>
54922
54923         Use native fstatat on cygwin 1.7.0.
54924         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
54925         first.
54926
54927 2008-04-23  Eric Blake  <ebb9@byu.net>
54928
54929         Improve memchr2 performance.
54930         * lib/memchr2.c (memchr2): Further optimize parallel detection of
54931         NUL bytes.
54932         * modules/memchr2 (Depends-on): Use intprops.h.
54933
54934 2008-04-23  Simon Josefsson  <simon@josefsson.org>
54935
54936         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
54937         an inline function instead of a CPP macro.  Patch by Ben Pfaff
54938         <blp@cs.stanford.edu>.
54939
54940 2008-04-23  Simon Josefsson  <simon@josefsson.org>
54941
54942         * lib/arpa_inet.in.h: New file.
54943
54944         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
54945         (Makefile.am): Sed in substitute header file.
54946
54947         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
54948         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
54949
54950         * modules/inet_ntop (configure.ac): Use
54951         gl_ARPA_INET_MODULE_INDICATOR.
54952
54953         * modules/inet_pton (configure.ac): Use
54954         gl_ARPA_INET_MODULE_INDICATOR.
54955
54956 2008-04-22  Jim Meyering  <meyering@redhat.com>
54957
54958         * modules/verify (License): Re-license as LGPLv2+.
54959
54960 2008-04-22  Simon Josefsson  <simon@josefsson.org>
54961
54962         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
54963         parameter to void* as per POSIX standard (MinGW uses char*).
54964
54965 2008-04-21  Bruno Haible  <bruno@clisp.org>
54966
54967         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
54968         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
54969         Define to replacements if REPLACE_ISWCNTRL is 1.
54970         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
54971         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
54972         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
54973         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
54974         what it fixes.
54975         * doc/posix-functions/iswalpha.texi: Likewise.
54976         * doc/posix-functions/iswblank.texi: Likewise.
54977         * doc/posix-functions/iswcntrl.texi: Likewise.
54978         * doc/posix-functions/iswdigit.texi: Likewise.
54979         * doc/posix-functions/iswgraph.texi: Likewise.
54980         * doc/posix-functions/iswlower.texi: Likewise.
54981         * doc/posix-functions/iswprint.texi: Likewise.
54982         * doc/posix-functions/iswpunct.texi: Likewise.
54983         * doc/posix-functions/iswspace.texi: Likewise.
54984         * doc/posix-functions/iswupper.texi: Likewise.
54985         * doc/posix-functions/iswxdigit.texi: Likewise.
54986         Reported by Alain Guibert.
54987
54988 2008-04-21  Bruno Haible  <bruno@clisp.org>
54989
54990         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
54991         Patch by Alain Guibert.
54992
54993 2008-04-21  Bruno Haible  <bruno@clisp.org>
54994
54995         Fix test failures on mingw.
54996         * tests/test-xstrtol.c (print_no_progname): New function.
54997         (main): Install it in error_print_progname hook.
54998         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
54999         * tests/test-xstrtoimax.sh: Likewise.
55000         * tests/test-xstrtoumax.sh: Likewise.
55001
55002 2008-04-21  Bruno Haible  <bruno@clisp.org>
55003
55004         Fix test failure on mingw.
55005         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
55006
55007 2008-04-21  Bruno Haible  <bruno@clisp.org>
55008
55009         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
55010         Actually assign a value.
55011
55012 2008-04-20  Bruno Haible  <bruno@clisp.org>
55013
55014         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
55015         take 2.
55016         * lib/canonicalize.c (canonicalize_file_name): Elide if the
55017         'canonicalize-lgpl' module is also used.
55018         * lib/canonicalize-lgpl.c: Undo last change.
55019         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
55020
55021 2008-04-20  Bruno Haible  <bruno@clisp.org>
55022
55023         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
55024         config.h. Provide _mkdir based fallback for mingw.
55025         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
55026         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
55027         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
55028         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
55029         rather than defining mkdir in config.h.
55030         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
55031         (gl_SYS_STAT_H_DEFAULTS): New macro.
55032         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
55033         HAVE_IO_H any more.
55034         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
55035         HAVE_DECL_MKDIR and HAVE_IO_H.
55036
55037 2008-04-20  Bruno Haible  <bruno@clisp.org>
55038
55039         * lib/isapipe.c: Port to native Windows platforms.
55040
55041 2008-04-20  Bruno Haible  <bruno@clisp.org>
55042
55043         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
55044
55045 2008-04-21  Eric Blake  <ebb9@byu.net>
55046
55047         Work around preprocessors that don't handle UINTMAX_MAX.
55048         * lib/memchr2.c (memchr2): Avoid embedded #if.
55049         Reported by Alain Guibert, fix suggested by Bruno Haible.
55050
55051 2008-04-21  Simon Josefsson  <simon@josefsson.org>
55052
55053         * doc/posix-functions/strftime.texi (strftime): Explain better
55054         Windows incompatibility.  Suggested by Micah Cowan
55055         <micah@cowan.name>.
55056
55057 2008-04-20  Bruno Haible  <bruno@clisp.org>
55058
55059         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
55060         unistr/u8-mblen.
55061
55062 2008-04-20  Bruno Haible  <bruno@clisp.org>
55063
55064         Fix test failure on platforms with non-GNU iconv.
55065         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
55066         (U_TO_U8): Use it, rather than u16_to_u8.
55067         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
55068         units at the end of the input string.
55069         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
55070
55071 2008-04-20  Bruno Haible  <bruno@clisp.org>
55072
55073         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
55074         when the resulting length is 0.
55075         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
55076
55077 2008-04-20  Bruno Haible  <bruno@clisp.org>
55078
55079         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
55080         works.
55081         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
55082
55083 2008-04-20  Bruno Haible  <bruno@clisp.org>
55084
55085         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
55086         * modules/tsearch-tests (configure.ac): Test for initstate function.
55087
55088 2008-04-20  Bruno Haible  <bruno@clisp.org>
55089
55090         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
55091         for nlink_t if missing.
55092         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
55093
55094 2008-04-19  Bruno Haible  <bruno@clisp.org>
55095
55096         Work around snprintf bug on Linux libc5.
55097         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
55098         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55099         gl_SNPRINTF_SIZE1.
55100         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55101         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
55102         that test failed.
55103         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
55104         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
55105         * modules/snprintf (Files): Add m4/printf.m4.
55106         * modules/vsnprintf (Files): Likewise.
55107         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
55108         * doc/posix-functions/vsnprintf.texi: Likewise.
55109
55110 2008-04-19  Bruno Haible  <bruno@clisp.org>
55111
55112         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
55113         from 0.0058 to less than 10^-7.
55114
55115 2008-04-19  Bruno Haible  <bruno@clisp.org>
55116
55117         Fix rounding when a precision is given.
55118         * lib/vasnprintf.c (is_borderline): New function.
55119         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
55120         9...9x.
55121         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
55122         %e, %g.
55123         * tests/test-vasprintf-posix.c (test_function): Likewise.
55124         * tests/test-snprintf-posix.h (test_function): Likewise.
55125         * tests/test-sprintf-posix.h (test_function): Likewise.
55126         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
55127         * tests/test-printf-posix.h (test_function): Likewise.
55128         * tests/test-printf-posix.output: Update.
55129         Reported by John Darrington <john@darrington.wattle.id.au> via
55130         Ben Pfaff <blp@cs.stanford.edu>.
55131
55132 2008-04-18  Simon Josefsson  <simon@josefsson.org>
55133
55134         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
55135         Suggested by Bruno Haible <bruno@clisp.org>.
55136
55137 2008-04-17  Bruno Haible  <bruno@clisp.org>
55138
55139         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
55140         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
55141         implementation.
55142         Patch by Bruce Merry <bmerry@gmail.com>.
55143
55144 2008-04-17  Simon Josefsson  <simon@josefsson.org>
55145
55146         * doc/posix-functions/strftime.texi (strftime): Mention that %e
55147         doesn't work under Windows.
55148
55149 2008-04-16  Bruno Haible  <bruno@clisp.org>
55150
55151         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
55152         New macros.
55153         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
55154         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
55155         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
55156         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
55157         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
55158         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
55159         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
55160         macros.
55161         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
55162         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
55163         Northern Sotho, Uighur.
55164
55165 2008-04-16  Bruno Haible  <bruno@clisp.org>
55166
55167         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
55168         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
55169         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
55170         Reported by Daniel Bergström <daniel@octocode.com>.
55171
55172 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
55173             Bruno Haible  <bruno@clisp.org>
55174
55175         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
55176         function.
55177         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
55178         New functions, mostly extracted from gl_locale_name_default.
55179         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
55180
55181 2008-04-16  Eric Blake  <ebb9@byu.net>
55182
55183         Adjust strtod detection to catch glibc 2.7 bug.
55184         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
55185         Reported by John Gatewood Ham.
55186
55187 2008-04-16  Bruno Haible  <bruno@clisp.org>
55188
55189         Add tentative support for Linux libc5.
55190         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
55191         * lib/fpurge.c (fpurge): Likewise.
55192         * lib/freadable.c (freadable): Likewise.
55193         * lib/freadahead.c (freadahead): Likewise.
55194         * lib/freading.c (freading): Likewise.
55195         * lib/freadptr.c (freadptr): Likewise.
55196         * lib/freadseek.c (freadptrinc): Likewise.
55197         * lib/fseeko.c (rpl_fseeko): Likewise.
55198         * lib/fseterr.c (fseterr): Likewise.
55199         * lib/fwritable.c (fwritable): Likewise.
55200         * lib/fwriting.c (fwriting): Likewise.
55201         Reported by Alain Guibert <alguibert+bts@free.fr>.
55202
55203 2008-04-15  Bruno Haible  <bruno@clisp.org>
55204
55205         * modules/mathl (configure.ac): Define module indicator.
55206
55207 2008-04-15  Bruno Haible  <bruno@clisp.org>
55208
55209         * lib/logl.c (logl): Remove unused variables.
55210
55211 2008-04-15  Bruno Haible  <bruno@clisp.org>
55212
55213         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
55214         fails.
55215
55216 2008-04-15  Bruno Haible  <bruno@clisp.org>
55217
55218         * lib/trim.c (trim2): Fix argument of isspace() macro.
55219
55220 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
55221
55222         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
55223         to 0.
55224         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
55225
55226 2008-04-14  Bruno Haible  <bruno@clisp.org>
55227
55228         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
55229         AC_LANG_PROGRAM argument.
55230         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
55231         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
55232         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
55233         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
55234         * m4/math_h.m4 (gl_MATH_H): Likewise.
55235         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
55236         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
55237         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
55238         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
55239         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
55240         * m4/regex.m4 (gl_REGEX): Likewise.
55241         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
55242         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
55243         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
55244         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
55245         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
55246         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
55247         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
55248         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
55249
55250 2008-04-14  Jim Meyering  <meyering@redhat.com>
55251
55252         test-strtod: fix typos: s/abs/fabs/
55253         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
55254
55255 2008-04-13  Bruno Haible  <bruno@clisp.org>
55256
55257         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
55258         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
55259         module is also used and while not building the reloc-wrapper.
55260
55261 2008-04-13  Bruno Haible  <bruno@clisp.org>
55262
55263         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
55264
55265 2008-04-13  Bruno Haible  <bruno@clisp.org>
55266
55267         Fix AIX compilation failure introduced on 2008-04-02.
55268         * tests/test-frexp.c (exp): Undefine before redefining.
55269         * tests/test-frexpl.c (exp): Likewise.
55270
55271 2008-04-13  Bruno Haible  <bruno@clisp.org>
55272
55273         Work around a HP-UX stdio bug.
55274         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
55275         * tests/test-ftello.c (main): Likewise.
55276         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
55277         * doc/posix-functions/ftello.texi: Likewise.
55278
55279 2008-04-13  Bruno Haible  <bruno@clisp.org>
55280
55281         Make test-signbit pass on HP-UX/hppa.
55282         * tests/test-signbit.c (minus_zerol): New variable.
55283         (test_signbitl): Use it.
55284
55285 2008-04-13  Bruno Haible  <bruno@clisp.org>
55286
55287         Make truncl work on OSF/1 4.0.
55288         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
55289         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
55290         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
55291         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
55292         HAVE_DECL_TRUNCL.
55293         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
55294         HAVE_DECL_TRUNCL.
55295         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
55296
55297 2008-04-13  Bruno Haible  <bruno@clisp.org>
55298
55299         * lib/unictype.h: Remove trailing comma from enumeration definitions.
55300
55301 2008-04-13  Bruno Haible  <bruno@clisp.org>
55302
55303         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
55304         expression, so as to avoid HP-UX 11 cc compiler bug.
55305
55306 2008-04-13  Bruno Haible  <bruno@clisp.org>
55307
55308         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
55309
55310 2008-04-13  Bruno Haible  <bruno@clisp.org>
55311
55312         * lib/git-merge-changelog.c: Remove empty declaration outside of
55313         functions.
55314
55315 2008-04-13  Bruno Haible  <bruno@clisp.org>
55316
55317         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
55318
55319 2008-04-13  Bruno Haible  <bruno@clisp.org>
55320
55321         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
55322         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
55323         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
55324         also if it exists but lacks definitions of the SHUT_* macros.
55325         * modules/sys_socket (Description): Update.
55326         Reported by Elbert Pol <e.pol@chello.nl>.
55327
55328 2008-04-13  Bruno Haible  <bruno@clisp.org>
55329
55330         * lib/localcharset.c (OS2): Don't redefine if already defined.
55331         Reported by Elbert Pol <e.pol@chello.nl>.
55332
55333 2008-04-13  Bruno Haible  <bruno@clisp.org>
55334
55335         * lib/binary-io.h [__EMX__]: Include <io.h>.
55336         Reported by Elbert Pol <e.pol@chello.nl>.
55337
55338 2008-04-12  Bruno Haible  <bruno@clisp.org>
55339
55340         * lib/fpucw.h: Enable the definitions also for x86_64.
55341         Needed for NetBSD/x86_64.
55342         Reported by Thomas Klausner <tk@giga.or.at>.
55343
55344 2008-04-12  Bruno Haible  <bruno@clisp.org>
55345
55346         * tests/test-strtod.c: Include isnand.h.
55347         (main): Use isnand instead of isnan.
55348         Reported by Jim Meyering.
55349
55350 2008-04-12  Bruno Haible  <bruno@clisp.org>
55351
55352         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
55353         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
55354
55355 2008-04-12  Jim Meyering  <meyering@redhat.com>
55356
55357         * m4/math_h.m4 (gl_MATH_H): Fix typos.
55358
55359 2008-04-12  Bruno Haible  <bruno@clisp.org>
55360
55361         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
55362         Reported by Elbert Pol <e.pol@chello.nl>.
55363
55364 2008-04-12  Eric Blake  <ebb9@byu.net>
55365
55366         Work around Solaris 10 math.h bug.
55367         * m4/math_h.m4 (gl_MATH_H): Check for bug.
55368         (gl_MATH_H_DEFAULTS): Set up default.
55369         * modules/math (Makefile.am): Replace new indicators.
55370         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
55371         * tests/test-math.c (main): Test this.
55372         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
55373         * doc/posix-headers/math.texi (math.h): Mention bug.
55374         Reported by Nelson H. F. Beebe and Jim Meyering.
55375
55376 2008-04-11  Bruno Haible  <bruno@clisp.org>
55377
55378         Adapt to future versions of Apple GCC.
55379         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
55380         Reported by Peter O'Gorman <peter@pogma.com>.
55381
55382 2008-04-11  Bruno Haible  <bruno@clisp.org>
55383
55384         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
55385
55386 2008-04-11  Bruno Haible  <bruno@clisp.org>
55387
55388         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
55389
55390         * modules/getaddrinfo-tests (Makefile.am): Define
55391         test_getaddrinfo_LDADD.
55392
55393 2008-04-11  Bruno Haible  <bruno@clisp.org>
55394
55395         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
55396         (init): Fix syntax error.
55397         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
55398         is declared.
55399
55400 2008-04-11  Bruno Haible  <bruno@clisp.org>
55401
55402         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
55403         * modules/glob (Depends-on): Add stdbool.
55404
55405 2008-04-11  Bruno Haible  <bruno@clisp.org>
55406
55407         * lib/trim.c: Include <string.h>.
55408
55409 2008-04-11  Eric Blake  <ebb9@byu.net>
55410
55411         Avoid compile failure on OS/2.
55412         * lib/regex_internal.h (internal_function): Disable optimization
55413         on OS/2 (__EMX__), where it caused compiler error.
55414         Reported by Elbert Pol.
55415
55416 2008-04-11  Bruno Haible  <bruno@clisp.org>
55417
55418         Flush the standard error stream before aborting. Needed on mingw.
55419         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
55420         * tests/test-array_list.c (ASSERT): Likewise.
55421         * tests/test-array_oset.c (ASSERT): Likewise.
55422         * tests/test-avltree_list.c (ASSERT): Likewise.
55423         * tests/test-avltree_oset.c (ASSERT): Likewise.
55424         * tests/test-avltreehash_list.c (ASSERT): Likewise.
55425         * tests/test-binary-io.c (ASSERT): Likewise.
55426         * tests/test-byteswap.c (ASSERT): Likewise.
55427         * tests/test-c-ctype.c (ASSERT): Likewise.
55428         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
55429         * tests/test-c-strcasestr.c (ASSERT): Likewise.
55430         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
55431         * tests/test-c-strstr.c (ASSERT): Likewise.
55432         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
55433         * tests/test-canonicalize.c (ASSERT): Likewise.
55434         * tests/test-carray_list.c (ASSERT): Likewise.
55435         * tests/test-ceilf1.c (ASSERT): Likewise.
55436         * tests/test-ceilf2.c (ASSERT): Likewise.
55437         * tests/test-ceill.c (ASSERT): Likewise.
55438         * tests/test-count-one-bits.c (ASSERT): Likewise.
55439         * tests/test-fbufmode.c (ASSERT): Likewise.
55440         * tests/test-fflush2.c (ASSERT): Likewise.
55441         * tests/test-floorf1.c (ASSERT): Likewise.
55442         * tests/test-floorf2.c (ASSERT): Likewise.
55443         * tests/test-floorl.c (ASSERT): Likewise.
55444         * tests/test-fopen.c (ASSERT): Likewise.
55445         * tests/test-fpending.c (ASSERT): Likewise.
55446         * tests/test-fprintf-posix.c (ASSERT): Likewise.
55447         * tests/test-fpurge.c (ASSERT): Likewise.
55448         * tests/test-freadable.c (ASSERT): Likewise.
55449         * tests/test-freadahead.c (ASSERT): Likewise.
55450         * tests/test-freading.c (ASSERT): Likewise.
55451         * tests/test-freadptr.c (ASSERT): Likewise.
55452         * tests/test-freadptr2.c (ASSERT): Likewise.
55453         * tests/test-freadseek.c (ASSERT): Likewise.
55454         * tests/test-freopen.c (ASSERT): Likewise.
55455         * tests/test-frexp.c (ASSERT): Likewise.
55456         * tests/test-frexpl.c (ASSERT): Likewise.
55457         * tests/test-fseek.c (ASSERT): Likewise.
55458         * tests/test-fseeko.c (ASSERT): Likewise.
55459         * tests/test-fstrcmp.c (ASSERT): Likewise.
55460         * tests/test-ftell.c (ASSERT): Likewise.
55461         * tests/test-ftello.c (ASSERT): Likewise.
55462         * tests/test-func.c (ASSERT): Likewise.
55463         * tests/test-fwritable.c (ASSERT): Likewise.
55464         * tests/test-fwriting.c (ASSERT): Likewise.
55465         * tests/test-getdelim.c (ASSERT): Likewise.
55466         * tests/test-getline.c (ASSERT): Likewise.
55467         * tests/test-i-ring.c (ASSERT): Likewise.
55468         * tests/test-iconv-utf.c (ASSERT): Likewise.
55469         * tests/test-iconv.c (ASSERT): Likewise.
55470         * tests/test-isfinite.c (ASSERT): Likewise.
55471         * tests/test-isnand.c (ASSERT): Likewise.
55472         * tests/test-isnanf.c (ASSERT): Likewise.
55473         * tests/test-isnanl.h (ASSERT): Likewise.
55474         * tests/test-ldexpl.c (ASSERT): Likewise.
55475         * tests/test-linked_list.c (ASSERT): Likewise.
55476         * tests/test-linkedhash_list.c (ASSERT): Likewise.
55477         * tests/test-localename.c (ASSERT): Likewise.
55478         * tests/test-lseek.c (ASSERT): Likewise.
55479         * tests/test-mbscasecmp.c (ASSERT): Likewise.
55480         * tests/test-mbscasestr1.c (ASSERT): Likewise.
55481         * tests/test-mbscasestr2.c (ASSERT): Likewise.
55482         * tests/test-mbscasestr3.c (ASSERT): Likewise.
55483         * tests/test-mbscasestr4.c (ASSERT): Likewise.
55484         * tests/test-mbschr.c (ASSERT): Likewise.
55485         * tests/test-mbscspn.c (ASSERT): Likewise.
55486         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
55487         * tests/test-mbspbrk.c (ASSERT): Likewise.
55488         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
55489         * tests/test-mbsrchr.c (ASSERT): Likewise.
55490         * tests/test-mbsspn.c (ASSERT): Likewise.
55491         * tests/test-mbsstr1.c (ASSERT): Likewise.
55492         * tests/test-mbsstr2.c (ASSERT): Likewise.
55493         * tests/test-mbsstr3.c (ASSERT): Likewise.
55494         * tests/test-memchr2.c (ASSERT): Likewise.
55495         * tests/test-memmem.c (ASSERT): Likewise.
55496         * tests/test-open.c (ASSERT): Likewise.
55497         * tests/test-printf-frexp.c (ASSERT): Likewise.
55498         * tests/test-printf-frexpl.c (ASSERT): Likewise.
55499         * tests/test-printf-posix.c (ASSERT): Likewise.
55500         * tests/test-quotearg.c (ASSERT): Likewise.
55501         * tests/test-rbtree_list.c (ASSERT): Likewise.
55502         * tests/test-rbtree_oset.c (ASSERT): Likewise.
55503         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
55504         * tests/test-round1.c (ASSERT): Likewise.
55505         * tests/test-roundf1.c (ASSERT): Likewise.
55506         * tests/test-roundl.c (ASSERT): Likewise.
55507         * tests/test-signbit.c (ASSERT): Likewise.
55508         * tests/test-sleep.c (ASSERT): Likewise.
55509         * tests/test-snprintf-posix.c (ASSERT): Likewise.
55510         * tests/test-snprintf.c (ASSERT): Likewise.
55511         * tests/test-sprintf-posix.c (ASSERT): Likewise.
55512         * tests/test-stat-time.c (ASSERT): Likewise.
55513         * tests/test-strcasestr.c (ASSERT): Likewise.
55514         * tests/test-strerror.c (ASSERT): Likewise.
55515         * tests/test-striconv.c (ASSERT): Likewise.
55516         * tests/test-striconveh.c (ASSERT): Likewise.
55517         * tests/test-striconveha.c (ASSERT): Likewise.
55518         * tests/test-strsignal.c (ASSERT): Likewise.
55519         * tests/test-strstr.c (ASSERT): Likewise.
55520         * tests/test-strtod.c (ASSERT): Likewise.
55521         * tests/test-trunc1.c (ASSERT): Likewise.
55522         * tests/test-trunc2.c (ASSERT): Likewise.
55523         * tests/test-truncf1.c (ASSERT): Likewise.
55524         * tests/test-truncf2.c (ASSERT): Likewise.
55525         * tests/test-truncl.c (ASSERT): Likewise.
55526         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
55527         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
55528         * tests/test-vasnprintf.c (ASSERT): Likewise.
55529         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
55530         * tests/test-vasprintf.c (ASSERT): Likewise.
55531         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
55532         * tests/test-vprintf-posix.c (ASSERT): Likewise.
55533         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
55534         * tests/test-vsnprintf.c (ASSERT): Likewise.
55535         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
55536         * tests/test-wcwidth.c (ASSERT): Likewise.
55537         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
55538         * tests/test-xprintf-posix.c (ASSERT): Likewise.
55539         * tests/test-xvasprintf.c (ASSERT): Likewise.
55540         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
55541         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
55542         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
55543         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
55544         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
55545         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
55546         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
55547         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
55548         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
55549         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
55550         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
55551         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
55552         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
55553         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
55554         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
55555         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
55556         * tests/unictype/test-block_list.c (ASSERT): Likewise.
55557         * tests/unictype/test-block_of.c (ASSERT): Likewise.
55558         * tests/unictype/test-block_test.c (ASSERT): Likewise.
55559         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
55560         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
55561         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
55562         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
55563         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
55564         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
55565         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
55566         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
55567         * tests/unictype/test-combining.c (ASSERT): Likewise.
55568         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
55569         * tests/unictype/test-digit.c (ASSERT): Likewise.
55570         * tests/unictype/test-mirror.c (ASSERT): Likewise.
55571         * tests/unictype/test-numeric.c (ASSERT): Likewise.
55572         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
55573         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
55574         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
55575         * tests/unictype/test-scripts.c (ASSERT): Likewise.
55576         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
55577         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
55578         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
55579         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
55580         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
55581         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
55582         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
55583         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
55584         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
55585         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
55586         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
55587         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
55588         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
55589         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
55590         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
55591         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
55592         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
55593         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
55594         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
55595         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
55596         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
55597         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
55598         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
55599         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
55600         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
55601         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
55602         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
55603         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
55604         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
55605         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
55606         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
55607         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
55608         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
55609         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
55610         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
55611         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
55612         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
55613         Reported by Eric Blake.
55614
55615 2008-04-11  Bruno Haible  <bruno@clisp.org>
55616
55617         * lib/wchar.in.h: Tweak comment.
55618
55619 2008-04-11  Bruno Haible  <bruno@clisp.org>
55620
55621         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
55622         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
55623         gl_COMMON.
55624         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
55625
55626 2008-04-11  Bruno Haible  <bruno@clisp.org>
55627
55628         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
55629
55630 2008-04-11  Simon Josefsson  <simon@josefsson.org>
55631
55632         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
55633         of attempting to use non-existing /dev/*random.  Based on patch
55634         from Adam Strzelecki <ono@java.pl> in
55635         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
55636
55637 2008-04-08  Bruno Haible  <bruno@clisp.org>
55638
55639         Add tentative support for emx+gcc.
55640         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
55641         * lib/fpurge.c (fpurge): Likewise.
55642         * lib/freadable.c (freadable): Likewise.
55643         * lib/freadahead.c (freadahead): Likewise.
55644         * lib/freading.c (freading): Likewise.
55645         * lib/freadptr.c (freadptr): Likewise.
55646         * lib/freadseek.c (freadptrinc): Likewise.
55647         * lib/fseeko.c (rpl_fseeko): Likewise.
55648         * lib/fseterr.c (fseterr): Likewise.
55649         * lib/fwritable.c (fwritable): Likewise.
55650         * lib/fwriting.c (fwriting): Likewise.
55651         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
55652
55653 2008-04-09  Eric Blake  <ebb9@byu.net>
55654
55655         Avoid some autoconf warnings.
55656         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
55657         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
55658         * m4/afs.m4 (gl_AFS): Likewise.
55659         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
55660         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
55661         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
55662         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
55663         (gl_INTEGER_TYPE_SUFFIX): Likewise.
55664         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
55665         (AC_CHECK_DECLS_ONCE): Likewise.
55666         Rename file...
55667         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
55668         gnulib-tool requires autoconf 2.59 or better.
55669         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
55670
55671 2008-04-08  Eric Blake  <ebb9@byu.net>
55672
55673         Use 'git describe --match' if present (added in git 1.5.5).
55674         * build-aux/git-version-gen: Limit result to tags that match 'v*'
55675         if possible.
55676
55677 2008-04-08  Bruno Haible  <bruno@clisp.org>
55678
55679         Add tentative support for OpenServer.
55680         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
55681         _ptr, _cnt.
55682         * lib/fpurge.c (fpurge): Likewise.
55683         * lib/freadable.c (freadable): Likewise.
55684         * lib/freadahead.c (freadahead): Likewise.
55685         * lib/freading.c (freading): Likewise.
55686         * lib/freadptr.c (freadptr): Likewise.
55687         * lib/freadseek.c (freadptrinc): Likewise.
55688         * lib/fseeko.c (rpl_fseeko): Likewise.
55689         * lib/fseterr.c (fseterr): Likewise.
55690         * lib/fwritable.c (fwritable): Likewise.
55691         * lib/fwriting.c (fwriting): Likewise.
55692         Reported by Roger Cornelius <rac@tenzing.org> and
55693         Brian K. White <brian@aljex.com>.
55694
55695 2008-04-06  Jim Meyering  <meyering@redhat.com>
55696
55697         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
55698
55699 2008-04-06  Bruno Haible  <bruno@clisp.org>
55700
55701         Avoid possible error with non-ASCII bytes in UTF-8 locales.
55702         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
55703         * tests/test-printf-posix.sh: Likewise.
55704         * tests/test-vfprintf-posix.sh: Likewise.
55705         * tests/test-vprintf-posix.sh: Likewise.
55706         * tests/test-xprintf-posix.sh: Likewise.
55707
55708 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55709
55710         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
55711         hide error from 'ls', needed on OS/2.
55712         Report by Elbert Pol <elbert.pol@gmail.com>.
55713
55714 2008-04-04  Eric Blake  <ebb9@byu.net>
55715
55716         Make test-fseeko.c failures meaningful.
55717         * tests/test-fseeko.c: Print line number on failure.
55718         * tests/test-fseek.c: Likewise.
55719         Reported by Nelson H. F. Beebe.
55720
55721         Improve strtod bug detection check.
55722         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
55723         required for Solaris 10.
55724         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
55725
55726 2008-04-04  Bruno Haible  <bruno@clisp.org>
55727
55728         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
55729         by m4/setenv.m4.
55730
55731 2008-04-03  Eric Blake  <ebb9@byu.net>
55732
55733         Ensure sane .version contents.
55734         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
55735         version string.
55736         * build-aux/git-version-gen: Improve documentation.
55737
55738         Make GNU make output nicer.
55739         * top/GNUmakefile [!_have-Makefile]: Add dependency on
55740         MAKECMDGOALS to enforce message for all command line targets.  Set
55741         srcdir for use in maint.mk.
55742
55743         Another maintainer tweak.
55744         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
55745         a target that regenerates version.
55746
55747 2008-04-03  Jim Meyering  <meyering@redhat.com>
55748
55749         vc-list-files: don't cause coreutils "make po-check" failure
55750         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
55751
55752 2008-04-03  Eric Blake  <ebb9@byu.net>
55753
55754         Allow VPATH usage of vc-list-files.
55755         * build-aux/vc-list-files (scriptversion): Add timestamp.
55756         (options): Add --help, --version, -C.
55757         (CVS): Support installed cvsu.
55758
55759 2008-04-02  Bruno Haible  <bruno@clisp.org>
55760
55761         Avoid some "statement with no effect" warnings from gcc.
55762         * tests/test-wctype.c (main): Explicitly ignore unused values.
55763         Reported by Jim Meyering.
55764
55765 2008-04-02  Jim Meyering  <meyering@redhat.com>
55766
55767         Avoid some warnings from "gcc -Wshadow".
55768         * tests/test-frexp.c (exp): Define to a different identifier.
55769         * tests/test-frexpl.c (exp): Likewise.
55770
55771 2008-04-03  Jim Meyering  <meyering@redhat.com>
55772
55773         bootstrap: remove dangling *.[ch] symlinks from lib
55774         * build-aux/bootstrap [dangling symlink removal]: Move find's
55775         -depth option to precede all others, to avoid a warning.
55776         Remove *.[ch] files too, and from "$source_base" (usually lib/).
55777
55778 2008-04-02  Bruno Haible  <bruno@clisp.org>
55779
55780         Avoid some warnings from "gcc -Wshadow".
55781         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
55782         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
55783         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
55784         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
55785         Reported by Jim Meyering.
55786
55787 2008-04-01  Bruno Haible  <bruno@clisp.org>
55788
55789         Fix test to work on IRIX 6.5 with cc.
55790         * tests/test-math.c (numeric_equal): New function.
55791         (main): Use it.
55792
55793 2008-04-01  Bruno Haible  <bruno@clisp.org>
55794
55795         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
55796
55797 2008-04-01  Bruno Haible  <bruno@clisp.org>
55798
55799         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
55800         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
55801         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
55802         (Depends-on): Remove math.
55803
55804         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
55805         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
55806         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
55807         (Depends-on): Remove math.
55808
55809         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
55810         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
55811         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
55812         (Depends-on): Remove math.
55813         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
55814         (Depends-on): Remove math.
55815
55816         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
55817         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
55818         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
55819         (Depends-on): Remove math.
55820         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
55821         (Depends-on): Remove math.
55822
55823         * tests/test-round1.c: Include nan.h.
55824         (main): Use NaNd instead of NAN.
55825         * modules/round-tests (Files): Add tests/nan.h.
55826
55827         * tests/test-trunc1.c: Include nan.h.
55828         (main): Use NaNd instead of NAN.
55829         * modules/trunc-tests (Files): Add tests/nan.h.
55830
55831         * tests/test-roundf1.c: Include nan.h.
55832         (main): Use NaNf instead of NAN.
55833         * modules/roundf-tests (Files): Add tests/nan.h.
55834
55835         * tests/test-truncf1.c: Include nan.h.
55836         (main): Use NaNf instead of NAN.
55837         * modules/truncf-tests (Files): Add tests/nan.h.
55838
55839         * tests/test-ceilf1.c: Include nan.h.
55840         (main): Use NaNf instead of NAN.
55841         * modules/ceilf-tests (Files): Add tests/nan.h.
55842
55843         * tests/test-floorf1.c: Include nan.h.
55844         (main): Use NaNf instead of NAN.
55845         * modules/floorf-tests (Files): Add tests/nan.h.
55846
55847         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
55848         (main): Use NaNf instead of NAN.
55849         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
55850
55851         * tests/test-isnand.c: Include nan.h instead of <math.h>.
55852         (main): Use NaNd instead of NAN.
55853         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
55854
55855         * tests/test-frexp.c: Include nan.h.
55856         (main): Use NaNd instead of NAN.
55857         * modules/frexp-tests (Files): Add tests/nan.h.
55858
55859         * lib/isnan.c: Don't include <math.h>.
55860         (FUNC): Don't use NAN macro.
55861         * modules/isnand-nolibm (Depends-on): Remove math.
55862         * modules/isnanf-nolibm (Depends-on): Remove math.
55863         * modules/isnanl (Depends-on): Remove math.
55864         * modules/isnanl-nolibm (Depends-on): Remove math.
55865
55866         * tests/nan.h: New file.
55867
55868 2008-04-01  Eric Blake  <ebb9@byu.net>
55869
55870         Fix typos.
55871         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
55872         values to be the right type.
55873
55874         For now, cater to gnulib strtod inaccuracies.
55875         * tests/test-strtod.c (main): Allow 1-ulp error on expected
55876         fractional results.  While not as nice from a QoI perspective, it
55877         is a quicker patch than correctly implementing decimal to binary
55878         rounding.
55879
55880 2008-03-31  Eric Blake  <ebb9@byu.net>
55881
55882         Guarantee a definition of NAN.
55883         * lib/math.in.h (NAN): Define if missing.
55884         * tests/test-math.c (main): Test it.
55885         * doc/posix-headers/math.texi (math.h): Document this.
55886         * lib/isnan.c (rpl_isnand): Use it.
55887         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
55888         * tests/test-floorf1.c (NaN): Likewise.
55889         * tests/test-frexp.c (NaN): Likewise.
55890         * tests/test-isnand.c (NaN): Likewise.
55891         * tests/test-isnanf.c (NaN): Likewise.
55892         * tests/test-round1.c (NaN): Likewise.
55893         * tests/test-roundf1.c (NaN): Likewise.
55894         * tests/test-snprintf-posix.h (NaN): Likewise.
55895         * tests/test-sprintf-posix.h (NaN): Likewise.
55896         * tests/test-trunc1.c (NaN): Likewise.
55897         * tests/test-truncf1.c (NaN): Likewise.
55898         * tests/test-vasnprintf-posix.c (NaN): Likewise.
55899         * tests/test-vasprintf-posix.c (NaN): Likewise.
55900         * modules/isnand-nolibm (Depends-on): Add math.
55901         * modules/isnanf-nolibm (Depends-on): Likewise.
55902         * modules/isnanl (Depends-on): Likewise.
55903         * modules/isnanl-nolibm (Depends-on): Likewise.
55904         * modules/snprintf-posix-tests (Depends-on): Likewise.
55905         * modules/sprintf-posix-tests (Depends-on): Likewise.
55906         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
55907         * modules/vsprintf-posix-tests (Depends-on): Likewise.
55908         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
55909         * modules/vasprintf-posix-tests (Depends-on): Likewise.
55910
55911 2008-03-31  Bruno Haible  <bruno@clisp.org>
55912
55913         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
55914         * doc/posix-functions/strtod.texi: Likewise.
55915
55916 2008-03-31  Bruno Haible  <bruno@clisp.org>
55917
55918         * tests/test-strtod.c (main): Don't use C99 syntax.
55919
55920 2008-03-31  Bruno Haible  <bruno@clisp.org>
55921
55922         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
55923         Reported by Eric Blake.
55924
55925 2008-03-31  Jim Meyering  <meyering@redhat.com>
55926
55927         Don't compare actual signbit return values.
55928         * tests/test-strtod.c (main): Rather, compare only their
55929         zero/non-zero nature.
55930
55931 2008-03-31  Eric Blake  <ebb9@byu.net>
55932
55933         More strtod documentation.
55934         * doc/posix-functions/strtod.texi (strtod): Interpret more test
55935         failures as distinct bugs.
55936
55937 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
55938
55939         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
55940         Problem reported by Erik Benada in
55941         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
55942
55943 2008-03-30  Bruno Haible  <bruno@clisp.org>
55944
55945         * tests/test-strtod.c: Add comments about which assertion fails on which
55946         platform.
55947         * doc/posix-functions/strtod.texi: Add info about many more platforms.
55948
55949 2008-03-30  Eric Blake  <ebb9@byu.net>
55950
55951         Test signbit behavior on zeros.
55952         * tests/test-signbit.c (test_signbitf): Add tests for zero.
55953         (test_signbitd, test_signbitl): Likewise.
55954
55955         More strtod touchups.
55956         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
55957         sign of negative underflow, for now.  Use .5, not .1.
55958         * doc/posix-functions/strtod.texi (strtod): Mention these
55959         limitations.
55960         Reported by Jim Meyering.
55961
55962 2008-03-30  Bruno Haible  <bruno@clisp.org>
55963
55964         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
55965         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
55966
55967 2008-03-30  Bruno Haible  <bruno@clisp.org>
55968
55969         Avoid failure when attempting to return empty iconv results on some
55970         platforms.
55971         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
55972         allocation, don't report ENOMEM when the resulting string is empty.
55973
55974 2008-03-30  Bruno Haible  <bruno@clisp.org>
55975
55976         Fix buffer overrun.
55977         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
55978         Don't consider the width for tmp_length. Check count against tmp_length
55979         before doing the padding. Ensure enough allocation during padding.
55980
55981 2008-03-30  Eric Blake  <ebb9@byu.net>
55982
55983         strtod touchups.
55984         * lib/strtod.c (strtod): Avoid compiler warnings.
55985         Reported by Jim Meyering.
55986
55987 2008-03-30  Bruno Haible  <bruno@clisp.org>
55988
55989         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
55990         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
55991         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
55992         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
55993         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
55994         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
55995         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
55996         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
55997
55998         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
55999         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
56000         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
56001         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
56002         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
56003         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
56004         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
56005         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
56006
56007         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
56008         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
56009         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
56010         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
56011         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
56012         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
56013         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
56014         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
56015
56016         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
56017         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
56018
56019         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
56020         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
56021
56022         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
56023         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
56024
56025         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
56026         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
56027         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
56028
56029         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
56030         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
56031         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
56032
56033         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
56034         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
56035         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
56036
56037         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
56038         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
56039         * modules/vasprintf (Depends-on): Add EOVERFLOW.
56040
56041         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
56042         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
56043         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
56044         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
56045         (Depends-on): Add EOVERFLOW.
56046         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
56047         (Depends-on): Add EOVERFLOW.
56048         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
56049         (Depends-on): Add EOVERFLOW.
56050         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
56051         (Depends-on): Add EOVERFLOW.
56052         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
56053         (Depends-on): Add EOVERFLOW.
56054         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
56055         (Depends-on): Add EOVERFLOW.
56056         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
56057         (Depends-on): Add EOVERFLOW.
56058         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
56059         (Depends-on): Add EOVERFLOW.
56060
56061         * lib/sprintf.c (EOVERFLOW): Remove fallback.
56062         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
56063         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
56064
56065         * lib/snprintf.c (EOVERFLOW): Remove fallback.
56066         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
56067         * modules/snprintf (Depends-on): Add EOVERFLOW.
56068
56069         * lib/poll.c (EOVERFLOW): Remove fallback.
56070         * modules/poll (Depends-on): Add EOVERFLOW.
56071
56072         * lib/getugroups.c (EOVERFLOW): Remove fallback.
56073         * modules/getugroups (Depends-on): Add EOVERFLOW.
56074
56075         * lib/getdelim.c (EOVERFLOW): Remove fallback.
56076         * modules/getdelim (Depends-on): Add EOVERFLOW.
56077
56078         * lib/ftell.c (EOVERFLOW): Remove fallback.
56079         * modules/ftell (Depends-on): Add EOVERFLOW.
56080
56081         * lib/fprintf.c (EOVERFLOW): Remove fallback.
56082         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
56083         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
56084
56085         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
56086
56087         * modules/EOVERFLOW-tests: New file.
56088         * tests/test-EOVERFLOW.c: New file.
56089
56090         * modules/EOVERFLOW: New file.
56091         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
56092
56093 2008-03-30  Bruno Haible  <bruno@clisp.org>
56094
56095         Fix bug introduced on 2007-06-10.
56096         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
56097         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
56098
56099 2008-03-30  Bruno Haible  <bruno@clisp.org>
56100
56101         Improve freadseek's efficiency after ungetc.
56102         * lib/freadseek.c: Include freadahead.h.
56103         (freadptrinc): New function, extracted from freadseek.
56104         (freadseek): Use it in a loop. Use freadahead to determine the number
56105         of loop iterations.
56106         * modules/freadseek (Depends-on): Add freadahead.
56107         (configure.ac): Require AC_C_INLINE.
56108
56109 2008-03-30  Bruno Haible  <bruno@clisp.org>
56110
56111         * lib/freadseek.c (freadseek): Don't ignore the return value of
56112         freadptr.
56113
56114 2008-03-29  Eric Blake  <ebb9@byu.net>
56115
56116         Add hex float support.
56117         * modules/strtod (Depends-on): Add c-ctype.
56118         (Link): Mention POW_LIB.
56119         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
56120         whitespace between 'e' and exponent.
56121         * tests/test-strtod.c (main): Enable hex float tests.
56122         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
56123         now provides.
56124
56125         Document various strtod bugs, with some fixes.
56126         * doc/posix-functions/strtod.texi (strtod): Document bugs with
56127         "-0x", "inf", "nan", and hex constants.
56128         * doc/posix-functions/atof.texi (atof): Likewise.
56129         * modules/stdlib (Makefile.am): Support strtod.
56130         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
56131         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
56132         detect additional strtod bugs.
56133         * lib/stdlib.in.h (rpl_strtod): Add declarations.
56134         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
56135         bool where appropriate.  Parse 'inf' and 'nan'.
56136         * tests/test-strtod.c: New file.
56137         * modules/strtod (Depends-on): Add stdbool, stdlib.
56138         (configure.ac): Turn on module indicator.
56139         * modules/strtod-tests: New module.
56140
56141 2008-03-29  Eric Blake  <ebb9@byu.net>
56142
56143         Fix ftell on mingw.
56144         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
56145         * modules/ftell-tests (Depends-on): Add binary-io.
56146         * modules/ftello-tests (Depends-on): Likewise.
56147         * tests/test-ftell.c (main): Enhance test to cover behavior after
56148         ungetc.  Enforce binary mode.
56149         * tests/test-ftello.c (main): Likewise.
56150
56151         Pass test-freadseek on cygwin.
56152         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
56153         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
56154         ungetc buffer.
56155
56156         * tests/test-fflush2.c (main): Fix typo.
56157
56158 2008-03-29  Bruno Haible  <bruno@clisp.org>
56159
56160         * tests/test-fflush2.c (main): Temporarily disable the contents of
56161         this test.
56162         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
56163         Reported by Eric Blake.
56164
56165 2008-03-28  Simon Josefsson  <simon@josefsson.org>
56166
56167         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
56168         (GC_SHA224_DIGEST_SIZE): Add.
56169
56170         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
56171         (gc_hash_digest_length): Likewise.
56172         (gc_hash_buffer): Likewise.
56173
56174 2008-03-25  Bruno Haible  <bruno@clisp.org>
56175
56176         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
56177         detail which gettext release to use.
56178         Reported by Simon Josefsson.
56179
56180 2008-03-26  Jim Meyering  <meyering@redhat.com>
56181
56182         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
56183         * modules/gnumakefile (clean-GNUmakefile): Also, use
56184         test ... && ... || : syntax rather than if-then ... fi.
56185
56186         gnumakefile: Don't double-quote-expand $(VPATH) value.
56187         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
56188
56189 2008-03-24  Eric Blake  <ebb9@byu.net>
56190
56191         Alter GNUmakefile to install into top directory.
56192         * modules/maintainer-makefile: Split, and add dependency...
56193         * modules/gnumakefile: to this new module.
56194         * build-aux/GNUmakefile: Move...
56195         * top/GNUmakefile: ...here.
56196         * build-aux/maint.mk: Move...
56197         * top/maint.mk: ...here.
56198         * MODULES.html.sh (Support for maintaining...): Document new
56199         module.
56200
56201 2008-03-23  Bruno Haible  <bruno@clisp.org>
56202
56203         * gnulib-tool: New options --vc-files, --no-vc-files.
56204         (func_usage): Document them.
56205         (vc_files): New variable.
56206         (func_import): Consider vc_files.
56207         (func_create_testdir): Set vc_files to empty.
56208         Suggested by Jim Meyering and Karl Berry.
56209
56210 2008-03-23  Bruno Haible  <bruno@clisp.org>
56211
56212         Fix regex compilation error on HP-UX 11.
56213         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
56214         * modules/regex (Files): Add m4/mbstate_t.m4.
56215         Reported by Ton Voon <ton.voon@altinity.com>.
56216
56217 2008-03-23  Bruno Haible  <bruno@clisp.org>
56218
56219         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
56220
56221 2008-03-23  Eric Blake  <ebb9@byu.net>
56222             Bruno Haible  <bruno@clisp.org>
56223
56224         Install files from top/ in the destination directory.
56225         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
56226         augmentation also for the files from top/.
56227         (func_import, func_create_testdir): Rewrite file names:
56228         top/filename -> filename.
56229
56230 2008-03-23  Bruno Haible  <bruno@clisp.org>
56231
56232         Tweak "gnulib --version" output.
56233         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
56234
56235 2008-03-23  Bruno Haible  <bruno@clisp.org>
56236
56237         Tweak "gnulib --version" output.
56238         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
56239         rather than contents of ChangeLog, when possible.
56240
56241 2008-03-21  Eric Blake  <ebb9@byu.net>
56242
56243         More --version tweaks.
56244         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
56245         date of last ChangeLog entry.
56246
56247 2008-03-21  Jim Meyering  <meyering@redhat.com>
56248
56249         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
56250
56251 2008-03-20  Eric Blake  <ebb9@byu.net>
56252
56253         VPATH fix.
56254         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
56255
56256 2008-03-20  Simon Josefsson  <simon@josefsson.org>
56257
56258         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
56259         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
56260
56261 2008-03-20  Eric Blake  <ebb9@byu.net>
56262
56263         Sync GNUmakefile with coreutils.
56264         * build-aux/GNUmakefile (have-Makefile): Rename...
56265         (_have-Makefile): ...to this, for namespace consideration.
56266         (GNUmakefile.cfg): Include, if present.
56267         (_autoreconf): Define a default.
56268         (_is-dist-target): New rule for rebuilds to pick up intra-release
56269         version.
56270         (maint-cfg.mk): Rename...
56271         (cfg.mk): ...to this.
56272
56273 2008-03-18  Jim Meyering  <meyering@redhat.com>
56274
56275         New script and module: mktempd
56276         * MODULES.html.sh (maint+release support): Add mktempd.
56277         * build-aux/mktempd: New file.
56278         * modules/mktempd: New file.
56279
56280 2008-03-15  Jim Meyering  <meyering@redhat.com>
56281
56282         Undo last change.
56283         * lib/sha1.c, lib/md5.c: 63 != ~63.
56284         Reported by Andreas Schwab.
56285
56286         sha1.c, md5.c: Hoist a redundant expression.
56287         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
56288         "ctx->buflen" only once, before calling *_process_block.
56289         * lib/md5.c (md5_process_bytes): Likewise.
56290
56291 2008-03-14  Eric Blake  <ebb9@byu.net>
56292
56293         Bump copyright year in files generated by gnulib-tool.
56294         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
56295         gnulib-tool, rather than hard-coding it.
56296
56297         Fix 'gnulib-tool --version' output to work with git.
56298         * gnulib-tool (func_gnulib_dir): New function, extracted from...
56299         (startup): ...here.
56300         (func_version): Use it to invoke git-version-gen, rather than
56301         relying on CVS keyword expansion.  Modernize wording.
56302         (cvsdatestamp, last_checkin_date, version): Kill unused
56303         variables.
56304
56305 2008-03-12  Jim Meyering  <meyering@redhat.com>
56306
56307         Recognize optional cast of the argument to free.
56308         * build-aux/useless-if-before-free: Update regexps.
56309
56310         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
56311
56312 2008-03-11  Bruno Haible  <bruno@clisp.org>
56313
56314         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
56315         by a single package.
56316         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
56317         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
56318         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
56319         Reported by Sam Steingold <sds@gnu.org>.
56320
56321 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
56322
56323         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
56324         repositories.
56325
56326 2008-03-11  Bruno Haible  <bruno@clisp.org>
56327
56328         Avoid conflicts between local macro definitions.
56329         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
56330         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
56331
56332 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
56333             Bruno Haible  <bruno@clisp.org>
56334
56335         Make va_copy work with some version of xlc on AIX 5.1.
56336         * lib/stdarg.in.h: New file.
56337         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
56338         On AIX, use a <stdarg.h> file substitute.
56339         * modules/stdarg (Files): Add lib/stdarg.in.h.
56340         (Depends-on): Add include_next.
56341         (Makefile.am): Build a stdarg.h substitute if requested.
56342         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
56343
56344 2008-03-10  Bruno Haible  <bruno@clisp.org>
56345
56346         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
56347         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
56348         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
56349
56350 2008-03-10  Bruno Haible  <bruno@clisp.org>
56351
56352         * modules/stdlib (Depends-on): Add include_next, remove
56353         absolute-header.
56354
56355 2008-03-09  Bruno Haible  <bruno@clisp.org>
56356
56357         * lib/freadahead.h (freadahead): Document more precisely.
56358         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
56359         the sum of both buffer sizes.
56360         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
56361         * NEWS: Document the change.
56362
56363 2008-03-09  Bruno Haible  <bruno@clisp.org>
56364
56365         Extend freadptr to return also the buffer size.
56366         * lib/freadptr.h (freadptr): Add sizep argument.
56367         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
56368         (freadptr): Add sizep argument. Determine buffer size like freadahead
56369         does.
56370         * tests/test-freadptr.c: Don't include freadahead.h.
56371         (main): Adapt for new calling convention of freadptr.
56372         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
56373         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
56374         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
56375         tests/test-freadptr2.sh.
56376         (Depends): Remove freadahead.
56377         (TESTS): Add test-freadptr2.sh.
56378         (check_PROGRAMS): Add test-freadptr2.
56379
56380 2008-03-09  Bruno Haible  <bruno@clisp.org>
56381
56382         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
56383         Report and solution by Simon Josefsson.
56384
56385 2008-03-06  Bruno Haible  <bruno@clisp.org>
56386
56387         Make fflush after ungetc work on BSD platforms.
56388         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
56389         * tests/test-fflush2.c: New file.
56390         * tests/test-fflush2.sh: New file.
56391         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
56392         tests/test-fflush2.c.
56393         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
56394         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
56395
56396 2008-03-06  Eric Blake  <ebb9@byu.net>
56397
56398         Likewise for ftello.
56399         * modules/ftello (Dependencies): Add extensions.
56400         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
56401
56402 2008-03-06  Bruno Haible  <bruno@clisp.org>
56403
56404         * modules/fseeko (Dependencies): Add extensions.
56405         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
56406         Needed on glibc systems.
56407
56408 2008-03-06  Bruno Haible  <bruno@clisp.org>
56409
56410         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
56411         email address.
56412         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
56413
56414 2008-03-06  Bruno Haible  <bruno@clisp.org>
56415
56416         * users.txt: Add libgnupdf.
56417
56418 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
56419
56420         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
56421         (Header File Substitutes, Function Substitutes,
56422         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
56423         (Build robot for gnulib): Fix typo.
56424
56425 2008-03-06  Bruno Haible  <bruno@clisp.org>
56426
56427         * doc/gnulib-tool.texi (VCS Issues): Small updates.
56428         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
56429
56430 2008-03-06  Bruno Haible  <bruno@clisp.org>
56431
56432         * doc/func.texi: New file, extracted from doc/gnulib.texi.
56433         * doc/gnulib.texi: Include it.
56434
56435 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56436
56437         * modules/func (License): Change license to unlimited; there was
56438         no LGPL parts in the module anyway.
56439
56440 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56441
56442         * modules/__func__: Renamed to modules/func.
56443         * modules/__func__-tests: Renamed to modules/func-tests.
56444         * tests/test-__func__.c: Renamed to tests/test-func.c.
56445         * m4/__func__.m4: Renamed to m4/func.m4.
56446         * doc/gnulib.texi (__func__): Section renamed to func.
56447         Suggested by Eric Blake <ebb9@byu.net>.
56448
56449 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56450
56451         * doc/gnulib.texi (__func__): Use C99 terminology when talking
56452         about __func__.  Make example self-contained.  Suggested by Eric
56453         Blake <ebb9@byu.net>.
56454
56455         * tests/test-__func__.c (main): Avoid extraneous () around __func.
56456         Suggested by Eric Blake <ebb9@byu.net>.
56457
56458 2008-03-06  Simon Josefsson  <simon@josefsson.org>
56459
56460         * modules/__func__: New file.
56461         * modules/__func__-tests: New file.
56462         * tests/test-__func__.c: New file.
56463         * m4/__func__.m4: New file.
56464         * doc/gnulib.texi (__func__): Document __func__ module.
56465
56466 2008-03-05  Simon Josefsson  <simon@josefsson.org>
56467
56468         * modules/byteswap (License): Re-license as LGPLv2+.
56469
56470 2008-03-05  Simon Josefsson  <simon@josefsson.org>
56471
56472         * doc/Makefile: Add pdf target.
56473
56474 2008-03-05  Simon Josefsson  <simon@josefsson.org>
56475
56476         * modules/inline (License): Use 'unlimited', since there are only
56477         *.m4 files in this module.
56478
56479 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
56480             Bruno Haible  <bruno@clisp.org>
56481
56482         Add support for HP C 7.1 on OpenVMS 8.3.
56483         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
56484
56485 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
56486
56487         Update VMS specifics.
56488         * lib/getopt.c [VMS]: Remove include of unixlib.h.
56489
56490 2008-03-02  Jim Meyering  <meyering@redhat.com>
56491
56492         Remove the last dependency on the "free" module.
56493         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
56494         Reported by Bob Proulx.
56495
56496         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
56497
56498         Remove useless "if" tests before free.  Deprecate "free" module.
56499         * doc/posix-functions/free.texi: Mention that this
56500         module is no longer useful.
56501         * modules/free (Notice): Say this module is obsolete.
56502         * modules/readutmp (Depends-on): Remove free.
56503         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
56504         * lib/putenv.c (putenv): Likewise.
56505         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
56506         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
56507         * tests/test-c-strcasestr.c (main): Likewise.
56508         * tests/test-c-strstr.c (main): Likewise.
56509         * tests/test-mbscasestr1.c (main): Likewise.
56510         * tests/test-mbscasestr2.c (main): Likewise.
56511         * tests/test-mbsstr1.c (main): Likewise.
56512         * tests/test-mbsstr2.c (main): Likewise.
56513         * tests/test-memmem.c (main): Likewise.
56514         * tests/test-strcasestr.c (main): Likewise.
56515         * tests/test-striconv.c (main): Likewise.
56516         * tests/test-striconveh.c (main): Likewise.
56517         * tests/test-striconveha.c (main): Likewise.
56518         * tests/test-strstr.c (main): Likewise.
56519
56520         * build-aux/git-version-gen: Adjust a comment and the Usage string.
56521
56522         bootstrap: sync from coreutils again
56523         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
56524
56525 2008-03-01  Jim Meyering  <meyering@redhat.com>
56526
56527         bootstrap: sync from coreutils
56528         * build-aux/bootstrap (update_po_files): Copy a .po file into place
56529         also when the target doesn't exist.
56530
56531 2008-03-01  Eric Blake  <ebb9@byu.net>
56532
56533         Fix bugs in last patch.
56534         * lib/memchr2.c (memchr2): Fix typo.
56535         * tests/test-memchr2.c: Test previous bug, and don't use GNU
56536         extension.
56537         Reported by Bruce Korb.
56538
56539         New module 'memchr2'.
56540         * modules/memchr2: New file.
56541         * modules/memchr2-tests: Likewise.
56542         * lib/memchr2.h: Likewise.
56543         * lib/memchr2.c: Likewise, based on memchr.c.
56544         * tests/test-memchr2.c: New test.
56545         * MODULES.html.sh (String handling): Add memchr2.
56546
56547 2008-02-29  Bruno Haible  <bruno@clisp.org>
56548
56549         * modules/freadseek-tests: New file.
56550         * tests/test-freadseek.sh: New file.
56551         * tests/test-freadseek.c: New file.
56552
56553         New module 'freadseek'.
56554         * modules/freadseek: New file.
56555         * lib/freadseek.h: New file.
56556         * lib/freadseek.c: New file.
56557         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
56558
56559 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
56560
56561         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
56562         wydawca.
56563
56564         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
56565         program_invocation_name and program_invocation_short_name are
56566         present.
56567
56568 2008-02-28  Bruno Haible  <bruno@clisp.org>
56569
56570         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
56571         * tests/test-freadptr.sh: Also test non-seekable stdin.
56572
56573 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
56574
56575         * build-aux/bootstrap (source_base, m4_base)
56576         (doc_base, tests_base): New variables.
56577         (gnulib_tool_options): Do not hardcode base directories, use
56578         the above variables instead.
56579
56580 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
56581
56582         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
56583
56584 2008-02-28  Bruno Haible  <bruno@clisp.org>
56585
56586         * modules/freadptr-tests: New file.
56587         * tests/test-freadptr.sh: New file.
56588         * tests/test-freadptr.c: New file.
56589
56590         New module 'freadptr'.
56591         * modules/freadptr: New file.
56592         * lib/freadptr.h: New file.
56593         * lib/freadptr.c: New file.
56594         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
56595
56596 2008-02-26  Karl Berry  <karl@freefriends.org>
56597
56598         Sync from Libtool:
56599         * libltdl/argz.c (argz_add, argz_count): New functions.
56600         * libltdl/argz.in.h: Declare them.
56601         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
56602
56603 2008-02-22  Bruno Haible  <bruno@clisp.org>
56604
56605         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
56606         is a pointer type.  Needed for HP-UX 10.
56607         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
56608         * doc/posix-functions/gmtime_r.texi: Likewise.
56609         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
56610
56611 2008-02-24  Bruno Haible  <bruno@clisp.org>
56612
56613         * modules/environ-tests: New file.
56614         * tests/test-environ.c: New file.
56615
56616         New module 'environ'.
56617         * modules/environ: New file.
56618         * lib/unistd.in.h (environ): New declaration.
56619         * m4/environ.m4: New file.
56620         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
56621         after use.
56622         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
56623         HAVE_DECL_ENVIRON.
56624         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
56625         HAVE_DECL_ENVIRON.
56626         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
56627         wrong claim that 'environ' is missing on some systems.
56628         * modules/execute (Depends-on): Add environ.
56629         * lib/execute.c (environ): Remove fallback declaration.
56630         * modules/pipe (Depends-on): Add environ.
56631         * lib/pipe.c (environ): Remove fallback declaration.
56632         * modules/setenv (Depends-on): Add environ.
56633         * lib/setenv.c (environ): Remove fallback declaration.
56634         * modules/unsetenv (Depends-on): Add environ.
56635         * lib/unsetenv.c (environ): Remove fallback declaration.
56636         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
56637         m4/environ.m4.
56638         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
56639         (gl_PREREQ_UNSETENV): Likewise.
56640
56641 2008-02-24  Bruno Haible  <bruno@clisp.org>
56642
56643         * doc/posix-functions/environ.texi: Document the MacOS X problem.
56644
56645 2008-02-20  Bob Proulx  <bob@proulx.com>
56646
56647         Enable use of older two part flavor 'git describe'.
56648         * build-aux/git-version-gen: If using the older two part flavor of
56649         git version then recreate the third part now present in the
56650         newer three part flavor of git describe.
56651
56652 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
56653
56654         * lib/fts.c (fts_build): Typo correction to comment.
56655
56656 2008-02-17  Bruno Haible  <bruno@clisp.org>
56657
56658         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
56659         generating no-op conflicts.
56660
56661 2008-02-17  Bruno Haible  <bruno@clisp.org>
56662
56663         Speed up by 10%.
56664         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
56665         result_entries, rather than an index-based loop.
56666
56667 2008-02-17  Bruno Haible  <bruno@clisp.org>
56668
56669         Speed up by 25%.
56670         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
56671         'hashcode_cached'.
56672         (entry_create): New function.
56673         (entry_hashcode): Use the cached hashcode if possible.
56674         (read_changelog_file, try_split_merged_entry): Use entry_create.
56675
56676 2008-02-17  Bruno Haible  <bruno@clisp.org>
56677
56678         Speed up from O(n^2) to O(n) for long ChangeLog files.
56679         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
56680         (read_changelog_file): Change implementation of entries_reversed list
56681         to rbtreehash.
56682         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
56683
56684 2008-02-17  Bruno Haible  <bruno@clisp.org>
56685
56686         New option --split-merged-entry.
56687         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
56688         (find_paragraph_end, try_split_merged_entry): New functions.
56689         (long_options): Add option --split-merged-entry.
56690         (usage): Document option --split-merged-entry.
56691         (main): Implement option --split-merged-entry.
56692         Reported by Eric Blake.
56693
56694 2008-02-17  Bruno Haible  <bruno@clisp.org>
56695
56696         * lib/git-merge-changelog.c: Include c-strstr.h.
56697         (main): Support the "git pull --rebase" situation.
56698         * modules/git-merge-changelog (Depends-on): Add c-strstr.
56699         Reported by Eric Blake.
56700
56701 2008-02-16  Eric Blake  <ebb9@byu.net>
56702
56703         Avoid doubling \ in common case of "c-maybe" quoting style.
56704         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
56705         eliding outer quotes.
56706         * lib/quotearg.h: Document this.
56707         * tests/test-quotearg.c (result_strings, inputs, results_g)
56708         (flag_results, locale_results): Test it by adding a new string to
56709         each test group.
56710         (compare_strings): Test new string.
56711
56712 2008-02-13  Eric Blake  <ebb9@byu.net>
56713
56714         Avoid trigraph quoting in default output.
56715         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
56716         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
56717         unless explicitly requested.
56718         * tests/test-quotearg.c (flag_results, main): Add additional tests.
56719
56720 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
56721
56722         Don't rely on signed integer overflowing to negative value.
56723         * lib/getugroups.c (getugroups): Include <limits.h>.
56724         Instead, compare against INT_MAX, and increment only if the test passes.
56725
56726 2008-02-13  Jim Meyering  <meyering@redhat.com>
56727         and Eric Blake  <ebb9@byu.net>
56728
56729         Avoid shadowing warning and compile errors on Linux.
56730         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
56731         forwarding macros on Linux.
56732         (dcgettext): Define a stub, for Linux.
56733         (results_g, main): Avoid warnings.
56734
56735 2008-02-12  Eric Blake  <ebb9@byu.net>
56736
56737         Silence warning in last patch.
56738         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
56739
56740         Quotearg part 4: add tests, fix c-maybe colon quoting.
56741         * lib/quotearg.h: Improve documentation.
56742         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
56743         escapes when adding outer quotes.  When quoting trigraphs, use
56744         valid C notation.  When quoting NUL, omit extra characters if next
56745         character is not digit.  Alter prototype.
56746         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
56747         callers.
56748         * modules/quotearg-tests: New module.
56749         * tests/test-quotearg.c: New test.
56750
56751 2008-02-07  Eric Blake  <ebb9@byu.net>
56752
56753         Quotearg part 3: add flag to control outer quote elision.
56754         * lib/quotearg.h (c_maybe_quoting_style): New style.
56755         (enum quoting_flags): Better documentation of flags.
56756         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
56757         c-maybe style.
56758         (quotearg_buffer_restyled): Handle new flag to elide outer
56759         quotes.
56760
56761         Quotearg part 2: add flag that can control NUL elision.
56762         * lib/quotearg.h (set_quoting_flags): New prototype.
56763         * lib/quotearg.c (struct quoting_options): Add flag field.
56764         (set_quoting_flags): New function.
56765         (quotearg_buffer_restyled): Add flags parameter.
56766         (quotearg_alloc_mem): Set the flag if length cannot be returned.
56767         (quotearg_n_options): Set the flag, since length cannot be
56768         returned.
56769         (quoting_options_from_style): Default flags correctly.
56770
56771         Quotearg part 1: more wrappers, restore quotearg_char state.
56772         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
56773         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
56774         (quotearg_colon_mem): New wrappers.
56775         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
56776         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
56777         functions.
56778         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
56779         (quotearg_colon_mem): New functions.
56780
56781 2008-02-11  Bruno Haible  <bruno@clisp.org>
56782
56783         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
56784         library in the current directory: it does not work with parallel make.
56785         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
56786
56787 2008-02-11  Bruno Haible  <bruno@clisp.org>
56788
56789         * .gitattributes: New file.
56790
56791 2008-02-11  Jim Meyering  <meyering@redhat.com>
56792
56793         useless-if-before-free: Fix reversed exit values.
56794         * build-aux/useless-if-before-free: Use correct values
56795         for EXIT_MATCH and EXIT_NO_MATCH.
56796
56797         * build-aux/useless-if-before-free: Close stdout carefully.
56798
56799 2008-02-10  Bruno Haible  <bruno@clisp.org>
56800
56801         New module 'git-merge-changelog'.
56802         * modules/git-merge-changelog: New file.
56803         * lib/git-merge-changelog.c: New file.
56804
56805 2008-02-10  Jim Meyering  <meyering@redhat.com>
56806
56807         useless-if-before-free: New option: --list (-l).
56808
56809         useless-if-before-free: Don't exit immediately upon open failure.
56810         * build-aux/useless-if-before-free: Exit 2 for errors.
56811         Upon failure to open a file, don't exit immediately.
56812         Rather, just warn and continue with any remaining files.
56813
56814 2008-02-10  Bruno Haible  <bruno@clisp.org>
56815
56816         New abstract list operation 'node_set_value'.
56817         * lib/gl_list.h (gl_list_node_set_value): New function.
56818         (struct gl_list_implementation): New field node_set_value.
56819         * lib/gl_list.c (gl_list_node_set_value): New function.
56820         * lib/gl_array_list.c (gl_array_node_set_value): New function.
56821         (gl_array_list_implementation): Update.
56822         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
56823         (gl_carray_list_implementation): Update.
56824         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
56825         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
56826         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
56827         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
56828         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
56829         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
56830         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
56831         Update.
56832         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
56833         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
56834         (gl_sublist_list_implementation): Update.
56835
56836 2008-02-10  Bruno Haible  <bruno@clisp.org>
56837
56838         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
56839         Needed when ELEMENT is #defined to 'some_type *'.
56840
56841 2008-02-10  Jim Meyering  <meyering@redhat.com>
56842
56843         New script and module: useless-if-before-free
56844         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
56845         * build-aux/useless-if-before-free: New file.
56846         * modules/useless-if-before-free: New file.
56847
56848         * build-aux/gitlog-to-changelog: Use committer date, not author date.
56849
56850         xstrtol_error: Fix typo.
56851         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
56852         s/exit_failure/exit_status/.
56853
56854 2008-02-09  Jim Meyering  <meyering@redhat.com>
56855
56856         New script and module: gitlog-to-changelog
56857         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
56858         * modules/gitlog-to-changelog: New file.
56859         * build-aux/gitlog-to-changelog: New file.
56860
56861 2008-02-08  Jim Meyering  <meyering@redhat.com>
56862
56863         Avoid two "parameter unused" warnings.
56864         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
56865         Mark "st" as used.
56866
56867         Use "git COMMAND", not "git-COMMAND".
56868         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
56869         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
56870         * build-aux/git-version-gen: Use "git status", not "git-status".
56871
56872 2008-02-07  Bruno Haible  <bruno@clisp.org>
56873
56874         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
56875         Avoids a crash on Windows Vista.
56876         Reported by Adam Strzelecki <ono@java.pl> via
56877         Simon Josefsson <simon@josefsson.org>.
56878
56879 2008-02-06  Bruno Haible  <bruno@clisp.org>
56880
56881         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
56882         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
56883         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
56884         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
56885         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
56886         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56887         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
56888         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
56889         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56890         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56891         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56892         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56893         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56894         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56895         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56896         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
56897         left-adjust flag.
56898         * tests/test-snprintf-posix.h (test_function): Likewise.
56899         * tests/test-sprintf-posix.h (test_function): Likewise.
56900         * tests/test-vasprintf-posix.c (test_function): Likewise.
56901         * doc/posix-functions/fprintf.texi: Update.
56902         * doc/posix-functions/printf.texi: Update.
56903         * doc/posix-functions/snprintf.texi: Update.
56904         * doc/posix-functions/sprintf.texi: Update.
56905         * doc/posix-functions/vfprintf.texi: Update.
56906         * doc/posix-functions/vprintf.texi: Update.
56907         * doc/posix-functions/vsnprintf.texi: Update.
56908         * doc/posix-functions/vsprintf.texi: Update.
56909         Reported by Peter Fales <psfales@alcatel-lucent.com>.
56910
56911 2008-02-06  Bruno Haible  <bruno@clisp.org>
56912
56913         Fix bug introduced on 2008-01-26.
56914         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
56915
56916 2008-02-06  Bruno Haible  <bruno@clisp.org>
56917
56918         Fix bug introduced on 2007-06-10.
56919         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
56920         !NEED_PRINTF_FLAG_ZERO.
56921
56922 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
56923
56924         getloadavg: use libperfstat on AIX5
56925         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
56926
56927 2008-02-03  Bruno Haible  <bruno@clisp.org>
56928
56929         * lib/diffseq.h: Add comments about required #includes.
56930         Reported by Michael Biggs <gnulib@doubleplum.net>.
56931
56932 2008-02-01  Bruno Haible  <bruno@clisp.org>
56933
56934         * users.txt: Add gnuit.
56935
56936 2008-01-31  Bruno Haible  <bruno@clisp.org>
56937
56938         * lib/md4.c (set_uint32): Mark as inline.
56939         * lib/md5.c (set_uint32): Likewise.
56940         * lib/sha1.c (set_uint32): Likewise.
56941         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
56942         * m4/md5.m4 (gl_MD5): Likewise.
56943         * m4/sha1.m4 (gl_SHA1): Likewise.
56944
56945 2008-01-31  Jim Meyering  <meyering@redhat.com>
56946
56947         Use "sizeof VAR", rather than a literal "4".
56948         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
56949         * lib/md4.c (md4_read_ctx): Likewise.
56950         * lib/sha1.c (sha1_read_ctx): Likewise.
56951
56952 2008-01-31  Simon Josefsson  <simon@josefsson.org>
56953
56954         * tests/test-sha1.c: New file, based on test-md5.c.
56955
56956         * modules/crypto/sha1-tests: New file.
56957
56958 2008-01-31  Simon Josefsson  <simon@josefsson.org>
56959
56960         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
56961
56962 2008-01-31  Jim Meyering  <meyering@redhat.com>
56963
56964         Prefer "sizeof v" over the equivalent "4".
56965         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
56966         * lib/md5.c (set_uint32): Likewise.
56967         * lib/sha1.c (set_uint32): Likewise.
56968
56969 2008-01-31  Simon Josefsson  <simon@josefsson.org>
56970
56971         * lib/sha1.c (set_uint32): Mark function as static.
56972
56973 2008-01-31  Simon Josefsson  <simon@josefsson.org>
56974
56975         md2: clarify comments to say that alignment is not required.
56976         * lib/md2.h: Remove warning about alignment in comment.
56977         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
56978         never been required.
56979
56980 2008-01-31  Simon Josefsson  <simon@josefsson.org>
56981
56982         md4: adapt alignment constraint fix from sha1.
56983         * lib/md4.c (set_uint32): New function, from sha1.c
56984         (md4_read_ctx): Use it.
56985         (md4_finish_ctx): Doc fix.
56986         * lib/md4.h: Doc fix.
56987
56988 2008-01-31  Simon Josefsson  <simon@josefsson.org>
56989
56990         md5: adapt alignment constraint fix from sha1.
56991         * lib/md5.c (set_uint32): New function, from sha1.c
56992         (md5_read_ctx): Use it.
56993         (md5_finish_ctx): Doc fix.
56994         * lib/md5.h: Doc fix.
56995
56996 2008-01-30  Peter Palfrader  <weasel@debian.org>
56997
56998         sha1: remove the result buffer alignment constraint
56999         * lib/sha1.c (set_uint32): New function.
57000         (sha1_read_ctx): Rewrite to remove the result buffer alignment
57001         constraint.
57002         (sha1_finish_ctx): Remove comment warning about alignment constraint.
57003         * lib/sha1.h: Likewise.
57004
57005 2008-01-30  Andreas Schwab  <schwab@suse.de>
57006             Bruno Haible  <bruno@clisp.org>
57007
57008         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
57009         correct definition of LDBL_MIN_EXP.
57010
57011 2008-01-30  Karl Berry  <karl@gnu.org>
57012
57013         * config/srclist-update: try to preserve x bit on updates.
57014         * config/srclistvars.sh: update for karl.
57015
57016 2008-01-29  Jim Meyering  <meyering@redhat.com>
57017
57018         vasnprintf.c: Avoid warning about unused label
57019         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
57020         "overflow" label definition and associated code with the
57021         same cpp condition that guards the sole use of that label.
57022
57023 2008-01-26  Bruno Haible  <bruno@clisp.org>
57024
57025         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
57026         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
57027         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
57028         * lib/isnanl-nolibm.h (isnanl): Likewise.
57029         Reported by Paul Eggert <eggert@cs.ucla.edu>.
57030
57031 2008-01-26  Bruno Haible  <bruno@clisp.org>
57032
57033         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
57034         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
57035
57036 2008-01-26  Bruno Haible  <bruno@clisp.org>
57037
57038         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
57039         GCC >= 4.0 built-in.
57040         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
57041
57042 2008-01-26  Bruno Haible  <bruno@clisp.org>
57043
57044         Rename isnan, applicable to 'double' only, to isnand.
57045         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
57046         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
57047         (configure.ac): Update.
57048         (Include): Replace "isnan.h" with "isnand.h".
57049         * m4/isnand.m4: Renamed from m4/isnan.m4.
57050         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
57051         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
57052         instead of isnan.c.
57053         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
57054         instead of HAVE_ISNAN_IN_LIBC.
57055         (isnand): Renamed from isnan.
57056         * lib/isnand.c: New file.
57057         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
57058         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
57059         (Makefile.am): Update.
57060         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
57061         Include isnand.h instead of isnan.h.
57062         (main): Test isnand instead of isnan.
57063         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
57064         isnan-nolibm.
57065         * modules/frexp (Depends-on): Likewise.
57066         * modules/frexp-tests (Depends-on): Likewise.
57067         * modules/frexp-nolibm (Depends-on): Likewise.
57068         * modules/frexp-nolibm-tests (Depends-on): Likewise.
57069         * modules/isfinite (Depends-on): Likewise.
57070         * modules/round-tests (Depends-on): Likewise.
57071         * modules/signbit (Depends-on): Likewise.
57072         * modules/signbit-tests (Depends-on): Likewise.
57073         * modules/snprintf-posix (Depends-on): Likewise.
57074         * modules/sprintf-posix (Depends-on): Likewise.
57075         * modules/trunc-tests (Depends-on): Likewise.
57076         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
57077         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
57078         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
57079         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
57080         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
57081         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
57082         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
57083         * modules/vasnprintf-posix (Depends-on): Likewise.
57084         * modules/vasprintf-posix (Depends-on): Likewise.
57085         * modules/vfprintf-posix (Depends-on): Likewise.
57086         * modules/vsnprintf-posix (Depends-on): Likewise.
57087         * modules/vsprintf-posix (Depends-on): Likewise.
57088         * lib/frexp.c: Include isnand.h instead of isnan.h.
57089         (ISNAN): Set to isnand instead of isnan.
57090         * lib/isfinite.c: Include isnand.h instead of isnan.h.
57091         (gl_isfinited): Use isnand instead of isnan.
57092         * lib/signbitd.c: Include isnand.h instead of isnan.h.
57093         (gl_signbitd): Use isnand instead of isnan.
57094         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
57095         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
57096         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
57097         (main): Use isnand instead of isnan.
57098         * tests/test-round1.c: Include isnand.h.
57099         (main): Use isnand instead of isnan.
57100         * tests/test-round2.c: Include isnand.h instead of isnan.h.
57101         (ISNAN): Set to isnand instead of isnan.
57102         * tests/test-trunc1.c: Include isnand.h.
57103         (main): Use isnand instead of isnan.
57104         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
57105         (equal): Use isnand instead of isnan.
57106         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
57107         isnand-nolibm.
57108         * NEWS: Mention the change.
57109
57110 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
57111             Bruno Haible  <bruno@clisp.org>
57112
57113         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
57114         the GCC builtins for signbits are present and set
57115         REPLACE_SIGNBIT_USING_GCC if so.
57116         * lib/math.in.h (signbit): Define using GCC builtins if
57117         REPLACE_SIGNBIT_USING_GCC is set.
57118         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
57119         REPLACE_SIGNBIT_USING_GCC.
57120         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
57121
57122 2008-01-25  Jim Meyering  <meyering@redhat.com>
57123
57124         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
57125         * lib/poll.c: Include <config.h>, not "config.h".
57126         * tests/test-getaddrinfo.c: Likewise.
57127
57128 2008-01-25  Simon Josefsson  <simon@josefsson.org>
57129
57130         * modules/sockets-tests: New file.
57131
57132 2008-01-24  Simon Josefsson  <simon@josefsson.org>
57133
57134         * modules/sockets: New module, can be used to call WSA_Startup and
57135         WSA_Cleanup when needed.
57136
57137         * lib/sockets.h, lib/sockets.c: New files.
57138
57139         * m4/sockets.m4: New file.
57140
57141         * tests/test-sockets.c: New file.
57142
57143 2008-01-19  Bruno Haible  <bruno@clisp.org>
57144
57145         * doc/posix-headers: Renamed from doc/headers.
57146         * doc/posix-functions: Renamed from doc/functions.
57147         * doc/gnulib.texi: Update.
57148
57149 2008-01-19  Bruno Haible  <bruno@clisp.org>
57150
57151         * doc/glibc-functions/strcasestr.texi: Include contents of
57152         doc/functions/strcasestr.texi, fixing the list of platforms.
57153         * doc/functions/strcasestr.texi: Remove file.
57154
57155 2008-01-19  Bruno Haible  <bruno@clisp.org>
57156
57157         * doc/glibc-functions/memmem.texi: Include contents of
57158         doc/functions/memmem.texi.
57159         * doc/functions/memmem.texi: Remove file.
57160
57161 2008-01-18  Bruno Haible  <bruno@clisp.org>
57162
57163         * doc/glibc-functions/*.texi: New files.
57164         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
57165         to use the new files.
57166
57167 2008-01-17  Bruno Haible  <bruno@clisp.org>
57168
57169         * tests/test-gethostname.c (main): Fix printf statement.
57170
57171 2008-01-17  Simon Josefsson  <simon@josefsson.org>
57172
57173         * modules/gethostname-tests: New file.
57174
57175         * tests/test-gethostname.c: New file.
57176
57177 2008-01-17  Simon Josefsson  <simon@josefsson.org>
57178
57179         * lib/gethostname.c: Include string.h unconditionally, strncpy is
57180         used by the UNAME case.  Reported by Bruno Haible
57181         <bruno@clisp.org>.
57182
57183 2008-01-17  Eric Blake  <ebb9@byu.net>
57184
57185         Convert c-strcasestr to be more efficient.
57186         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
57187         (Depends-on): Add c-strcase, remove malloca, strnlen.
57188         * tests/test-c-strcasestr.c (main): Enhance test.
57189         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
57190
57191 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
57192
57193         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
57194         Use it in creating po/Makevars.
57195
57196 2008-01-15  Simon Josefsson  <simon@josefsson.org>
57197
57198         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
57199         Applications that requires it should initialize libgcrypt
57200         manually.
57201
57202 2008-01-16  Simon Josefsson  <simon@josefsson.org>
57203
57204         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
57205
57206 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
57207
57208         Fix problem with getdate on mingw32 reported by Simon Josefsson
57209         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
57210         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
57211         tzname", when deciding whether to declare tzname.
57212         * lib/strftime.c (tzname): Likewise.
57213
57214 2008-01-15  Bruno Haible  <bruno@clisp.org>
57215
57216         Work around a MacOS X 10.5 bug in frexpl().
57217         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
57218         * doc/functions/frexpl.texi: Document the bug.
57219         Reported by Elias Pipping <pipping@gentoo.org>.
57220
57221 2008-01-14  Eric Blake  <ebb9@byu.net>
57222
57223         Touch up previous patch.
57224         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
57225         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
57226
57227         Convert strcasestr module to use Two-Way algorithm.
57228         * modules/strcasestr-simple: New module, based on the old
57229         strcasestr, but with Two-Way rather than KMP.
57230         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
57231         * lib/string.in.h (rpl_strcasestr): Declare.
57232         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
57233         performance.
57234         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
57235         * modules/string (Makefile.am): Support strcasestr.
57236         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
57237         * modules/strcasestr-tests (Depends-on): Check for alarm.
57238         * tests/test-strcasestr.c: Augment test.
57239         * lib/str-two-way.h: Clean up stray macro.
57240         * NEWS: Document new module.
57241         * MODULES.html.sh (string handling): Likewise.
57242         * doc/functions/strcasestr.texi: New file.
57243         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
57244         here, since it is not a POSIX function.
57245
57246 2008-01-14  Colin Watson  <cjwatson@debian.org>
57247             Bruno Haible  <bruno@clisp.org>
57248
57249         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
57250         works fine; if not, set REPLACE_STRSIGNAL.
57251         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
57252         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57253         REPLACE_STRSIGNAL.
57254         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
57255         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
57256         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
57257
57258 2008-01-14  Bruno Haible  <bruno@clisp.org>
57259
57260         * modules/strsignal (Include): Change to <string.h>.
57261
57262 2008-01-14  Colin Watson  <cjwatson@debian.org>
57263
57264         * modules/argp (Notice): Add a notice recommending to change
57265         XGETTEXT_OPTIONS.
57266         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
57267
57268 2008-01-13  Colin Watson  <cjwatson@debian.org>
57269
57270         * modules/strsignal-tests: New file.
57271         * tests/test-strsignal.c: New file.
57272
57273         * lib/strsignal.c: New file, from glibc with modifications.
57274         * lib/siglist.h: New file, from glibc with modifications.
57275         * lib/string.in.h (strsignal): New declaration.
57276         * m4/strsignal.m4: New file.
57277         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
57278         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
57279         * modules/strsignal: New file.
57280         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
57281         HAVE_DECL_STRSIGNAL.
57282
57283 2008-01-13  Bruno Haible  <bruno@clisp.org>
57284
57285         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
57286         locale encoding is not ASCII. Needed for OpenBSD 4.0.
57287         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
57288         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
57289
57290 2008-01-13  Bruno Haible  <bruno@clisp.org>
57291
57292         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
57293         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
57294         * lib/argp.h (__attribute__): Likewise.
57295         * lib/c-stack.c (__attribute__): Likewise.
57296         * lib/error.h (__attribute__): Likewise.
57297         * lib/fts.c (__attribute__): Likewise.
57298         * lib/openat.h (__attribute__): Likewise.
57299         * lib/stdio.in.h (__attribute__): Likewise.
57300         * lib/string.in.h (__attribute__): Likewise.
57301         * lib/utimens.c (__attribute__): Likewise.
57302         * lib/vasnprintf.h (__attribute__): Likewise.
57303         * lib/xalloc.h (__attribute__): Likewise.
57304         * lib/xprintf.h (__attribute__): Likewise.
57305         * lib/xstrtol.h (__attribute__): Likewise.
57306         * lib/xvasprintf.h (__attribute__): Likewise.
57307
57308 2008-01-12  Bruno Haible  <bruno@clisp.org>
57309
57310         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
57311         * doc/glibc-headers/a.out.texi: New file.
57312         * doc/glibc-headers/aliases.texi: New file.
57313         * doc/glibc-headers/alloca.texi: New file.
57314         * doc/glibc-headers/ar.texi: New file.
57315         * doc/glibc-headers/argp.texi: New file.
57316         * doc/glibc-headers/argz.texi: New file.
57317         * doc/glibc-headers/byteswap.texi: New file.
57318         * doc/glibc-headers/crypt.texi: New file.
57319         * doc/glibc-headers/endian.texi: New file.
57320         * doc/glibc-headers/envz.texi: New file.
57321         * doc/glibc-headers/err.texi: New file.
57322         * doc/glibc-headers/error.texi: New file.
57323         * doc/glibc-headers/execinfo.texi: New file.
57324         * doc/glibc-headers/fpu_control.texi: New file.
57325         * doc/glibc-headers/fstab.texi: New file.
57326         * doc/glibc-headers/fts.texi: New file.
57327         * doc/glibc-headers/getopt.texi: New file.
57328         * doc/glibc-headers/ieee754.texi: New file.
57329         * doc/glibc-headers/ifaddrs.texi: New file.
57330         * doc/glibc-headers/libintl.texi: New file.
57331         * doc/glibc-headers/mcheck.texi: New file.
57332         * doc/glibc-headers/mntent.texi: New file.
57333         * doc/glibc-headers/obstack.texi: New file.
57334         * doc/glibc-headers/paths.texi: New file.
57335         * doc/glibc-headers/printf.texi: New file.
57336         * doc/glibc-headers/pty.texi: New file.
57337         * doc/glibc-headers/resolv.texi: New file.
57338         * doc/glibc-headers/shadow.texi: New file.
57339         * doc/glibc-headers/sysexits.texi: New file.
57340         * doc/glibc-headers/ttyent.texi: New file.
57341
57342 2008-01-12  Jim Meyering  <meyering@redhat.com>
57343
57344         announce-gen: emit Gnulib's git-based version string.
57345         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
57346         New option --gnulib-version=V, where V is expected to be
57347         the output of running git describe in the gnulib directory.
57348         (get_tool_versions): Request feedback on xdelta.  I suspect it's
57349         not useful, and plan to stop publishing an xdelta file with each
57350         coreutils release.
57351
57352         * build-aux/announce-gen: Also check for lzma-compressed files.
57353
57354 2008-01-11  Bruno Haible  <bruno@clisp.org>
57355
57356         * tests/test-memmem.c (main): Increase maximum allowed time.
57357         * tests/test-strstr.c (main): Likewise.
57358
57359 2008-01-11  Bruno Haible  <bruno@clisp.org>
57360
57361         * doc/functions/memmem.texi: Add more precisions about platforms.
57362         * doc/functions/strstr.texi: Likewise.
57363
57364 2008-01-10  Eric Blake  <ebb9@byu.net>
57365
57366         * m4/strstr.m4: Delete cruft from copy-n-paste.
57367         Reported by Bruno Haible.
57368
57369 2008-01-10  Bruno Haible  <bruno@clisp.org>
57370
57371         Make c-strstr rely on strstr.
57372         * lib/c-strstr.c: Don't include str-kmp.h.
57373         (c_strstr): Define in terms of strstr.
57374         * modules/c-strstr (Files): Remove lib/str-kmp.h.
57375         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
57376
57377 2008-01-10  Bruno Haible  <bruno@clisp.org>
57378
57379         * doc/gnulib.texi (String Functions in C Locale): New section.
57380         * doc/c-ctype.texi: New file.
57381         * doc/c-strcase.texi: New file.
57382         * doc/c-strcaseeq.texi: New file.
57383         * doc/c-strcasestr.texi: New file.
57384         * doc/c-strstr.texi: New file.
57385         * doc/c-strtod.texi: New file.
57386         * doc/c-strtold.texi: New file.
57387
57388 2008-01-10  Eric Blake  <ebb9@byu.net>
57389
57390         * lib/relocatable.h: Fix a comment.
57391
57392 2008-01-10  Eric Blake  <ebb9@byu.net>
57393
57394         Share two-way algorithm.
57395         * lib/str-two-way.h: New file, merged from...
57396         * lib/memmem.c: ...here...
57397         * lib/strstr.c: ...and here.
57398         * modules/memmem (Files): Use it.
57399         * modules/strstr (Files): Likewise.
57400
57401         Avoid quadratic strstr implementations.
57402         * lib/strstr.c: New file.
57403         * m4/strstr.m4: Likewise.
57404         * modules/strstr: Likewise.
57405         * modules/strstr-tests: Likewise.
57406         * tests/test-strstr.c: Likewise.
57407         * lib/string.in.h (rpl_strstr): Declare.
57408         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
57409         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
57410         * modules/string (Makefile.am): Likewise.
57411         * MODULES.html.sh (string handling): Mention new module.
57412         * doc/functions/strstr.texi (strstr): Document the bug.
57413
57414 2008-01-10  Bruno Haible  <bruno@clisp.org>
57415
57416         * lib/relocatable.h (relocate): State whether result is freshly
57417         allocated or not.
57418         * lib/relocatable.c (relocate): Return a freshly allocated string
57419         instead of a pointer to a privately held string.
57420         Reported by Sylvain Beucler <beuc@gnu.org>.
57421
57422 2008-01-10  Colin Watson  <cjwatson@debian.org>
57423
57424         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
57425         s/S_ISNLK/S_ISLNK/.
57426
57427 2008-01-09  Bruno Haible  <bruno@clisp.org>
57428
57429         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
57430         and other files.
57431         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
57432         if it's only a guess.
57433         * modules/memmem: Simplify by depending on memmem-simple.
57434
57435 2008-01-09  Bruno Haible  <bruno@clisp.org>
57436
57437         Work around OpenBSD 4.0 tdelete() bug.
57438         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
57439         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
57440         macros and don't redefine the enum values.
57441         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
57442         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
57443         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
57444
57445 2008-01-09  Bruno Haible  <bruno@clisp.org>
57446
57447         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
57448         (main): Don't perform the tests if setlocale did not install a UTF-8
57449         locale. Needed on OpenBSD 4.0.
57450         * modules/wcwidth-tests (Depends-on): Add localcharset.
57451
57452 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
57453
57454         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
57455         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
57456         * NEWS: announce this.
57457         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
57458
57459 2008-01-09  Simon Josefsson  <simon@josefsson.org>
57460         and Eric Blake  <ebb9@byu.net>
57461
57462         Add memmem-simple module.
57463         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
57464         (gl_FUNC_MEMMEM): Separate performance from presence checks.
57465         * modules/memmem-simple: New file.
57466         * modules/memmem (Description): Tweak.
57467         * MODULES.html.sh (string handling): Mention new module.
57468         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
57469         addressed by memmem-simple.
57470         * NEWS: Document the difference.
57471
57472 2008-01-09  Eric Blake  <ebb9@byu.net>
57473
57474         Give gcc some memmem optimization hints.
57475         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
57476         (strcasestr): Declare as pure.
57477         * modules/memmem (Maintainer): Claim my implementation.
57478
57479 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57480
57481         Support AIX 6.1 and higher.
57482         * build-aux/config.libpath: Likewise.
57483         * build-aux/config.rpath: Likewise.
57484
57485 2008-01-08  Jim Meyering  <meyering@redhat.com>
57486             Bruno Haible  <bruno@clisp.org>
57487
57488         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
57489         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
57490         Reported by Peter Fales in
57491         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
57492
57493 2008-01-08  Bruno Haible  <bruno@clisp.org>
57494
57495         * modules/unictype/category-of (Depends-on): Add
57496         unictype/category-none.
57497         * modules/unictype/category-and-tests (Depends-on): Add
57498         unictype/category-{L,N,Lu,Nd}.
57499         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
57500         * modules/unictype/category-or-tests (Depends-on): Add
57501         unictype/category-{L,N}.
57502         * modules/unictype/category-name-tests (Depends-on): Add
57503         unictype/category-{Z,Nl}.
57504         Reported by Simon Josefsson.
57505
57506 2008-01-08  Bruno Haible  <bruno@clisp.org>
57507
57508         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
57509         convention better.
57510         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
57511         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
57512         Reported by Peter Miller <millerp@canb.auug.org.au>.
57513
57514 2008-01-08  Eric Blake  <ebb9@byu.net>
57515
57516         Rewrite memmem to guarantee linear complexity without malloc.
57517         * lib/memmem.c (memmem): Use Two-Way rather than
57518         Knuth-Morris-Pratt, to allow O(1) space usage.
57519         (critical_factorization, two_way_short_needle)
57520         (two_way_long_needle): New functions.
57521         (knuth_morris_pratt): Delete.
57522         * modules/memmem (Depends-on): No longer need malloca or stdbool.
57523         Add stdint.
57524         * tests/test-memmem.c (main): Add tests for periodic needle and
57525         sublinear performance.
57526         * doc/functions/memmem.texi (memmem): Document other deficiencies
57527         in cygwin and older glibc.
57528
57529 2008-01-08  Bruno Haible  <bruno@clisp.org>
57530
57531         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
57532         augmentation.
57533
57534 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
57535
57536         Add a configure time option: --disable-acl.
57537         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
57538         AC_ARG_ENABLE(acl).
57539
57540 2008-01-06  Simon Josefsson  <simon@josefsson.org>
57541
57542         * tests/test-localename.c: Don't include obsolete "setenv.h".
57543
57544         * modules/localename-tests (Depends-on): Need unsetenv.
57545
57546 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57547
57548         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
57549
57550 2008-01-06  Colin Watson  <cjwatson@debian.org>
57551
57552         * users.txt: Add man-db.
57553
57554 2008-01-07  Bruno Haible  <bruno@clisp.org>
57555
57556         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
57557         previous section name.
57558
57559 2008-01-07  Bruno Haible  <bruno@clisp.org>
57560
57561         * lib/progname.c (set_program_name): Don't strip off a leading
57562         "lt-" prefix outside a .libs directory.
57563         Suggested by Paul Eggert.
57564
57565 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
57566             Bruno Haible  <bruno@clisp.org>
57567
57568         Improve memory cleanup in 'relocatable' module.
57569         * lib/relocatable.h (compute_curr_prefix): Change return type to
57570         'char *'.
57571         * lib/relocatable.c (compute_curr_prefix): Change return type to
57572         'char *'. Free curr_installdir after use.
57573         (relocate): Free curr_prefix_better after use.
57574         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
57575
57576 2008-01-01  Bruno Haible  <bruno@clisp.org>
57577
57578         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
57579         failure on older glibc systems.
57580         Reported by Peter Fales <psfales@alcatel-lucent.com>.
57581
57582 2008-01-05  Eric Blake  <ebb9@byu.net>
57583
57584         Avoid quadratic system memmem.
57585         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
57586         Reported by Ralf Wildenhues.
57587
57588         Fix memmem test for mingw.
57589         * modules/memmem-tests (configure.ac): Check for alarm.
57590         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
57591         it.
57592         * doc/functions/memmem.texi: New file.
57593         * doc/gnulib.texi (Function Substitutes): Add memmem.
57594         Reported by Bruno Haible.
57595
57596 2008-01-04  Bruno Haible  <bruno@clisp.org>
57597
57598         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
57599         Require gl_HEADER_STRINGS_H_DEFAULTS, not
57600         gl_HEADER_STRING_H_DEFAULTS.
57601
57602 2008-01-04  Eric Blake  <ebb9@byu.net>
57603
57604         Shorten duration of memmem test.
57605         * tests/test-memmem.c (main): Use alarm to declare failure if test
57606         is taking too long.
57607         Reported by Ralf Wildenhues.
57608
57609 2007-12-21  Simon Josefsson  <simon@josefsson.org>
57610
57611         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
57612         string, needed by strerror.
57613
57614 2008-01-03  Colin Watson  <cjwatson@debian.org>
57615             Bruno Haible  <bruno@clisp.org>
57616
57617         * doc/gnulib-tool.texi (Localization): New section.
57618
57619 2008-01-02  Bruno Haible  <bruno@clisp.org>
57620
57621         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
57622         variables to 'unsigned char *' type.
57623         Reported by Paul Eggert.
57624
57625 2008-01-02  Jim Meyering  <jim@meyering.net>
57626
57627         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
57628
57629 2007-12-31  Jim Meyering  <jim@meyering.net>
57630
57631         Avoid use of private FTS type name.
57632         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
57633
57634 2007-12-30  Karl Berry  <karl@gnu.org>
57635
57636         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
57637         work around defect in Texinfo and/or the standalone Info browser.
57638
57639 2007-12-30  Bruno Haible  <bruno@clisp.org>
57640
57641         Unify 5 copies of the KMP code.
57642         * lib/str-kmp.h: New file.
57643         * lib/c-strcasestr.c: Include str-kmp.h.
57644         (knuth_morris_pratt): Remove function.
57645         (c_strcasestr): Update.
57646         * lib/c-strstr.c: Include str-kmp.h.
57647         (knuth_morris_pratt): Remove function.
57648         (c_strcasestr): Update.
57649         * lib/mbscasestr.c: Include str-kmp.h.
57650         (knuth_morris_pratt_unibyte): Remove function.
57651         * lib/mbsstr.c: Include str-kmp.h.
57652         (knuth_morris_pratt_unibyte): Remove function.
57653         * lib/strcasestr.c: Include str-kmp.h.
57654         (knuth_morris_pratt): Remove function.
57655         (strcasestr): Update.
57656         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
57657         * modules/c-strstr (Files): Likewise.
57658         * modules/mbscasestr (Files): Likewise.
57659         * modules/mbsstr (Files): Likewise.
57660         * modules/strcasestr (Files): Likewise.
57661         Suggested by Paul Eggert.
57662
57663 2007-12-30  Bruno Haible  <bruno@clisp.org>
57664
57665         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
57666         defined.
57667
57668 2007-12-30  Bruno Haible  <bruno@clisp.org>
57669
57670         * lib/xmalloca.h: Include xalloc.h.
57671         (xnmalloca): New macro.
57672
57673 2007-12-30  Bruno Haible  <bruno@clisp.org>
57674
57675         * lib/malloca.h (nmalloca): New macro.
57676         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
57677         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
57678         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
57679         knuth_morris_pratt_multibyte): Likewise.
57680         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
57681         knuth_morris_pratt_multibyte): Likewise.
57682         * lib/memmem.c (knuth_morris_pratt): Likewise.
57683         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
57684
57685 2007-12-25  Bruno Haible  <bruno@clisp.org>
57686
57687         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
57688         * lib/glob.c: Don't include openat.h.
57689         (link_exists2_p): Add back the code that deals with the
57690         !GLOB_ALTDIRFUNC case.
57691         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
57692         let it do the filename concatenation.
57693         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
57694         * modules/glob (Depends-on): Remove openat.
57695
57696 2007-12-31  Bruno Haible  <bruno@clisp.org>
57697
57698         * modules/dirfd (License): Change to LGPLv2+.
57699         Approved by Jim Meyering.
57700
57701 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
57702
57703         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
57704         when multiplying M by sizeof (size_t).
57705
57706 2007-12-10  Martin Lambers  <marlam@marlam.de>
57707
57708         Override getpagesize on mingw.
57709         * lib/getpagesize.c: New file.
57710         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
57711         * modules/getpagesize (Files): Add lib/getpagesize.c.
57712         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
57713         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
57714         REPLACE_GETPAGESIZE.
57715         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
57716
57717 2007-12-25  Bruno Haible  <bruno@clisp.org>
57718
57719         * modules/localcharset (Notice): New field.
57720         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
57721         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
57722
57723 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
57724             Bruno Haible  <bruno@clisp.org>
57725
57726         Avoid using the syntax symbol() in formatted documentation.
57727         * MODULES.html.sh (func_module): When replacing symbol() with a
57728         hyperlink, remove the parentheses. Show an error if some remain.
57729         Recognize and render the '...' syntax.
57730         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
57731         Rework. Add paragraph about GCC's inlining.
57732         * doc/alloca.texi: Likewise.
57733         * doc/error.texi: Remove parentheses from symbol reference.
57734         * doc/gnulib-intro.texi: Likewise.
57735         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
57736         * modules/fnmatch (Description): Reword to say "the ... function".
57737         * modules/full-read (Description): Likewise.
57738         * modules/full-write (Description): Likewise.
57739         * modules/safe-read (Description): Likewise.
57740         * modules/safe-write (Description): Likewise.
57741         * modules/strchrnul (Description): Likewise.
57742         * modules/trim (Description): Likewise.
57743         * modules/error (Description): Remove parentheses from symbol
57744         references.
57745         * modules/verror (Description): Likewise.
57746         Reported by Karl Berry.
57747
57748 2007-12-25  Bruno Haible  <bruno@clisp.org>
57749
57750         Fixup after 2007-10-16 commit.
57751         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
57752
57753 2007-12-24  Bruno Haible  <bruno@clisp.org>
57754
57755         Make --enable-relocatable work with DESTDIR.
57756         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
57757         to compute installdir from destprog.
57758         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
57759         also set the RELOC_DESTDIR variable.
57760         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
57761
57762 2007-12-24  Bruno Haible  <bruno@clisp.org>
57763
57764         Fix link error due to xalloc_die().
57765         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
57766         of xreadlink.
57767         * lib/relocwrapper.c: Update comments.
57768         * build-aux/install-reloc: Remove xreadlink.c from file list.
57769         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
57770         xreadlink.c.
57771         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
57772
57773 2007-12-24  Bruno Haible  <bruno@clisp.org>
57774
57775         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
57776         * lib/setenv.h: Remove file.
57777         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
57778         lib/setenv.h.
57779         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
57780         (Depends-on): Add stdlib.
57781         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
57782         gl_FUNC_UNSETENV.
57783         (Include): Replace setenv.h with <stdlib.h>.
57784         * modules/unsetenv: New file.
57785         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
57786         * lib/unsetenv.c: Include <stdlib.h> first.
57787         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
57788         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
57789         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
57790         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
57791         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
57792         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
57793         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
57794         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
57795         * doc/functions/unsetenv.texi: Update.
57796         * modules/xsetenv (Depends-on): Add unsetenv.
57797         * modules/getdate (Depends-on): Likewise.
57798         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
57799         * lib/xsetenv.c: Don't include setenv.h.
57800         * lib/getdate.y: Likewise.
57801         * lib/relocwrapper.c: Likewise.
57802         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
57803         (Depends-on): Add stdlib.
57804         * NEWS: Mention the changes.
57805         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
57806
57807 2007-12-23  Bruno Haible  <bruno@clisp.org>
57808
57809         * lib/memmem.c (memmem): Use lowercase variable names. Tab
57810         indentation.
57811
57812 2007-12-23  Bruno Haible  <bruno@clisp.org>
57813
57814         * lib/c-strcasestr.c: Add more comments.
57815         * lib/c-strstr.c: Likewise.
57816         * lib/mbscasestr.c: Likewise.
57817         * lib/mbsstr.c: Likewise.
57818         * lib/strcasestr.c: Likewise.
57819         * lib/memmem.c: Likewise.
57820
57821 2007-12-23  Bruno Haible  <bruno@clisp.org>
57822
57823         * tests/test-memmem.c: Include <string.h> first.
57824
57825 2007-12-22  Bruno Haible  <bruno@clisp.org>
57826
57827         * gnulib-tool (func_create_testdir): Change $auxdir while generating
57828         the contents of $testsbase.
57829         Reported by Ralf Wildenhues.
57830
57831 2007-12-22  Bruno Haible  <bruno@clisp.org>
57832
57833         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
57834         two variables local_ldadd_before, local_ldadd_last.
57835
57836 2007-12-20  Eric Blake  <ebb9@byu.net>
57837
57838         Work around circular library issue when cross-compiling.
57839         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
57840         that progname.o does not need to pull in rpl_memcmp.
57841
57842 2007-12-19  Eric Blake  <ebb9@byu.net>
57843
57844         Fix memmem to avoid O(n^2) worst-case complexity.
57845         * lib/memmem.c (knuth_morris_pratt): New function.
57846         (memmem): Use it if first few naive iterations fail.
57847         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
57848         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
57849         * modules/memchr (License): Likewise.
57850         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
57851         malloca.
57852         * tests/test-memmem.c: Rewrite, borrowing ideas from
57853         test-mbsstr1.c; the old version wouldn't even compile!
57854         * modules/memmem-tests: New file.
57855         * lib/string.in.h (rpl_memmem): Add declaration.
57856         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
57857         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
57858         REPLACE_MEMMEM.
57859
57860 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
57861
57862         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
57863         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
57864         before any system include files, and undef after them all.  This
57865         should fix a problem on VMS reported by John E. Malmberg in
57866         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
57867
57868 2007-12-17  Eric Blake  <ebb9@byu.net>
57869
57870         Revert addition of verify, for BSD/OS.
57871         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
57872         can't handle large files, for the sake of obsolete platforms.
57873         * modules/fseeko (Depends-on): Remove verify.
57874         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
57875         * doc/functions/ftello.texi (ftello): Likewise.
57876         * doc/functions/fgetpos.texi (fgetpos): Likewise.
57877         Reported by Larry Jones.
57878
57879 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
57880
57881         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
57882         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
57883
57884 2007-12-17  Jim Meyering  <meyering@redhat.com>
57885
57886         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
57887         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
57888         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
57889         * modules/getcwd (Depends-on): Add openat.
57890         Reported by Petr Salinger.
57891
57892 2007-12-17  Bruno Haible  <bruno@clisp.org>
57893
57894         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
57895         avoid a segmentation fault of the configure test on x86_64 systems.
57896
57897 2007-12-15  Jim Meyering  <meyering@redhat.com>
57898
57899         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
57900
57901 2007-12-13  Eric Blake  <ebb9@byu.net>
57902
57903         Another fseek test.
57904         * tests/test-fseek.c (main): Also test ungetc handling.
57905         * tests/test-fseeko.c (main): Likewise.
57906         * modules/fseeko (Depends-on): Add verify.
57907         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
57908         large.
57909         Reported by Larry Jones.
57910
57911         Fix fseeko on mingw.
57912         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
57913         seek.
57914
57915         Beef up fseek tests.
57916         * tests/test-fseek.c (main): Also test eof handling.
57917         * tests/test-fseeko.c (main): Likewise.
57918         Reported by Larry Jones.
57919
57920 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
57921
57922         Fix fseeko on BSD-based platforms.
57923         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
57924         successful seek.
57925
57926 2007-12-12  Eric Blake  <ebb9@byu.net>
57927
57928         Allow circular dependency of separate libtests.a
57929         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
57930         when use_libtests.
57931
57932 2007-12-11  Eric Blake  <ebb9@byu.net>
57933
57934         Fix bug with -0.0L in previous patch.
57935         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
57936         * tests/test-isnan.c (main): Also test on zeroes.
57937         * tests/test-isnanf.c (main): Likewise.
57938         * tests/test-isnanl.h (main): Likewise.
57939
57940         Detect pseudo-denormals on x86 even when cross-compiling.
57941         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
57942         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
57943         invalid bit patterns that happen to satisfy ==.
57944
57945         Avoid link failures with separate libtests.a.
57946         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
57947         last, to satisfy circular dependencies.
57948
57949 2007-12-11  Eric Blake  <ebb9@byu.net>
57950         and Bruno Haible  <bruno@clisp.org>
57951
57952         Fix OpenBSD 4.0 <float.h> handling of long double.
57953         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
57954         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
57955         * doc/headers/float.texi (float.h): Document OpenBSD bug.
57956
57957 2007-12-11  Jim Meyering  <meyering@redhat.com>
57958
57959         * users.txt: Add libvirt.
57960
57961         Support versions of autoconf prior to 2.59c.
57962         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
57963         if it is not already defined.
57964
57965 2007-12-09  Bruno Haible  <bruno@clisp.org>
57966
57967         Let 'gnulib-tool --import' collect sources needed for the tests in
57968         tests/ rather than in lib/.
57969         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
57970         argument. If true, add rules to generate libtests.a, and put libtests.a
57971         into $(LDADD). Consider source files in subdirectories and set
57972         uses_subdirs.
57973         (func_emit_initmacro_start, func_emit_initmacro_end,
57974         func_emit_initmacro_done): Pass all arguments explicitly.
57975         (func_import): Determine two module lists main_modules,
57976         testsrelated_modules. Determine use_libtests. Determine two variables
57977         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
57978         instead of just sed_transform_lib_file. Determine two variables
57979         main_files and testsrelated_files. Compute 'files' as the union of
57980         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
57981         func_add_or_update. In the generated gnulib-comp.m4, collect the
57982         object files for tests/ in different variables than those for lib/.
57983         Substitute LIBTESTS_LIBDEPS.
57984         (func_create_testdir): Combine the uses_subdirs results from
57985         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
57986
57987 2007-12-09  Bruno Haible  <bruno@clisp.org>
57988
57989         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
57990         the build-aux directory.
57991
57992 2007-12-09  Bruno Haible  <bruno@clisp.org>
57993
57994         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
57995         introduced on 2006-09-09.
57996
57997 2007-12-07  Jim Meyering  <meyering@redhat.com>
57998
57999         Let these macros work also with autoconf-2.59.
58000         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
58001         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
58002         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
58003
58004 2007-12-06  Jim Meyering  <meyering@redhat.com>
58005
58006         Avoid a configure-time syntax error in gl_FUNC_ACL.
58007         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
58008         function in each branch, before testing the cache variable.
58009
58010 2007-12-04  Eric Blake  <ebb9@byu.net>
58011
58012         Make scripts executable.
58013         * build-aux/config.guess: Add execute permissions.
58014         * build-aux/config.sub: Likewise.
58015         * build-aux/gendocs.sh: Likewise.
58016
58017         Fix frexp on mingw.
58018         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
58019         cross-compiling.
58020         * doc/functions/frexp.texi (frexp): Document the bug.
58021
58022         Make cygwin fseeko check more reliable.
58023         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
58024         version numbers, rather than unrelated feature check.
58025         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
58026         * doc/functions/ftello.texi (ftello): Likewise.
58027         Reported by Bruno Haible.
58028
58029         * m4/strerror.m4: Bump version number.
58030
58031 2007-12-03  Bruno Haible  <bruno@clisp.org>
58032
58033         * doc/functions/mprotect.texi: Mention the mingw problem.
58034
58035 2007-12-03  Eric Blake  <ebb9@byu.net>
58036
58037         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
58038         REPLACE_STRERROR is initialized before this macro.
58039
58040 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
58041
58042         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
58043         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
58044         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
58045         put -lsec in even for programs other than 'ls'.  This fixes a problem
58046         for gettext reported by Bruno Haible in
58047         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
58048         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
58049         Add support for Solaris 10.  This isn't efficient, but should get the
58050         job done for now.
58051
58052 2007-12-03  James Youngman  <jay@gnu.org>
58053
58054         * doc/regexprops-generic.texi: change "an close-group" to "a
58055         close-group" and "illegal" to "not allowed".
58056
58057 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58058
58059         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
58060         pr_byname.h. Needed for the rare case when the maintainer has done
58061         "make maintainer-clean" in the source directory and then attempts a
58062         build outside the source directory.
58063         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
58064         scripts_byname.h.
58065
58066 2007-12-02  Martin Lambers <marlam@marlam.de>
58067             Bruno Haible  <bruno@clisp.org>
58068
58069         * lib/getpagesize.h: Remove file.
58070         * lib/unistd.in.h: Include declaration of getpagesize here.
58071         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
58072         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
58073         HAVE_SYS_PARAM_H.
58074         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
58075         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
58076         * modules/getpagesize (Files): Remove lib/getpagesize.h.
58077         (Depends-on): Add unistd.
58078         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58079         (Include): Use <unistd.h> instead of getpagesize.h.
58080         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
58081         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
58082         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
58083         gl_GETPAGESIZE invocation, already handled by module dependency.
58084         * lib/pagealign_alloc.c: Don't include getpagesize.h.
58085
58086 2007-12-02  Bruno Haible  <bruno@clisp.org>
58087
58088         * modules/strings-tests: New file.
58089         * tests/test-strings.c: New file.
58090
58091         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
58092         * lib/strings.in.h: New file.
58093         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
58094         * m4/strings_h.m4: New file.
58095         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
58096         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
58097         * modules/strings: New file.
58098         * modules/string (Makefile.am): Update.
58099         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
58100         Reported by Karl Berry.
58101
58102 2007-12-01  Eric Blake  <ebb9@byu.net>
58103
58104         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
58105         accomodate fix in cygwin 1.5.25.
58106
58107 2007-12-01  Jim Meyering  <meyering@redhat.com>
58108
58109         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
58110         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
58111         that would inhibit utf8-optimization of a regexp containing line-
58112         or buffer-anchors, e.g., `^', `$'.
58113
58114 2007-11-30  Bruno Haible  <bruno@clisp.org>
58115
58116         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
58117         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
58118         glthread_recursive_lock_init.
58119         * lib/lock.c (glthread_recursive_lock_init)
58120         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
58121         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
58122
58123 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
58124
58125         New function qset_acl, like set_acl but with syscall semantics.
58126         * lib/acl.h (qset_acl): New decl.
58127         * lib/acl.c (qset_acl): New function.
58128         (set_acl): Use new function.  Use more-consistent diagnostics.
58129
58130 2007-11-28  Jim Meyering  <meyering@redhat.com>
58131
58132         * modules/physmem (License): Change from GPL to LGPLv2+.
58133
58134 2007-11-26  Bruno Haible  <bruno@clisp.org>
58135
58136         * lib/vasnprintf.c (decode_long_double): Don't abort if the
58137         'long double' type has excess precision.
58138         Reported by Jim Meyering in
58139         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
58140
58141 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58142
58143         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
58144         Sync from <http://gnu.org/licenses>.
58145         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
58146         with license text from same location.
58147         * doc/maintain.texi, doc/standards.texi:  Sync from
58148         <http://savannah.gnu.org/projects/gnustandards>.
58149
58150 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
58151         and Jim Meyering  <meyering@redhat.com>
58152
58153         Adjust getdate' grammar to accept a slightly more regular language.
58154         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
58155         Before, the former was rejected.
58156         * lib/getdate.y (digits_to_date_time): New function, factored
58157         out of ...
58158         (number): ...here.  Just call digits_to_date_time.
58159         (hybrid): New non-terminal to handle an <unsigned number,
58160         signed relative offset> sequence consistently.
58161
58162 2007-11-18  Jim Meyering  <meyering@redhat.com>
58163
58164         Pull my changes from coreutils:
58165         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
58166         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
58167         use of $gnulib_tool_option_extras, so that it's separated from the
58168         preceding argument.
58169
58170         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
58171         * build-aux/bootstrap (cp_mark_as_generated): Create any required
58172         parent destination directories before copying a file into place.
58173
58174 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
58175
58176         bootstrap: work also with 4-argument variant of AC_INIT
58177         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
58178
58179 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
58180
58181         Port test-getaddrinfo to Solaris.
58182         Problem reported by Bruno Haible in
58183         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
58184         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
58185         explanation of setting 'hints'.
58186         Don't reject an implementation merely because it returns EAI_SERVICE.
58187         (EAI_SERVICE): Define to 0 if not defined.
58188
58189 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
58190
58191         The license of gnu-make and posix-shell is now "GPLed build tool".
58192         * modules/gnu-make (License): Likewise.
58193         * modules/posix-shell (License): Likewise.
58194
58195         New module posix-shell, for determining a POSIX shell
58196         or perhaps something that is close enough to a POSIX shell.
58197         * m4/posix-shell.m4: New file.
58198         * modules/posix-shell: New file.
58199
58200         * MODULES.html.sh: Mention new module.
58201
58202         New module gnu-make, for determining whether we're using GNU Make.
58203         * m4/gnu-make.m4: New file.
58204         * modules/gnu-make: New file.
58205         * MODULES.html.sh: Mention new module.
58206
58207 2007-11-14  Jim Meyering  <meyering@redhat.com>
58208
58209         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
58210         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
58211         use this macro to create a function _definition_.
58212         Remove useless "#undef ARGMATCH_DIE".
58213
58214 2007-11-14  Bruno Haible  <bruno@clisp.org>
58215
58216         * lib/config.charset: Update for OpenBSD 4.1.
58217         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
58218
58219 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
58220
58221         Document 64-bit #if problems in stdint.texi.
58222         * doc/headers/stdint.texi (stdint.h): Mention problems with
58223         64-bit-#if, and how to work around them.
58224
58225         Don't insist on 'long long int' support in the preprocessor.  It
58226         breaks too many things.  For example, PRIdMAX still uses a 'long
58227         long int' format with the latest Sun compiler, even though
58228         HAVE_LONG_LONG_INT isn't defined due to that compiler's
58229         preprocessor problem.  This causes the latest coreutils to dump
58230         core on Solaris 10 sparc with the Sun C compiler.
58231         Instead, fix the 2007-10-16 problem in a different way, by evaluating
58232         the troublesome expressions at configure-time, not at #if-time.
58233         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
58234         preprocessor.
58235         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
58236         compile-time C checks, done at 'configure'-time.
58237         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
58238         * modules/inttypes (Makefile): Substitute the new symbols that
58239         gl_INTTYPES_H now generates.
58240         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
58241
58242 2007-11-12  Bruno Haible  <bruno@clisp.org>
58243
58244         Tests for Unicode character classification functions.
58245
58246         * modules/unictype/bidicategory-byname-tests: New file.
58247         * modules/unictype/bidicategory-name-tests: New file.
58248         * modules/unictype/bidicategory-of-tests: New file.
58249         * modules/unictype/bidicategory-test-tests: New file.
58250         * modules/unictype/block-list-tests: New file.
58251         * modules/unictype/block-of-tests: New file.
58252         * modules/unictype/block-test-tests: New file.
58253         * modules/unictype/category-C-tests: New file.
58254         * modules/unictype/category-Cc-tests: New file.
58255         * modules/unictype/category-Cf-tests: New file.
58256         * modules/unictype/category-Cn-tests: New file.
58257         * modules/unictype/category-Co-tests: New file.
58258         * modules/unictype/category-Cs-tests: New file.
58259         * modules/unictype/category-L-tests: New file.
58260         * modules/unictype/category-Ll-tests: New file.
58261         * modules/unictype/category-Lm-tests: New file.
58262         * modules/unictype/category-Lo-tests: New file.
58263         * modules/unictype/category-Lt-tests: New file.
58264         * modules/unictype/category-Lu-tests: New file.
58265         * modules/unictype/category-M-tests: New file.
58266         * modules/unictype/category-Mc-tests: New file.
58267         * modules/unictype/category-Me-tests: New file.
58268         * modules/unictype/category-Mn-tests: New file.
58269         * modules/unictype/category-N-tests: New file.
58270         * modules/unictype/category-Nd-tests: New file.
58271         * modules/unictype/category-Nl-tests: New file.
58272         * modules/unictype/category-No-tests: New file.
58273         * modules/unictype/category-P-tests: New file.
58274         * modules/unictype/category-Pc-tests: New file.
58275         * modules/unictype/category-Pd-tests: New file.
58276         * modules/unictype/category-Pe-tests: New file.
58277         * modules/unictype/category-Pf-tests: New file.
58278         * modules/unictype/category-Pi-tests: New file.
58279         * modules/unictype/category-Po-tests: New file.
58280         * modules/unictype/category-Ps-tests: New file.
58281         * modules/unictype/category-S-tests: New file.
58282         * modules/unictype/category-Sc-tests: New file.
58283         * modules/unictype/category-Sk-tests: New file.
58284         * modules/unictype/category-Sm-tests: New file.
58285         * modules/unictype/category-So-tests: New file.
58286         * modules/unictype/category-Z-tests: New file.
58287         * modules/unictype/category-Zl-tests: New file.
58288         * modules/unictype/category-Zp-tests: New file.
58289         * modules/unictype/category-Zs-tests: New file.
58290         * modules/unictype/category-and-not-tests: New file.
58291         * modules/unictype/category-and-tests: New file.
58292         * modules/unictype/category-byname-tests: New file.
58293         * modules/unictype/category-name-tests: New file.
58294         * modules/unictype/category-none-tests: New file.
58295         * modules/unictype/category-of-tests: New file.
58296         * modules/unictype/category-or-tests: New file.
58297         * modules/unictype/category-test-withtable-tests: New file.
58298         * modules/unictype/combining-class-tests: New file.
58299         * modules/unictype/ctype-alnum-tests: New file.
58300         * modules/unictype/ctype-alpha-tests: New file.
58301         * modules/unictype/ctype-blank-tests: New file.
58302         * modules/unictype/ctype-cntrl-tests: New file.
58303         * modules/unictype/ctype-digit-tests: New file.
58304         * modules/unictype/ctype-graph-tests: New file.
58305         * modules/unictype/ctype-lower-tests: New file.
58306         * modules/unictype/ctype-print-tests: New file.
58307         * modules/unictype/ctype-punct-tests: New file.
58308         * modules/unictype/ctype-space-tests: New file.
58309         * modules/unictype/ctype-upper-tests: New file.
58310         * modules/unictype/ctype-xdigit-tests: New file.
58311         * modules/unictype/decimal-digit-tests: New file.
58312         * modules/unictype/digit-tests: New file.
58313         * modules/unictype/mirror-tests: New file.
58314         * modules/unictype/numeric-tests: New file.
58315         * modules/unictype/property-alphabetic-tests: New file.
58316         * modules/unictype/property-ascii-hex-digit-tests: New file.
58317         * modules/unictype/property-bidi-arabic-digit-tests: New file.
58318         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
58319         * modules/unictype/property-bidi-block-separator-tests: New file.
58320         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
58321         * modules/unictype/property-bidi-common-separator-tests: New file.
58322         * modules/unictype/property-bidi-control-tests: New file.
58323         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
58324         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
58325         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
58326         * modules/unictype/property-bidi-european-digit-tests: New file.
58327         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
58328         * modules/unictype/property-bidi-left-to-right-tests: New file.
58329         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
58330         * modules/unictype/property-bidi-other-neutral-tests: New file.
58331         * modules/unictype/property-bidi-pdf-tests: New file.
58332         * modules/unictype/property-bidi-segment-separator-tests: New file.
58333         * modules/unictype/property-bidi-whitespace-tests: New file.
58334         * modules/unictype/property-byname-tests: New file.
58335         * modules/unictype/property-combining-tests: New file.
58336         * modules/unictype/property-composite-tests: New file.
58337         * modules/unictype/property-currency-symbol-tests: New file.
58338         * modules/unictype/property-dash-tests: New file.
58339         * modules/unictype/property-decimal-digit-tests: New file.
58340         * modules/unictype/property-default-ignorable-code-point-tests: New file.
58341         * modules/unictype/property-deprecated-tests: New file.
58342         * modules/unictype/property-diacritic-tests: New file.
58343         * modules/unictype/property-extender-tests: New file.
58344         * modules/unictype/property-format-control-tests: New file.
58345         * modules/unictype/property-grapheme-base-tests: New file.
58346         * modules/unictype/property-grapheme-extend-tests: New file.
58347         * modules/unictype/property-grapheme-link-tests: New file.
58348         * modules/unictype/property-hex-digit-tests: New file.
58349         * modules/unictype/property-hyphen-tests: New file.
58350         * modules/unictype/property-id-continue-tests: New file.
58351         * modules/unictype/property-id-start-tests: New file.
58352         * modules/unictype/property-ideographic-tests: New file.
58353         * modules/unictype/property-ids-binary-operator-tests: New file.
58354         * modules/unictype/property-ids-trinary-operator-tests: New file.
58355         * modules/unictype/property-ignorable-control-tests: New file.
58356         * modules/unictype/property-iso-control-tests: New file.
58357         * modules/unictype/property-join-control-tests: New file.
58358         * modules/unictype/property-left-of-pair-tests: New file.
58359         * modules/unictype/property-line-separator-tests: New file.
58360         * modules/unictype/property-logical-order-exception-tests: New file.
58361         * modules/unictype/property-lowercase-tests: New file.
58362         * modules/unictype/property-math-tests: New file.
58363         * modules/unictype/property-non-break-tests: New file.
58364         * modules/unictype/property-not-a-character-tests: New file.
58365         * modules/unictype/property-numeric-tests: New file.
58366         * modules/unictype/property-other-alphabetic-tests: New file.
58367         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
58368         * modules/unictype/property-other-grapheme-extend-tests: New file.
58369         * modules/unictype/property-other-id-continue-tests: New file.
58370         * modules/unictype/property-other-id-start-tests: New file.
58371         * modules/unictype/property-other-lowercase-tests: New file.
58372         * modules/unictype/property-other-math-tests: New file.
58373         * modules/unictype/property-other-uppercase-tests: New file.
58374         * modules/unictype/property-paired-punctuation-tests: New file.
58375         * modules/unictype/property-paragraph-separator-tests: New file.
58376         * modules/unictype/property-pattern-syntax-tests: New file.
58377         * modules/unictype/property-pattern-white-space-tests: New file.
58378         * modules/unictype/property-private-use-tests: New file.
58379         * modules/unictype/property-punctuation-tests: New file.
58380         * modules/unictype/property-quotation-mark-tests: New file.
58381         * modules/unictype/property-radical-tests: New file.
58382         * modules/unictype/property-sentence-terminal-tests: New file.
58383         * modules/unictype/property-soft-dotted-tests: New file.
58384         * modules/unictype/property-space-tests: New file.
58385         * modules/unictype/property-terminal-punctuation-tests: New file.
58386         * modules/unictype/property-test-tests: New file.
58387         * modules/unictype/property-titlecase-tests: New file.
58388         * modules/unictype/property-unassigned-code-value-tests: New file.
58389         * modules/unictype/property-unified-ideograph-tests: New file.
58390         * modules/unictype/property-uppercase-tests: New file.
58391         * modules/unictype/property-variation-selector-tests: New file.
58392         * modules/unictype/property-white-space-tests: New file.
58393         * modules/unictype/property-xid-continue-tests: New file.
58394         * modules/unictype/property-xid-start-tests: New file.
58395         * modules/unictype/property-zero-width-tests: New file.
58396         * modules/unictype/scripts-tests: New file.
58397         * modules/unictype/syntax-c-ident-tests: New file.
58398         * modules/unictype/syntax-c-whitespace-tests: New file.
58399         * modules/unictype/syntax-java-ident-tests: New file.
58400         * modules/unictype/syntax-java-whitespace-tests: New file.
58401         * tests/unictype/test-bidi_byname.c: New file.
58402         * tests/unictype/test-bidi_name.c: New file.
58403         * tests/unictype/test-bidi_of.c: New file.
58404         * tests/unictype/test-bidi_test.c: New file.
58405         * tests/unictype/test-block_list.c: New file.
58406         * tests/unictype/test-block_of.c: New file.
58407         * tests/unictype/test-block_test.c: New file.
58408         * tests/unictype/test-categ_and.c: New file.
58409         * tests/unictype/test-categ_and_not.c: New file.
58410         * tests/unictype/test-categ_byname.c: New file.
58411         * tests/unictype/test-categ_name.c: New file.
58412         * tests/unictype/test-categ_none.c: New file.
58413         * tests/unictype/test-categ_of.c: New file.
58414         * tests/unictype/test-categ_or.c: New file.
58415         * tests/unictype/test-categ_test_withtable.c: New file.
58416         * tests/unictype/test-combining.c: New file.
58417         * tests/unictype/test-decdigit.c: New file.
58418         * tests/unictype/test-digit.c: New file.
58419         * tests/unictype/test-mirror.c: New file.
58420         * tests/unictype/test-numeric.c: New file.
58421         * tests/unictype/test-pr_byname.c: New file.
58422         * tests/unictype/test-pr_test.c: New file.
58423         * tests/unictype/test-predicate-part1.h: New file.
58424         * tests/unictype/test-predicate-part2.h: New file.
58425         * tests/unictype/test-scripts.c: New file.
58426         * tests/unictype/test-sy_c_ident.c: New file.
58427         * tests/unictype/test-sy_java_ident.c: New file.
58428
58429         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
58430         for Unicode 5.0.0.
58431         * tests/unictype/test-categ_Cc.c: Likewise.
58432         * tests/unictype/test-categ_Cf.c: Likewise.
58433         * tests/unictype/test-categ_Cn.c: Likewise.
58434         * tests/unictype/test-categ_Co.c: Likewise.
58435         * tests/unictype/test-categ_Cs.c: Likewise.
58436         * tests/unictype/test-categ_L.c: Likewise.
58437         * tests/unictype/test-categ_Ll.c: Likewise.
58438         * tests/unictype/test-categ_Lm.c: Likewise.
58439         * tests/unictype/test-categ_Lo.c: Likewise.
58440         * tests/unictype/test-categ_Lt.c: Likewise.
58441         * tests/unictype/test-categ_Lu.c: Likewise.
58442         * tests/unictype/test-categ_M.c: Likewise.
58443         * tests/unictype/test-categ_Mc.c: Likewise.
58444         * tests/unictype/test-categ_Me.c: Likewise.
58445         * tests/unictype/test-categ_Mn.c: Likewise.
58446         * tests/unictype/test-categ_N.c: Likewise.
58447         * tests/unictype/test-categ_Nd.c: Likewise.
58448         * tests/unictype/test-categ_Nl.c: Likewise.
58449         * tests/unictype/test-categ_No.c: Likewise.
58450         * tests/unictype/test-categ_P.c: Likewise.
58451         * tests/unictype/test-categ_Pc.c: Likewise.
58452         * tests/unictype/test-categ_Pd.c: Likewise.
58453         * tests/unictype/test-categ_Pe.c: Likewise.
58454         * tests/unictype/test-categ_Pf.c: Likewise.
58455         * tests/unictype/test-categ_Pi.c: Likewise.
58456         * tests/unictype/test-categ_Po.c: Likewise.
58457         * tests/unictype/test-categ_Ps.c: Likewise.
58458         * tests/unictype/test-categ_S.c: Likewise.
58459         * tests/unictype/test-categ_Sc.c: Likewise.
58460         * tests/unictype/test-categ_Sk.c: Likewise.
58461         * tests/unictype/test-categ_Sm.c: Likewise.
58462         * tests/unictype/test-categ_So.c: Likewise.
58463         * tests/unictype/test-categ_Z.c: Likewise.
58464         * tests/unictype/test-categ_Zl.c: Likewise.
58465         * tests/unictype/test-categ_Zp.c: Likewise.
58466         * tests/unictype/test-categ_Zs.c: Likewise.
58467         * tests/unictype/test-ctype_alnum.c: Likewise.
58468         * tests/unictype/test-ctype_alpha.c: Likewise.
58469         * tests/unictype/test-ctype_blank.c: Likewise.
58470         * tests/unictype/test-ctype_cntrl.c: Likewise.
58471         * tests/unictype/test-ctype_digit.c: Likewise.
58472         * tests/unictype/test-ctype_graph.c: Likewise.
58473         * tests/unictype/test-ctype_lower.c: Likewise.
58474         * tests/unictype/test-ctype_print.c: Likewise.
58475         * tests/unictype/test-ctype_punct.c: Likewise.
58476         * tests/unictype/test-ctype_space.c: Likewise.
58477         * tests/unictype/test-ctype_upper.c: Likewise.
58478         * tests/unictype/test-ctype_xdigit.c: Likewise.
58479         * tests/unictype/test-decdigit.h: Likewise.
58480         * tests/unictype/test-digit.h: Likewise.
58481         * tests/unictype/test-numeric.h: Likewise.
58482         * tests/unictype/test-pr_alphabetic.c: Likewise.
58483         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
58484         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
58485         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
58486         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
58487         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
58488         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
58489         * tests/unictype/test-pr_bidi_control.c: Likewise.
58490         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
58491         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
58492         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
58493         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
58494         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
58495         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
58496         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
58497         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
58498         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
58499         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
58500         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
58501         * tests/unictype/test-pr_combining.c: Likewise.
58502         * tests/unictype/test-pr_composite.c: Likewise.
58503         * tests/unictype/test-pr_currency_symbol.c: Likewise.
58504         * tests/unictype/test-pr_dash.c: Likewise.
58505         * tests/unictype/test-pr_decimal_digit.c: Likewise.
58506         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
58507         * tests/unictype/test-pr_deprecated.c: Likewise.
58508         * tests/unictype/test-pr_diacritic.c: Likewise.
58509         * tests/unictype/test-pr_extender.c: Likewise.
58510         * tests/unictype/test-pr_format_control.c: Likewise.
58511         * tests/unictype/test-pr_grapheme_base.c: Likewise.
58512         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
58513         * tests/unictype/test-pr_grapheme_link.c: Likewise.
58514         * tests/unictype/test-pr_hex_digit.c: Likewise.
58515         * tests/unictype/test-pr_hyphen.c: Likewise.
58516         * tests/unictype/test-pr_id_continue.c: Likewise.
58517         * tests/unictype/test-pr_id_start.c: Likewise.
58518         * tests/unictype/test-pr_ideographic.c: Likewise.
58519         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
58520         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
58521         * tests/unictype/test-pr_ignorable_control.c: Likewise.
58522         * tests/unictype/test-pr_iso_control.c: Likewise.
58523         * tests/unictype/test-pr_join_control.c: Likewise.
58524         * tests/unictype/test-pr_left_of_pair.c: Likewise.
58525         * tests/unictype/test-pr_line_separator.c: Likewise.
58526         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
58527         * tests/unictype/test-pr_lowercase.c: Likewise.
58528         * tests/unictype/test-pr_math.c: Likewise.
58529         * tests/unictype/test-pr_non_break.c: Likewise.
58530         * tests/unictype/test-pr_not_a_character.c: Likewise.
58531         * tests/unictype/test-pr_numeric.c: Likewise.
58532         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
58533         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
58534         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
58535         * tests/unictype/test-pr_other_id_continue.c: Likewise.
58536         * tests/unictype/test-pr_other_id_start.c: Likewise.
58537         * tests/unictype/test-pr_other_lowercase.c: Likewise.
58538         * tests/unictype/test-pr_other_math.c: Likewise.
58539         * tests/unictype/test-pr_other_uppercase.c: Likewise.
58540         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
58541         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
58542         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
58543         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
58544         * tests/unictype/test-pr_private_use.c: Likewise.
58545         * tests/unictype/test-pr_punctuation.c: Likewise.
58546         * tests/unictype/test-pr_quotation_mark.c: Likewise.
58547         * tests/unictype/test-pr_radical.c: Likewise.
58548         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
58549         * tests/unictype/test-pr_soft_dotted.c: Likewise.
58550         * tests/unictype/test-pr_space.c: Likewise.
58551         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
58552         * tests/unictype/test-pr_titlecase.c: Likewise.
58553         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
58554         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
58555         * tests/unictype/test-pr_uppercase.c: Likewise.
58556         * tests/unictype/test-pr_variation_selector.c: Likewise.
58557         * tests/unictype/test-pr_white_space.c: Likewise.
58558         * tests/unictype/test-pr_xid_continue.c: Likewise.
58559         * tests/unictype/test-pr_xid_start.c: Likewise.
58560         * tests/unictype/test-pr_zero_width.c: Likewise.
58561         * tests/unictype/test-sy_c_whitespace.c: Likewise.
58562         * tests/unictype/test-sy_java_whitespace.c: Likewise.
58563
58564 2007-11-12  Bruno Haible  <bruno@clisp.org>
58565
58566         Unicode character classification functions.
58567         * lib/unictype.h: New file.
58568         * modules/unictype/base: New file.
58569         * modules/unictype/category-L: New file.
58570         * modules/unictype/category-Lu: New file.
58571         * modules/unictype/category-Ll: New file.
58572         * modules/unictype/category-Lt: New file.
58573         * modules/unictype/category-Lm: New file.
58574         * modules/unictype/category-Lo: New file.
58575         * modules/unictype/category-M: New file.
58576         * modules/unictype/category-Mn: New file.
58577         * modules/unictype/category-Mc: New file.
58578         * modules/unictype/category-Me: New file.
58579         * modules/unictype/category-N: New file.
58580         * modules/unictype/category-Nd: New file.
58581         * modules/unictype/category-Nl: New file.
58582         * modules/unictype/category-No: New file.
58583         * modules/unictype/category-P: New file.
58584         * modules/unictype/category-Pc: New file.
58585         * modules/unictype/category-Pd: New file.
58586         * modules/unictype/category-Ps: New file.
58587         * modules/unictype/category-Pe: New file.
58588         * modules/unictype/category-Pi: New file.
58589         * modules/unictype/category-Pf: New file.
58590         * modules/unictype/category-Po: New file.
58591         * modules/unictype/category-S: New file.
58592         * modules/unictype/category-Sm: New file.
58593         * modules/unictype/category-Sc: New file.
58594         * modules/unictype/category-Sk: New file.
58595         * modules/unictype/category-So: New file.
58596         * modules/unictype/category-Z: New file.
58597         * modules/unictype/category-Zs: New file.
58598         * modules/unictype/category-Zl: New file.
58599         * modules/unictype/category-Zp: New file.
58600         * modules/unictype/category-C: New file.
58601         * modules/unictype/category-Cc: New file.
58602         * modules/unictype/category-Cf: New file.
58603         * modules/unictype/category-Cs: New file.
58604         * modules/unictype/category-Co: New file.
58605         * modules/unictype/category-Cn: New file.
58606         * modules/unictype/category-or: New file.
58607         * modules/unictype/category-of: New file.
58608         * modules/unictype/category-test: New file.
58609         * modules/unictype/category-test-withtable: New file.
58610         * modules/unictype/category-byname: New file.
58611         * modules/unictype/category-none: New file.
58612         * modules/unictype/category-and: New file.
58613         * modules/unictype/category-and-not: New file.
58614         * modules/unictype/category-name: New file.
58615         * modules/unictype/combining-class: New file.
58616         * modules/unictype/category-all: New file.
58617         * modules/unictype/bidicategory-all: New file.
58618         * modules/unictype/bidicategory-byname: New file.
58619         * modules/unictype/bidicategory-name: New file.
58620         * modules/unictype/bidicategory-of: New file.
58621         * modules/unictype/bidicategory-test: New file.
58622         * modules/unictype/decimal-digit: New file.
58623         * modules/unictype/digit: New file.
58624         * modules/unictype/numeric: New file.
58625         * modules/unictype/mirror: New file.
58626         * modules/unictype/property-white-space: New file.
58627         * modules/unictype/property-alphabetic: New file.
58628         * modules/unictype/property-other-alphabetic: New file.
58629         * modules/unictype/property-not-a-character: New file.
58630         * modules/unictype/property-default-ignorable-code-point: New file.
58631         * modules/unictype/property-other-default-ignorable-code-point: New
58632         file.
58633         * modules/unictype/property-deprecated: New file.
58634         * modules/unictype/property-logical-order-exception: New file.
58635         * modules/unictype/property-variation-selector: New file.
58636         * modules/unictype/property-private-use: New file.
58637         * modules/unictype/property-unassigned-code-value: New file.
58638         * modules/unictype/property-uppercase: New file.
58639         * modules/unictype/property-other-uppercase: New file.
58640         * modules/unictype/property-lowercase: New file.
58641         * modules/unictype/property-other-lowercase: New file.
58642         * modules/unictype/property-titlecase: New file.
58643         * modules/unictype/property-soft-dotted: New file.
58644         * modules/unictype/property-id-start: New file.
58645         * modules/unictype/property-other-id-start: New file.
58646         * modules/unictype/property-id-continue: New file.
58647         * modules/unictype/property-other-id-continue: New file.
58648         * modules/unictype/property-xid-start: New file.
58649         * modules/unictype/property-xid-continue: New file.
58650         * modules/unictype/property-pattern-white-space: New file.
58651         * modules/unictype/property-pattern-syntax: New file.
58652         * modules/unictype/property-join-control: New file.
58653         * modules/unictype/property-grapheme-base: New file.
58654         * modules/unictype/property-grapheme-extend: New file.
58655         * modules/unictype/property-other-grapheme-extend: New file.
58656         * modules/unictype/property-grapheme-link: New file.
58657         * modules/unictype/property-bidi-control: New file.
58658         * modules/unictype/property-bidi-left-to-right: New file.
58659         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
58660         * modules/unictype/property-bidi-arabic-right-to-left: New file.
58661         * modules/unictype/property-bidi-european-digit: New file.
58662         * modules/unictype/property-bidi-eur-num-separator: New file.
58663         * modules/unictype/property-bidi-eur-num-terminator: New file.
58664         * modules/unictype/property-bidi-arabic-digit: New file.
58665         * modules/unictype/property-bidi-common-separator: New file.
58666         * modules/unictype/property-bidi-block-separator: New file.
58667         * modules/unictype/property-bidi-segment-separator: New file.
58668         * modules/unictype/property-bidi-whitespace: New file.
58669         * modules/unictype/property-bidi-non-spacing-mark: New file.
58670         * modules/unictype/property-bidi-boundary-neutral: New file.
58671         * modules/unictype/property-bidi-pdf: New file.
58672         * modules/unictype/property-bidi-embedding-or-override: New file.
58673         * modules/unictype/property-bidi-other-neutral: New file.
58674         * modules/unictype/property-hex-digit: New file.
58675         * modules/unictype/property-ascii-hex-digit: New file.
58676         * modules/unictype/property-ideographic: New file.
58677         * modules/unictype/property-unified-ideograph: New file.
58678         * modules/unictype/property-radical: New file.
58679         * modules/unictype/property-ids-binary-operator: New file.
58680         * modules/unictype/property-ids-trinary-operator: New file.
58681         * modules/unictype/property-zero-width: New file.
58682         * modules/unictype/property-space: New file.
58683         * modules/unictype/property-non-break: New file.
58684         * modules/unictype/property-iso-control: New file.
58685         * modules/unictype/property-format-control: New file.
58686         * modules/unictype/property-dash: New file.
58687         * modules/unictype/property-hyphen: New file.
58688         * modules/unictype/property-punctuation: New file.
58689         * modules/unictype/property-line-separator: New file.
58690         * modules/unictype/property-paragraph-separator: New file.
58691         * modules/unictype/property-quotation-mark: New file.
58692         * modules/unictype/property-sentence-terminal: New file.
58693         * modules/unictype/property-terminal-punctuation: New file.
58694         * modules/unictype/property-currency-symbol: New file.
58695         * modules/unictype/property-math: New file.
58696         * modules/unictype/property-other-math: New file.
58697         * modules/unictype/property-paired-punctuation: New file.
58698         * modules/unictype/property-left-of-pair: New file.
58699         * modules/unictype/property-combining: New file.
58700         * modules/unictype/property-composite: New file.
58701         * modules/unictype/property-decimal-digit: New file.
58702         * modules/unictype/property-numeric: New file.
58703         * modules/unictype/property-diacritic: New file.
58704         * modules/unictype/property-extender: New file.
58705         * modules/unictype/property-ignorable-control: New file.
58706         * modules/unictype/property-test: New file.
58707         * modules/unictype/property-byname: New file.
58708         * modules/unictype/property-all: New file.
58709         * modules/unictype/scripts: New file.
58710         * modules/unictype/scripts-all: New file.
58711         * modules/unictype/block-of: New file.
58712         * modules/unictype/block-test: New file.
58713         * modules/unictype/block-list: New file.
58714         * modules/unictype/block-all: New file.
58715         * modules/unictype/syntax-c-whitespace: New file.
58716         * modules/unictype/syntax-java-whitespace: New file.
58717         * modules/unictype/syntax-c-ident: New file.
58718         * modules/unictype/syntax-java-ident: New file.
58719         * modules/unictype/ctype-alnum: New file.
58720         * modules/unictype/ctype-alpha: New file.
58721         * modules/unictype/ctype-cntrl: New file.
58722         * modules/unictype/ctype-digit: New file.
58723         * modules/unictype/ctype-graph: New file.
58724         * modules/unictype/ctype-lower: New file.
58725         * modules/unictype/ctype-print: New file.
58726         * modules/unictype/ctype-punct: New file.
58727         * modules/unictype/ctype-space: New file.
58728         * modules/unictype/ctype-upper: New file.
58729         * modules/unictype/ctype-xdigit: New file.
58730         * modules/unictype/ctype-blank: New file.
58731         * lib/unictype/bidi_byname.c: New file.
58732         * lib/unictype/bidi_name.c: New file.
58733         * lib/unictype/bidi_of.c: New file.
58734         * lib/unictype/bidi_test.c: New file.
58735         * lib/unictype/bitmap.h: New file.
58736         * lib/unictype/block_test.c: New file.
58737         * lib/unictype/blocks.c: New file.
58738         * lib/unictype/categ_C.c: New file.
58739         * lib/unictype/categ_Cc.c: New file.
58740         * lib/unictype/categ_Cf.c: New file.
58741         * lib/unictype/categ_Cn.c: New file.
58742         * lib/unictype/categ_Co.c: New file.
58743         * lib/unictype/categ_Cs.c: New file.
58744         * lib/unictype/categ_L.c: New file.
58745         * lib/unictype/categ_Ll.c: New file.
58746         * lib/unictype/categ_Lm.c: New file.
58747         * lib/unictype/categ_Lo.c: New file.
58748         * lib/unictype/categ_Lt.c: New file.
58749         * lib/unictype/categ_Lu.c: New file.
58750         * lib/unictype/categ_M.c: New file.
58751         * lib/unictype/categ_Mc.c: New file.
58752         * lib/unictype/categ_Me.c: New file.
58753         * lib/unictype/categ_Mn.c: New file.
58754         * lib/unictype/categ_N.c: New file.
58755         * lib/unictype/categ_Nd.c: New file.
58756         * lib/unictype/categ_Nl.c: New file.
58757         * lib/unictype/categ_No.c: New file.
58758         * lib/unictype/categ_P.c: New file.
58759         * lib/unictype/categ_Pc.c: New file.
58760         * lib/unictype/categ_Pd.c: New file.
58761         * lib/unictype/categ_Pe.c: New file.
58762         * lib/unictype/categ_Pf.c: New file.
58763         * lib/unictype/categ_Pi.c: New file.
58764         * lib/unictype/categ_Po.c: New file.
58765         * lib/unictype/categ_Ps.c: New file.
58766         * lib/unictype/categ_S.c: New file.
58767         * lib/unictype/categ_Sc.c: New file.
58768         * lib/unictype/categ_Sk.c: New file.
58769         * lib/unictype/categ_Sm.c: New file.
58770         * lib/unictype/categ_So.c: New file.
58771         * lib/unictype/categ_Z.c: New file.
58772         * lib/unictype/categ_Zl.c: New file.
58773         * lib/unictype/categ_Zp.c: New file.
58774         * lib/unictype/categ_Zs.c: New file.
58775         * lib/unictype/categ_and.c: New file.
58776         * lib/unictype/categ_and_not.c: New file.
58777         * lib/unictype/categ_byname.c: New file.
58778         * lib/unictype/categ_name.c: New file.
58779         * lib/unictype/categ_none.c: New file.
58780         * lib/unictype/categ_of.c: New file.
58781         * lib/unictype/categ_or.c: New file.
58782         * lib/unictype/categ_test.c: New file.
58783         * lib/unictype/combining.c: New file.
58784         * lib/unictype/ctype_alnum.c: New file.
58785         * lib/unictype/ctype_alpha.c: New file.
58786         * lib/unictype/ctype_blank.c: New file.
58787         * lib/unictype/ctype_cntrl.c: New file.
58788         * lib/unictype/ctype_digit.c: New file.
58789         * lib/unictype/ctype_graph.c: New file.
58790         * lib/unictype/ctype_lower.c: New file.
58791         * lib/unictype/ctype_print.c: New file.
58792         * lib/unictype/ctype_punct.c: New file.
58793         * lib/unictype/ctype_space.c: New file.
58794         * lib/unictype/ctype_upper.c: New file.
58795         * lib/unictype/ctype_xdigit.c: New file.
58796         * lib/unictype/decdigit.c: New file.
58797         * lib/unictype/digit.c: New file.
58798         * lib/unictype/identsyntaxmap.h: New file.
58799         * lib/unictype/mirror.c: New file.
58800         * lib/unictype/numeric.c: New file.
58801         * lib/unictype/pr_alphabetic.c: New file.
58802         * lib/unictype/pr_ascii_hex_digit.c: New file.
58803         * lib/unictype/pr_bidi_arabic_digit.c: New file.
58804         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
58805         * lib/unictype/pr_bidi_block_separator.c: New file.
58806         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
58807         * lib/unictype/pr_bidi_common_separator.c: New file.
58808         * lib/unictype/pr_bidi_control.c: New file.
58809         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
58810         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
58811         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
58812         * lib/unictype/pr_bidi_european_digit.c: New file.
58813         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
58814         * lib/unictype/pr_bidi_left_to_right.c: New file.
58815         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
58816         * lib/unictype/pr_bidi_other_neutral.c: New file.
58817         * lib/unictype/pr_bidi_pdf.c: New file.
58818         * lib/unictype/pr_bidi_segment_separator.c: New file.
58819         * lib/unictype/pr_bidi_whitespace.c: New file.
58820         * lib/unictype/pr_byname.c: New file.
58821         * lib/unictype/pr_byname.gperf: New file.
58822         * lib/unictype/pr_combining.c: New file.
58823         * lib/unictype/pr_composite.c: New file.
58824         * lib/unictype/pr_currency_symbol.c: New file.
58825         * lib/unictype/pr_dash.c: New file.
58826         * lib/unictype/pr_decimal_digit.c: New file.
58827         * lib/unictype/pr_default_ignorable_code_point.c: New file.
58828         * lib/unictype/pr_deprecated.c: New file.
58829         * lib/unictype/pr_diacritic.c: New file.
58830         * lib/unictype/pr_extender.c: New file.
58831         * lib/unictype/pr_format_control.c: New file.
58832         * lib/unictype/pr_grapheme_base.c: New file.
58833         * lib/unictype/pr_grapheme_extend.c: New file.
58834         * lib/unictype/pr_grapheme_link.c: New file.
58835         * lib/unictype/pr_hex_digit.c: New file.
58836         * lib/unictype/pr_hyphen.c: New file.
58837         * lib/unictype/pr_id_continue.c: New file.
58838         * lib/unictype/pr_id_start.c: New file.
58839         * lib/unictype/pr_ideographic.c: New file.
58840         * lib/unictype/pr_ids_binary_operator.c: New file.
58841         * lib/unictype/pr_ids_trinary_operator.c: New file.
58842         * lib/unictype/pr_ignorable_control.c: New file.
58843         * lib/unictype/pr_iso_control.c: New file.
58844         * lib/unictype/pr_join_control.c: New file.
58845         * lib/unictype/pr_left_of_pair.c: New file.
58846         * lib/unictype/pr_line_separator.c: New file.
58847         * lib/unictype/pr_logical_order_exception.c: New file.
58848         * lib/unictype/pr_lowercase.c: New file.
58849         * lib/unictype/pr_math.c: New file.
58850         * lib/unictype/pr_non_break.c: New file.
58851         * lib/unictype/pr_not_a_character.c: New file.
58852         * lib/unictype/pr_numeric.c: New file.
58853         * lib/unictype/pr_other_alphabetic.c: New file.
58854         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
58855         * lib/unictype/pr_other_grapheme_extend.c: New file.
58856         * lib/unictype/pr_other_id_continue.c: New file.
58857         * lib/unictype/pr_other_id_start.c: New file.
58858         * lib/unictype/pr_other_lowercase.c: New file.
58859         * lib/unictype/pr_other_math.c: New file.
58860         * lib/unictype/pr_other_uppercase.c: New file.
58861         * lib/unictype/pr_paired_punctuation.c: New file.
58862         * lib/unictype/pr_paragraph_separator.c: New file.
58863         * lib/unictype/pr_pattern_syntax.c: New file.
58864         * lib/unictype/pr_pattern_white_space.c: New file.
58865         * lib/unictype/pr_private_use.c: New file.
58866         * lib/unictype/pr_punctuation.c: New file.
58867         * lib/unictype/pr_quotation_mark.c: New file.
58868         * lib/unictype/pr_radical.c: New file.
58869         * lib/unictype/pr_sentence_terminal.c: New file.
58870         * lib/unictype/pr_soft_dotted.c: New file.
58871         * lib/unictype/pr_space.c: New file.
58872         * lib/unictype/pr_terminal_punctuation.c: New file.
58873         * lib/unictype/pr_test.c: New file.
58874         * lib/unictype/pr_titlecase.c: New file.
58875         * lib/unictype/pr_unassigned_code_value.c: New file.
58876         * lib/unictype/pr_unified_ideograph.c: New file.
58877         * lib/unictype/pr_uppercase.c: New file.
58878         * lib/unictype/pr_variation_selector.c: New file.
58879         * lib/unictype/pr_white_space.c: New file.
58880         * lib/unictype/pr_xid_continue.c: New file.
58881         * lib/unictype/pr_xid_start.c: New file.
58882         * lib/unictype/pr_zero_width.c: New file.
58883         * lib/unictype/scripts.c: New file.
58884         * lib/unictype/sy_c_ident.c: New file.
58885         * lib/unictype/sy_c_whitespace.c: New file.
58886         * lib/unictype/sy_java_ident.c: New file.
58887         * lib/unictype/sy_java_whitespace.c: New file.
58888
58889         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
58890         Unicode 5.0.0.
58891         * lib/unictype/blocks.h: Likewise.
58892         * lib/unictype/categ_C.h: Likewise.
58893         * lib/unictype/categ_Cc.h: Likewise.
58894         * lib/unictype/categ_Cf.h: Likewise.
58895         * lib/unictype/categ_Cn.h: Likewise.
58896         * lib/unictype/categ_Co.h: Likewise.
58897         * lib/unictype/categ_Cs.h: Likewise.
58898         * lib/unictype/categ_L.h: Likewise.
58899         * lib/unictype/categ_Ll.h: Likewise.
58900         * lib/unictype/categ_Lm.h: Likewise.
58901         * lib/unictype/categ_Lo.h: Likewise.
58902         * lib/unictype/categ_Lt.h: Likewise.
58903         * lib/unictype/categ_Lu.h: Likewise.
58904         * lib/unictype/categ_M.h: Likewise.
58905         * lib/unictype/categ_Mc.h: Likewise.
58906         * lib/unictype/categ_Me.h: Likewise.
58907         * lib/unictype/categ_Mn.h: Likewise.
58908         * lib/unictype/categ_N.h: Likewise.
58909         * lib/unictype/categ_Nd.h: Likewise.
58910         * lib/unictype/categ_Nl.h: Likewise.
58911         * lib/unictype/categ_No.h: Likewise.
58912         * lib/unictype/categ_P.h: Likewise.
58913         * lib/unictype/categ_Pc.h: Likewise.
58914         * lib/unictype/categ_Pd.h: Likewise.
58915         * lib/unictype/categ_Pe.h: Likewise.
58916         * lib/unictype/categ_Pf.h: Likewise.
58917         * lib/unictype/categ_Pi.h: Likewise.
58918         * lib/unictype/categ_Po.h: Likewise.
58919         * lib/unictype/categ_Ps.h: Likewise.
58920         * lib/unictype/categ_S.h: Likewise.
58921         * lib/unictype/categ_Sc.h: Likewise.
58922         * lib/unictype/categ_Sk.h: Likewise.
58923         * lib/unictype/categ_Sm.h: Likewise.
58924         * lib/unictype/categ_So.h: Likewise.
58925         * lib/unictype/categ_Z.h: Likewise.
58926         * lib/unictype/categ_Zl.h: Likewise.
58927         * lib/unictype/categ_Zp.h: Likewise.
58928         * lib/unictype/categ_Zs.h: Likewise.
58929         * lib/unictype/categ_of.h: Likewise.
58930         * lib/unictype/combining.h: Likewise.
58931         * lib/unictype/ctype_alnum.h: Likewise.
58932         * lib/unictype/ctype_alpha.h: Likewise.
58933         * lib/unictype/ctype_blank.h: Likewise.
58934         * lib/unictype/ctype_cntrl.h: Likewise.
58935         * lib/unictype/ctype_digit.h: Likewise.
58936         * lib/unictype/ctype_graph.h: Likewise.
58937         * lib/unictype/ctype_lower.h: Likewise.
58938         * lib/unictype/ctype_print.h: Likewise.
58939         * lib/unictype/ctype_punct.h: Likewise.
58940         * lib/unictype/ctype_space.h: Likewise.
58941         * lib/unictype/ctype_upper.h: Likewise.
58942         * lib/unictype/ctype_xdigit.h: Likewise.
58943         * lib/unictype/decdigit.h: Likewise.
58944         * lib/unictype/digit.h: Likewise.
58945         * lib/unictype/mirror.h: Likewise.
58946         * lib/unictype/numeric.h: Likewise.
58947         * lib/unictype/pr_alphabetic.h: Likewise.
58948         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
58949         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
58950         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
58951         * lib/unictype/pr_bidi_block_separator.h: Likewise.
58952         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
58953         * lib/unictype/pr_bidi_common_separator.h: Likewise.
58954         * lib/unictype/pr_bidi_control.h: Likewise.
58955         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
58956         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
58957         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
58958         * lib/unictype/pr_bidi_european_digit.h: Likewise.
58959         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
58960         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
58961         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
58962         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
58963         * lib/unictype/pr_bidi_pdf.h: Likewise.
58964         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
58965         * lib/unictype/pr_bidi_whitespace.h: Likewise.
58966         * lib/unictype/pr_combining.h: Likewise.
58967         * lib/unictype/pr_composite.h: Likewise.
58968         * lib/unictype/pr_currency_symbol.h: Likewise.
58969         * lib/unictype/pr_dash.h: Likewise.
58970         * lib/unictype/pr_decimal_digit.h: Likewise.
58971         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
58972         * lib/unictype/pr_deprecated.h: Likewise.
58973         * lib/unictype/pr_diacritic.h: Likewise.
58974         * lib/unictype/pr_extender.h: Likewise.
58975         * lib/unictype/pr_format_control.h: Likewise.
58976         * lib/unictype/pr_grapheme_base.h: Likewise.
58977         * lib/unictype/pr_grapheme_extend.h: Likewise.
58978         * lib/unictype/pr_grapheme_link.h: Likewise.
58979         * lib/unictype/pr_hex_digit.h: Likewise.
58980         * lib/unictype/pr_hyphen.h: Likewise.
58981         * lib/unictype/pr_id_continue.h: Likewise.
58982         * lib/unictype/pr_id_start.h: Likewise.
58983         * lib/unictype/pr_ideographic.h: Likewise.
58984         * lib/unictype/pr_ids_binary_operator.h: Likewise.
58985         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
58986         * lib/unictype/pr_ignorable_control.h: Likewise.
58987         * lib/unictype/pr_iso_control.h: Likewise.
58988         * lib/unictype/pr_join_control.h: Likewise.
58989         * lib/unictype/pr_left_of_pair.h: Likewise.
58990         * lib/unictype/pr_line_separator.h: Likewise.
58991         * lib/unictype/pr_logical_order_exception.h: Likewise.
58992         * lib/unictype/pr_lowercase.h: Likewise.
58993         * lib/unictype/pr_math.h: Likewise.
58994         * lib/unictype/pr_non_break.h: Likewise.
58995         * lib/unictype/pr_not_a_character.h: Likewise.
58996         * lib/unictype/pr_numeric.h: Likewise.
58997         * lib/unictype/pr_other_alphabetic.h: Likewise.
58998         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
58999         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
59000         * lib/unictype/pr_other_id_continue.h: Likewise.
59001         * lib/unictype/pr_other_id_start.h: Likewise.
59002         * lib/unictype/pr_other_lowercase.h: Likewise.
59003         * lib/unictype/pr_other_math.h: Likewise.
59004         * lib/unictype/pr_other_uppercase.h: Likewise.
59005         * lib/unictype/pr_paired_punctuation.h: Likewise.
59006         * lib/unictype/pr_paragraph_separator.h: Likewise.
59007         * lib/unictype/pr_pattern_syntax.h: Likewise.
59008         * lib/unictype/pr_pattern_white_space.h: Likewise.
59009         * lib/unictype/pr_private_use.h: Likewise.
59010         * lib/unictype/pr_punctuation.h: Likewise.
59011         * lib/unictype/pr_quotation_mark.h: Likewise.
59012         * lib/unictype/pr_radical.h: Likewise.
59013         * lib/unictype/pr_sentence_terminal.h: Likewise.
59014         * lib/unictype/pr_soft_dotted.h: Likewise.
59015         * lib/unictype/pr_space.h: Likewise.
59016         * lib/unictype/pr_terminal_punctuation.h: Likewise.
59017         * lib/unictype/pr_titlecase.h: Likewise.
59018         * lib/unictype/pr_unassigned_code_value.h: Likewise.
59019         * lib/unictype/pr_unified_ideograph.h: Likewise.
59020         * lib/unictype/pr_uppercase.h: Likewise.
59021         * lib/unictype/pr_variation_selector.h: Likewise.
59022         * lib/unictype/pr_white_space.h: Likewise.
59023         * lib/unictype/pr_xid_continue.h: Likewise.
59024         * lib/unictype/pr_xid_start.h: Likewise.
59025         * lib/unictype/pr_zero_width.h: Likewise.
59026         * lib/unictype/scripts.h: Likewise.
59027         * lib/unictype/scripts_byname.gperf: Likewise.
59028         * lib/unictype/sy_c_ident.h: Likewise.
59029         * lib/unictype/sy_c_whitespace.h: Likewise.
59030         * lib/unictype/sy_java_ident.h: Likewise.
59031         * lib/unictype/sy_java_whitespace.h: Likewise.
59032
59033         * lib/unictype/Makefile: New file.
59034         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
59035         glibc.
59036         * lib/unictype/3level.h: New file, copied from glibc.
59037         * lib/unictype/3levelbit.h: New file.
59038
59039 2007-11-11  Bruno Haible  <bruno@clisp.org>
59040
59041         * modules/gperf: New file.
59042         * modules/iconv_open (Depends-on): Add it.
59043         (Makefile.am): Remove the GPERF definition.
59044
59045 2007-11-11  Bruno Haible  <bruno@clisp.org>
59046
59047         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
59048         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
59049
59050 2007-11-11  Bruno Haible  <bruno@clisp.org>
59051
59052         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
59053         (usage): Remove function.
59054
59055 2007-11-11  Bruno Haible  <bruno@clisp.org>
59056
59057         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
59058         gl_FUNC_CEILF_LIBS.
59059         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
59060         gl_FUNC_CEIL_LIBS.
59061         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
59062         gl_FUNC_CEILL_LIBS.
59063         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
59064         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
59065         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
59066
59067 2007-11-11  Bruno Haible  <bruno@clisp.org>
59068
59069         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
59070         roundf were declared but do not exist on functions.
59071         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
59072         roundl were declared but do not exist on functions.
59073         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
59074         HAVE_FLOORL_AND_CEILL, respectively.
59075         Needed for Sun C on Solaris 10.
59076
59077 2007-11-11  Bruno Haible  <bruno@clisp.org>
59078
59079         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
59080         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
59081         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
59082         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
59083         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
59084         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
59085         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
59086         HAVE_DECL_ROUNDF.
59087         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
59088         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
59089         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
59090         of HAVE_DECL_ROUND*.
59091         * modules/math (Makefile.am): Update.
59092
59093 2007-11-10  Bruno Haible  <bruno@clisp.org>
59094
59095         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
59096         ptrdiff_t as m4/intl.m4.
59097
59098 2007-11-10  Jim Meyering  <meyering@redhat.com>
59099
59100         Avoid link failure for the argmatch test.
59101         * tests/test-argmatch.c (usage): Define function to avoid a link
59102         failure: argmatch_die requires a usage function.
59103
59104 2007-11-09  Bruno Haible  <bruno@clisp.org>
59105
59106         * doc/functions/snprintf.texi: Mention BeOS deficiency.
59107         * doc/functions/vsnprintf.texi: Likewise.
59108         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
59109         with a size argument < 2.
59110
59111 2007-11-09  Bruno Haible  <bruno@clisp.org>
59112
59113         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
59114         buffer. Fixes an inefficiency introduced on 2007-11-03.
59115
59116 2007-11-09  Bruno Haible  <bruno@clisp.org>
59117
59118         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
59119         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
59120
59121 2007-11-08  Jim Meyering  <meyering@redhat.com>
59122
59123         Change cache variable name prefix "jm_" to "gl_" everywhere.
59124         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
59125         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
59126         * m4/uptime.m4: s/gl_/jm_/
59127
59128 2007-11-07  Bruno Haible  <bruno@clisp.org>
59129
59130         Update to GNU gettext 0.17.
59131         * m4/intl.m4: Update to GNU gettext 0.17.
59132         * m4/po.m4: Likewise.
59133         * modules/gettext (Files): Remove m4/ulonglong.m4.
59134         (configure.ac): Require gettext infrastructure from version 0.17.
59135
59136 2007-11-06  Bruno Haible  <bruno@clisp.org>
59137
59138         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
59139         symbolic values are not defined in a public header.
59140         * lib/freadable.c (freadable) [QNX]: Likewise.
59141         * lib/freadahead.c (freadahead) [QNX]: Likewise.
59142         * lib/freading.c (freading) [QNX]: Likewise.
59143         * lib/fseterr.c (fseterr) [QNX]: Likewise.
59144         * lib/fwritable.c (fwritable) [QNX]: Likewise.
59145         * lib/fwriting.c (fwriting) [QNX]: Likewise.
59146         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
59147         Reported by Alain Magloire.
59148
59149         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
59150
59151 2007-11-05  Bruno Haible  <bruno@clisp.org>
59152
59153         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
59154         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
59155         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
59156         Reported by Eric Blake.
59157
59158 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59159             Bruno Haible  <bruno@clisp.org>
59160
59161         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
59162         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
59163         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
59164         (malloc): Undefine also before including <stdlib.h>.
59165         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
59166         Needed on OSF/1 4.0.
59167
59168 2007-11-05  Jim Meyering  <meyering@redhat.com>
59169
59170         git-version-gen: sync from coreutils.
59171         * build-aux/git-version-gen: Add comments.
59172         Change the first '-' to '.' in the snapshot version string,
59173         e.g., 6.9-377-08144 -> 6.9.377-08144
59174         Remove first parameter.
59175         Don't declare a version "-dirty" merely because a time
59176         stamp has changed.
59177
59178 2007-11-04  Bruno Haible  <bruno@clisp.org>
59179
59180         * lib/lock.h: Protect all macro definitions containing an 'if'
59181         statement through a "do { ... } while (0)".
59182         * lib/tls.h: Likewise.
59183
59184 2007-11-04  Bruno Haible  <bruno@clisp.org>
59185
59186         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
59187
59188 2007-11-04  Bruno Haible  <bruno@clisp.org>
59189
59190         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
59191         * modules/fprintf-posix (Depends-on): Add nocrash.
59192         * modules/snprintf-posix (Depends-on): Likewise.
59193         * modules/sprintf-posix (Depends-on): Likewise.
59194         * modules/vasnprintf-posix (Depends-on): Likewise.
59195         * modules/vasprintf-posix (Depends-on): Likewise.
59196         * modules/vfprintf-posix (Depends-on): Likewise.
59197         * modules/vsnprintf-posix (Depends-on): Likewise.
59198         * modules/vsprintf-posix (Depends-on): Likewise.
59199         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
59200         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
59201         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
59202         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
59203         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
59204         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
59205         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
59206
59207 2007-11-04  Bruno Haible  <bruno@clisp.org>
59208
59209         * modules/nocrash: New file.
59210         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
59211         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
59212
59213 2007-11-04  Bruno Haible  <bruno@clisp.org>
59214
59215         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
59216         precision handling.
59217         * tests/test-vasprintf-posix.c (test_function): Likewise.
59218         * tests/test-snprintf-posix.h (test_function): Likewise.
59219         * tests/test-sprintf-posix.h (test_function): Likewise.
59220
59221         Fix *printf behaviour for large precisions on mingw and BeOS.
59222         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
59223         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
59224         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
59225         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
59226         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59227         gl_PRINTF_PRECISION and test its result. Invoke
59228         gl_PREREQ_VASNPRINTF_PRECISION.
59229         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59230         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59231         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59232         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59233         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59234         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59235         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59236         * doc/functions/fprintf.texi: Update.
59237         * doc/functions/printf.texi: Update.
59238         * doc/functions/snprintf.texi: Update.
59239         * doc/functions/sprintf.texi: Update.
59240         * doc/functions/vfprintf.texi: Update.
59241         * doc/functions/vprintf.texi: Update.
59242         * doc/functions/vsnprintf.texi: Update.
59243         * doc/functions/vsprintf.texi: Update.
59244
59245 2007-11-04  Bruno Haible  <bruno@clisp.org>
59246
59247         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
59248
59249 2007-11-04  Bruno Haible  <bruno@clisp.org>
59250
59251         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
59252         Reported by Sylvain Beucler <beuc@gnu.org>.
59253
59254 2007-11-03  Bruno Haible  <bruno@clisp.org>
59255
59256         * tests/test-fprintf-posix2.sh: New file.
59257         * tests/test-fprintf-posix2.c: New file.
59258         * modules/fprintf-posix-tests (Files): Add them.
59259         (TESTS): Add test-fprintf-posix2.sh.
59260         (configure.ac): Check for getrlimit and setrlimit.
59261         (check_PROGRAMS): Add test-fprintf-posix2.
59262
59263         * tests/test-printf-posix2.sh: New file.
59264         * tests/test-printf-posix2.c: New file.
59265         * modules/printf-posix-tests (Files): Add them.
59266         (TESTS): Add test-printf-posix2.sh.
59267         (configure.ac): Check for getrlimit and setrlimit.
59268         (check_PROGRAMS): Add test-printf-posix2.
59269
59270         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
59271         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
59272         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
59273         (decode_double): New function, copied from decode_long_double.
59274         (scale10_round_decimal_decoded): New function, extracted from
59275         scale10_round_decimal_long_double.
59276         (scale10_round_decimal_long_double): Use it.
59277         (scale10_round_decimal_double): New function.
59278         (floorlog10): New function.
59279         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
59280         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
59281         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
59282         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59283         gl_PRINTF_ENOMEM and test its result. Invoke
59284         gl_PREREQ_VASNPRINTF_ENOMEM.
59285         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59286         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59287         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59288         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59289         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59290         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59291         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59292         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
59293         * modules/snprintf-posix (Depends-on): Likewise.
59294         * modules/sprintf-posix (Depends-on): Likewise.
59295         * modules/vasnprintf-posix (Depends-on): Likewise.
59296         * modules/vasprintf-posix (Depends-on): Likewise.
59297         * modules/vfprintf-posix (Depends-on): Likewise.
59298         * modules/vsnprintf-posix (Depends-on): Likewise.
59299         * modules/vsprintf-posix (Depends-on): Likewise.
59300         * doc/functions/fprintf.texi: Update.
59301         * doc/functions/printf.texi: Update.
59302         * doc/functions/snprintf.texi: Update.
59303         * doc/functions/sprintf.texi: Update.
59304         * doc/functions/vfprintf.texi: Update.
59305         * doc/functions/vprintf.texi: Update.
59306         * doc/functions/vsnprintf.texi: Update.
59307         * doc/functions/vsprintf.texi: Update.
59308
59309 2007-11-03  Bruno Haible  <bruno@clisp.org>
59310
59311         * modules/frexp-nolibm-tests: New file.
59312
59313         * modules/frexp-nolibm: New file.
59314         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
59315
59316 2007-11-03  Bruno Haible  <bruno@clisp.org>
59317
59318         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
59319         value is C99 compliant.
59320         Needed for OSF/1 5.1.
59321
59322 2007-11-03  Bruno Haible  <bruno@clisp.org>
59323
59324         Fix out-of-memory handling of vasnprintf.
59325         * lib/printf-parse.c: Include <errno.h>.
59326         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
59327         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
59328         is already set.
59329
59330 2007-11-02  Eric Blake  <ebb9@byu.net>
59331
59332         Fix tests on cygwin.
59333         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
59334
59335 2007-11-01  Bruno Haible  <bruno@clisp.org>
59336
59337         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
59338         warning.
59339         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
59340         needed for POSIX compatibility.
59341
59342 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
59343
59344         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
59345         for compatibility with GNU.
59346
59347 2007-11-01  Bruno Haible  <bruno@clisp.org>
59348
59349         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
59350         (putenv): Renamed from rpl_putenv. Change argument type from
59351         'const char *' to 'char *'.
59352         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
59353         of defining putenv in config.h, just set REPLACE_PUTENV.
59354         * modules/putenv (Depends-on): Add stdlib.
59355         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59356         (Include): Use <stdlib.h>.
59357         * lib/stdlib.in.h (putenv): New declaration.
59358         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
59359         REPLACE_PUTENV.
59360         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
59361         REPLACE_PUTENV.
59362         Needed for MacOS X 10.5.0.
59363         Reported by Peter O'Gorman <peter@pogma.com>.
59364
59365 2007-11-01  Jim Meyering  <meyering@redhat.com>
59366
59367         Treat an empty date string exactly like "0".
59368         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
59369         if the remaining date string (to be parsed) is empty, use "0".
59370         Reported by Mischa Molhoek and discussed in this thread:
59371         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
59372
59373 2007-10-31  Bruno Haible  <bruno@clisp.org>
59374
59375         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
59376         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
59377         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
59378         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
59379         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
59380         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
59381
59382 2007-10-31  Bruno Haible  <bruno@clisp.org>
59383
59384         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
59385         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
59386         (AC_TYPE_LONG_LONG_INT): Use it.
59387         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
59388         it as well.
59389         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
59390         to m4/longlong.m4.
59391         * modules/stdint (Files): Remove m4/ulonglong.m4.
59392         * modules/strtoull (Files): Use m4/longlong.m4 instead of
59393         m4/ulonglong.m4.
59394         * modules/strtoumax (Files): Likewise.
59395
59396 2007-10-30  Bruno Haible  <bruno@clisp.org>
59397
59398         * modules/xvasprintf-posix: New file.
59399         Suggested by Eric Blake.
59400
59401 2007-10-30  Bruno Haible  <bruno@clisp.org>
59402
59403         * modules/xprintf-posix-tests: New file.
59404         * tests/test-xprintf-posix.sh: New file.
59405         * tests/test-xprintf-posix.c: New file.
59406         * tests/test-xfprintf-posix.c: New file.
59407
59408         * modules/xprintf-posix: New file.
59409
59410 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59411
59412         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
59413         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
59414         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
59415
59416 2007-10-29  Bruno Haible  <bruno@clisp.org>
59417
59418         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
59419         contain the special marker '_cv_'.
59420         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
59421         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
59422         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
59423         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
59424         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
59425         Reported by Ralf Wildenhues.
59426
59427 2007-10-29  Bruno Haible  <bruno@clisp.org>
59428
59429         * gnulib-tool (func_import): When --lgpl is not specified, set
59430         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
59431         GPLv3.
59432         Reported by Simon Josefsson.
59433
59434 2007-10-28  Bruno Haible  <bruno@clisp.org>
59435
59436         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
59437         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
59438         HAVE_DECL_ISFINITE.
59439         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
59440         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
59441         HAVE_DECL_ISFINITE.
59442
59443 2007-10-28  Bruno Haible  <bruno@clisp.org>
59444
59445         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
59446         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
59447
59448 2007-10-28  Bruno Haible  <bruno@clisp.org>
59449
59450         Fix link errors with Sun C 5.0 on Solaris 10.
59451         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
59452         function is declared but not present in the compiler's libm.
59453         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
59454         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
59455         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
59456         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
59457         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
59458         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
59459         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
59460         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
59461         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
59462         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
59463         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
59464         HAVE_DECL_FLOORL.
59465
59466 2007-10-28  Bruno Haible  <bruno@clisp.org>
59467
59468         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
59469         gl_FUNC_FLOORL. Cache the result.
59470         (gl_FUNC_FLOORL): Use it.
59471         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
59472         gl_FUNC_CEILL. Cache the result.
59473         (gl_FUNC_CEILL): Use it.
59474
59475         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
59476         gl_FUNC_FLOOR. Cache the result.
59477         (gl_FUNC_FLOOR): Use it.
59478         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
59479         gl_FUNC_CEIL. Cache the result.
59480         (gl_FUNC_CEIL): Use it.
59481
59482         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
59483         gl_FUNC_FLOORF. Cache the result.
59484         (gl_FUNC_FLOORF): Use it.
59485         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
59486         gl_FUNC_CEILF. Cache the result.
59487         (gl_FUNC_CEILF): Use it.
59488
59489 2007-10-28  Bruno Haible  <bruno@clisp.org>
59490
59491         * gnulib-tool: Allow specifying the LGPL version number through
59492         --lgpl=2 or --lgpl=3.
59493         (func_usage): Document --lgpl with argument.
59494         Handle --lgpl=... arguments.
59495         (func_import): Recognize also gl_LGPL calls with an argument. When
59496         --lgpl=2 is used and the module's license is just LGPL, report an
59497         error. Set sed_transform_lib_file according to the lgpl variable. In
59498         the generated files, use --lgpl or gl_LGPL invocations with argument,
59499         if necessary.
59500         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
59501         an LGPv2+ license.
59502         * doc/gnulib-tool.texi (Modified imports): Update explanation of
59503         gl_LGPL macro.
59504
59505 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59506             Bruno Haible  <bruno@clisp.org>
59507
59508         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
59509         (u16_uctomb_aux): Likewise.
59510         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
59511         !HAVE_INLINE.
59512         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
59513
59514 2007-10-28  Bruno Haible  <bruno@clisp.org>
59515
59516         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
59517         Invoke AM_GETTEXT_OPTION if it exists.
59518         * modules/vasprintf: Likewise.
59519         * modules/verror: Likewise.
59520         * modules/xprintf: Likewise.
59521         * modules/xvasprintf: Likewise.
59522
59523 2007-10-27  Ben Pfaff  <blp@gnu.org>
59524
59525         * lib/math.in.h: Define isfinite macro and prototypes for
59526         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
59527         implementations.
59528         * m4/math_h.m4: New substitutions for isfinite module.
59529         * lib/isfinite.c: New file.
59530         * m4/isfinite.m4: New file.
59531         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
59532         * modules/isfinite: New file.
59533         * modules/isfinite-tests: New file.
59534         * tests/tests-isfinite.c: New file.
59535         * doc/functions/isfinite.texi: Mention isfinite module.
59536         * MODULES.html.sh: Mention new module.
59537
59538 2007-10-27  Ben Pfaff  <blp@gnu.org>
59539
59540         Ralf Wildenhues reported that Tru64 4.0D declares the round
59541         functions but does not have definitions.
59542         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
59543         cannot be found in any library, set the output variable to
59544         "missing" instead of "".
59545         * m4/round.m4: Also use our substitute if we cannot find round in
59546         any library, even if it is declared.
59547         * m4/roundf.m4: Likewise for roundf.
59548         * m4/roundl.m4: Likewise for roundl.
59549         * lib/math.in.h: Undefine roundf, round, roundl before defining
59550         their replacements, to allow for hypothetical systems where these
59551         may be defined as macros but not available in libraries.
59552
59553 2007-10-27  Bruno Haible  <bruno@clisp.org>
59554
59555         * doc/gnulib.texi: Invoke @firstparagraphindent.
59556         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
59557         changes in gnulib.
59558         (Source changes): New section.
59559
59560 2007-10-26  Bruno Haible  <bruno@clisp.org>
59561
59562         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
59563         borrowed from autoconf.
59564
59565 2007-10-26  Bruno Haible  <bruno@clisp.org>
59566
59567         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
59568         strerror returned the empty string. Needed on HP-UX 11.00.
59569
59570 2007-10-24  Micah Cowan  <micah@cowan.name>
59571
59572         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
59573         * build-aux/bootstrap: Remove support for now-unnecessary option,
59574         --cvs-user, and envvars CVS_USER, CVS_RSH.
59575
59576 2007-10-24  Jim Meyering  <meyering@redhat.com>
59577
59578         Avoid diagnostics from sha1sum when there is no cached checksum.
59579         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
59580         if the po.s1 file hasn't been created yet.
59581
59582         * build-aux/bootstrap: Sync from coreutils:
59583         2007-10-24  Jim Meyering  <meyering@redhat.com>
59584         Get gnulib from the git repository, not from an obsolete cvs one.
59585         * build-aux/bootstrap: Suggestion from Micah Cowan.
59586         2007-10-04  Jim Meyering  <jim@meyering.net>
59587         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
59588         (update_po_files): Work also when there are no .po files in po/.
59589
59590 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59591
59592         * README: Append ".git" to git and cg examples.
59593         Problem reported by Benoit Sigoure.
59594
59595 2007-10-23  Micah Cowan  <micah@cowan.name>
59596
59597         * users.txt: Add wget.
59598
59599 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59600
59601         Fix linking of some unistdio tests on FreeBSD.
59602         * modules/unistdio/u16-vsnprintf-tests
59603         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
59604         * modules/unistdio/u16-vsprintf-tests
59605         (test_u16_vsnprintf1_LDADD): Likewise.
59606         * modules/unistdio/u32-vsnprintf-tests
59607         (test_u32_vsnprintf1_LDADD): Likewise.
59608         * modules/unistdio/u32-vsprintf-tests
59609         (test_u32_vsprintf1_LDADD): Likewise.
59610         * modules/unistdio/u8-vsnprintf-tests
59611         (test_u8_vsnprintf1_LDADD): Likewise.
59612         * modules/unistdio/u8-vsprintf-tests
59613         (test_u8_vsprintf1_LDADD): Likewise.
59614         * modules/unistdio/ulc-vsnprintf-tests
59615         (test_ulc_vsnprintf1_LDADD): Likewise.
59616         * modules/unistdio/ulc-vsprintf-tests
59617         (test_ulc_vsprintf1_LDADD): Likewise.
59618
59619         Fix linking of some uniconv tests on FreeBSD.
59620         * modules/uniconv/u16-conv-from-enc-tests
59621         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
59622         * modules/uniconv/u16-conv-to-enc-tests
59623         (test_u16_conv_to_enc_LDADD): Likewise.
59624         * modules/uniconv/u16-strconv-from-enc-tests
59625         (test_u16_strconv_from_enc_LDADD): Likewise.
59626         * modules/uniconv/u16-strconv-to-enc-tests
59627         (test_u16_strconv_to_enc_LDADD): Likewise.
59628         * modules/uniconv/u32-conv-from-enc-tests
59629         (test_u32_conv_from_enc_LDADD): Likewise.
59630         * modules/uniconv/u32-conv-to-enc-tests
59631         (test_u32_conv_to_enc_LDADD): Likewise.
59632         * modules/uniconv/u32-strconv-from-enc-tests
59633         (test_u32_strconv_from_enc_LDADD): Likewise.
59634         * modules/uniconv/u32-strconv-to-enc-tests
59635         (test_u32_strconv_to_enc_LDADD): Likewise.
59636         * modules/uniconv/u8-conv-from-enc-tests
59637         (test_u8_conv_from_enc_LDADD): Likewise.
59638         * modules/uniconv/u8-conv-to-enc-tests
59639         (test_u8_conv_to_enc_LDADD): Likewise.
59640         * modules/uniconv/u8-strconv-from-enc-tests
59641         (test_u8_strconv_from_enc_LDADD): Likewise.
59642         * modules/uniconv/u8-strconv-to-enc-tests
59643         (test_u8_strconv_to_enc_LDADD): Likewise.
59644
59645 2007-10-22  Bruno Haible  <bruno@clisp.org>
59646
59647         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
59648         size.
59649
59650 2007-10-22  Eric Blake  <ebb9@byu.net>
59651
59652         Tweak x*printf documentation.
59653         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
59654         variable name and comments.
59655         Suggested by Bruno Haible.
59656
59657 2007-10-22  Bruno Haible  <bruno@clisp.org>
59658
59659         * lib/acl.c (copy_acl): Fix file name in comment.
59660
59661 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
59662
59663         Fix Tru64 problem with stdbool.h.
59664         * lib/stdbool.in.h (false, true):
59665         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
59666         Don't declare as an enum in this situation; it runs afoul of Tru64.
59667         Problem reported by Steven M. Schweda in
59668         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
59669
59670 2007-10-22  Eric Blake  <ebb9@byu.net>
59671
59672         Also wrap vf?printf.
59673         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
59674         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
59675         (xvprintf, xvfprintf): New functions.
59676
59677 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59678
59679         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
59680         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
59681
59682         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
59683         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
59684
59685 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
59686
59687         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
59688         by Bruno Haible.
59689
59690 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59691
59692         * lib/getloadavg.c
59693         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
59694         Undef `sys' after including sys/table.h, for Tru64 4.0D.
59695
59696         * tests/test-i-ring.c: Work for C89.
59697
59698 2007-10-22  Bruno Haible  <bruno@clisp.org>
59699
59700         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
59701         -1u, in preprocessor expression, so that we don't test for the bug
59702         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
59703         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
59704
59705 2007-10-22  Eric Blake  <ebb9@byu.net>
59706
59707         * tests/test-yesno.sh: Silence stderr during test.
59708
59709 2007-10-22  Simon Josefsson  <simon@josefsson.org>
59710
59711         * modules/crypto/gc-camellia: New file.
59712
59713         * m4/gc-camellia.m4: New file.
59714
59715         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
59716
59717         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
59718
59719 2007-10-22  Simon Josefsson  <simon@josefsson.org>
59720
59721         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
59722         --help to stdout.  Reported by sms@antinode.org (Steven
59723         M. Schweda).
59724
59725 2007-10-22  Simon Josefsson  <simon@josefsson.org>
59726
59727         * users.txt: Fix link to libksba.
59728
59729 2007-10-21  Ben Pfaff  <blp@gnu.org>
59730
59731         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
59732         round.c roundf implementation that depends on floorf and ceilf to
59733         be tested unconditionally.
59734
59735 2007-10-21  Ben Pfaff  <blp@gnu.org>
59736
59737         * m4/check-libm-func.m4: Removed.
59738         * m4/check-math-lib.m4: New file.
59739         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
59740         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
59741         definition and lack of AC_LIBOBJ([roundf]).
59742         * m4/roundl.m4: Ditto, and similarly for roundl.
59743         * modules/round: Reference new m4 file.
59744         * modules/roundf: Ditto.
59745         * modules/roundl: Ditto.
59746         * tests/test-round2.c (main): Use ROUND instead of round.
59747         Bug report from Bruno Haible.
59748
59749 2007-10-21  Bruno Haible  <bruno@clisp.org>
59750
59751         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
59752         context.
59753
59754 2007-10-21  Bruno Haible  <bruno@clisp.org>
59755
59756         * tests/test-wcwidth.c (main): Allow negative result for some control
59757         characters.
59758
59759         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
59760         Needed on OSF/1 5.1.
59761
59762 2007-10-21  Bruno Haible  <bruno@clisp.org>
59763
59764         * tests/test-floorf1.c: Include isnanf.h.
59765         (main): Use isnanf() instead of isnan().
59766         * tests/test-ceilf1.c: Include isnanf.h.
59767         (main): Use isnanf() instead of isnan().
59768         * tests/test-truncf1.c: Include isnanf.h.
59769         (main): Use isnanf() instead of isnan().
59770         * tests/test-roundf1.c: Include isnanf.h.
59771         (main): Use isnanf() instead of isnan().
59772
59773 2007-10-21  Eric Blake  <ebb9@byu.net>
59774
59775         * users.txt: Update URL for m4.
59776
59777 2007-10-21  Bruno Haible  <bruno@clisp.org>
59778
59779         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
59780
59781 2007-10-21  Bruno Haible  <bruno@clisp.org>
59782
59783         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
59784         Git's management files if the CVS files are not present.
59785
59786 2007-10-20  Bruno Haible  <bruno@clisp.org>
59787
59788         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
59789         gcc-3.4.x.
59790
59791 2007-10-20  Ben Pfaff  <blp@gnu.org>
59792
59793         * lib/math.in.h: Declare round, roundf, roundl if we are providing
59794         implementations.
59795         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
59796         * lib/round.c: New file.
59797         * lib/roundf.c: New file.
59798         * lib/roundl.c: New file.
59799         * m4/round.m4: New file.
59800         * m4/roundf.m4: New file.
59801         * m4/roundl.m4: New file.
59802         * m4/check-libm-func-m4: New file.
59803         * modules/math: Replace round, roundf, roundl related @VARS@ in
59804         math.in.h.
59805         * modules/round: New file.
59806         * modules/round-tests: New file.
59807         * modules/roundf: New file.
59808         * modules/roundf-tests: New file.
59809         * modules/roundl: New file.
59810         * modules/roundl-tests: New file.
59811         * tests/test-round1.c: New file.
59812         * tests/test-round2.c: New file.
59813         * tests/test-roundf1.c: New file.
59814         * tests/test-roundf2.c: New file.
59815         * tests/test-roundl.c: New file.
59816         * doc/functions/round.texi: Mention round module.
59817         * doc/functions/roundf.texi: Mention roundf module.
59818         * doc/functions/roundl.texi: Mention roundl module.
59819         * MODULES.html.sh: Mention new modules.
59820         Thanks to Bruno Haible for suggestions.
59821
59822 2007-10-20  Jim Meyering  <meyering@redhat.com>
59823
59824         * lib/xprintf.c: Include <config.h> unconditionally.
59825
59826         Change xprintf's license to GPL.
59827         * modules/xprintf (License): s/LGPL/GPL/, since this module
59828         depends on modules (exit and exitfail) which are GPL.
59829         Suggestion from Bruno Haible.
59830
59831         xprintf fixes.
59832         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
59833         Use a clearer diagnostic.
59834         Patch from Bruno Haible.
59835
59836 2007-10-20  Bruno Haible  <bruno@clisp.org>
59837
59838         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
59839         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
59840         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59841
59842 2007-10-20  Bruno Haible  <bruno@clisp.org>
59843
59844         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
59845         precision in the comparison result > x - 1 or similar.
59846         * tests/test-ceilf2.c (correct_result_p): Likewise.
59847         * tests/test-truncf2.c (correct_result_p): Likewise.
59848         * tests/test-trunc2.c (correct_result_p): Likewise.
59849         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59850
59851 2007-10-20  Bruno Haible  <bruno@clisp.org>
59852
59853         * modules/ceil: New file.
59854         * m4/ceil.m4: New file.
59855         * doc/functions/ceil.texi: Mention the 'ceil' module.
59856
59857 2007-10-20  Bruno Haible  <bruno@clisp.org>
59858
59859         * modules/floor: New file.
59860         * m4/floor.m4: New file.
59861         * doc/functions/floor.texi: Mention the 'floor' module.
59862
59863 2007-10-20  Bruno Haible  <bruno@clisp.org>
59864
59865         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
59866         of %a.
59867         * modules/floorf-tests (Depends-on): Likewise.
59868         * modules/truncf-tests (Depends-on): Likewise.
59869         * modules/trunc-tests (Depends-on): Likewise.
59870         Reported by Ben Pfaff.
59871
59872 2007-10-19  Jim Meyering  <meyering@redhat.com>
59873
59874         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
59875         Don't bother testing specific errno values.  Just test ferror.
59876
59877         New module: xprintf
59878         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
59879
59880 2007-10-19  Bruno Haible  <bruno@clisp.org>
59881
59882         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
59883         syntax.
59884         * modules/javaexec (Makefile.am): Likewise.
59885         * modules/relocatable-prog (Makefile.am): Likewise.
59886         Suggested by Jim Meyering.
59887
59888 2007-10-18  Bruno Haible  <bruno@clisp.org>
59889
59890         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
59891         Reported by Jim Meyering.
59892
59893 2007-10-18  Eric Blake  <ebb9@byu.net>
59894
59895         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
59896
59897 2007-10-18  Bruno Haible  <bruno@clisp.org>
59898
59899         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
59900         the format string into writable memory. Needed in Fortify conditions.
59901
59902 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
59903             Bruno Haible  <bruno@clisp.org>
59904
59905         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
59906         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
59907         * modules/trim (Depends-on): Add mbchar.
59908         (configure.ac): Add gl_FUNC_MBRTOWC.
59909         (Makefile.am): Augment lib_SOURCES.
59910
59911 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
59912
59913         Modify glob.c to use fstatat and dirfd, to simplify it.
59914         Suggested by Eric Blake.
59915         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
59916         Don't include <stdbool.h>; not used.
59917         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
59918         (link_exists_p): Simplify implementation, since we can now assume
59919         dirfd and fstatat.
59920         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
59921
59922 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59923
59924         * gnulib-tool (func_get_dependencies): Fix sed script to
59925         match only tests.
59926
59927 2007-10-17  Bruno Haible  <bruno@clisp.org>
59928
59929         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
59930         allow locale names without encoding suffix.
59931         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
59932         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
59933
59934 2007-10-16  Bruno Haible  <bruno@clisp.org>
59935
59936         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
59937         * lib/getgroups.c (getgroups): Likewise.
59938         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
59939
59940 2007-10-16  Bruno Haible  <bruno@clisp.org>
59941
59942         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
59943         * modules/malloc-posix (License): Likewise.
59944         * modules/realloc-posix (License): Likewise.
59945         * modules/calloc-posix (License): Likewise.
59946         * modules/intprops (License): Change from GPL to LGPL, with
59947         Paul Eggert's approval.
59948
59949 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
59950
59951         Merge glibc changes into lib/glob.c.
59952
59953         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
59954         2007-10-15 04:59:03 UTC.  Here are the changes:
59955
59956         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
59957
59958         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
59959
59960         * lib/glob.c: Add some branch prediction throughout.
59961
59962         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
59963
59964         [BZ #5103]
59965         * lib/glob.c (glob): Recognize patterns starting \/.
59966
59967         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
59968
59969         [BZ #3996]
59970         * lib/glob.c (attribute_hidden): Define if not defined.
59971         (glob): Unescape dirname, filename or username when needed and not
59972         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
59973         is NULL.  Handle unescaped [ in pattern without closing ].
59974         Don't pass GLOB_CHECK down to recursive glob for directories.
59975         (__glob_pattern_type): New function.
59976         (__glob_pattern_p): Implement using __glob_pattern_type.
59977         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
59978         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
59979         Remove unreachable code.
59980
59981         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
59982
59983         * lib/glob.c (glob_in_dir): Add some comments and asserts to
59984         explain why there are no leaks.
59985
59986         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
59987
59988         [BZ #3253]
59989         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
59990         time, rather allocate increasingly bigger arrays of pointers, if
59991         possible with alloca, if too large with malloc.
59992
59993 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
59994
59995         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
59996         Problem reported by H.Merijn Brand in
59997         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
59998         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
59999         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
60000
60001 2007-10-15  Bruno Haible  <bruno@clisp.org>
60002
60003         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
60004         with explicit rpl_ prefix.
60005         * lib/fopen.c (fopen): Likewise.
60006         * lib/freopen.c (freopen): Likewise.
60007         * lib/iconv.c (iconv): Likewise.
60008         * lib/iconv_close.c (iconv_close): Likewise.
60009
60010 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60011
60012         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
60013
60014 2007-10-15  Bruno Haible  <bruno@clisp.org>
60015
60016         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
60017         <stddef.h> instead of <stdlib.h> since we only need NULL.
60018         Reported by Ben Pfaff <blp@cs.stanford.edu>.
60019
60020 2007-10-15  Bruno Haible  <bruno@clisp.org>
60021
60022         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
60023         Replace paragraph talking about LIBOBJS.
60024         Reported by Colin Watson <cjwatson@debian.org>.
60025
60026 2007-10-15  Bruno Haible  <bruno@clisp.org>
60027
60028         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
60029         <stdlib.h> before using NULL.
60030
60031 2007-10-15  Simon Josefsson  <simon@josefsson.org>
60032
60033         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
60034         Reported by Albert Chin <china@thewrittenword.com>.
60035
60036 2007-10-14  Bruno Haible  <bruno@clisp.org>
60037
60038         * modules/iconv_open-utf-tests: New file.
60039         * tests/test-iconv-utf.c: New file.
60040
60041         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
60042         * modules/iconv_open-utf: New file.
60043         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
60044         (iconv, iconv_close): New declarations.
60045         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
60046         be defined.
60047         (iconv_open): Add special handling of conversion between UTF-8 and
60048         UTF-{16,32}{BE,LE}.
60049         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
60050         * lib/iconv_close.c: New file.
60051         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
60052         gl_FUNC_ICONV_OPEN.
60053         (gl_FUNC_ICONV_OPEN): Use it.
60054         (gl_FUNC_ICONV_OPEN_UTF): New macro.
60055         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
60056         and REPLACE_ICONV_UTF.
60057         * modules/iconv_open (Depends-on): Add c-strcase.
60058         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
60059         ICONV_CONST.
60060         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
60061
60062 2007-10-13  Albert Chin  <china@thewrittenword.com>
60063             Bruno Haible  <bruno@clisp.org>
60064
60065         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
60066         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
60067
60068 2007-10-13  Bruno Haible  <bruno@clisp.org>
60069
60070         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
60071         defined, use the ISO C99 inline semantics.
60072         * lib/argp.h (ARGP_EI): Likewise.
60073
60074 2007-10-13  Bruno Haible  <bruno@clisp.org>
60075
60076         Handle 'inline' change in gcc 4.3.0.
60077         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
60078         argp_fmtstream_write, argp_fmtstream_set_lmargin,
60079         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
60080         argp_fmtstream_point): Disable 'extern' declaration if the function
60081         definition is going to be provided inline.
60082         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
60083         semantics, not the ISO C99 inline semantics.
60084         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
60085         'extern' declaration if the function definition is going to be provided
60086         inline.
60087         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
60088         the GNU C inline semantics, not the ISO C99 inline semantics. With
60089         GCC 4.2, avoid a warning.
60090
60091 2007-10-13  Bruno Haible  <bruno@clisp.org>
60092
60093         * lib/freading.h (freading): Enable the use of __freading for
60094         glibc >= 2.7.
60095         * lib/freading.c (freading): Likewise.
60096
60097 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
60098
60099         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
60100         "warning: C99 inline functions are not supported; using GNU89".
60101
60102 2007-10-12  Bruno Haible  <bruno@clisp.org>
60103
60104         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
60105         of 2.
60106         * tests/test-ceilf2.c: New file.
60107         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
60108
60109         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
60110         * modules/ceilf-tests: Update.
60111
60112 2007-10-12  Bruno Haible  <bruno@clisp.org>
60113
60114         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
60115         of 2.
60116         * tests/test-floorf2.c: New file.
60117         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
60118
60119         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
60120         * modules/floorf-tests: Update.
60121
60122 2007-10-12  Bruno Haible  <bruno@clisp.org>
60123
60124         * tests/test-trunc2.c: New file.
60125         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
60126
60127         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
60128         * modules/trunc-tests: Update.
60129
60130 2007-10-12  Bruno Haible  <bruno@clisp.org>
60131
60132         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
60133         of 2.
60134         * tests/test-truncf2.c: New file.
60135         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
60136
60137         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
60138         * modules/truncf-tests: Update.
60139
60140 2007-10-11  Eric Blake  <ebb9@byu.net>
60141
60142         Don't claim strerror is broken on Interix.
60143         * doc/functions/strerror.texi (strerror): Known broken systems are
60144         now Solaris 8, and not Interix.
60145         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
60146         Interix on cross-compile.
60147         Reported by Martin Koeppe in
60148         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
60149
60150 2007-10-11  Bruno Haible  <bruno@clisp.org>
60151
60152         * modules/i-ring-tests: New file.
60153         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
60154         instead of assert.
60155
60156 2007-10-11  Bruno Haible  <bruno@clisp.org>
60157
60158         * modules/filenamecat-tests: New file.
60159         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
60160         * lib/filenamecat.c: Remove test code.
60161
60162 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
60163
60164         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
60165
60166         * lib/strerror.c: Include <string.h> always, to test interface,
60167         and to remove the need for the dummy.
60168         Include intprops.h to compute width instead of doing it ourselves
60169         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
60170         (strerror): Define it to return NULL if there's no system strerror.
60171         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
60172         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
60173         ancient pre-strerror Unix systems well any more.  Saying "unknown
60174         system error" is enough.
60175         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
60176         simpler strerror.c implementation.
60177         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
60178         Simplify the tests to reflect the simpler strerror implementation.
60179         * modules/strerror (Depends-on): Add intprops.
60180
60181 2007-10-09  Eric Blake  <ebb9@byu.net>
60182
60183         Silence test-fpending.
60184         * modules/fpending-tests (Files): Add wrapper script.
60185         * tests/test-fpending.sh: New file.
60186
60187 2007-10-09  Bruno Haible  <bruno@clisp.org>
60188
60189         * MODULES.html.sh (func_module): Don't create a hyperlink for
60190         function names like 'printf_frexp'.
60191         (Misc): Add crc, memxor.
60192         (Characteristics of floating types): New section.
60193         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
60194         isnanf-nolibm, signbit, trunc, truncf, truncl.
60195         (Enhancements for ISO C 99 functions): New subsection Input/output.
60196         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
60197         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
60198         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
60199         (Compatibility checks for POSIX:2001 functions): Add clock-time.
60200         (Enhancements for POSIX:2001 functions): Add chdir-long.
60201         (File system functions): Add areadlink, chdir-safer, read-file.
60202         Remove cycle-check.
60203         (File system as inode set): New section.
60204         (Date and time): Add gethrxtime.
60205         (Multithreading): Add openmp.
60206         (Internationalization functions): Add localename.
60207         (Unicode string functions): Add unistr/u*-mbsnlen.
60208         (Support for maintaining and releasing projects): Add git-version-gen.
60209         (Lone files): Remove directories.
60210
60211 2007-10-08  Ben Pfaff  <blp@gnu.org>
60212
60213         * lib/xmalloca.h: Fix typo in comment.
60214
60215 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
60216
60217         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
60218         when avoiding problems with integer overflow.  Use a portable test
60219         instead.
60220
60221 2007-10-08  Simon Josefsson  <simon@josefsson.org>
60222
60223         * modules/dummy (License): Change to LGPLv2+.
60224         * modules/float (License): Likewise
60225         * modules/realloc (License): Likewise
60226         * modules/stdlib (License): Likewise
60227
60228 2007-10-07  Bruno Haible  <bruno@clisp.org>
60229
60230         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
60231         * floor.c (TWO_MANT_DIG): Likewise.
60232         * ceil.c (TWO_MANT_DIG): Likewise.
60233         Reported by Ben Pfaff.
60234
60235 2007-10-07  Bruno Haible  <bruno@clisp.org>
60236
60237         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
60238         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
60239         * lib/frexp.c (FUNC): Likewise.
60240         * lib/printf-frexp.h (printf_frexp): Likewise.
60241         * lib/printf-frexpl.h (printf_frexpl): Likewise.
60242         * lib/printf-frexp.c (FUNC): Likewise.
60243         Suggested by Jim Meyering.
60244
60245 2007-10-07  Jim Meyering  <meyering@redhat.com>
60246
60247         Make xnanosleep's integer overflow test more robust.
60248         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
60249         so that gcc-4.3.0 doesn't optimize away this test for overflow.
60250
60251 2007-10-07  Bruno Haible  <bruno@clisp.org>
60252
60253         * NEWS: Mention the license change.
60254
60255         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
60256         abbreviations in the modules files.
60257
60258         Change copyright notice from GPLv2+ to GPLv3+.
60259         * README: Change copyright notice.
60260         * MODULES.html.sh: Likewise.
60261         * build-aux/bootstrap.conf: Likewise.
60262         * build-aux/config.libpath: Likewise.
60263         * build-aux/csharpcomp.sh.in: Likewise.
60264         * build-aux/csharpexec.sh.in: Likewise.
60265         * build-aux/install-reloc: Likewise.
60266         * build-aux/javacomp.sh.in: Likewise.
60267         * build-aux/javaexec.sh.in: Likewise.
60268         * build-aux/ldd.sh.in: Likewise.
60269         * build-aux/reloc-ldflags: Likewise.
60270         * build-aux/relocatable.sh.in: Likewise.
60271         * build-aux/x-to-1.in: Likewise.
60272         * check-module: Likewise.
60273         * config/srclistvars.sh: Likewise.
60274         * gnulib-tool: Likewise.
60275         * lib/acl-internal.h: Likewise.
60276         * lib/acl.c: Likewise.
60277         * lib/acl.h: Likewise.
60278         * lib/acl_entries.c: Likewise.
60279         * lib/areadlink-with-size.c: Likewise.
60280         * lib/areadlink.c: Likewise.
60281         * lib/areadlink.h: Likewise.
60282         * lib/argmatch.c: Likewise.
60283         * lib/argmatch.h: Likewise.
60284         * lib/argp-ba.c: Likewise.
60285         * lib/argp-eexst.c: Likewise.
60286         * lib/argp-fmtstream.c: Likewise.
60287         * lib/argp-fmtstream.h: Likewise.
60288         * lib/argp-fs-xinl.c: Likewise.
60289         * lib/argp-help.c: Likewise.
60290         * lib/argp-namefrob.h: Likewise.
60291         * lib/argp-parse.c: Likewise.
60292         * lib/argp-pin.c: Likewise.
60293         * lib/argp-pv.c: Likewise.
60294         * lib/argp-pvh.c: Likewise.
60295         * lib/argp-xinl.c: Likewise.
60296         * lib/argp.h: Likewise.
60297         * lib/at-func.c: Likewise.
60298         * lib/atanl.c: Likewise.
60299         * lib/backupfile.c: Likewise.
60300         * lib/backupfile.h: Likewise.
60301         * lib/basename.c: Likewise.
60302         * lib/binary-io.h: Likewise.
60303         * lib/byteswap.in.h: Likewise.
60304         * lib/c-stack.c: Likewise.
60305         * lib/c-stack.h: Likewise.
60306         * lib/c-strcasestr.c: Likewise.
60307         * lib/c-strcasestr.h: Likewise.
60308         * lib/c-strstr.c: Likewise.
60309         * lib/c-strstr.h: Likewise.
60310         * lib/c-strtod.c: Likewise.
60311         * lib/calloc.c: Likewise.
60312         * lib/canon-host.c: Likewise.
60313         * lib/canon-host.h: Likewise.
60314         * lib/canonicalize-lgpl.c: Likewise.
60315         * lib/canonicalize.c: Likewise.
60316         * lib/canonicalize.h: Likewise.
60317         * lib/ceil.c: Likewise.
60318         * lib/ceilf.c: Likewise.
60319         * lib/ceill.c: Likewise.
60320         * lib/chdir-long.c: Likewise.
60321         * lib/chdir-long.h: Likewise.
60322         * lib/chdir-safer.c: Likewise.
60323         * lib/chdir-safer.h: Likewise.
60324         * lib/chown.c: Likewise.
60325         * lib/classpath.c: Likewise.
60326         * lib/classpath.h: Likewise.
60327         * lib/clean-temp.c: Likewise.
60328         * lib/clean-temp.h: Likewise.
60329         * lib/cloexec.c: Likewise.
60330         * lib/close-stream.c: Likewise.
60331         * lib/closein.c: Likewise.
60332         * lib/closein.h: Likewise.
60333         * lib/closeout.c: Likewise.
60334         * lib/closeout.h: Likewise.
60335         * lib/concat-filename.c: Likewise.
60336         * lib/copy-file.c: Likewise.
60337         * lib/copy-file.h: Likewise.
60338         * lib/count-one-bits.h: Likewise.
60339         * lib/crc.c: Likewise.
60340         * lib/crc.h: Likewise.
60341         * lib/creat-safer.c: Likewise.
60342         * lib/csharpcomp.c: Likewise.
60343         * lib/csharpcomp.h: Likewise.
60344         * lib/csharpexec.c: Likewise.
60345         * lib/csharpexec.h: Likewise.
60346         * lib/cycle-check.c: Likewise.
60347         * lib/cycle-check.h: Likewise.
60348         * lib/diacrit.c: Likewise.
60349         * lib/diacrit.h: Likewise.
60350         * lib/diffseq.h: Likewise.
60351         * lib/dirchownmod.c: Likewise.
60352         * lib/dirent.in.h: Likewise.
60353         * lib/dirfd.c: Likewise.
60354         * lib/dirfd.h: Likewise.
60355         * lib/dirname.c: Likewise.
60356         * lib/dirname.h: Likewise.
60357         * lib/dummy.c: Likewise.
60358         * lib/dup-safer.c: Likewise.
60359         * lib/dup2.c: Likewise.
60360         * lib/eealloc.h: Likewise.
60361         * lib/error.c: Likewise.
60362         * lib/error.h: Likewise.
60363         * lib/euidaccess.c: Likewise.
60364         * lib/exclude.c: Likewise.
60365         * lib/exclude.h: Likewise.
60366         * lib/execute.c: Likewise.
60367         * lib/execute.h: Likewise.
60368         * lib/exitfail.c: Likewise.
60369         * lib/exitfail.h: Likewise.
60370         * lib/expl.c: Likewise.
60371         * lib/fatal-signal.c: Likewise.
60372         * lib/fatal-signal.h: Likewise.
60373         * lib/fbufmode.c: Likewise.
60374         * lib/fbufmode.h: Likewise.
60375         * lib/fchdir.c: Likewise.
60376         * lib/fchmodat.c: Likewise.
60377         * lib/fchownat.c: Likewise.
60378         * lib/fcntl--.h: Likewise.
60379         * lib/fcntl-safer.h: Likewise.
60380         * lib/fcntl.in.h: Likewise.
60381         * lib/fd-safer.c: Likewise.
60382         * lib/fflush.c: Likewise.
60383         * lib/file-has-acl.c: Likewise.
60384         * lib/file-set.c: Likewise.
60385         * lib/file-type.c: Likewise.
60386         * lib/file-type.h: Likewise.
60387         * lib/fileblocks.c: Likewise.
60388         * lib/filemode.c: Likewise.
60389         * lib/filemode.h: Likewise.
60390         * lib/filename.h: Likewise.
60391         * lib/filenamecat.c: Likewise.
60392         * lib/filenamecat.h: Likewise.
60393         * lib/findprog.c: Likewise.
60394         * lib/findprog.h: Likewise.
60395         * lib/float.in.h: Likewise.
60396         * lib/floor.c: Likewise.
60397         * lib/floorf.c: Likewise.
60398         * lib/floorl.c: Likewise.
60399         * lib/fopen-safer.c: Likewise.
60400         * lib/fopen.c: Likewise.
60401         * lib/fpending.c: Likewise.
60402         * lib/fpending.h: Likewise.
60403         * lib/fprintf.c: Likewise.
60404         * lib/fprintftime.h: Likewise.
60405         * lib/fpucw.h: Likewise.
60406         * lib/fpurge.c: Likewise.
60407         * lib/fpurge.h: Likewise.
60408         * lib/freadable.c: Likewise.
60409         * lib/freadable.h: Likewise.
60410         * lib/freadahead.c: Likewise.
60411         * lib/freadahead.h: Likewise.
60412         * lib/freading.c: Likewise.
60413         * lib/freading.h: Likewise.
60414         * lib/free.c: Likewise.
60415         * lib/freopen.c: Likewise.
60416         * lib/frexp.c: Likewise.
60417         * lib/frexpl.c: Likewise.
60418         * lib/fseek.c: Likewise.
60419         * lib/fseterr.c: Likewise.
60420         * lib/fseterr.h: Likewise.
60421         * lib/fstatat.c: Likewise.
60422         * lib/fstrcmp.c: Likewise.
60423         * lib/fstrcmp.h: Likewise.
60424         * lib/fsusage.c: Likewise.
60425         * lib/fsusage.h: Likewise.
60426         * lib/ftell.c: Likewise.
60427         * lib/ftello.c: Likewise.
60428         * lib/fts-cycle.c: Likewise.
60429         * lib/fts.c: Likewise.
60430         * lib/fts_.h: Likewise.
60431         * lib/full-read.c: Likewise.
60432         * lib/full-read.h: Likewise.
60433         * lib/full-write.c: Likewise.
60434         * lib/full-write.h: Likewise.
60435         * lib/fwritable.c: Likewise.
60436         * lib/fwritable.h: Likewise.
60437         * lib/fwriteerror.c: Likewise.
60438         * lib/fwriteerror.h: Likewise.
60439         * lib/fwriting.c: Likewise.
60440         * lib/fwriting.h: Likewise.
60441         * lib/gcd.c: Likewise.
60442         * lib/gcd.h: Likewise.
60443         * lib/getcwd.c: Likewise.
60444         * lib/getdate.h: Likewise.
60445         * lib/getdate.y: Likewise.
60446         * lib/getdomainname.c: Likewise.
60447         * lib/getdomainname.h: Likewise.
60448         * lib/getgroups.c: Likewise.
60449         * lib/gethostname.c: Likewise.
60450         * lib/gethrxtime.c: Likewise.
60451         * lib/gethrxtime.h: Likewise.
60452         * lib/getloadavg.c: Likewise.
60453         * lib/getndelim2.c: Likewise.
60454         * lib/getndelim2.h: Likewise.
60455         * lib/getnline.c: Likewise.
60456         * lib/getnline.h: Likewise.
60457         * lib/getopt.c: Likewise.
60458         * lib/getopt.in.h: Likewise.
60459         * lib/getopt1.c: Likewise.
60460         * lib/getopt_int.h: Likewise.
60461         * lib/getpagesize.h: Likewise.
60462         * lib/getsubopt.c: Likewise.
60463         * lib/gettime.c: Likewise.
60464         * lib/getugroups.c: Likewise.
60465         * lib/getugroups.h: Likewise.
60466         * lib/getusershell.c: Likewise.
60467         * lib/gl_anyavltree_list1.h: Likewise.
60468         * lib/gl_anyavltree_list2.h: Likewise.
60469         * lib/gl_anyhash_list1.h: Likewise.
60470         * lib/gl_anyhash_list2.h: Likewise.
60471         * lib/gl_anylinked_list1.h: Likewise.
60472         * lib/gl_anylinked_list2.h: Likewise.
60473         * lib/gl_anyrbtree_list1.h: Likewise.
60474         * lib/gl_anyrbtree_list2.h: Likewise.
60475         * lib/gl_anytree_list1.h: Likewise.
60476         * lib/gl_anytree_list2.h: Likewise.
60477         * lib/gl_anytree_oset.h: Likewise.
60478         * lib/gl_anytreehash_list1.h: Likewise.
60479         * lib/gl_anytreehash_list2.h: Likewise.
60480         * lib/gl_array_list.c: Likewise.
60481         * lib/gl_array_list.h: Likewise.
60482         * lib/gl_array_oset.c: Likewise.
60483         * lib/gl_array_oset.h: Likewise.
60484         * lib/gl_avltree_list.c: Likewise.
60485         * lib/gl_avltree_list.h: Likewise.
60486         * lib/gl_avltree_oset.c: Likewise.
60487         * lib/gl_avltree_oset.h: Likewise.
60488         * lib/gl_avltreehash_list.c: Likewise.
60489         * lib/gl_avltreehash_list.h: Likewise.
60490         * lib/gl_carray_list.c: Likewise.
60491         * lib/gl_carray_list.h: Likewise.
60492         * lib/gl_linked_list.c: Likewise.
60493         * lib/gl_linked_list.h: Likewise.
60494         * lib/gl_linkedhash_list.c: Likewise.
60495         * lib/gl_linkedhash_list.h: Likewise.
60496         * lib/gl_list.c: Likewise.
60497         * lib/gl_list.h: Likewise.
60498         * lib/gl_oset.c: Likewise.
60499         * lib/gl_oset.h: Likewise.
60500         * lib/gl_rbtree_list.c: Likewise.
60501         * lib/gl_rbtree_list.h: Likewise.
60502         * lib/gl_rbtree_oset.c: Likewise.
60503         * lib/gl_rbtree_oset.h: Likewise.
60504         * lib/gl_rbtreehash_list.c: Likewise.
60505         * lib/gl_rbtreehash_list.h: Likewise.
60506         * lib/gl_sublist.c: Likewise.
60507         * lib/gl_sublist.h: Likewise.
60508         * lib/group-member.c: Likewise.
60509         * lib/group-member.h: Likewise.
60510         * lib/hard-locale.c: Likewise.
60511         * lib/hard-locale.h: Likewise.
60512         * lib/hash-pjw.c: Likewise.
60513         * lib/hash-pjw.h: Likewise.
60514         * lib/hash-triple.c: Likewise.
60515         * lib/hash.c: Likewise.
60516         * lib/hash.h: Likewise.
60517         * lib/human.c: Likewise.
60518         * lib/human.h: Likewise.
60519         * lib/i-ring.c: Likewise.
60520         * lib/i-ring.h: Likewise.
60521         * lib/idcache.c: Likewise.
60522         * lib/imaxabs.c: Likewise.
60523         * lib/imaxdiv.c: Likewise.
60524         * lib/inet_pton.c: Likewise.
60525         * lib/inet_pton.h: Likewise.
60526         * lib/intprops.h: Likewise.
60527         * lib/inttostr.c: Likewise.
60528         * lib/inttostr.h: Likewise.
60529         * lib/inttypes.in.h: Likewise.
60530         * lib/isapipe.c: Likewise.
60531         * lib/isdir.c: Likewise.
60532         * lib/isnan.c: Likewise.
60533         * lib/isnan.h: Likewise.
60534         * lib/isnanf.c: Likewise.
60535         * lib/isnanf.h: Likewise.
60536         * lib/isnanl-nolibm.h: Likewise.
60537         * lib/isnanl.c: Likewise.
60538         * lib/isnanl.h: Likewise.
60539         * lib/javacomp.c: Likewise.
60540         * lib/javacomp.h: Likewise.
60541         * lib/javaexec.c: Likewise.
60542         * lib/javaexec.h: Likewise.
60543         * lib/javaversion.c: Likewise.
60544         * lib/javaversion.h: Likewise.
60545         * lib/javaversion.java: Likewise.
60546         * lib/lbrkprop.h: Likewise.
60547         * lib/lchmod.h: Likewise.
60548         * lib/lchown.c: Likewise.
60549         * lib/ldexpl.c: Likewise.
60550         * lib/linebreak.c: Likewise.
60551         * lib/linebreak.h: Likewise.
60552         * lib/linebuffer.c: Likewise.
60553         * lib/linebuffer.h: Likewise.
60554         * lib/locale.in.h: Likewise.
60555         * lib/logl.c: Likewise.
60556         * lib/long-options.c: Likewise.
60557         * lib/long-options.h: Likewise.
60558         * lib/lstat.c: Likewise.
60559         * lib/lstat.h: Likewise.
60560         * lib/math.in.h: Likewise.
60561         * lib/mbchar.c: Likewise.
60562         * lib/mbchar.h: Likewise.
60563         * lib/mbfile.h: Likewise.
60564         * lib/mbiter.h: Likewise.
60565         * lib/mbscasecmp.c: Likewise.
60566         * lib/mbscasestr.c: Likewise.
60567         * lib/mbschr.c: Likewise.
60568         * lib/mbscspn.c: Likewise.
60569         * lib/mbslen.c: Likewise.
60570         * lib/mbsncasecmp.c: Likewise.
60571         * lib/mbsnlen.c: Likewise.
60572         * lib/mbspbrk.c: Likewise.
60573         * lib/mbspcasecmp.c: Likewise.
60574         * lib/mbsrchr.c: Likewise.
60575         * lib/mbssep.c: Likewise.
60576         * lib/mbsspn.c: Likewise.
60577         * lib/mbsstr.c: Likewise.
60578         * lib/mbstok_r.c: Likewise.
60579         * lib/mbswidth.c: Likewise.
60580         * lib/mbswidth.h: Likewise.
60581         * lib/mbuiter.h: Likewise.
60582         * lib/memcasecmp.c: Likewise.
60583         * lib/memcasecmp.h: Likewise.
60584         * lib/memchr.c: Likewise.
60585         * lib/memcmp.c: Likewise.
60586         * lib/memcoll.c: Likewise.
60587         * lib/memcoll.h: Likewise.
60588         * lib/memcpy.c: Likewise.
60589         * lib/memrchr.c: Likewise.
60590         * lib/mkancesdirs.c: Likewise.
60591         * lib/mkdir-p.c: Likewise.
60592         * lib/mkdir-p.h: Likewise.
60593         * lib/mkdir.c: Likewise.
60594         * lib/mkdirat.c: Likewise.
60595         * lib/mkdtemp.c: Likewise.
60596         * lib/mkstemp-safer.c: Likewise.
60597         * lib/mkstemp.c: Likewise.
60598         * lib/modechange.c: Likewise.
60599         * lib/modechange.h: Likewise.
60600         * lib/mountlist.c: Likewise.
60601         * lib/mountlist.h: Likewise.
60602         * lib/mpsort.c: Likewise.
60603         * lib/nanosleep.c: Likewise.
60604         * lib/obstack.c: Likewise.
60605         * lib/obstack.h: Likewise.
60606         * lib/open-safer.c: Likewise.
60607         * lib/open.c: Likewise.
60608         * lib/openat-die.c: Likewise.
60609         * lib/openat-priv.h: Likewise.
60610         * lib/openat-proc.c: Likewise.
60611         * lib/openat.c: Likewise.
60612         * lib/openat.h: Likewise.
60613         * lib/pagealign_alloc.c: Likewise.
60614         * lib/pagealign_alloc.h: Likewise.
60615         * lib/physmem.c: Likewise.
60616         * lib/physmem.h: Likewise.
60617         * lib/pipe-safer.c: Likewise.
60618         * lib/pipe.c: Likewise.
60619         * lib/pipe.h: Likewise.
60620         * lib/posixtm.c: Likewise.
60621         * lib/posixtm.h: Likewise.
60622         * lib/posixver.c: Likewise.
60623         * lib/printf-frexp.c: Likewise.
60624         * lib/printf-frexp.h: Likewise.
60625         * lib/printf-frexpl.c: Likewise.
60626         * lib/printf-frexpl.h: Likewise.
60627         * lib/printf.c: Likewise.
60628         * lib/progname.c: Likewise.
60629         * lib/progname.h: Likewise.
60630         * lib/progreloc.c: Likewise.
60631         * lib/putenv.c: Likewise.
60632         * lib/quote.c: Likewise.
60633         * lib/quote.h: Likewise.
60634         * lib/quotearg.c: Likewise.
60635         * lib/quotearg.h: Likewise.
60636         * lib/raise.c: Likewise.
60637         * lib/readline.c: Likewise.
60638         * lib/readline.h: Likewise.
60639         * lib/readlink.c: Likewise.
60640         * lib/readtokens.c: Likewise.
60641         * lib/readtokens.h: Likewise.
60642         * lib/readtokens0.c: Likewise.
60643         * lib/readtokens0.h: Likewise.
60644         * lib/readutmp.c: Likewise.
60645         * lib/readutmp.h: Likewise.
60646         * lib/realloc.c: Likewise.
60647         * lib/relocwrapper.c: Likewise.
60648         * lib/rename-dest-slash.c: Likewise.
60649         * lib/rename.c: Likewise.
60650         * lib/rmdir.c: Likewise.
60651         * lib/rpmatch.c: Likewise.
60652         * lib/safe-read.c: Likewise.
60653         * lib/safe-read.h: Likewise.
60654         * lib/safe-write.c: Likewise.
60655         * lib/safe-write.h: Likewise.
60656         * lib/same-inode.h: Likewise.
60657         * lib/same.c: Likewise.
60658         * lib/same.h: Likewise.
60659         * lib/save-cwd.c: Likewise.
60660         * lib/save-cwd.h: Likewise.
60661         * lib/savedir.c: Likewise.
60662         * lib/savedir.h: Likewise.
60663         * lib/savewd.c: Likewise.
60664         * lib/savewd.h: Likewise.
60665         * lib/search.in.h: Likewise.
60666         * lib/setenv.c: Likewise.
60667         * lib/setenv.h: Likewise.
60668         * lib/settime.c: Likewise.
60669         * lib/sh-quote.c: Likewise.
60670         * lib/sh-quote.h: Likewise.
60671         * lib/sig2str.c: Likewise.
60672         * lib/sig2str.h: Likewise.
60673         * lib/signal.in.h: Likewise.
60674         * lib/signbitd.c: Likewise.
60675         * lib/signbitf.c: Likewise.
60676         * lib/signbitl.c: Likewise.
60677         * lib/sigprocmask.c: Likewise.
60678         * lib/sincosl.c: Likewise.
60679         * lib/sleep.c: Likewise.
60680         * lib/sprintf.c: Likewise.
60681         * lib/sqrtl.c: Likewise.
60682         * lib/stat-time.h: Likewise.
60683         * lib/stdio--.h: Likewise.
60684         * lib/stdio-safer.h: Likewise.
60685         * lib/stdlib--.h: Likewise.
60686         * lib/stdlib-safer.h: Likewise.
60687         * lib/stdlib.in.h: Likewise.
60688         * lib/stpcpy.c: Likewise.
60689         * lib/stpncpy.c: Likewise.
60690         * lib/strchrnul.c: Likewise.
60691         * lib/strcspn.c: Likewise.
60692         * lib/strerror.c: Likewise.
60693         * lib/strftime.c: Likewise.
60694         * lib/strftime.h: Likewise.
60695         * lib/striconveh.c: Likewise.
60696         * lib/striconveh.h: Likewise.
60697         * lib/striconveha.c: Likewise.
60698         * lib/striconveha.h: Likewise.
60699         * lib/stripslash.c: Likewise.
60700         * lib/strnlen1.c: Likewise.
60701         * lib/strnlen1.h: Likewise.
60702         * lib/strtod.c: Likewise.
60703         * lib/strtoimax.c: Likewise.
60704         * lib/strtok_r.c: Likewise.
60705         * lib/strtol.c: Likewise.
60706         * lib/strtoll.c: Likewise.
60707         * lib/strtoul.c: Likewise.
60708         * lib/strtoull.c: Likewise.
60709         * lib/sysexits.in.h: Likewise.
60710         * lib/tempname.c: Likewise.
60711         * lib/tempname.h: Likewise.
60712         * lib/timespec.h: Likewise.
60713         * lib/tls.c: Likewise.
60714         * lib/tls.h: Likewise.
60715         * lib/tmpdir.c: Likewise.
60716         * lib/tmpdir.h: Likewise.
60717         * lib/tmpfile-safer.c: Likewise.
60718         * lib/tmpfile.c: Likewise.
60719         * lib/trigl.c: Likewise.
60720         * lib/trigl.h: Likewise.
60721         * lib/trim.c: Likewise.
60722         * lib/trim.h: Likewise.
60723         * lib/trunc.c: Likewise.
60724         * lib/truncf.c: Likewise.
60725         * lib/truncl.c: Likewise.
60726         * lib/tsearch.c: Likewise.
60727         * lib/unicodeio.c: Likewise.
60728         * lib/unicodeio.h: Likewise.
60729         * lib/unistd--.h: Likewise.
60730         * lib/unistd-safer.h: Likewise.
60731         * lib/unistdio/ulc-fprintf.c: Likewise.
60732         * lib/unistdio/ulc-vfprintf.c: Likewise.
60733         * lib/unlinkdir.c: Likewise.
60734         * lib/unlinkdir.h: Likewise.
60735         * lib/unlocked-io.h: Likewise.
60736         * lib/unsetenv.c: Likewise.
60737         * lib/userspec.c: Likewise.
60738         * lib/utime.c: Likewise.
60739         * lib/utimecmp.c: Likewise.
60740         * lib/utimecmp.h: Likewise.
60741         * lib/utimens.c: Likewise.
60742         * lib/verify.h: Likewise.
60743         * lib/verror.c: Likewise.
60744         * lib/verror.h: Likewise.
60745         * lib/version-etc-fsf.c: Likewise.
60746         * lib/version-etc.c: Likewise.
60747         * lib/version-etc.h: Likewise.
60748         * lib/vfprintf.c: Likewise.
60749         * lib/vprintf.c: Likewise.
60750         * lib/vsprintf.c: Likewise.
60751         * lib/w32spawn.h: Likewise.
60752         * lib/wait-process.c: Likewise.
60753         * lib/wait-process.h: Likewise.
60754         * lib/wcwidth.c: Likewise.
60755         * lib/write-any-file.c: Likewise.
60756         * lib/xalloc-die.c: Likewise.
60757         * lib/xalloc.h: Likewise.
60758         * lib/xasprintf.c: Likewise.
60759         * lib/xgetcwd.c: Likewise.
60760         * lib/xgetcwd.h: Likewise.
60761         * lib/xgetdomainname.c: Likewise.
60762         * lib/xgetdomainname.h: Likewise.
60763         * lib/xgethostname.c: Likewise.
60764         * lib/xmalloc.c: Likewise.
60765         * lib/xmalloca.c: Likewise.
60766         * lib/xmalloca.h: Likewise.
60767         * lib/xmemcoll.c: Likewise.
60768         * lib/xnanosleep.c: Likewise.
60769         * lib/xreadlink.c: Likewise.
60770         * lib/xreadlink.h: Likewise.
60771         * lib/xsetenv.c: Likewise.
60772         * lib/xsetenv.h: Likewise.
60773         * lib/xstriconv.c: Likewise.
60774         * lib/xstriconv.h: Likewise.
60775         * lib/xstrndup.c: Likewise.
60776         * lib/xstrndup.h: Likewise.
60777         * lib/xstrtod.c: Likewise.
60778         * lib/xstrtod.h: Likewise.
60779         * lib/xstrtol-error.c: Likewise.
60780         * lib/xstrtol.c: Likewise.
60781         * lib/xstrtol.h: Likewise.
60782         * lib/xtime.h: Likewise.
60783         * lib/xvasprintf.c: Likewise.
60784         * lib/xvasprintf.h: Likewise.
60785         * lib/yesno.c: Likewise.
60786         * lib/yesno.h: Likewise.
60787         * posix-modules: Likewise.
60788         * tests/test-alloca-opt.c: Likewise.
60789         * tests/test-arcfour.c: Likewise.
60790         * tests/test-arctwo.c: Likewise.
60791         * tests/test-argmatch.c: Likewise.
60792         * tests/test-argp-2.sh: Likewise.
60793         * tests/test-argp.c: Likewise.
60794         * tests/test-arpa_inet.c: Likewise.
60795         * tests/test-array_list.c: Likewise.
60796         * tests/test-array_oset.c: Likewise.
60797         * tests/test-atexit.c: Likewise.
60798         * tests/test-avltree_list.c: Likewise.
60799         * tests/test-avltree_oset.c: Likewise.
60800         * tests/test-avltreehash_list.c: Likewise.
60801         * tests/test-base64.c: Likewise.
60802         * tests/test-binary-io.c: Likewise.
60803         * tests/test-byteswap.c: Likewise.
60804         * tests/test-c-ctype.c: Likewise.
60805         * tests/test-c-strcasecmp.c: Likewise.
60806         * tests/test-c-strcasestr.c: Likewise.
60807         * tests/test-c-strncasecmp.c: Likewise.
60808         * tests/test-c-strstr.c: Likewise.
60809         * tests/test-canonicalize-lgpl.c: Likewise.
60810         * tests/test-canonicalize.c: Likewise.
60811         * tests/test-carray_list.c: Likewise.
60812         * tests/test-ceilf.c: Likewise.
60813         * tests/test-ceill.c: Likewise.
60814         * tests/test-count-one-bits.c: Likewise.
60815         * tests/test-crc.c: Likewise.
60816         * tests/test-dirname.c: Likewise.
60817         * tests/test-fbufmode.c: Likewise.
60818         * tests/test-fcntl.c: Likewise.
60819         * tests/test-fflush.c: Likewise.
60820         * tests/test-floorf.c: Likewise.
60821         * tests/test-floorl.c: Likewise.
60822         * tests/test-fopen.c: Likewise.
60823         * tests/test-fprintf-posix.c: Likewise.
60824         * tests/test-fprintf-posix.h: Likewise.
60825         * tests/test-fpurge.c: Likewise.
60826         * tests/test-freadable.c: Likewise.
60827         * tests/test-freadahead.c: Likewise.
60828         * tests/test-freading.c: Likewise.
60829         * tests/test-freopen.c: Likewise.
60830         * tests/test-frexp.c: Likewise.
60831         * tests/test-frexpl.c: Likewise.
60832         * tests/test-fseek.c: Likewise.
60833         * tests/test-fseeko.c: Likewise.
60834         * tests/test-fseterr.c: Likewise.
60835         * tests/test-fstrcmp.c: Likewise.
60836         * tests/test-ftell.c: Likewise.
60837         * tests/test-ftello.c: Likewise.
60838         * tests/test-fwritable.c: Likewise.
60839         * tests/test-fwriting.c: Likewise.
60840         * tests/test-getaddrinfo.c: Likewise.
60841         * tests/test-getpass.c: Likewise.
60842         * tests/test-gettimeofday.c: Likewise.
60843         * tests/test-hmac-md5.c: Likewise.
60844         * tests/test-hmac-sha1.c: Likewise.
60845         * tests/test-iconv.c: Likewise.
60846         * tests/test-iconvme.c: Likewise.
60847         * tests/test-inttypes.c: Likewise.
60848         * tests/test-isnan.c: Likewise.
60849         * tests/test-isnanf.c: Likewise.
60850         * tests/test-isnanl-nolibm.c: Likewise.
60851         * tests/test-isnanl.c: Likewise.
60852         * tests/test-isnanl.h: Likewise.
60853         * tests/test-ldexpl.c: Likewise.
60854         * tests/test-linked_list.c: Likewise.
60855         * tests/test-linkedhash_list.c: Likewise.
60856         * tests/test-locale.c: Likewise.
60857         * tests/test-localename.c: Likewise.
60858         * tests/test-lock.c: Likewise.
60859         * tests/test-lseek.c: Likewise.
60860         * tests/test-malloca.c: Likewise.
60861         * tests/test-math.c: Likewise.
60862         * tests/test-mbscasecmp.c: Likewise.
60863         * tests/test-mbscasestr1.c: Likewise.
60864         * tests/test-mbscasestr2.c: Likewise.
60865         * tests/test-mbscasestr3.c: Likewise.
60866         * tests/test-mbscasestr4.c: Likewise.
60867         * tests/test-mbschr.c: Likewise.
60868         * tests/test-mbscspn.c: Likewise.
60869         * tests/test-mbsncasecmp.c: Likewise.
60870         * tests/test-mbspbrk.c: Likewise.
60871         * tests/test-mbspcasecmp.c: Likewise.
60872         * tests/test-mbsrchr.c: Likewise.
60873         * tests/test-mbsspn.c: Likewise.
60874         * tests/test-mbsstr1.c: Likewise.
60875         * tests/test-mbsstr2.c: Likewise.
60876         * tests/test-mbsstr3.c: Likewise.
60877         * tests/test-md5.c: Likewise.
60878         * tests/test-memmem.c: Likewise.
60879         * tests/test-netinet_in.c: Likewise.
60880         * tests/test-open.c: Likewise.
60881         * tests/test-printf-frexp.c: Likewise.
60882         * tests/test-printf-frexpl.c: Likewise.
60883         * tests/test-printf-posix.c: Likewise.
60884         * tests/test-printf-posix.h: Likewise.
60885         * tests/test-rbtree_list.c: Likewise.
60886         * tests/test-rbtree_oset.c: Likewise.
60887         * tests/test-rbtreehash_list.c: Likewise.
60888         * tests/test-read-file.c: Likewise.
60889         * tests/test-rijndael.c: Likewise.
60890         * tests/test-search.c: Likewise.
60891         * tests/test-signbit.c: Likewise.
60892         * tests/test-sleep.c: Likewise.
60893         * tests/test-snprintf-posix.c: Likewise.
60894         * tests/test-snprintf-posix.h: Likewise.
60895         * tests/test-snprintf.c: Likewise.
60896         * tests/test-sprintf-posix.c: Likewise.
60897         * tests/test-sprintf-posix.h: Likewise.
60898         * tests/test-stat-time.c: Likewise.
60899         * tests/test-stdbool.c: Likewise.
60900         * tests/test-stdint.c: Likewise.
60901         * tests/test-stdio.c: Likewise.
60902         * tests/test-stdlib.c: Likewise.
60903         * tests/test-stpncpy.c: Likewise.
60904         * tests/test-strcasestr.c: Likewise.
60905         * tests/test-striconv.c: Likewise.
60906         * tests/test-striconveh.c: Likewise.
60907         * tests/test-striconveha.c: Likewise.
60908         * tests/test-string.c: Likewise.
60909         * tests/test-sys_select.c: Likewise.
60910         * tests/test-sys_socket.c: Likewise.
60911         * tests/test-sys_stat.c: Likewise.
60912         * tests/test-sys_time.c: Likewise.
60913         * tests/test-sysexits.c: Likewise.
60914         * tests/test-time.c: Likewise.
60915         * tests/test-tls.c: Likewise.
60916         * tests/test-trunc.c: Likewise.
60917         * tests/test-truncf.c: Likewise.
60918         * tests/test-truncl.c: Likewise.
60919         * tests/test-unistd.c: Likewise.
60920         * tests/test-vasnprintf-posix.c: Likewise.
60921         * tests/test-vasnprintf-posix2.c: Likewise.
60922         * tests/test-vasnprintf.c: Likewise.
60923         * tests/test-vasprintf-posix.c: Likewise.
60924         * tests/test-vasprintf.c: Likewise.
60925         * tests/test-verify.c: Likewise.
60926         * tests/test-vfprintf-posix.c: Likewise.
60927         * tests/test-vprintf-posix.c: Likewise.
60928         * tests/test-vsnprintf-posix.c: Likewise.
60929         * tests/test-vsnprintf.c: Likewise.
60930         * tests/test-vsprintf-posix.c: Likewise.
60931         * tests/test-wchar.c: Likewise.
60932         * tests/test-wctype.c: Likewise.
60933         * tests/test-wcwidth.c: Likewise.
60934         * tests/test-xstrtol.c: Likewise.
60935         * tests/test-xvasprintf.c: Likewise.
60936         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
60937         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
60938         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
60939         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
60940         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
60941         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
60942         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
60943         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
60944         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
60945         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
60946         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
60947         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
60948         * tests/uniname/test-uninames.c: Likewise.
60949         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
60950         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
60951         * tests/unistdio/test-u16-printf1.h: Likewise.
60952         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
60953         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
60954         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
60955         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
60956         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
60957         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
60958         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
60959         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
60960         * tests/unistdio/test-u32-printf1.h: Likewise.
60961         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
60962         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
60963         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
60964         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
60965         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
60966         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
60967         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
60968         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
60969         * tests/unistdio/test-u8-printf1.h: Likewise.
60970         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
60971         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
60972         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
60973         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
60974         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
60975         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
60976         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
60977         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
60978         * tests/unistdio/test-ulc-printf1.h: Likewise.
60979         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
60980         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
60981         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
60982         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
60983         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
60984         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
60985         * tests/uniwidth/test-u16-strwidth.c: Likewise.
60986         * tests/uniwidth/test-u16-width.c: Likewise.
60987         * tests/uniwidth/test-u32-strwidth.c: Likewise.
60988         * tests/uniwidth/test-u32-width.c: Likewise.
60989         * tests/uniwidth/test-u8-strwidth.c: Likewise.
60990         * tests/uniwidth/test-u8-width.c: Likewise.
60991         * tests/uniwidth/test-uc_width.c: Likewise.
60992         * config/srclist-update: Likewise.
60993         (fixlicense): Update to GPLv3+.
60994
60995         Change copyright notice from LGPLv2.1+ to LGPLv3+.
60996         * tests/test-tsearch.c: Change copyright notice.
60997
60998         Change copyright notice from LGPLv2.0+ to LGPLv3+.
60999         * lib/c-strcaseeq.h: Change copyright notice.
61000         * lib/streq.h: Likewise.
61001         * lib/uniconv.h: Likewise.
61002         * lib/uniconv/u-conv-from-enc.h: Likewise.
61003         * lib/uniconv/u-conv-to-enc.h: Likewise.
61004         * lib/uniconv/u-strconv-from-enc.h: Likewise.
61005         * lib/uniconv/u-strconv-to-enc.h: Likewise.
61006         * lib/uniconv/u16-conv-from-enc.c: Likewise.
61007         * lib/uniconv/u16-conv-to-enc.c: Likewise.
61008         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
61009         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
61010         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
61011         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
61012         * lib/uniconv/u32-conv-from-enc.c: Likewise.
61013         * lib/uniconv/u32-conv-to-enc.c: Likewise.
61014         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
61015         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
61016         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
61017         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
61018         * lib/uniconv/u8-conv-from-enc.c: Likewise.
61019         * lib/uniconv/u8-conv-to-enc.c: Likewise.
61020         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
61021         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
61022         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
61023         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
61024         * lib/uniname.h: Likewise.
61025         * lib/uniname/uniname.c: Likewise.
61026         * lib/unistdio.h: Likewise.
61027         * lib/unistdio/u-asnprintf.h: Likewise.
61028         * lib/unistdio/u-asprintf.h: Likewise.
61029         * lib/unistdio/u-printf-args.c: Likewise.
61030         * lib/unistdio/u-printf-args.h: Likewise.
61031         * lib/unistdio/u-printf-parse.h: Likewise.
61032         * lib/unistdio/u-snprintf.h: Likewise.
61033         * lib/unistdio/u-sprintf.h: Likewise.
61034         * lib/unistdio/u-vasprintf.h: Likewise.
61035         * lib/unistdio/u-vsnprintf.h: Likewise.
61036         * lib/unistdio/u-vsprintf.h: Likewise.
61037         * lib/unistdio/u16-asnprintf.c: Likewise.
61038         * lib/unistdio/u16-asprintf.c: Likewise.
61039         * lib/unistdio/u16-printf-parse.c: Likewise.
61040         * lib/unistdio/u16-snprintf.c: Likewise.
61041         * lib/unistdio/u16-sprintf.c: Likewise.
61042         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
61043         * lib/unistdio/u16-u16-asprintf.c: Likewise.
61044         * lib/unistdio/u16-u16-snprintf.c: Likewise.
61045         * lib/unistdio/u16-u16-sprintf.c: Likewise.
61046         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
61047         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
61048         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
61049         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
61050         * lib/unistdio/u16-vasnprintf.c: Likewise.
61051         * lib/unistdio/u16-vasprintf.c: Likewise.
61052         * lib/unistdio/u16-vsnprintf.c: Likewise.
61053         * lib/unistdio/u16-vsprintf.c: Likewise.
61054         * lib/unistdio/u32-asnprintf.c: Likewise.
61055         * lib/unistdio/u32-asprintf.c: Likewise.
61056         * lib/unistdio/u32-printf-parse.c: Likewise.
61057         * lib/unistdio/u32-snprintf.c: Likewise.
61058         * lib/unistdio/u32-sprintf.c: Likewise.
61059         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
61060         * lib/unistdio/u32-u32-asprintf.c: Likewise.
61061         * lib/unistdio/u32-u32-snprintf.c: Likewise.
61062         * lib/unistdio/u32-u32-sprintf.c: Likewise.
61063         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
61064         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
61065         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
61066         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
61067         * lib/unistdio/u32-vasnprintf.c: Likewise.
61068         * lib/unistdio/u32-vasprintf.c: Likewise.
61069         * lib/unistdio/u32-vsnprintf.c: Likewise.
61070         * lib/unistdio/u32-vsprintf.c: Likewise.
61071         * lib/unistdio/u8-asnprintf.c: Likewise.
61072         * lib/unistdio/u8-asprintf.c: Likewise.
61073         * lib/unistdio/u8-printf-parse.c: Likewise.
61074         * lib/unistdio/u8-snprintf.c: Likewise.
61075         * lib/unistdio/u8-sprintf.c: Likewise.
61076         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
61077         * lib/unistdio/u8-u8-asprintf.c: Likewise.
61078         * lib/unistdio/u8-u8-snprintf.c: Likewise.
61079         * lib/unistdio/u8-u8-sprintf.c: Likewise.
61080         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
61081         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
61082         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
61083         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
61084         * lib/unistdio/u8-vasnprintf.c: Likewise.
61085         * lib/unistdio/u8-vasprintf.c: Likewise.
61086         * lib/unistdio/u8-vsnprintf.c: Likewise.
61087         * lib/unistdio/u8-vsprintf.c: Likewise.
61088         * lib/unistdio/ulc-asnprintf.c: Likewise.
61089         * lib/unistdio/ulc-asprintf.c: Likewise.
61090         * lib/unistdio/ulc-printf-parse.c: Likewise.
61091         * lib/unistdio/ulc-snprintf.c: Likewise.
61092         * lib/unistdio/ulc-sprintf.c: Likewise.
61093         * lib/unistdio/ulc-vasnprintf.c: Likewise.
61094         * lib/unistdio/ulc-vasprintf.c: Likewise.
61095         * lib/unistdio/ulc-vsnprintf.c: Likewise.
61096         * lib/unistdio/ulc-vsprintf.c: Likewise.
61097         * lib/unistr.h: Likewise.
61098         * lib/unistr/u-cpy-alloc.h: Likewise.
61099         * lib/unistr/u-cpy.h: Likewise.
61100         * lib/unistr/u-endswith.h: Likewise.
61101         * lib/unistr/u-move.h: Likewise.
61102         * lib/unistr/u-set.h: Likewise.
61103         * lib/unistr/u-startswith.h: Likewise.
61104         * lib/unistr/u-stpcpy.h: Likewise.
61105         * lib/unistr/u-stpncpy.h: Likewise.
61106         * lib/unistr/u-strcat.h: Likewise.
61107         * lib/unistr/u-strcpy.h: Likewise.
61108         * lib/unistr/u-strcspn.h: Likewise.
61109         * lib/unistr/u-strdup.h: Likewise.
61110         * lib/unistr/u-strlen.h: Likewise.
61111         * lib/unistr/u-strncat.h: Likewise.
61112         * lib/unistr/u-strncpy.h: Likewise.
61113         * lib/unistr/u-strnlen.h: Likewise.
61114         * lib/unistr/u-strpbrk.h: Likewise.
61115         * lib/unistr/u-strspn.h: Likewise.
61116         * lib/unistr/u-strstr.h: Likewise.
61117         * lib/unistr/u-strtok.h: Likewise.
61118         * lib/unistr/u16-check.c: Likewise.
61119         * lib/unistr/u16-chr.c: Likewise.
61120         * lib/unistr/u16-cmp.c: Likewise.
61121         * lib/unistr/u16-cpy-alloc.c: Likewise.
61122         * lib/unistr/u16-cpy.c: Likewise.
61123         * lib/unistr/u16-endswith.c: Likewise.
61124         * lib/unistr/u16-mblen.c: Likewise.
61125         * lib/unistr/u16-mbsnlen.c: Likewise.
61126         * lib/unistr/u16-mbtouc-aux.c: Likewise.
61127         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
61128         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
61129         * lib/unistr/u16-mbtouc.c: Likewise.
61130         * lib/unistr/u16-mbtoucr.c: Likewise.
61131         * lib/unistr/u16-move.c: Likewise.
61132         * lib/unistr/u16-next.c: Likewise.
61133         * lib/unistr/u16-prev.c: Likewise.
61134         * lib/unistr/u16-set.c: Likewise.
61135         * lib/unistr/u16-startswith.c: Likewise.
61136         * lib/unistr/u16-stpcpy.c: Likewise.
61137         * lib/unistr/u16-stpncpy.c: Likewise.
61138         * lib/unistr/u16-strcat.c: Likewise.
61139         * lib/unistr/u16-strchr.c: Likewise.
61140         * lib/unistr/u16-strcmp.c: Likewise.
61141         * lib/unistr/u16-strcpy.c: Likewise.
61142         * lib/unistr/u16-strcspn.c: Likewise.
61143         * lib/unistr/u16-strdup.c: Likewise.
61144         * lib/unistr/u16-strlen.c: Likewise.
61145         * lib/unistr/u16-strmblen.c: Likewise.
61146         * lib/unistr/u16-strmbtouc.c: Likewise.
61147         * lib/unistr/u16-strncat.c: Likewise.
61148         * lib/unistr/u16-strncmp.c: Likewise.
61149         * lib/unistr/u16-strncpy.c: Likewise.
61150         * lib/unistr/u16-strnlen.c: Likewise.
61151         * lib/unistr/u16-strpbrk.c: Likewise.
61152         * lib/unistr/u16-strrchr.c: Likewise.
61153         * lib/unistr/u16-strspn.c: Likewise.
61154         * lib/unistr/u16-strstr.c: Likewise.
61155         * lib/unistr/u16-strtok.c: Likewise.
61156         * lib/unistr/u16-to-u32.c: Likewise.
61157         * lib/unistr/u16-to-u8.c: Likewise.
61158         * lib/unistr/u16-uctomb-aux.c: Likewise.
61159         * lib/unistr/u16-uctomb.c: Likewise.
61160         * lib/unistr/u32-check.c: Likewise.
61161         * lib/unistr/u32-chr.c: Likewise.
61162         * lib/unistr/u32-cmp.c: Likewise.
61163         * lib/unistr/u32-cpy-alloc.c: Likewise.
61164         * lib/unistr/u32-cpy.c: Likewise.
61165         * lib/unistr/u32-endswith.c: Likewise.
61166         * lib/unistr/u32-mblen.c: Likewise.
61167         * lib/unistr/u32-mbsnlen.c: Likewise.
61168         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
61169         * lib/unistr/u32-mbtouc.c: Likewise.
61170         * lib/unistr/u32-mbtoucr.c: Likewise.
61171         * lib/unistr/u32-move.c: Likewise.
61172         * lib/unistr/u32-next.c: Likewise.
61173         * lib/unistr/u32-prev.c: Likewise.
61174         * lib/unistr/u32-set.c: Likewise.
61175         * lib/unistr/u32-startswith.c: Likewise.
61176         * lib/unistr/u32-stpcpy.c: Likewise.
61177         * lib/unistr/u32-stpncpy.c: Likewise.
61178         * lib/unistr/u32-strcat.c: Likewise.
61179         * lib/unistr/u32-strchr.c: Likewise.
61180         * lib/unistr/u32-strcmp.c: Likewise.
61181         * lib/unistr/u32-strcpy.c: Likewise.
61182         * lib/unistr/u32-strcspn.c: Likewise.
61183         * lib/unistr/u32-strdup.c: Likewise.
61184         * lib/unistr/u32-strlen.c: Likewise.
61185         * lib/unistr/u32-strmblen.c: Likewise.
61186         * lib/unistr/u32-strmbtouc.c: Likewise.
61187         * lib/unistr/u32-strncat.c: Likewise.
61188         * lib/unistr/u32-strncmp.c: Likewise.
61189         * lib/unistr/u32-strncpy.c: Likewise.
61190         * lib/unistr/u32-strnlen.c: Likewise.
61191         * lib/unistr/u32-strpbrk.c: Likewise.
61192         * lib/unistr/u32-strrchr.c: Likewise.
61193         * lib/unistr/u32-strspn.c: Likewise.
61194         * lib/unistr/u32-strstr.c: Likewise.
61195         * lib/unistr/u32-strtok.c: Likewise.
61196         * lib/unistr/u32-to-u16.c: Likewise.
61197         * lib/unistr/u32-to-u8.c: Likewise.
61198         * lib/unistr/u32-uctomb.c: Likewise.
61199         * lib/unistr/u8-check.c: Likewise.
61200         * lib/unistr/u8-chr.c: Likewise.
61201         * lib/unistr/u8-cmp.c: Likewise.
61202         * lib/unistr/u8-cpy-alloc.c: Likewise.
61203         * lib/unistr/u8-cpy.c: Likewise.
61204         * lib/unistr/u8-endswith.c: Likewise.
61205         * lib/unistr/u8-mblen.c: Likewise.
61206         * lib/unistr/u8-mbsnlen.c: Likewise.
61207         * lib/unistr/u8-mbtouc-aux.c: Likewise.
61208         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
61209         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
61210         * lib/unistr/u8-mbtouc.c: Likewise.
61211         * lib/unistr/u8-mbtoucr.c: Likewise.
61212         * lib/unistr/u8-move.c: Likewise.
61213         * lib/unistr/u8-next.c: Likewise.
61214         * lib/unistr/u8-prev.c: Likewise.
61215         * lib/unistr/u8-set.c: Likewise.
61216         * lib/unistr/u8-startswith.c: Likewise.
61217         * lib/unistr/u8-stpcpy.c: Likewise.
61218         * lib/unistr/u8-stpncpy.c: Likewise.
61219         * lib/unistr/u8-strcat.c: Likewise.
61220         * lib/unistr/u8-strchr.c: Likewise.
61221         * lib/unistr/u8-strcmp.c: Likewise.
61222         * lib/unistr/u8-strcpy.c: Likewise.
61223         * lib/unistr/u8-strcspn.c: Likewise.
61224         * lib/unistr/u8-strdup.c: Likewise.
61225         * lib/unistr/u8-strlen.c: Likewise.
61226         * lib/unistr/u8-strmblen.c: Likewise.
61227         * lib/unistr/u8-strmbtouc.c: Likewise.
61228         * lib/unistr/u8-strncat.c: Likewise.
61229         * lib/unistr/u8-strncmp.c: Likewise.
61230         * lib/unistr/u8-strncpy.c: Likewise.
61231         * lib/unistr/u8-strnlen.c: Likewise.
61232         * lib/unistr/u8-strpbrk.c: Likewise.
61233         * lib/unistr/u8-strrchr.c: Likewise.
61234         * lib/unistr/u8-strspn.c: Likewise.
61235         * lib/unistr/u8-strstr.c: Likewise.
61236         * lib/unistr/u8-strtok.c: Likewise.
61237         * lib/unistr/u8-to-u16.c: Likewise.
61238         * lib/unistr/u8-to-u32.c: Likewise.
61239         * lib/unistr/u8-uctomb-aux.c: Likewise.
61240         * lib/unistr/u8-uctomb.c: Likewise.
61241         * lib/unitypes.h: Likewise.
61242         * lib/uniwidth.h: Likewise.
61243         * lib/uniwidth/cjk.h: Likewise.
61244         * lib/uniwidth/u16-strwidth.c: Likewise.
61245         * lib/uniwidth/u16-width.c: Likewise.
61246         * lib/uniwidth/u32-strwidth.c: Likewise.
61247         * lib/uniwidth/u32-width.c: Likewise.
61248         * lib/uniwidth/u8-strwidth.c: Likewise.
61249         * lib/uniwidth/u8-width.c: Likewise.
61250         * lib/uniwidth/width.c: Likewise.
61251
61252 2007-10-07  Bruno Haible  <bruno@clisp.org>
61253
61254         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
61255         The file is still under LGPL (see modules/inttypes).
61256
61257 2007-10-06  Bruno Haible  <bruno@clisp.org>
61258
61259         * modules/trunc (Dependencies): Add 'extensions'.
61260         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
61261         Reported by Ben Pfaff <blp@gnu.org>.
61262
61263 2007-10-06  Bruno Haible  <bruno@clisp.org>
61264
61265         * modules/freopen-tests: New file.
61266         * tests/test-freopen.c: New file.
61267
61268         * modules/fopen-tests: New file.
61269         * tests/test-fopen.c: New file.
61270
61271         * modules/fopen: New file.
61272         * lib/fopen.c: New file.
61273         * m4/fopen.m4: New file.
61274         * modules/freopen: New file.
61275         * lib/freopen.c: New file.
61276         * m4/freopen.m4: New file.
61277         * lib/stdio.in.h (fopen, freopen): New declarations.
61278         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
61279         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
61280         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
61281         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
61282         * doc/functions/fopen.texi: Mention the 'fopen' module.
61283         * doc/functions/freopen.texi: Mention the 'freopen' module.
61284
61285 2007-10-06  Bruno Haible  <bruno@clisp.org>
61286
61287         * modules/open-tests: New file.
61288         * tests/test-open.c: New file.
61289
61290         * modules/open: New file.
61291         * lib/open.c: New file.
61292         * m4/open.m4: New file.
61293         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
61294         lib/open.c does.
61295         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
61296         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
61297         macros.
61298         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
61299         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
61300         REPLACE_OPEN.
61301         * doc/functions/open.texi: Mention the 'open' module.
61302
61303 2007-10-04  Bruno Haible  <bruno@clisp.org>
61304
61305         * modules/ceill-tests: New file.
61306         * tests/test-ceill.c: New file.
61307
61308         * modules/ceill: New file.
61309         * lib/ceill.c: Replace entire file.
61310         * m4/ceill.m4: New file.
61311         * lib/math.in.h (ceill): Replace declaration.
61312         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
61313         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
61314         * doc/functions/ceill.texi: Mention the 'ceill' module.
61315         * modules/mathl (Files): Remove lib/ceill.c.
61316         (Depends-on): Add ceill.
61317
61318 2007-10-04  Bruno Haible  <bruno@clisp.org>
61319
61320         * modules/ceilf-tests: New file.
61321         * tests/test-ceilf.c: New file.
61322
61323         * modules/ceilf: New file.
61324         * lib/ceil.c: New file.
61325         * lib/ceilf.c: New file.
61326         * m4/ceilf.m4: New file.
61327         * lib/math.in.h (ceilf): New declaration.
61328         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
61329         HAVE_DECL_CEILF.
61330         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
61331         HAVE_DECL_CEILF.
61332         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
61333
61334 2007-10-04  Bruno Haible  <bruno@clisp.org>
61335
61336         * modules/floorl-tests: New file.
61337         * tests/test-floorl.c: New file.
61338
61339         * modules/floorl: New file.
61340         * lib/floorl.c: Replace entire file.
61341         * m4/floorl.m4: New file.
61342         * lib/math.in.h (floorl): Replace declaration.
61343         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
61344         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
61345         * doc/functions/floorl.texi: Mention the 'floorl' module.
61346         * modules/mathl (Files): Remove lib/floorl.c.
61347         (Depends-on): Add floorl.
61348
61349 2007-10-04  Bruno Haible  <bruno@clisp.org>
61350
61351         * modules/floorf-tests: New file.
61352         * tests/test-floorf.c: New file.
61353
61354         * modules/floorf: New file.
61355         * lib/floor.c: New file.
61356         * lib/floorf.c: New file.
61357         * m4/floorf.m4: New file.
61358         * lib/math.in.h (floorf): New declaration.
61359         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
61360         HAVE_DECL_FLOORF.
61361         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
61362         HAVE_DECL_FLOORF.
61363         * doc/functions/floorf.texi: Mention the 'floorf' module.
61364
61365 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
61366             Bruno Haible  <bruno@clisp.org>
61367
61368         Advertise for the Git server instead of the CVS server.
61369         * doc/gnulib-intro.texi (Steady Development): Mention the Git
61370         repository instead of the CVS one.
61371         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
61372         about all VCS systems generically.
61373         * doc/gnulib.texi (Introduction): Capitalize `Git'.
61374
61375 2007-10-04  Bruno Haible  <bruno@clisp.org>
61376
61377         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
61378         means.
61379         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
61380
61381 2007-10-04  Bruno Haible  <bruno@clisp.org>
61382
61383         * modules/truncl-tests: New file.
61384         * tests/test-truncl.c: New file.
61385
61386         * modules/truncl: New file.
61387         * lib/truncl.c: New file.
61388         * m4/truncl.m4: New file.
61389         * lib/math.in.h (truncl): New declaration.
61390         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
61391         HAVE_DECL_TRUNCL.
61392         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
61393         HAVE_DECL_TRUNCL.
61394         * doc/functions/truncl.texi: Mention the 'truncl' module.
61395
61396 2007-10-04  Bruno Haible  <bruno@clisp.org>
61397
61398         * modules/truncf-tests: New file.
61399         * tests/test-truncf.c: New file.
61400
61401         * modules/truncf: New file.
61402         * lib/trunc.c: Make paramerizable through USE_* macros.
61403         * lib/truncf.c: New file.
61404         * m4/truncf.m4: New file.
61405         * lib/math.in.h (truncf): New declaration.
61406         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
61407         HAVE_DECL_TRUNCF.
61408         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
61409         HAVE_DECL_TRUNCF.
61410         * doc/functions/truncf.texi: Mention the 'truncf' module.
61411
61412 2007-10-03  Bruno Haible  <bruno@clisp.org>
61413
61414         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
61415         augmentation also for tests modules.
61416         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
61417         * modules/atexit-tests (Makefile.am): Likewise.
61418         * modules/binary-io-tests (Makefile.am): Likewise.
61419         * modules/c-strcase-tests (Makefile.am): Likewise.
61420         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
61421         * modules/canonicalize-tests (Makefile.am): Likewise.
61422         * modules/closein-tests (Makefile.am): Likewise.
61423         * modules/fprintf-posix-tests (Makefile.am): Likewise.
61424         * modules/freadahead-tests (Makefile.am): Likewise.
61425         * modules/fseek-tests (Makefile.am): Likewise.
61426         * modules/fseeko-tests (Makefile.am): Likewise.
61427         * modules/ftell-tests (Makefile.am): Likewise.
61428         * modules/ftello-tests (Makefile.am): Likewise.
61429         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
61430         * modules/isnanl-tests (Makefile.am): Likewise.
61431         * modules/lseek-tests (Makefile.am): Likewise.
61432         * modules/mbscasecmp-tests (Makefile.am): Likewise.
61433         * modules/mbscasestr-tests (Makefile.am): Likewise.
61434         * modules/mbschr-tests (Makefile.am): Likewise.
61435         * modules/mbscspn-tests (Makefile.am): Likewise.
61436         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
61437         * modules/mbspbrk-tests (Makefile.am): Likewise.
61438         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
61439         * modules/mbsrchr-tests (Makefile.am): Likewise.
61440         * modules/mbsspn-tests (Makefile.am): Likewise.
61441         * modules/mbsstr-tests (Makefile.am): Likewise.
61442         * modules/printf-posix-tests (Makefile.am): Likewise.
61443         * modules/snprintf-posix-tests (Makefile.am): Likewise.
61444         * modules/sprintf-posix-tests (Makefile.am): Likewise.
61445         * modules/tsearch-tests (Makefile.am): Likewise.
61446         * modules/uniname/uniname-tests (Makefile.am): Likewise.
61447         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
61448         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
61449         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
61450         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
61451         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
61452         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
61453         * modules/vprintf-posix-tests (Makefile.am): Likewise.
61454         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
61455         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
61456         * modules/xstrtoimax-tests (Makefile.am): Likewise.
61457         * modules/xstrtol-tests (Makefile.am): Likewise.
61458         * modules/xstrtoumax-tests (Makefile.am): Likewise.
61459         * modules/yesno-tests (Makefile.am): Likewise.
61460
61461 2007-10-03  Bruno Haible  <bruno@clisp.org>
61462
61463         * modules/trunc-tests: New file.
61464         * tests/test-trunc.c: New file.
61465
61466         * modules/trunc: New file.
61467         * lib/trunc.c: New file.
61468         * m4/trunc.m4: New file.
61469         * lib/math.in.h (trunc): New declaration.
61470         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
61471         HAVE_DECL_TRUNC.
61472         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
61473         HAVE_DECL_TRUNC.
61474         * doc/functions/trunc.texi: Mention the 'trunc' module.
61475
61476 2007-10-03  Bruno Haible  <bruno@clisp.org>
61477
61478         * tests/test-fpending.c: New file, mostly copied
61479         from coreutils/lib/t-fpending.c.
61480         * modules/fpending-tests: New file.
61481
61482 2007-10-03  Bruno Haible  <bruno@clisp.org>
61483
61484         Port the stdio extensions to QNX (untested).
61485         * lib/fseterr.c (fseterr): Add support for QNX.
61486         * lib/fbufmode.c (fbufmode): Likewise.
61487         * lib/freadable.c (freadable): Likewise.
61488         * lib/fwritable.c (fwritable): Likewise.
61489         * lib/freading.c (freading): Likewise.
61490         * lib/fwriting.c (fwriting): Likewise.
61491         * lib/freadahead.c (freadahed): Likewise.
61492         * lib/fpurge.c (fpurge): Likewise.
61493         * lib/fseeko.c (rpl_fseeko): Likewise.
61494
61495 2007-10-03  Bruno Haible  <bruno@clisp.org>
61496             Jim Meyering  <jim@meyering.net>
61497             Eric Blake  <ebb9@byu.net>
61498
61499         * doc/relocatable.texi: Use @command instead of @program.
61500
61501 2007-10-02  Jim Meyering  <jim@meyering.net>
61502
61503         Perform one more "_.h" -> ".in.h" substitution.
61504         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
61505         instead of unistd_.h here, too.
61506
61507 2007-10-01  Bruno Haible  <bruno@clisp.org>
61508
61509         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
61510         Needed for the alloca-opt module.
61511
61512 2007-09-30  Bruno Haible  <bruno@clisp.org>
61513
61514         * lib/alloca.in.h: Renamed from lib/alloca_.h.
61515         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
61516         alloca_.h.
61517         * lib/argz.in.h: Renamed from lib/argz_.h.
61518         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
61519         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
61520         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
61521         byteswap_.h.
61522         * lib/dirent.in.h: Renamed from lib/dirent_.h.
61523         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
61524         dirent_.h.
61525         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
61526         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
61527         fcntl_.h.
61528         * lib/float.in.h: Renamed from lib/float_.h.
61529         * modules/float (Files, Makefile.am): Use float.in.h instead of
61530         float_.h.
61531         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
61532         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
61533         fnmatch_.h.
61534         * lib/getopt.in.h: Renamed from lib/getopt_.h.
61535         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
61536         getopt_.h.
61537         * lib/glob.in.h: Renamed from lib/glob_.h.
61538         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
61539         * lib/iconv.in.h: Renamed from lib/iconv_.h.
61540         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
61541         iconv_.h.
61542         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
61543         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
61544         inttypes_.h.
61545         * lib/locale.in.h: Renamed from lib/locale_.h.
61546         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
61547         locale_.h.
61548         * lib/math.in.h: Renamed from lib/math_.h.
61549         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
61550         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
61551         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
61552         of netinet_in_.h. Add dependency.
61553         * lib/poll.in.h: Renamed from lib/poll_.h.
61554         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
61555         * lib/search.in.h: Renamed from lib/search_.h.
61556         * modules/search (Files, Makefile.am): Use search.in.h instead of
61557         search_.h.
61558         * lib/signal.in.h: Renamed from lib/signal_.h.
61559         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
61560         _signal.h.
61561         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
61562         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
61563         stdbool_.h.
61564         * lib/stdint.in.h: Renamed from lib/stdint_.h.
61565         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
61566         stdint_.h.
61567         * lib/stdio.in.h: Renamed from lib/stdio_.h.
61568         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
61569         stdio_.h.
61570         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
61571         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
61572         stdlib_.h.
61573         * lib/string.in.h: Renamed from lib/string_.h.
61574         * modules/string (Files, Makefile.am): Use string.in.h instead of
61575         string_.h.
61576         * doc/gnulib-tool.texi (Initial import): Update.
61577         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
61578         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
61579         of sys_select_.h. Add dependency.
61580         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
61581         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
61582         of sys_socket_.h.
61583         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
61584         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
61585         sys_stat_.h.
61586         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
61587         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
61588         sys_time_.h.
61589         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
61590         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
61591         sysexits_.h.
61592         * lib/time.in.h: Renamed from lib/time_.h.
61593         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
61594         * lib/unistd.in.h: Renamed from lib/unistd_.h.
61595         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
61596         unistd_.h.
61597         * lib/wchar.in.h: Renamed from lib/wchar_.h.
61598         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
61599         wchar_.h.
61600         * lib/wctype.in.h: Renamed from lib/wctype_.h.
61601         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
61602         wctype_.h.
61603         * build-aux/bootstrap (slurp): Update.
61604         * lib/.cppi-disable: Update.
61605
61606 2007-09-30  Bruno Haible  <bruno@clisp.org>
61607
61608         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
61609         Needed on BeOS.
61610
61611 2007-09-30  Bruno Haible  <bruno@clisp.org>
61612
61613         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
61614
61615 2007-09-29  Bruno Haible  <bruno@clisp.org>
61616
61617         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
61618
61619 2007-09-29  Bruno Haible  <bruno@clisp.org>
61620
61621         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
61622         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
61623         * build-aux/install-reloc: Compile also areadlink.c.
61624         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
61625
61626 2007-09-29  Bruno Haible  <bruno@clisp.org>
61627
61628         * gnulib-tool (func_emit_initmacro_done): Indentation.
61629
61630 2007-09-29  Bruno Haible  <bruno@clisp.org>
61631
61632         * README: Add CVS checkout update instructions.
61633         Info from Bob Proulx <bob@proulx.com>.
61634
61635 2007-09-28  Eric Blake  <ebb9@byu.net>
61636
61637         Provide move-if-change.
61638         * build-aux/move-if-change: New file, based on best practice
61639         rather than any canonical upstream location.
61640
61641 2007-09-28  Jim Meyering  <jim@meyering.net>
61642
61643         Fix canonicalize loop-detection corner case.
61644         Do not attempt to stat the symlink values stored via seen_triple.
61645         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
61646         on linux-2.6.18, (but not 2.6.22).
61647         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
61648         triple_compare.  The former compares dev,ino,filename, while the latter
61649         would actually stat dirname(filename) when dev and ino were equal.
61650         * lib/hash-triple.c: Install <string.h>.
61651         (STREQ): Define.
61652         (triple_compare_ino_str): New function.
61653         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
61654
61655 2007-09-28  Eric Blake  <ebb9@byu.net>
61656
61657         Enforce that AC_REPLACE_FUNCS files exist.
61658         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
61659         override check for typos.
61660
61661         Fix test-closein on Solaris 10.
61662         * tests/test-closein.c (main): Don't assume stdin can be inherited
61663         closed on all systems.
61664         * tests/test-closein.sh: Likewise.
61665         Reported by Piotr Tarnowski.
61666
61667 2007-09-28  Jim Meyering  <jim@meyering.net>
61668
61669         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
61670
61671 2007-09-27  Jim Meyering  <jim@meyering.net>
61672
61673         canonicalize: Avoid a false-positive cycle failure.
61674         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
61675         Sort.  Remove cycle-check.
61676         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
61677         not cycle-check.h.
61678         (seen_triple): New function.
61679         (canonicalize_filename_mode): Use it instead of cycle-check.
61680         * tests/test-canonicalize.c: Add a test for this bug.
61681         * tests/test-canonicalize.sh: Set up and run the test.
61682
61683         New module, file-set, from coreutils.
61684         * modules/file-set: Define it.
61685         * lib/file-set.c, lib/file-set.h: Implement.
61686
61687         New module, hash-triple, from coreutils.
61688         * modules/hash-triple: Define it.
61689         * lib/hash-triple.c, lib/hash-triple.h: Implement.
61690
61691 2007-09-25  Eric Blake  <ebb9@byu.net>
61692
61693         Fix strerror on Interix.
61694         * lib/string_.h (strerror): Declare replacement.
61695         * doc/functions/strerror.texi (strerror): Document the Interix
61696         shortcoming.
61697         * modules/string (Makefile.am): Support new hooks.
61698         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
61699         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
61700         gl_FUNC_STRERROR_SEPARATE.
61701         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
61702         * lib/strerror.c (rpl_strerror): Provide replacement.
61703         * modules/strerror (Depends-on): Add string.
61704         (configure.ac): Detect use of module.
61705         * tests/test-strerror.c: New file.
61706         * modules/strerror-tests: New test module.
61707         * modules/argp (Depends-on): Add strerror.
61708         * modules/error (Depends-on): Likewise.
61709         Reported by Martin Koeppe.
61710
61711 2007-09-24  Bruno Haible  <bruno@clisp.org>
61712
61713         * README: Update git instructions.
61714
61715 2007-09-24  Eric Blake  <ebb9@byu.net>
61716
61717         Revert fpending breakage from 2007-09-08.
61718         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
61719         __fpending.c.
61720
61721 2007-09-24  Jim Meyering  <jim@meyering.net>
61722
61723         filenamecat.c: Add a test.
61724         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
61725         showing how the function works when DIR is the empty string.
61726
61727 2007-09-21  Simon Josefsson  <simon@josefsson.org>
61728
61729         * tests/test-canonicalize.sh: Turn on executable bit.
61730
61731 2007-09-19  Eric Blake  <ebb9@byu.net>
61732
61733         * README: Update CVS instructions.
61734
61735 2007-09-18  Bruno Haible  <bruno@clisp.org>
61736
61737         * modules/areadlink: New file.
61738         * lib/areadlink.h (areadlink): New declaration.
61739         * lib/areadlink.c: New file, based on lib/xreadlink.c.
61740
61741 2007-09-17  Jim Meyering  <jim@meyering.net>
61742
61743         * lib/savewd.c (ESTALE) [!defined]: Define.
61744         Reported to be required on Interix by Martin Koeppe.
61745
61746 2007-09-17  Bruno Haible  <bruno@clisp.org>
61747
61748         * gnulib-tool (func_version): Use $version.
61749
61750 2007-09-16  Bruno Haible  <bruno@clisp.org>
61751
61752         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
61753         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
61754         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
61755         Reported by Greg Schafer <gschafer@zip.com.au>.
61756
61757 2007-09-15  Bruno Haible  <bruno@clisp.org>
61758
61759         * gnulib-tool (sed): Try a little harder to make bash understand the
61760         alias.
61761         Reported by Bruce Korb <bruce.korb@gmail.com>.
61762
61763 2007-09-13  Eric Blake  <ebb9@byu.net>
61764
61765         * ChangeLog: Remove conflict markers.
61766
61767 2007-09-13  Simon Josefsson  <simon@josefsson.org>
61768
61769         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
61770         Reported by Bruno Haible <bruno@clisp.org>.
61771
61772 2007-09-12  Bruno Haible  <bruno@clisp.org>
61773
61774         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
61775         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
61776         is not defined.
61777
61778 2007-09-12  Eric Blake  <ebb9@byu.net>
61779
61780         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
61781         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
61782         Autoconf definition.
61783         * modules/euidaccess (Depends-on): Add extensions, for
61784         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
61785         * modules/fnmatch (Depends-on): Likewise.
61786         * modules/getaddrinfo (Depends-on): Likewise.
61787         * modules/getdelim (Depends-on): Likewise.
61788         * modules/getline (Depends-on): Likewise.
61789         * modules/getsubopt (Depends-on): Likewise.
61790         * modules/gettext (Depends-on): Likewise.
61791         * modules/group-member (Depends-on): Likewise.
61792         * modules/mbchar (Depends-on): Likewise.
61793         * modules/memmem (Depends-on): Likewise.
61794         * modules/mempcpy (Depends-on): Likewise.
61795         * modules/memrchr (Depends-on): Likewise.
61796         * modules/pagealign_alloc (Depends-on): Likewise.
61797         * modules/readutmp (Depends-on): Likewise.
61798         * modules/stpcpy (Depends-on): Likewise.
61799         * modules/stpncpy (Depends-on): Likewise.
61800         * modules/strchrnul (Depends-on): Likewise.
61801         * modules/strndup (Depends-on): Likewise.
61802         * modules/strsep (Depends-on): Likewise.
61803         * modules/strverscmp (Depends-on): Likewise.
61804         * modules/vasprintf (Depends-on): Likewise.
61805         * modules/wcwidth (Depends-on): Likewise.
61806         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
61807         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
61808         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
61809         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
61810         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
61811         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
61812         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
61813         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
61814         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
61815         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
61816         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
61817         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
61818         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
61819         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
61820         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
61821         * m4/readutmp.m4 (gl_READUTMP): Likewise.
61822         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
61823         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
61824         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
61825         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
61826         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
61827         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
61828         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
61829         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
61830         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
61831         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
61832         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
61833         so that lock.m4 can be used in gettext without extensions module.
61834
61835 2007-09-11  Bruno Haible  <bruno@clisp.org>
61836
61837         * m4/isc-posix.m4: Remove file.
61838         Suggested by Eric Blake.
61839
61840 2007-09-11  Eric Blake  <ebb9@byu.net>
61841
61842         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
61843
61844 2007-09-10  Bruno Haible  <bruno@clisp.org>
61845
61846         * posix-modules: Fix typo in error message.
61847         Reported by Matt <mkraai@beckman.com>.
61848
61849 2007-09-09  Bruno Haible  <bruno@clisp.org>
61850
61851         * doc/functions/getdelim.texi: Update list of platforms lacking the
61852         function.
61853         * doc/functions/getline.texi: Likewise.
61854
61855 2007-09-09  Jim Meyering  <jim@meyering.net>
61856
61857         * lib/hash.c (hash_initialize): Detect calloc failure.
61858         Reported by Bruno Haible.
61859
61860 2007-09-09  Bruno Haible  <bruno@clisp.org>
61861
61862         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
61863         malloc or realloc fails.
61864
61865 2007-09-09  Bruno Haible  <bruno@clisp.org>
61866
61867         * modules/getcwd (Depends-on): Add malloc-posix.
61868         * modules/glob (Depends-on): Likewise.
61869         * modules/putenv (Depends-on): Likewise.
61870         * modules/strdup (Depends-on): Likewise.
61871         * modules/getdelim (Depends-on): Add realloc-posix.
61872         * modules/read-file (Depends-on): Likewise.
61873
61874 2007-09-09  Bruno Haible  <bruno@clisp.org>
61875
61876         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
61877         (gl_FUNC_MALLOC_POSIX): Require it.
61878         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
61879         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
61880         * modules/realloc (Files): Add m4/malloc.m4.
61881         * modules/calloc (Files): Likewise.
61882
61883 2007-09-09  Bruno Haible  <bruno@clisp.org>
61884
61885         * modules/malloc-posix: New file.
61886         * modules/malloc (Depends-on): Add malloc-posix.
61887         * lib/malloc.c: Include errno.h.
61888         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
61889         and a POSIX-compatible malloc into a single function. Set ENOMEM
61890         when returning NULL.
61891         * m4/malloc.m4: New file.
61892         * doc/functions/malloc.texi: Mention the malloc-posix module.
61893         * lib/stdlib_.h (malloc): New declaration.
61894         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
61895         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
61896         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
61897         and HAVE_MALLOC_POSIX.
61898
61899 2007-09-09  Bruno Haible  <bruno@clisp.org>
61900
61901         * modules/realloc-posix: New file.
61902         * modules/realloc (Depends-on): Add realloc-posix.
61903         * lib/realloc.c: Include errno.h.
61904         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
61905         and a POSIX-compatible realloc into a single function. Set ENOMEM
61906         when returning NULL.
61907         * m4/realloc.m4: New file.
61908         * doc/functions/realloc.texi: Mention the realloc-posix module.
61909         * lib/stdlib_.h (realloc): New declaration.
61910         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
61911         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
61912         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
61913         and HAVE_REALLOC_POSIX.
61914
61915 2007-09-09  Bruno Haible  <bruno@clisp.org>
61916
61917         * modules/calloc-posix: New file.
61918         * modules/calloc (Depends-on): Add calloc-posix.
61919         * lib/calloc.c: Include errno.h.
61920         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
61921         and a POSIX-compatible calloc into a single function. Set ENOMEM
61922         when returning NULL.
61923         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
61924         * doc/functions/calloc.texi: Mention the calloc-posix module.
61925         * lib/stdlib_.h (calloc): New declaration.
61926         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
61927         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
61928         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
61929         and HAVE_CALLOC_POSIX.
61930
61931 2007-09-09  Bruno Haible  <bruno@clisp.org>
61932
61933         Allow for modules to show an arbitrary notice.
61934         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
61935         * gnulib-tool: New option --extract-notice.
61936         (func_usage): Document it.
61937         (sed_extract_prog): Update.
61938         (func_get_notice): New function.
61939         (func_modules_notice): New function.
61940         (func_import, func_create_testdir): Invoke it.
61941         Suggested by Jim Meyering.
61942
61943 2007-09-09  Bruno Haible  <bruno@clisp.org>
61944
61945         * gnulib-tool: New options --verbose, --quiet.
61946         (func_usage): Document them.
61947         (verbose): New variable.
61948         (func_execute_command): New function.
61949         (func_import): Don't show the module list and the file list if
61950         $verbose < 0.
61951         (func_create_testdir): Likewise. Use func_execute_command.
61952         (func_create_megatestdir): Use func_execute_command.
61953
61954 2007-09-08  Bruno Haible  <bruno@clisp.org>
61955
61956         * gnulib-tool (func_import): Prefer rsync over wget when available,
61957         for fetching the PO files.
61958
61959 2007-09-08  Bruno Haible  <bruno@clisp.org>
61960
61961         * posix-modules: New file. Portions copied from gnulib-tool.
61962         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
61963
61964 2007-09-08  Jim Meyering  <jim@meyering.net>
61965
61966         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
61967         * lib/fpending.h: Rename from __fpending.h.
61968         * lib/fpending.c: Rename from __fpending.c.
61969         Include "fpending.h", not "__fpending.h".
61970         * lib/__fpending.h, lib/__fpending.c: Remove files.
61971         * modules/fpending (Files): Reflect new file names.
61972         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
61973
61974 2007-09-08  Bruno Haible  <bruno@clisp.org>
61975
61976         * m4/inttypes-h.m4: Remove stub file.
61977
61978 2007-09-07  Simon Josefsson  <simon@josefsson.org>
61979
61980         * doc/headers/stdint.texi: Discuss #include_next issue.
61981
61982 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
61983
61984         * build-aux/bootstrap: Remove obsolete comment about wget --help.
61985
61986 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61987
61988         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
61989         in variable name.
61990
61991 2007-09-03  Jim Meyering  <jim@meyering.net>
61992
61993         New module: git-version-gen.
61994         * modules/git-version-gen: New file.
61995
61996         Import changes from coreutils for bootstrap script.
61997
61998         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
61999
62000         bootstrap: uses rsync to download the .po files
62001         * build-aux/bootstrap (po_download_command_format): New global.
62002         (download_po_files): Use rsync.
62003         (update_po_files): Don't remove .po files after download,
62004         so future rsync runs can take advantage of the copies.
62005
62006         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
62007
62008         Solve the unnecessary-.po-file-regeneration problem once and for all.
62009         * build-aux/bootstrap (download_po_files): New function, renamed from
62010         get_translations.  Now, downloads, but doesn't update LINGUAS.
62011         (update_po_files): New function.
62012
62013         bootstrap: Ignore more.
62014         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
62015         uniwidth to e.g., lib/.gitignore.
62016         (slurp): Handle the sys_stat_.h -> sys mapping, too.
62017
62018         * build-aux/bootstrap: New setting: vc_ignore.
62019         (insert_sorted_if_absent): Create $file if absent.
62020         Adapt to new, possibly empty, list: $vc_ignore.
62021
62022         bootstrap: generate more ignorable names
62023         * build-aux/bootstrap (slurp): When generating ignorable names,
62024         also map .sin to .sed, .gperf to .c, and .y to .c.
62025
62026 2007-09-03  Jim Meyering  <jim@meyering.net>
62027
62028         * build-aux/git-version-gen: New file, from coreutils.  For details, see
62029         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
62030
62031 2007-09-02  Bruno Haible  <bruno@clisp.org>
62032
62033         Fix mis-recognition of 'mcs' on QNX 6.
62034         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
62035         output contains the string "Mono".
62036         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
62037         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
62038
62039 2007-09-01  Bruno Haible  <bruno@clisp.org>
62040
62041         Fix collision between uniwidth/* and linebreak modules.
62042         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
62043         u32_width): Remove declarations.
62044         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
62045         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
62046         streq3, streq2, streq1, streq0): Remove functions.
62047         (STREQ): Remove macro.
62048         (is_cjk_encoding): Remove function.
62049         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
62050         (uc_width, u8_width, u16_width, u32_width): Remove functions.
62051         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
62052         * NEWS: Document the change.
62053
62054 2007-09-01  Bruno Haible  <bruno@clisp.org>
62055
62056         * lib/streq.h: Add double-inclusion guard.
62057
62058 2007-09-01  Karl Berry  <karl@gnu.org>
62059
62060         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
62061
62062 2007-08-28  Jim Meyering  <jim@meyering.net>
62063
62064         Rename mreadlink_with_size to areadlink_with_size.
62065         * NEWS: Document the change.
62066         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
62067         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
62068         * lib/mreadlink.h: Rename this to...
62069         * lib/areadlink.h: ...this.
62070         * modules/mreadlink-with-size: Rename this to...
62071         * modules/areadlink-with-size: ...this.
62072         * lib/canonicalize.c: Reflect the renaming.
62073         * modules/canonicalize: Likewise.
62074
62075 2007-08-26  Bruno Haible  <bruno@clisp.org>
62076
62077         * gnulib-tool (func_import): When deciding which files to remove,
62078         consider also dangling symbolic links.
62079         Reported by Eric Blake.
62080
62081 2007-08-26  Bruno Haible  <bruno@clisp.org>
62082
62083         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
62084
62085 2007-08-23  Simon Josefsson  <simon@josefsson.org>
62086
62087         * lib/readline.c: Don't include getline.h, the prototype is now
62088         found in stdio.h.
62089
62090 2007-08-23  Jim Meyering  <jim@meyering.net>
62091
62092         Getdelim touchup.
62093         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
62094         around the funlockfile call, since funlockfile never sets errno.
62095         Don't set errno upon failed realloc.
62096
62097 2007-08-22  Eric Blake  <ebb9@byu.net>
62098
62099         Getline touchups.
62100         * lib/getdelim.c (getdelim): Revert regression that required *n to
62101         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
62102         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
62103         getdelim, rather than whether implementation is missing.
62104         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
62105         * lib/stdio_.h (getline): Also declare if replacement is
62106         required.
62107         * doc/functions/getdelim.texi: New file.
62108         * doc/functions/getline.texi: Likewise.
62109         * doc/gnulib.texi (Function Substitutes): Add new files.
62110         Reported by Bruno Haible.
62111
62112 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
62113
62114         * users.txt: Add Guile.
62115
62116 2007-08-22  Eric Blake  <ebb9@byu.net>
62117
62118         * tests/test-getdelim.c (main): Use remove, not unlink.
62119         * tests/test-getline.c (main): Likewise.
62120
62121         Move getline and getdelim into stdio.h, per POSIX 200x.
62122         * modules/getline (Files): Remove getline.h.
62123         (Depends-on): Add stdio.
62124         (configure.ac): Add module indicator.
62125         * modules/getdelim (Files): Remove getdelim.h.
62126         (Depends-on): Add stdio.
62127         (configure.ac): Add module indicator.
62128         * modules/stdio (Makefile.am): Work with new indicators.
62129         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
62130         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
62131         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
62132         * lib/getdelim.h: Delete.
62133         * lib/getline.h: Delete.
62134         * lib/stdio_.h (getdelim, getline): Declare.
62135         * modules/getdelim-tests: New module.
62136         * modules/getline-tests: Likewise.
62137         * tests/test-getdelim.c: New file.
62138         * tests/test-getline.c: Likewise.
62139         * NEWS: Document the change.
62140         * lib/getline.c: Update choice of header.
62141         * lib/csharpcomp.c: Likewise.
62142         * lib/getpass.c: Likewise.
62143         * lib/javacomp.c: Likewise.
62144         * lib/javaversion.c: Likewise.
62145         * lib/yesno.c: Likewise.
62146         * lib/getdelim.c: Likewise.
62147         (getdelim): Set errno on failure, and avoid memory leak.
62148
62149 2007-08-19  Bruno Haible  <bruno@clisp.org>
62150
62151         * modules/closein (Depends-on): Add freadahead.
62152         * lib/closein.c: Include freadahead.h.
62153         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
62154         is zero.
62155
62156 2007-08-19  Bruno Haible  <bruno@clisp.org>
62157
62158         * modules/freadahead-tests: New file.
62159         * tests/test-freadahead.sh: New file.
62160         * tests/test-freadahead.c: New file.
62161
62162         * modules/freadahead: New file.
62163         * lib/freadahead.h: New file.
62164         * lib/freadahead.c: New file.
62165         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
62166         fbufmode, fpurge, freadable, fwritable.
62167
62168 2007-08-19  Eric Blake  <ebb9@byu.net>
62169
62170         Test yesno in combination with closein.
62171         * lib/yesno.c (yesno): Document use of stdin.
62172         * modules/yesno-tests (Files): New module.
62173         * tests/test-yesno.c (main): New file.
62174         * tests/test-yesno.sh: Likewise.
62175
62176 2007-08-19  Bruno Haible  <bruno@clisp.org>
62177
62178         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
62179         * lib/fseeko.c (rpl_fseeko): Likewise.
62180         * lib/fseterr.c (fseterr): Likewise.
62181
62182 2007-08-19  Bruno Haible  <bruno@clisp.org>
62183
62184         * tests/test-lseek.c (main): Disable a test for BeOS.
62185         * doc/functions/lseek.texi: Document the BeOS bug.
62186
62187 2007-08-19  Bruno Haible  <bruno@clisp.org>
62188             Eric Blake  <ebb9@byu.net>
62189
62190         * lib/lseek.c: Include <sys/stat.h>.
62191         (rpl_lseek): Add workaround code also for Unix platforms.
62192         Needed for BeOS.
62193         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
62194         * doc/functions/lseek.texi: Document BeOS definiency.
62195
62196 2007-08-18  Bruno Haible  <bruno@clisp.org>
62197
62198         * modules/fstrcmp-tests: New file.
62199         * tests/test-fstrcmp.c: New file.
62200
62201 2007-08-18  Bruno Haible  <bruno@clisp.org>
62202
62203         * modules/fstrcmp: New file, from GNU gettext with modifications.
62204         * lib/fstrcmp.h: New file, from GNU gettext.
62205         * lib/fstrcmp.c: New file, from GNU gettext.
62206         * MODULES.html.sh (String handling): Add fstrcmp.
62207
62208 2007-08-18  Bruno Haible  <bruno@clisp.org>
62209
62210         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
62211         'bool'.
62212         (diag, compareseq): Remove const from the ctxt argument.
62213         (USE_HEURISTIC): Undefine at the end.
62214
62215 2007-08-18  Jim Meyering  <jim@meyering.net>
62216
62217         New file: lib/idcache.h
62218         * NEWS: Mention the addition.
62219         * modules/idcache (Files): Add lib/idcache.h
62220         * lib/idcache.c: Include "idcache.h".
62221         Don't include <sys/types.h>.
62222         Add a FIXME comment.
62223         Move file-scoped "static" declarations to the top.
62224         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
62225
62226 2007-08-17  Bruno Haible  <bruno@clisp.org>
62227         and Paul Eggert  <eggert@cs.ucla.edu>
62228
62229         * MODULES.html.sh: Add diffseq.
62230         * modules/diffseq: New file.
62231         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
62232         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
62233
62234 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
62235
62236         Import changes from coreutils for bootstrap script.
62237
62238         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
62239
62240         * build-aux/bootstrap (slurp): Work even in environments where
62241         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
62242         current code does not slurp files whose names start with ".", and
62243         this looks like it might be a troublesome area.
62244
62245         2007-07-11  Jim Meyering  <jim@meyering.net>
62246
62247         If there's a GPL vN copyright comment, require that N == 3.
62248
62249         2007-07-08  Jim Meyering  <jim@meyering.net>
62250
62251         Run the coreutils-specific code only if tests/Makefile.am.in exists.
62252         * build-aux/bootstrap (mam_template): Move definition out of loop.
62253
62254         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
62255
62256         * build-aux/bootstrap (symlink_to_dir): Rename function from
62257         symlink_to_gnulib.  Add a directory parameter.  Update all
62258         callers.
62259         (cp_mark_as_generated): Also check for -- and link to -- files in
62260         gl/.
62261
62262         2007-07-08  Jim Meyering  <jim@meyering.net>
62263
62264         Adapt to deeper hierarchy in gnulib.
62265         * build-aux/bootstrap (symlink_to_dir): If the destination
62266         directory doesn't exist, create it. This is required at least for
62267         "lib/uniwidth/cjk.h".
62268
62269         2007-05-15  Jim Meyering  <jim@meyering.net>
62270
62271         * build-aux/bootstrap: Now that generated Makefile.am files
62272         are no longer under version control, they must be created at
62273         bootstrap time.
62274
62275 2007-08-14  Ben Pfaff  <blp@gnu.org>
62276
62277         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
62278
62279 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
62280
62281         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
62282         given the changes below.
62283         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
62284         even on hosts that have padding bits beyond the supported 64.
62285
62286 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
62287
62288         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
62289         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
62290         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
62291         depends on it.
62292         (xstrtol_error): Remove.
62293         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
62294         but with a different signature.
62295         (ATTRIBUTE_NORETURN, __attribute__): New macros.
62296         * lib/xstrtol-error.c: Include exitfail.h.
62297         (xstrtol_fatal): New function, with a different signature from the
62298         old xstrtol_error, so that the caller need not worry about passing
62299         in an exit status, or about storage management of the option argument.
62300         (xstrtol_error): Now a static function.  Redo signature to
62301         implement xstrtol_fatal.  Output the correct number of hyphens in
62302         front of the option so that the caller need not worry about
62303         storage management.
62304         (N_): New macro.
62305         (_): Remove; not used now.
62306         * modules/xstrtol: Depend on getopt.
62307         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
62308         of old STRTOL_FATAL_ERROR macro.
62309         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
62310         of test program.
62311         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
62312         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
62313
62314 2007-08-08  Eric Blake  <ebb9@byu.net>
62315
62316         * lib/xstrtol-error.c: Add missing include.
62317
62318         Move xstrtol messages into gnulib domain, when --pobase is used.
62319         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
62320         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
62321         * modules/xstrtol (Files): Distribute new file.
62322         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
62323         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
62324         * tests/test-xstrtol.c: ...into new file.
62325         * tests/test-xstrtoul.c: Also test xstrtoul.
62326         * tests/test-xstrtoimax.c: Also test xstrtoimax.
62327         * tests/test-xstrtoumax.c: Also test xstrtoumax.
62328         * tests/test-xstrtol.sh: Drive the tests.
62329         * tests/test-xstrtoimax.sh: Likewise.
62330         * tests/test-xstrtoumax.sh: Likewise.
62331         * modules/xstrtol-tests: New module.
62332         * modules/xstrtoimax-tests: Likewise.
62333         * modules/xstrtoumax-tests: Likewise.
62334
62335 2007-08-08  Jim Meyering  <jim@meyering.net>
62336
62337         New function: mfile_name_concat.
62338         * lib/filenamecat.c (mfile_name_concat): New function, just like
62339         file_name_concat, but return NULL upon failure rather than exiting
62340         with a diagnostic.
62341         * lib/filenamecat.h: Declare it.
62342
62343 2007-08-07  Bruno Haible  <bruno@clisp.org>
62344
62345         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
62346         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
62347         warning from gcc.
62348         Reported by Eric Blake.
62349
62350 2007-08-07  Simon Josefsson  <simon@josefsson.org>
62351
62352         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
62353         * modules/crypto/arcfour (License): Likewise.
62354         * modules/crypto/des-tests (License): Likewise.
62355         * modules/crypto/gc-arctwo-tests (License): Likewise.
62356         * modules/crypto/gc-des-tests (License): Likewise.
62357         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
62358         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
62359         * modules/crypto/gc-md2-tests (License): Likewise.
62360         * modules/crypto/gc-md4-tests (License): Likewise.
62361         * modules/crypto/gc-md5-tests (License): Likewise.
62362         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
62363         * modules/crypto/gc-rijndael-tests (License): Likewise.
62364         * modules/crypto/gc-sha1-tests (License): Likewise.
62365         * modules/crypto/gc-tests (License): Likewise.
62366         * modules/crypto/hmac-md5 (License): Likewise.
62367         * modules/crypto/hmac-sha1 (License): Likewise.
62368         * modules/crypto/md2-tests (License): Likewise.
62369         * modules/crypto/md4-tests (License): Likewise.
62370         * modules/crypto/md5 (License): Likewise.
62371         * modules/crypto/rijndael (License): Likewise.
62372         * modules/crypto/sha1 (License): Likewise.
62373         * modules/memxor (License): Likewise.
62374
62375 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
62376         and Bruno Haible  <bruno@clisp.org>
62377
62378         * NEWS: Describe interface changes to human, xstrtol.
62379         * lib/human.h: Include <xstrtol.h>.
62380         (human_options): Return enum strtol_error, not int.  Remove
62381         bool arg; take int * instead.
62382         * lib/human.c: Don't include "gettext.h".
62383         (_): Remove; no longer used.
62384         Don't include <xstrtol.h>, since human.h does it.
62385         (human_options): Adjust to abovementioned interface changes.
62386         Do not report error to stderr; that's now the caller's
62387         responsibility.
62388         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
62389         interface change.
62390         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
62391         Str, Argument_type_string.  All uses changed.  Put " argument"
62392         in diagnostics to make them clearer.  Change wording of suffix
62393         message for clarity.
62394         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
62395         Argument_type_string.
62396         (STRTOL_FATAL_WARN): Remove; no longer used.
62397         * modules/human (Depends-on): Remove gettext-h.
62398
62399 2007-08-06  Simon Josefsson  <simon@josefsson.org>
62400
62401         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
62402
62403 2007-07-31  Bruno Haible  <bruno@clisp.org>
62404
62405         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
62406         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
62407         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
62408
62409 2007-07-31  Bruno Haible  <bruno@clisp.org>
62410
62411         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
62412         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
62413
62414 2007-07-30  Bruno Haible  <bruno@clisp.org>
62415
62416         * modules/base64 (License): Use the synonymous term "LGPLv2+".
62417         * modules/c-ctype (License): Likewise.
62418         * modules/c-strcase (License): Likewise.
62419         * modules/check-version (License): Likewise.
62420         * modules/iconv (License): Likewise.
62421         * modules/iconv_open (License): Likewise.
62422         * modules/read-file (License): Likewise.
62423         * modules/striconv (License): Likewise.
62424         * modules/strverscmp (License): Likewise.
62425         * modules/vasprintf (License): Likewise.
62426         * modules/crypto/des (License): Likewise.
62427         * modules/crypto/gc (License): Likewise.
62428         * modules/crypto/gc-arcfour (License): Likewise.
62429         * modules/crypto/gc-arctwo (License): Likewise.
62430         * modules/crypto/gc-des (License): Likewise.
62431         * modules/crypto/gc-hmac-md5 (License): Likewise.
62432         * modules/crypto/gc-hmac-sha1 (License): Likewise.
62433         * modules/crypto/gc-md2 (License): Likewise.
62434         * modules/crypto/gc-md4 (License): Likewise.
62435         * modules/crypto/gc-md5 (License): Likewise.
62436         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
62437         * modules/crypto/gc-random (License): Likewise.
62438         * modules/crypto/gc-rijndael (License): Likewise.
62439         * modules/crypto/gc-sha1 (License): Likewise.
62440         * modules/crypto/md2 (License): Likewise.
62441         * modules/crypto/md4 (License): Likewise.
62442
62443 2007-07-30  Jim Meyering  <jim@meyering.net>
62444
62445         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
62446         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
62447         it has valid stat data.  This bug would cause du not to count the
62448         sizes of inaccessible directories.
62449         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
62450         in <http://bugzilla.redhat.com/250077>.
62451
62452 2007-07-25  Peter O'Gorman  <peter@pogma.com>
62453             Bruno Haible  <bruno@clisp.org>
62454
62455         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
62456         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
62457         #include_next, gives a diagnostic about it, but reports no error in
62458         the exit code.
62459         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
62460
62461 2007-07-24  Ben Pfaff  <blp@gnu.org>
62462
62463         Improve name: "count-one-bits" is better than "popcount".
62464         * MODULES.html.sh: Update name.
62465         * lib/popcount.h: Renamed lib/count-one-bits.h.
62466         (popcount): Renamed count_one_bits.
62467         (popcountl): Renamed count_one_bits_l.
62468         (popcountll): Renamed count_one_bits_ll.
62469         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
62470         * modules/popcount: Renamed module/count-one-bits.
62471         * modules/popcount-tests: Renamed module/count-one-bits-tests.
62472         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
62473
62474 2007-07-23  Ben Pfaff  <blp@gnu.org>
62475
62476         * lib/popcount.h (popcount32): Reduce size of constants, to allow
62477         better code generation, and add U to large constants to avoid
62478         warnings, in non-GCC case.
62479         Suggested by Bruno Haible.
62480
62481 2007-07-23  Ben Pfaff  <blp@gnu.org>
62482
62483         * lib/popcount.h: Use verify_true instead of if...abort.
62484         * modules/popcount: Depend on verify module.
62485         Suggested by Jim Meyering.
62486
62487 2007-07-23  Bruno Haible  <bruno@clisp.org>
62488
62489         * gnulib-tool (func_import): Create a .cvsignore file also when the
62490         directory is not yet in CVS but the toplevel directory is. When
62491         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
62492         Reported by Karl Berry.
62493
62494 2007-07-22  Ben Pfaff  <blp@gnu.org>
62495
62496         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
62497         case.
62498         Suggested by Eric Blake.
62499
62500 2007-07-22  Ben Pfaff  <blp@gnu.org>
62501
62502         New module: popcount.
62503         * MODULES.html.sh: Add popcount.
62504         * modules/popcount: New file.
62505         * modules/popcount-tests: New file.
62506         * tests/test-popcount.c: New file.
62507         * lib/popcount.h: New file.
62508         * m4/popcount.m4: New file.
62509
62510 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
62511
62512         * build-aux/announce-gen: Update to GPLv3.
62513
62514         * build-aux/config.guess: Update from config.
62515
62516 2007-07-21  Bruno Haible  <bruno@clisp.org>
62517
62518         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
62519         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
62520
62521 2007-07-20  Jim Meyering  <jim@meyering.net>
62522
62523         * check-module: Diagnose a self-dependency.
62524
62525 2007-07-19  Bruno Haible  <bruno@clisp.org>
62526
62527         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
62528         empty.
62529         Reported by Eric Blake.
62530
62531 2007-07-18  Bruno Haible  <bruno@clisp.org>
62532
62533         * gnulib-tool: New options --po-base, --po-domain.
62534         (func_usage): Document them.
62535         (pobase, po_domain): New variables.
62536         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
62537         DEFAULT_TEXT_DOMAIN.
62538         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
62539         (func_import): Consider pobase and po_domain. Create a po/ directory.
62540         (func_create_testdir): Set pobase and po_domain to empty.
62541         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
62542         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
62543
62544 2007-07-18  Bruno Haible  <bruno@clisp.org>
62545
62546         * gnulib-tool (func_get_automake_snippet): Synthesize also an
62547         EXTRA_DIST augmentation for files in build-aux/.
62548
62549 2007-07-16  Bruno Haible  <bruno@clisp.org>
62550
62551         * modules/lseek (License): Use the synonymous term "LGPLv2+".
62552         * modules/getdelim (License): Likewise.
62553
62554 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62555
62556         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
62557         * modules/d-type (License): Likewise.
62558         * modules/extensions (License): Likewise.
62559         * modules/fnmatch (License): Likewise.
62560         * modules/fseeko (License): Likewise.
62561         * modules/getaddrinfo (License): Likewise.
62562         * modules/getline (License): Likewise.
62563         * modules/getlogin_r (License): Likewise.
62564         * modules/getpass (License): Likewise.
62565         * modules/gettimeofday (License): Likewise.
62566         * modules/glob (License): Likewise.
62567         * modules/inet_ntop (License): Likewise.
62568         * modules/malloc (License): Likewise.
62569         * modules/malloca (License): Likewise.
62570         * modules/memmem (License): Likewise.
62571         * modules/mempcpy (License): Likewise.
62572         * modules/memset (License): Likewise.
62573         * modules/minmax (License): Likewise.
62574         * modules/mktime (License): Likewise.
62575         * modules/netinet_in (License): Likewise.
62576         * modules/pathmax (License): Likewise.
62577         * modules/poll (License): Likewise.
62578         * modules/regex (License): Likewise.
62579         * modules/snprintf (License): Likewise.
62580         * modules/stdbool (License): Likewise.
62581         * modules/stdint (License): Likewise.
62582         * modules/stdio (License): Likewise.
62583         * modules/strcase (License): Likewise.
62584         * modules/strcasestr (License): Likewise.
62585         * modules/strdup (License): Likewise.
62586         * modules/string (License): Likewise.
62587         * modules/strndup (License): Likewise.
62588         * modules/strnlen (License): Likewise.
62589         * modules/strpbrk (License): Likewise.
62590         * modules/strptime (License): Likewise.
62591         * modules/strsep (License): Likewise.
62592         * modules/sys_select (License): Likewise.
62593         * modules/sys_socket (License): Likewise.
62594         * modules/sys_stat (License): Likewise.
62595         * modules/sys_time (License): Likewise.
62596         * modules/time (License): Likewise.
62597         * modules/time_r (License): Likewise.
62598         * modules/timegm (License): Likewise.
62599         * modules/unistd (License): Likewise.
62600         * modules/vsnprintf (License): Likewise.
62601         * modules/wctype (License): Likewise.
62602
62603 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62604
62605         * modules/argz (License): LGPLv2+.
62606
62607 2007-07-15  Karl Berry  <karl@gnu.org>
62608
62609         * doc/gnulib.texi: revise node structure per new fdl.texi.
62610
62611 2007-07-14  Bruno Haible  <bruno@clisp.org>
62612
62613         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
62614         the output file.
62615         * lib/uniname/uninames.h: Regenerated.
62616
62617 2007-07-14  Karl Berry  <karl@gnu.org>
62618
62619         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
62620         omitting sectioning and index commands.
62621
62622 2007-07-13  Bruno Haible  <bruno@clisp.org>
62623
62624         New gnulib-tool option --more-symlinks.
62625         * gnulib-tool (func_usage): Document --more-symlinks.
62626         (do_copyrights): New variable.
62627         Recognize option --more-symlinks.
62628         (func_import): Don't add a copyright notice transform to
62629         sed_transform_lib_file if do_copyrights is empty.
62630
62631 2007-07-13  Bruno Haible  <bruno@clisp.org>
62632
62633         * lib/vasnprintf.c (decimal_point_char): Define also if
62634         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
62635         && !NEED_PRINTF_DIRECTIVE_A.
62636         Reported by Clemens Koller <clemens.koller@anagramm.de> via
62637         Gary V. Vaughan <gary@gnu.org>.
62638
62639 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
62640
62641         * lib/inttypes_.h: Undo previous change, since it was fixed
62642         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
62643
62644 2007-07-13  Bruno Haible  <bruno@clisp.org>
62645
62646         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
62647         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
62648
62649 2007-07-13  Jim Meyering  <jim@meyering.net>
62650
62651         df: Don't fail for Tru64's "file-on-file mount".
62652         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
62653         so we fall through and use statfs instead.  Details here:
62654         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
62655         Reported by Albert Chin.
62656
62657 2007-07-13  Bruno Haible  <bruno@clisp.org>
62658
62659         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
62660         * modules/configmake (License): Likewise.
62661         * modules/gettext (License): Likewise.
62662         * modules/gettext-h (License): Likewise.
62663         * modules/include_next (License): Likewise.
62664         * modules/link-warning (License): Likewise.
62665         * modules/localcharset (License): Likewise.
62666         * modules/localename (License): Likewise.
62667         * modules/lock (License): Likewise.
62668         * modules/relocatable-lib-lgpl (License): Likewise.
62669         * modules/size_max (License): Likewise.
62670         * modules/vasnprintf (License): Likewise.
62671         * modules/wchar (License): Likewise.
62672         * modules/xsize (License): Likewise.
62673
62674 2007-07-13  Bruno Haible  <bruno@clisp.org>
62675
62676         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
62677         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
62678
62679 2007-07-12  Bruno Haible  <bruno@clisp.org>
62680
62681         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
62682         in the modules files.
62683
62684 2007-07-11  Karl Berry  <karl@gnu.org>
62685
62686         * MODULES.html.sh (func_module): use
62687          sed -e '\|^'"${includefile}"'$|d'
62688          instead of /.../d, to avoid errors on $includefile's containing /.
62689
62690 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
62691
62692         * gnulib-tool (func_import): Avoid duplication of --avoid
62693         statements
62694         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
62695         names to `_' in variable names.
62696
62697 2007-07-10  Eric Blake  <ebb9@byu.net>
62698
62699         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
62700         * NEWS: Document this change.
62701
62702 2007-07-08  Bruno Haible  <bruno@clisp.org>
62703
62704         Update to Unicode 5.0.
62705         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
62706         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
62707         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
62708         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
62709         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
62710         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
62711         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
62712         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
62713         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
62714         U+10A3F, U+1D242..U+1D244.
62715         (nonspacing_table_ind): Update.
62716         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
62717         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
62718
62719 2007-07-08  Bruno Haible  <bruno@clisp.org>
62720
62721         Update to Unicode 5.0.
62722         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
62723         code transform. Extend the name index field of unicode_name_to_code and
62724         unicode_code_to_name from 16 to 24 bits.
62725         * lib/uniname/uniname.c (unicode_character_name,
62726         unicode_name_character): Add the range 0x12xxx to the code transform.
62727         * lib/uniname/uninames.h: Regenerated.
62728         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
62729
62730 2007-07-07  Bruno Haible  <bruno@clisp.org>
62731
62732         * modules/wcwidth-tests: New file.
62733         * tests/test-wcwidth.c: New file.
62734
62735         Work around MacOS X wcwidth() bug.
62736         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
62737         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
62738         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
62739         original wcwidth in non-UTF-8 locales.
62740         * modules/wcwidth (Depends-on): Add localcharset, streq,
62741         uniwidth/width.
62742         * doc/functions/wcwidth.texi: Update.
62743
62744 2007-07-07  Bruno Haible  <bruno@clisp.org>
62745
62746         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
62747         (wcwidth): New declaration.
62748         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
62749         macros.
62750         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
62751         here. Prepare for creating <wchar.h> unconditionally.
62752         * modules/wchar (Depends-on): Add link-warning.
62753         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
62754         REPLACE_WCWIDTH, and GL_LINK_WARNING.
62755         * lib/wcwidth.h: Remove file.
62756         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
62757         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
62758         * modules/wcwidth (Files): Remove lib/wcwidth.h.
62759         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
62760         (Include): Replace wcwidth.h with <wchar.h>.
62761         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
62762         * lib/mbchar.h: Don't include wcwidth.h.
62763         * lib/mbswidth.c: Likewise.
62764         * NEWS: Mention the change.
62765
62766 2007-07-07  Bruno Haible  <bruno@clisp.org>
62767
62768         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
62769         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
62770         definition with an external declaration.
62771         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
62772         defined as a function. Remove AC_C_INLINE requirement.
62773         * modules/wcwidth (Files): Add lib/wcwidth.c.
62774         (Makefile.am): Remove redundant statement.
62775
62776 2007-07-07  Bruno Haible  <bruno@clisp.org>
62777
62778         * MODULES.html.sh (Unicode string functions): Add the new modules.
62779
62780         * tests/uniwidth/test-u32-strwidth.c: New file.
62781         * modules/uniwidth/u32-strwidth-tests: New file.
62782
62783         * lib/uniwidth/u32-strwidth.c: New file.
62784         * modules/uniwidth/u32-strwidth: New file.
62785
62786         * tests/uniwidth/test-u16-strwidth.c: New file.
62787         * modules/uniwidth/u16-strwidth-tests: New file.
62788
62789         * lib/uniwidth/u16-strwidth.c: New file.
62790         * modules/uniwidth/u16-strwidth: New file.
62791
62792         * tests/uniwidth/test-u8-strwidth.c: New file.
62793         * modules/uniwidth/u8-strwidth-tests: New file.
62794
62795         * lib/uniwidth/u8-strwidth.c: New file.
62796         * modules/uniwidth/u8-strwidth: New file.
62797
62798         * tests/uniwidth/test-u32-width.c: New file.
62799         * modules/uniwidth/u32-width-tests: New file.
62800
62801         * lib/uniwidth/u32-width.c: New file.
62802         * modules/uniwidth/u32-width: New file.
62803
62804         * tests/uniwidth/test-u16-width.c: New file.
62805         * modules/uniwidth/u16-width-tests: New file.
62806
62807         * lib/uniwidth/u16-width.c: New file.
62808         * modules/uniwidth/u16-width: New file.
62809
62810         * tests/uniwidth/test-u8-width.c: New file.
62811         * modules/uniwidth/u8-width-tests: New file.
62812
62813         * lib/uniwidth/u8-width.c: New file.
62814         * modules/uniwidth/u8-width: New file.
62815
62816         * tests/uniwidth/test-uc_width.c: New file.
62817         * modules/uniwidth/width-tests: New file.
62818
62819         * lib/uniwidth/width.c: New file, from GNU libiconv.
62820         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
62821         * modules/uniwidth/width: New file.
62822
62823         * lib/uniwidth.h: New file, from GNU libiconv.
62824         * modules/uniwidth/base: New file.
62825
62826 2007-07-07  Bruno Haible  <bruno@clisp.org>
62827
62828         * lib/uniname.h: New file, from GNU gettext.
62829         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
62830         * lib/uniname/uninames.h: New file, from GNU gettext.
62831         * lib/uniname/uniname.c: New file, from GNU gettext.
62832         * tests/uniname/test-uninames.sh: New file.
62833         * tests/uniname/test-uninames.c: New file, from GNU gettext.
62834         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
62835         * modules/uniname/base: New file.
62836         * modules/uniname/uniname: New file.
62837         * modules/uniname/uniname-tests: New file.
62838         * MODULES.html.sh (Unicode string functions): Add the new modules.
62839
62840 2007-07-06  Bruno Haible  <bruno@clisp.org>
62841
62842         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
62843
62844 2007-07-06  Bruno Haible  <bruno@clisp.org>
62845
62846         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
62847         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
62848         includes <cygwin/sys_time.h> which includes <sys/select.h> which
62849         include <sys/time.h>.
62850         Reported by Eric Blake.
62851
62852 2007-07-06  Eric Blake  <ebb9@byu.net>
62853
62854         Fix testing canonicalize on cygwin.
62855         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
62856         Revert patch from 2007-06-19.
62857         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
62858         canonicalize module is also in use.
62859         * tests/test-canonicalize.c: New file.
62860         * tests/test-canonicalize.sh: Likewise.
62861         * modules/canonicalize-tests: Likewise.
62862
62863 2007-07-06  Jim Meyering  <jim@meyering.net>
62864
62865         * lib/getugroups.c (getugroups): Detect getgrent failure.
62866         Adjust comment to reflect reality: this function may return -1.
62867
62868 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
62869
62870         * build-aux/bootstrap (TP_URL,get_translations): Update to use
62871         the new TP address.
62872         (usage): Fix typo
62873         (gnulib_mk): New variable.
62874
62875 2007-07-05  Jim Meyering  <jim@meyering.net>
62876
62877         Don't let endgrent clobber errno, no matter how improbable.
62878         * lib/getugroups.c (getugroups): Save and restore errno around
62879         endgrent call.
62880
62881         Close the group DB even when failing with 2^31 or more members.
62882         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
62883
62884 2007-07-04  Jim Meyering  <jim@meyering.net>
62885
62886         * lib/getugroups.h: New file.
62887         * lib/getugroups.c: Include "getugroups.h".
62888         Remove uses of "register" keyword.
62889         Move local variable, "cp", down into scope where used.
62890         Give "username" parameter the "const" attribute.
62891         * modules/getugroups (Files): Add lib/getugroups.h
62892
62893 2007-07-04  Karl Berry  <karl@gnu.org>
62894
62895         * MODULES.html.sh (func_all_modules): Complete rename of
62896         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
62897
62898 2007-07-02  Bruno Haible  <bruno@clisp.org>
62899
62900         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
62901         mode, when inttypes.h comes from gnulib.
62902         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
62903
62904 2007-07-02  Simon Josefsson  <simon@josefsson.org>
62905
62906         * NEWS: Mention lgpl module name change.
62907
62908         * modules/lgpl-2.1: Renamed from lgpl.
62909
62910         * NEWS: Mention gpl module name change.
62911
62912         * modules/gpl-3.0: New file, based on gpl-2.0.
62913
62914         * modules/gpl-2.0: Renamed from gpl.
62915
62916         * modules/gpl: Fix filename, doc/gpl.texi is now found at
62917         doc/gpl-2.0.texi.
62918
62919 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
62920
62921         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
62922         #define __STDC_LIMIT_MACROS temporarily while including
62923         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
62924         Problem reported by Joel E. Denny in
62925         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
62926
62927 2007-07-01  Bruno Haible  <bruno@clisp.org>
62928
62929         * lib/unistdio.h: New file.
62930         * lib/unistdio/u-asnprintf.h: New file.
62931         * lib/unistdio/u-asprintf.h: New file.
62932         * lib/unistdio/u-printf-args.c: New file.
62933         * lib/unistdio/u-printf-args.h: New file.
62934         * lib/unistdio/u-printf-parse.h: New file.
62935         * lib/unistdio/u-snprintf.h: New file.
62936         * lib/unistdio/u-sprintf.h: New file.
62937         * lib/unistdio/u-vasprintf.h: New file.
62938         * lib/unistdio/u-vsnprintf.h: New file.
62939         * lib/unistdio/u-vsprintf.h: New file.
62940         * lib/unistdio/ulc-asnprintf.c: New file.
62941         * lib/unistdio/ulc-asprintf.c: New file.
62942         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
62943         * lib/unistdio/ulc-printf-parse.c: New file.
62944         * lib/unistdio/ulc-snprintf.c: New file.
62945         * lib/unistdio/ulc-sprintf.c: New file.
62946         * lib/unistdio/ulc-vasnprintf.c: New file.
62947         * lib/unistdio/ulc-vasprintf.c: New file.
62948         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
62949         * lib/unistdio/ulc-vsnprintf.c: New file.
62950         * lib/unistdio/ulc-vsprintf.c: New file.
62951         * lib/unistdio/u8-asnprintf.c: New file.
62952         * lib/unistdio/u8-asprintf.c: New file.
62953         * lib/unistdio/u8-printf-parse.c: New file.
62954         * lib/unistdio/u8-snprintf.c: New file.
62955         * lib/unistdio/u8-sprintf.c: New file.
62956         * lib/unistdio/u8-vasnprintf.c: New file.
62957         * lib/unistdio/u8-vasprintf.c: New file.
62958         * lib/unistdio/u8-vsnprintf.c: New file.
62959         * lib/unistdio/u8-vsprintf.c: New file.
62960         * lib/unistdio/u8-u8-asnprintf.c: New file.
62961         * lib/unistdio/u8-u8-asprintf.c: New file.
62962         * lib/unistdio/u8-u8-snprintf.c: New file.
62963         * lib/unistdio/u8-u8-sprintf.c: New file.
62964         * lib/unistdio/u8-u8-vasnprintf.c: New file.
62965         * lib/unistdio/u8-u8-vasprintf.c: New file.
62966         * lib/unistdio/u8-u8-vsnprintf.c: New file.
62967         * lib/unistdio/u8-u8-vsprintf.c: New file.
62968         * lib/unistdio/u16-asnprintf.c: New file.
62969         * lib/unistdio/u16-asprintf.c: New file.
62970         * lib/unistdio/u16-printf-parse.c: New file.
62971         * lib/unistdio/u16-snprintf.c: New file.
62972         * lib/unistdio/u16-sprintf.c: New file.
62973         * lib/unistdio/u16-vasnprintf.c: New file.
62974         * lib/unistdio/u16-vasprintf.c: New file.
62975         * lib/unistdio/u16-vsnprintf.c: New file.
62976         * lib/unistdio/u16-vsprintf.c: New file.
62977         * lib/unistdio/u16-u16-asnprintf.c: New file.
62978         * lib/unistdio/u16-u16-asprintf.c: New file.
62979         * lib/unistdio/u16-u16-snprintf.c: New file.
62980         * lib/unistdio/u16-u16-sprintf.c: New file.
62981         * lib/unistdio/u16-u16-vasnprintf.c: New file.
62982         * lib/unistdio/u16-u16-vasprintf.c: New file.
62983         * lib/unistdio/u16-u16-vsnprintf.c: New file.
62984         * lib/unistdio/u16-u16-vsprintf.c: New file.
62985         * lib/unistdio/u32-asnprintf.c: New file.
62986         * lib/unistdio/u32-asprintf.c: New file.
62987         * lib/unistdio/u32-printf-parse.c: New file.
62988         * lib/unistdio/u32-snprintf.c: New file.
62989         * lib/unistdio/u32-sprintf.c: New file.
62990         * lib/unistdio/u32-vasnprintf.c: New file.
62991         * lib/unistdio/u32-vasprintf.c: New file.
62992         * lib/unistdio/u32-vsnprintf.c: New file.
62993         * lib/unistdio/u32-vsprintf.c: New file.
62994         * lib/unistdio/u32-u32-asnprintf.c: New file.
62995         * lib/unistdio/u32-u32-asprintf.c: New file.
62996         * lib/unistdio/u32-u32-snprintf.c: New file.
62997         * lib/unistdio/u32-u32-sprintf.c: New file.
62998         * lib/unistdio/u32-u32-vasnprintf.c: New file.
62999         * lib/unistdio/u32-u32-vasprintf.c: New file.
63000         * lib/unistdio/u32-u32-vsnprintf.c: New file.
63001         * lib/unistdio/u32-u32-vsprintf.c: New file.
63002         * tests/unistdio/test-ulc-asnprintf1.c: New file.
63003         * tests/unistdio/test-ulc-asnprintf1.h: New file.
63004         * tests/unistdio/test-ulc-printf1.h: New file.
63005         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
63006         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
63007         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
63008         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
63009         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
63010         * tests/unistdio/test-ulc-vasprintf1.c: New file.
63011         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
63012         * tests/unistdio/test-ulc-vsprintf1.c: New file.
63013         * tests/unistdio/test-u8-asnprintf1.c: New file.
63014         * tests/unistdio/test-u8-asnprintf1.h: New file.
63015         * tests/unistdio/test-u8-printf1.h: New file.
63016         * tests/unistdio/test-u8-vasnprintf1.c: New file.
63017         * tests/unistdio/test-u8-vasnprintf2.c: New file.
63018         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
63019         * tests/unistdio/test-u8-vasnprintf3.c: New file.
63020         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
63021         * tests/unistdio/test-u8-vasprintf1.c: New file.
63022         * tests/unistdio/test-u8-vsnprintf1.c: New file.
63023         * tests/unistdio/test-u8-vsprintf1.c: New file.
63024         * tests/unistdio/test-u16-asnprintf1.c: New file.
63025         * tests/unistdio/test-u16-asnprintf1.h: New file.
63026         * tests/unistdio/test-u16-printf1.h: New file.
63027         * tests/unistdio/test-u16-vasnprintf1.c: New file.
63028         * tests/unistdio/test-u16-vasnprintf2.c: New file.
63029         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
63030         * tests/unistdio/test-u16-vasnprintf3.c: New file.
63031         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
63032         * tests/unistdio/test-u16-vasprintf1.c: New file.
63033         * tests/unistdio/test-u16-vsnprintf1.c: New file.
63034         * tests/unistdio/test-u16-vsprintf1.c: New file.
63035         * tests/unistdio/test-u32-asnprintf1.c: New file.
63036         * tests/unistdio/test-u32-asnprintf1.h: New file.
63037         * tests/unistdio/test-u32-printf1.h: New file.
63038         * tests/unistdio/test-u32-vasnprintf1.c: New file.
63039         * tests/unistdio/test-u32-vasnprintf2.c: New file.
63040         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
63041         * tests/unistdio/test-u32-vasnprintf3.c: New file.
63042         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
63043         * tests/unistdio/test-u32-vasprintf1.c: New file.
63044         * tests/unistdio/test-u32-vsnprintf1.c: New file.
63045         * tests/unistdio/test-u32-vsprintf1.c: New file.
63046         * modules/unistdio/base: New file.
63047         * modules/unistdio/u-printf-args: New file.
63048         * modules/unistdio/ulc-asnprintf: New file.
63049         * modules/unistdio/ulc-asprintf: New file.
63050         * modules/unistdio/ulc-fprintf: New file.
63051         * modules/unistdio/ulc-printf-parse: New file.
63052         * modules/unistdio/ulc-snprintf: New file.
63053         * modules/unistdio/ulc-sprintf: New file.
63054         * modules/unistdio/ulc-vasnprintf: New file.
63055         * modules/unistdio/ulc-vasprintf: New file.
63056         * modules/unistdio/ulc-vfprintf: New file.
63057         * modules/unistdio/ulc-vsnprintf: New file.
63058         * modules/unistdio/ulc-vsprintf: New file.
63059         * modules/unistdio/u8-asnprintf: New file.
63060         * modules/unistdio/u8-asprintf: New file.
63061         * modules/unistdio/u8-printf-parse: New file.
63062         * modules/unistdio/u8-snprintf: New file.
63063         * modules/unistdio/u8-sprintf: New file.
63064         * modules/unistdio/u8-vasnprintf: New file.
63065         * modules/unistdio/u8-vasprintf: New file.
63066         * modules/unistdio/u8-vsnprintf: New file.
63067         * modules/unistdio/u8-vsprintf: New file.
63068         * modules/unistdio/u8-u8-asnprintf: New file.
63069         * modules/unistdio/u8-u8-asprintf: New file.
63070         * modules/unistdio/u8-u8-snprintf: New file.
63071         * modules/unistdio/u8-u8-sprintf: New file.
63072         * modules/unistdio/u8-u8-vasnprintf: New file.
63073         * modules/unistdio/u8-u8-vasprintf: New file.
63074         * modules/unistdio/u8-u8-vsnprintf: New file.
63075         * modules/unistdio/u8-u8-vsprintf: New file.
63076         * modules/unistdio/u16-asnprintf: New file.
63077         * modules/unistdio/u16-asprintf: New file.
63078         * modules/unistdio/u16-printf-parse: New file.
63079         * modules/unistdio/u16-snprintf: New file.
63080         * modules/unistdio/u16-sprintf: New file.
63081         * modules/unistdio/u16-vasnprintf: New file.
63082         * modules/unistdio/u16-vasprintf: New file.
63083         * modules/unistdio/u16-vsnprintf: New file.
63084         * modules/unistdio/u16-vsprintf: New file.
63085         * modules/unistdio/u16-u16-asnprintf: New file.
63086         * modules/unistdio/u16-u16-asprintf: New file.
63087         * modules/unistdio/u16-u16-snprintf: New file.
63088         * modules/unistdio/u16-u16-sprintf: New file.
63089         * modules/unistdio/u16-u16-vasnprintf: New file.
63090         * modules/unistdio/u16-u16-vasprintf: New file.
63091         * modules/unistdio/u16-u16-vsnprintf: New file.
63092         * modules/unistdio/u16-u16-vsprintf: New file.
63093         * modules/unistdio/u32-asnprintf: New file.
63094         * modules/unistdio/u32-asprintf: New file.
63095         * modules/unistdio/u32-printf-parse: New file.
63096         * modules/unistdio/u32-snprintf: New file.
63097         * modules/unistdio/u32-sprintf: New file.
63098         * modules/unistdio/u32-vasnprintf: New file.
63099         * modules/unistdio/u32-vasprintf: New file.
63100         * modules/unistdio/u32-vsnprintf: New file.
63101         * modules/unistdio/u32-vsprintf: New file.
63102         * modules/unistdio/u32-u32-asnprintf: New file.
63103         * modules/unistdio/u32-u32-asprintf: New file.
63104         * modules/unistdio/u32-u32-snprintf: New file.
63105         * modules/unistdio/u32-u32-sprintf: New file.
63106         * modules/unistdio/u32-u32-vasnprintf: New file.
63107         * modules/unistdio/u32-u32-vasprintf: New file.
63108         * modules/unistdio/u32-u32-vsnprintf: New file.
63109         * modules/unistdio/u32-u32-vsprintf: New file.
63110         * modules/unistdio/ulc-asnprintf-tests: New file.
63111         * modules/unistdio/ulc-vasnprintf-tests: New file.
63112         * modules/unistdio/ulc-vasprintf-tests: New file.
63113         * modules/unistdio/ulc-vsnprintf-tests: New file.
63114         * modules/unistdio/ulc-vsprintf-tests: New file.
63115         * modules/unistdio/u8-asnprintf-tests: New file.
63116         * modules/unistdio/u8-vasnprintf-tests: New file.
63117         * modules/unistdio/u8-vasprintf-tests: New file.
63118         * modules/unistdio/u8-vsnprintf-tests: New file.
63119         * modules/unistdio/u8-vsprintf-tests: New file.
63120         * modules/unistdio/u16-asnprintf-tests: New file.
63121         * modules/unistdio/u16-vasnprintf-tests: New file.
63122         * modules/unistdio/u16-vasprintf-tests: New file.
63123         * modules/unistdio/u16-vsnprintf-tests: New file.
63124         * modules/unistdio/u16-vsprintf-tests: New file.
63125         * modules/unistdio/u32-asnprintf-tests: New file.
63126         * modules/unistdio/u32-vasnprintf-tests: New file.
63127         * modules/unistdio/u32-vasprintf-tests: New file.
63128         * modules/unistdio/u32-vsnprintf-tests: New file.
63129         * modules/unistdio/u32-vsprintf-tests: New file.
63130         * MODULES.html.sh (Unicode string functions): Add the new modules.
63131
63132 2007-07-01  Bruno Haible  <bruno@clisp.org>
63133
63134         * lib/sprintf.c (sprintf): Limit the available length estimation,
63135         to avoid address wraparound.
63136         * lib/vsprintf.c (vsprintf): Likewise.
63137         * modules/sprintf-posix (Dependencies): Add stdint.
63138         * modules/vsprintf-posix (Dependencies): Likewise.
63139
63140 2007-07-01  Bruno Haible  <bruno@clisp.org>
63141
63142         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
63143         Windows PATH as well. Conservative double-quoting. Comments.
63144
63145 2007-07-01  Bruno Haible  <bruno@clisp.org>
63146             Eric Blake  <ebb9@byu.net>
63147             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63148
63149         * gnulib-tool (self_abspathname): Fix algorithm to cope with
63150         empty components in $PATH, denoting '.'.
63151
63152 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63153
63154         * gnulib-tool: Fix indentation.
63155         (func_create_megatestdir): Likewise.
63156         Report by Bruno Haible.
63157
63158 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63159
63160         Sync from Automake.
63161         * build-aux/gnupload: Fix shell portability issues with for loops.
63162         Report by Karl Berry.
63163
63164 2007-06-29  Simon Josefsson  <simon@josefsson.org>
63165
63166         * build-aux/maint.mk (POURL): Use translationproject.org.
63167
63168 2007-06-27  Simon Josefsson  <simon@josefsson.org>
63169             Bruno Haible  <bruno@clisp.org>
63170
63171         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
63172         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
63173         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
63174         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
63175         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
63176
63177 2007-06-27  Bruno Haible  <bruno@clisp.org>
63178
63179         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
63180         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
63181
63182 2007-06-26  Karl Berry  <karl@gnu.org>
63183
63184         * MODULES.html.sh: remove xreadlink-with-size.
63185
63186 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
63187
63188         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
63189         method that I hope also handles the double-include problem noted
63190         by Bruno Haible in
63191         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
63192
63193 2007-06-23  Bruno Haible  <bruno@clisp.org>
63194
63195         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63196         Don't let the 'mostlyclean' target fail if the last subdirectory could
63197         not be removed.
63198         Reported by Karl Berry.
63199
63200 2007-06-23  Bruno Haible  <bruno@clisp.org>
63201
63202         * gnulib-tool (echo): Add a speedier workaround for ksh.
63203         * tests/test-echo.sh: Likewise.
63204
63205 2007-06-23  Bruno Haible  <bruno@clisp.org>
63206
63207         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
63208         * tests/test-echo.sh: Likewise.
63209
63210 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63211
63212         * gnulib-tool (IFS): Initialize early, so we don't set it to
63213         empty later.
63214         (self_abspathname): Rewrite algorithm to set it, reindent.
63215         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
63216         (func_create_megatestdir): Merge some sed scripts.
63217
63218 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
63219
63220         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
63221         exposed by Sun Studio 11 cc on Solaris 8.
63222
63223 2007-06-22  Bruno Haible  <bruno@clisp.org>
63224
63225         * gnulib-tool (echo): Ensure the echo primitive does not interpret
63226         backslashes.
63227         * tests/test-echo.sh: New file.
63228
63229 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63230
63231         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
63232         simplify `sed_replace_build_aux' scripts, they are portable but
63233         echoing them with `echo' is not.
63234         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
63235
63236 2007-06-21  Karl Berry  <karl@gnu.org>
63237
63238         * config/srclist.txt: guess we can't handle the licenses via
63239         srclist at the moment.
63240
63241 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
63242
63243         * MODULES.html.sh: Add include_next.
63244         * modules/include_next: New file.
63245
63246 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
63247
63248         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
63249         INCLUDE_NEXT.
63250         (gl_CHECK_NEXT_HEADERS): New macro.
63251         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
63252         the obsolescent gl_ABSOLUTE_HEADER.
63253         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
63254         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
63255         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
63256         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
63257         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
63258         * m4/math_h.m4 (gl_MATH_H): Likewise.
63259         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
63260         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
63261         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
63262         * m4/stdint.m4 (gl_STDINT_H): Likewise.
63263         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
63264         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
63265         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
63266         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
63267         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
63268         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
63269         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
63270         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
63271         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
63272         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
63273         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
63274         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
63275         * m4/inttypes.m4 (gl_INTTYPES_H): Define
63276         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
63277         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
63278         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
63279         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
63280         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
63281         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
63282         * lib/float_.h: Likewise.
63283         * lib/inttypes_.h: Likewise.
63284         * lib/math_.h: Likewise.
63285         * lib/search_.h: Likewise.
63286         * lib/signal_.h: Likewise.
63287         * lib/stdint_.h: Likewise.
63288         * lib/stdio_.h: Likewise.
63289         * lib/stdlib_.h: Likewise.
63290         * lib/string_.h: Likewise.
63291         * lib/sys_stat_.h: Likewise.
63292         * lib/sys_time_.h: Likewise.
63293         * lib/time_.h: Likewise.
63294         * lib/unistd_.h: Likewise.
63295         * lib/wchar_.h: Likewise.
63296         * lib/wctype_.h: Likewise.
63297         * lib/dirent_.h: Likewise.
63298         * lib/iconv_.h: Likewise.
63299         * lib/locale_.h: Likewise.
63300         * lib/netinet_in_.h: Likewise.
63301         * lib/sys_select_.h: Likewise.
63302         * lib/sys_socket_.h: Likewise.
63303         * lib/sysexits_.h: Likewise.
63304         * modules/fcntl (Depends-on): Depend on include_next, not
63305         absolute_header.
63306         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
63307         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
63308         * modules/fchdir: Likewise.
63309         * modules/float: Likewise.
63310         * modules/iconv_open: Likewise.
63311         * modules/inttypes: Likewise.
63312         * modules/locale: Likewise.
63313         * modules/math: Likewise.
63314         * modules/netinet_in: Likewise.
63315         * modules/search: Likewise.
63316         * modules/signal: Likewise.
63317         * modules/stdint: Likewise.
63318         * modules/stdio: Likewise.
63319         * modules/stdlib: Likewise.
63320         * modules/string: Likewise.
63321         * modules/sys_select: Likewise.
63322         * modules/sys_socket: Likewise.
63323         * modules/sys_stat: Likewise.
63324         * modules/sys_time: Likewise.
63325         * modules/sysexits: Likewise.
63326         * modules/time: Likewise.
63327         * modules/unistd: Likewise.
63328         * modules/wchar: Likewise.
63329         * modules/wctype: Likewise.
63330         * modules/sys_stat: Change maintainer to "all".
63331         * modules/unistd: Likewise.
63332
63333 2007-06-20  Karl Berry  <karl@gnu.org>
63334
63335         * config/srclist.txt: track www changes in license files.
63336
63337 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
63338
63339         * build-aux/bootstrap: Remove stray dot.
63340         Make sure build_aux settings are honored when linking
63341         gnulib_extra_files.
63342
63343 2007-06-19  Eric Blake  <ebb9@byu.net>
63344
63345         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
63346         Allow compilation on cygwin.
63347
63348 2007-06-19  Jim Meyering  <jim@meyering.net>
63349
63350         xreadlink-with-size: Remove module.  No longer used.
63351         Ex-callers now use xreadlink or mreadlink-with-size.
63352         * modules/xreadlink-with-size: Remove module.
63353         * lib/xreadlink-with-size.c: Remove file.
63354         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
63355         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
63356         just before the function definition *is* accurate.
63357
63358         Eliminate one way canonicalize_filename_mode could exit.
63359         * lib/canonicalize.c (canonicalize_filename_mode):
63360         Use mreadlink_with_size, not xreadlink_with_size.
63361
63362 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
63363
63364         Detect porting problems to FreeBSD/arm, which has time_t wider than
63365         long int.  Original problem reported for GNU diff by Xin Li in
63366         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
63367         * modules/getdate (Depends-on): Add intprops, verify.
63368         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
63369         is an integer type no wider than long int.
63370
63371 2007-06-18  Jim Meyering  <jim@meyering.net>
63372
63373         New module: mreadlink-with-size.
63374         * MODULES.html.sh: Add mreadlink-with-size.
63375         * modules/mreadlink-with-size: New module
63376         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
63377         not xreadlink-with-size.
63378         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
63379
63380 2007-06-16  Bruno Haible  <bruno@clisp.org>
63381
63382         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
63383         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
63384         Reported by Gary V. Vaughan <gary@gnu.org>.
63385
63386 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
63387
63388         Revamp lchown so that it lives in unistd.h where it belongs.
63389         * lib/lchown.h: Remove.
63390         * lib/dirchownmod.c: Don't include lib/lchown.h.
63391         * lib/fchownat.c: Likewise.
63392         * lib/openat.c: Likewise.
63393         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
63394         does not follow symlinks.
63395         (EOPNOTSUPP): Define if not defined.
63396         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
63397         is defined to 0.
63398         (lchown): New decl.
63399         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
63400         Do not check for lchown decl.
63401         Set REPLACE_LCHOWN.
63402         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
63403         REPLACE_LCHOWN.
63404         * modules/chown: Make it clear it follows symlinks.
63405         * modules/lchown: Make it clear it doesn't follow symlinks.
63406         (Files): Remove lib/lchown.h
63407         (Depends-on): Add unistd.
63408         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
63409         (Include): Include <unistd.h>, not "lchown.h".
63410         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
63411         REPLACE_LCHOWN.
63412
63413 2007-06-15  Jim Meyering  <jim@meyering.net>
63414
63415         Change license (GPL to LGPL) of fsusage and dependents.
63416         * modules/fsusage (License): Change to LGPL.
63417         * modules/full-read (License): Likewise.
63418         * modules/full-write (License): Likewise.
63419         * modules/safe-read (License): Likewise.
63420         * modules/safe-write (License): Likewise.
63421
63422 2007-06-14  Ben Pfaff  <blp@gnu.org>
63423
63424         Missing part of allocsa -> malloca transition.
63425         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
63426         gl_MALLOCA.
63427
63428 2007-06-12  Bruno Haible  <bruno@clisp.org>
63429
63430         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
63431         to ia64, x86_64, i386.
63432         Reported by Eric Blake.
63433
63434 2007-06-12  Bruno Haible  <bruno@clisp.org>
63435
63436         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
63437         cross-compiling to x86_64.
63438
63439 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
63440
63441         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
63442         glitch reported by Ralf Wildenhues in
63443         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
63444
63445         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
63446         Vin Shelton.
63447
63448 2007-06-11  Bruno Haible  <bruno@clisp.org>
63449
63450         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
63451         replacement string.
63452         Reported by Eric Blake.
63453
63454 2007-06-10  Bruno Haible  <bruno@clisp.org>
63455
63456         Prepare vasnprintf code for use with Unicode strings.
63457         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
63458         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
63459         TYPE_U32_STRING.
63460         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
63461         a_u32_string variants.
63462         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
63463         * lib/printf-args.c: Don't include config.h and the specification
63464         header if PRINTF_FETCHARGS is already defined.
63465         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
63466         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
63467         TYPE_U16_STRING, TYPE_U32_STRING.
63468         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
63469         u16_directive, u16_directives, u32_directive, u32_directives): New
63470         types.
63471         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
63472         New declarations.
63473         * lib/printf-parse.c: Don't include config.h and the specification
63474         header if PRINTF_PARSE is already defined. Eliminate the set of
63475         parameters for WIDE_CHAR_VERSION; the user of this file must provide
63476         them now. Include c-ctype.h.
63477         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
63478         directive and CHAR_T_ONLY_ASCII.
63479         * lib/vasnprintf.c: Don't include config.h and the specification header
63480         if VASNPRINTF is already defined.
63481         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
63482         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
63483         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
63484         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
63485         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
63486         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
63487         code accordingly.
63488         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
63489         pad_ourselves also in this case, with the 'c' and 's' directives, and
63490         with a different notion of "width".
63491         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
63492
63493 2007-06-10  Bruno Haible  <bruno@clisp.org>
63494
63495         * modules/unistr/u32-mbsnlen: New file.
63496         * lib/unistr/u32-mbsnlen.c: New file.
63497
63498         * modules/unistr/u16-mbsnlen: New file.
63499         * lib/unistr/u16-mbsnlen.c: New file.
63500
63501         * modules/unistr/u8-mbsnlen: New file.
63502         * lib/unistr/u8-mbsnlen.c: New file.
63503
63504         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
63505         declarations.
63506
63507 2007-06-10  Bruno Haible  <bruno@clisp.org>
63508
63509         * lib/string_.h (mbsnlen): New declaration.
63510         * lib/mbsnlen.c: New file.
63511         * m4/mbsnlen.m4: New file.
63512         * modules/mbsnlen: New file.
63513         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
63514         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
63515         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
63516
63517 2007-06-10  Bruno Haible  <bruno@clisp.org>
63518
63519         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
63520
63521 2007-06-10  Bruno Haible  <bruno@clisp.org>
63522
63523         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
63524         * lib/mbuiter.h: Likewise.
63525
63526 2007-06-10  Bruno Haible  <bruno@clisp.org>
63527
63528         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
63529         declaration.
63530
63531 2007-06-10  Karl Berry  <karl@gnu.org>
63532
63533         * config/srclist.txt: remove gettext entries, Bruno prefers
63534         to update individually.
63535
63536 2007-06-10  Bruno Haible  <bruno@clisp.org>
63537
63538         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
63539         'maxlen'. Ensure only length + width bytes are allocated, not
63540         length + 1 + width.
63541
63542 2007-06-09  Bruno Haible  <bruno@clisp.org>
63543
63544         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
63545         (CHAR_T): Remove macro.
63546         (VASNPRINTF): Update.
63547
63548 2007-06-09  Bruno Haible  <bruno@clisp.org>
63549
63550         * MODULES.html.sh (Unicode string functions): Add the new modules.
63551
63552         * modules/uniconv/u32-conv-to-enc: New file.
63553         * lib/uniconv/u32-conv-to-enc.c: New file.
63554         * modules/uniconv/u32-conv-to-enc-tests: New file.
63555         * tests/uniconv/test-u32-conv-to-enc.c: New file.
63556
63557         * modules/uniconv/u16-conv-to-enc: New file.
63558         * lib/uniconv/u16-conv-to-enc.c: New file.
63559         * lib/uniconv/u-conv-to-enc.h: New file.
63560         * modules/uniconv/u16-conv-to-enc-tests: New file.
63561         * tests/uniconv/test-u16-conv-to-enc.c: New file.
63562
63563         * modules/uniconv/u8-conv-to-enc: New file.
63564         * lib/uniconv/u8-conv-to-enc.c: New file.
63565         * modules/uniconv/u8-conv-to-enc-tests: New file.
63566         * tests/uniconv/test-u8-conv-to-enc.c: New file.
63567
63568         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
63569         u32_conv_to_encoding): New declarations.
63570
63571 2007-06-09  Bruno Haible  <bruno@clisp.org>
63572
63573         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
63574
63575 2007-06-09  Bruno Haible  <bruno@clisp.org>
63576
63577         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
63578         * modules/malloca: Renamed from modules/allocsa, updated.
63579         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
63580         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
63581         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
63582         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
63583         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
63584         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
63585         * modules/xmalloca: Renamed from modules/xallocsa, updated.
63586         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
63587         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
63588         * modules/c-strcasestr (Depends-on): Update.
63589         * lib/c-strcasestr.c: Update.
63590         * modules/c-strstr (Depends-on): Update.
63591         * lib/c-strstr.c: Update.
63592         * modules/canonicalize-lgpl (Depends-on): Update.
63593         * lib/canonicalize-lgpl.c: Update.
63594         * modules/clean-temp (Depends-on): Update.
63595         * lib/clean-temp.c: Update.
63596         * modules/csharpcomp (Depends-on): Update.
63597         * lib/csharpcomp.c: Update.
63598         * modules/csharpexec (Depends-on): Update.
63599         * lib/csharpexec.c: Update.
63600         * modules/javacomp (Depends-on): Update.
63601         * lib/javacomp.c: Update.
63602         * modules/javaexec (Depends-on): Update.
63603         * lib/javaexec.c: Update.
63604         * modules/mbscasestr (Depends-on): Update.
63605         * lib/mbscasestr.c: Update.
63606         * modules/mbsstr (Depends-on): Update.
63607         * lib/mbsstr.c: Update.
63608         * modules/setenv (Depends-on): Update.
63609         * lib/setenv.c: Update.
63610         * modules/strcasestr (Depends-on): Update.
63611         * lib/strcasestr.c: Update.
63612         * modules/striconveha (Depends-on): Update.
63613         * lib/striconveha.c: Update.
63614         * modules/relocatable-prog-wrapper (Files): Update.
63615         * lib/relocwrapper.c: Update.
63616         * build-aux/install-reloc: Update.
63617         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
63618
63619 2007-06-08  Bruno Haible  <bruno@clisp.org>
63620
63621         Port to uClibc.
63622         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
63623         * lib/fpurge.c (fpurge): Likewise.
63624         * lib/freading.c (freading): Likewise.
63625         * lib/fseeko.c (rpl_fseeko): Likewise.
63626         * lib/fseterr.c (fseterr): Likewise.
63627         * lib/fwriting.c (fwriting): Likewise.
63628         * tests/test-fflush.c (main): Avoid a failure on uClibc.
63629
63630 2007-06-08  Bruno Haible  <bruno@clisp.org>
63631
63632         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
63633         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
63634         * modules/gettext (Files): Add m4/intlmacosx.m4.
63635
63636 2007-06-07  Bruno Haible  <bruno@clisp.org>
63637
63638         * modules/localename-tests: New file.
63639         * tests/test-localename.c: New file.
63640
63641         New module 'localename'.
63642         * lib/localename.h: New file.
63643         * lib/localename.c: New file, from GNU gettext.
63644         * m4/localename.m4: New file.
63645         * modules/localename: New file.
63646
63647 2007-06-07  Bruno Haible  <bruno@clisp.org>
63648
63649         Work around the lack of <wchar.h> on some builds of uClibc.
63650         * doc/headers/wchar.texi: Update.
63651         * lib/wchar_.h: Include <wchar.h> only if it exists.
63652         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
63653         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
63654         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
63655         doesn't exist.
63656         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
63657         * modules/mbfile (Depends-on): Add wchar.
63658         * modules/mbiter (Depends-on): Likewise.
63659         * modules/mbuiter (Depends-on): Likewise.
63660         Reported by Simon Josefsson.
63661
63662 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
63663
63664         Work around problem reported by Steven M. Schweda in
63665         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
63666         Tru64 5.1B with the Compaq compiler environment installed declares
63667         an 'isblank' function but does not define it in the C library.
63668         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
63669         * lib/regex_internal.h (isblank): Likewise.
63670         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
63671         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
63672
63673 2007-06-05  Bruno Haible  <bruno@clisp.org>
63674
63675         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
63676         ia64.
63677         * modules/printf-safe: New file.
63678         * modules/fprintf-posix (Depends-on): Add printf-safe.
63679         * modules/printf-posix (Depends-on): Likewise.
63680         * modules/snprintf-posix (Depends-on): Likewise.
63681         * modules/sprintf-posix (Depends-on): Likewise.
63682         * modules/vasnprintf-posix (Depends-on): Likewise.
63683         * modules/vasprintf-posix (Depends-on): Likewise.
63684         * modules/vfprintf-posix (Depends-on): Likewise.
63685         * modules/vprintf-posix (Depends-on): Likewise.
63686         * modules/vsnprintf-posix (Depends-on): Likewise.
63687         * modules/vsprintf-posix (Depends-on): Likewise.
63688         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
63689         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
63690         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
63691         "no" on i386, x86_64, ia64.
63692         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
63693         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
63694         on i386, x86_64, ia64.
63695         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
63696         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
63697         on i386, x86_64, ia64.
63698         * tests/test-vasnprintf-posix.c: Include float.h.
63699         (LDBL80_WORDS): New macro.
63700         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
63701         on i386, x86_64, ia64.
63702         * tests/test-vasprintf-posix.c: Include float.h.
63703         (LDBL80_WORDS): New macro.
63704         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
63705         on i386, x86_64, ia64.
63706         * tests/test-snprintf-posix.c: Include float.h.
63707         * tests/test-sprintf-posix.c: Likewise.
63708         * tests/test-vsnprintf-posix.c: Likewise.
63709         * tests/test-vsprintf-posix.c: Likewise.
63710
63711 2007-06-05  Bruno Haible  <bruno@clisp.org>
63712
63713         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
63714         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
63715         non-IEEE numbers on i386, x86_64, ia64.
63716         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
63717         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
63718         * tests/test-isnanl.h: Include float.h.
63719         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
63720
63721 2007-06-05  Bruno Haible  <bruno@clisp.org>
63722
63723         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
63724         also the %a / %A. Handle the %a / %A code before this extra handling.
63725
63726 2007-06-05  Bruno Haible  <bruno@clisp.org>
63727
63728         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
63729         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
63730
63731 2007-06-05  Bruno Haible  <bruno@clisp.org>
63732
63733         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
63734         typo in variable name.
63735
63736 2007-06-05  Eric Blake  <ebb9@byu.net>
63737
63738         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
63739         Reported by Simon Josefsson.
63740
63741 2007-06-04  Bruno Haible  <bruno@clisp.org>
63742
63743         Avoid test failures on some PowerPC platforms.
63744         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
63745         Define differently for PowerPC.
63746         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
63747         Reported by Gary V. Vaughan <gary@gnu.org>.
63748
63749 2007-06-02  Bruno Haible  <bruno@clisp.org>
63750
63751         Fix test-stdint failure on FreeBSD/ia64.
63752         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
63753         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
63754         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
63755         * doc/headers/stdint.texi: Update.
63756
63757 2007-06-01  Bruno Haible  <bruno@clisp.org>
63758
63759         * tests/test-binary-io.c (main): Pass a third argument to open().
63760         Reported by Gary V. Vaughan <gary@gnu.org>.
63761
63762 2007-06-01  Bruno Haible  <bruno@clisp.org>
63763
63764         * doc/functions/frexpl.texi: Update for mingw.
63765
63766 2007-06-01  Bruno Haible  <bruno@clisp.org>
63767
63768         * tests/test-lseek.c (main): Disable test of errno for invalid third
63769         argument.
63770         * doc/functions/lseek.texi: Update.
63771         Reported by Gary V. Vaughan <gary@gnu.org>.
63772
63773 2007-05-28  Bruno Haible  <bruno@clisp.org>
63774
63775         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
63776
63777 2007-05-31  Eric Blake  <ebb9@byu.net>
63778
63779         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
63780         cross compiling.
63781
63782 2007-05-30  Eric Blake  <ebb9@byu.net>
63783         and Bruno Haible  <bruno@clisp.org>
63784
63785         Work around mingw test failures exposed by m4-1.4.9b.
63786         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
63787         * tests/test-unistd.c: Disable uid_t and git_t tests for the
63788         moment.
63789
63790 2007-05-30  Bruno Haible  <bruno@clisp.org>
63791
63792         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
63793         assuming that they are closed. Needed on HP-UX 11.
63794
63795 2007-05-29  Bruno Haible  <bruno@clisp.org>
63796
63797         Fix a problem with #include_next.
63798         * lib/dirent_.h: Split the double-inclusion guard.
63799         * lib/fcntl_.h: Likewise.
63800         * lib/float_.h: Likewise.
63801         * lib/iconv_.h: Likewise.
63802         * lib/inttypes_.h: Likewise.
63803         * lib/locale_.h: Likewise.
63804         * lib/math_.h: Likewise.
63805         * lib/netinet_in_.h: Likewise.
63806         * lib/search_.h: Likewise.
63807         * lib/signal_.h: Likewise.
63808         * lib/stdint_.h: Likewise.
63809         * lib/stdio_.h: Likewise.
63810         * lib/stdlib_.h: Likewise.
63811         * lib/string_.h: Likewise.
63812         * lib/sys_select_.h: Likewise.
63813         * lib/sys_socket_.h: Likewise.
63814         * lib/sys_stat_.h: Likewise.
63815         * lib/sys_time_.h: Likewise.
63816         * lib/sysexits_.h: Likewise.
63817         * lib/time_.h: Likewise.
63818         * lib/unistd_.h: Likewise.
63819         * lib/wchar_.h: Likewise.
63820         * lib/wctype_.h: Likewise.
63821
63822 2007-05-29  Bruno Haible  <bruno@clisp.org>
63823
63824         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
63825         for the moment.
63826
63827 2007-05-29  Bruno Haible  <bruno@clisp.org>
63828
63829         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
63830         invocation.
63831         Reported by Eric Blake.
63832
63833 2007-05-29  Bruno Haible  <bruno@clisp.org>
63834
63835         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
63836         compiling case.
63837
63838 2007-05-29  Eric Blake  <ebb9@byu.net>
63839             Bruno Haible  <bruno@clisp.org>
63840
63841         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
63842         cross compiles.
63843
63844 2007-05-28  Eric Blake  <ebb9@byu.net>
63845
63846         * modules/closein-tests (test_closein_LDADD): Support test on
63847         cygwin with libtool.
63848
63849 2007-05-28  Bruno Haible  <bruno@clisp.org>
63850
63851         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
63852         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
63853         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
63854         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
63855         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
63856         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
63857         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
63858         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
63859         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
63860
63861 2007-05-28  Eric Blake  <ebb9@byu.net>
63862
63863         Unconditionally include <config.h> in unit tests.
63864         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
63865         * tests/test-allocsa.c, tests/test-arcfour.c,
63866         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
63867         tests/test-array_list.c, tests/test-array_oset.c,
63868         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
63869         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
63870         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
63871         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
63872         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
63873         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
63874         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
63875         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
63876         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
63877         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
63878         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
63879         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
63880         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
63881         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
63882         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
63883         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
63884         test-md5.c, test-memmem.c, test-printf-posix.c,
63885         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
63886         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
63887         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
63888         test-strcasestr.c, test-striconv.c, test-striconveh.c,
63889         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
63890         test-vasnprintf-posix2.c, test-vasnprintf.c,
63891         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
63892         test-vfprintf-posix.c, test-vprintf-posix.c,
63893         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
63894         test-xvasprintf.c: Likewise.
63895
63896 2007-05-28  Bruno Haible  <bruno@clisp.org>
63897
63898         * gnulib-tool (func_import): Remember the --with-tests command-line
63899         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
63900         Reported by Eric Blake.
63901
63902 2007-05-28  Bruno Haible  <bruno@clisp.org>
63903
63904         * modules/ftell-tests: New file.
63905         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
63906         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
63907
63908         * lib/ftell.c: New file.
63909         * modules/ftell: New file.
63910         * m4/ftell.m4: New file.
63911         * doc/functions/ftell.texi: Update.
63912         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
63913         REPLACE_FTELL.
63914         * lib/stdio_.h (rpl_ftell): New declaration.
63915         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
63916         REPLACE_FTELL.
63917
63918 2007-05-28  Eric Blake  <ebb9@byu.net>
63919
63920         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
63921
63922 2007-05-28  Bruno Haible  <bruno@clisp.org>
63923
63924         * modules/fseek-tests: New file.
63925         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
63926         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
63927
63928         * lib/fseek.c: New file.
63929         * modules/fseek: New file.
63930         * m4/fseek.m4: New file.
63931         * doc/functions/fseek.texi: Update.
63932         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
63933         REPLACE_FSEEK.
63934         * lib/stdio_.h (rpl_fseek): New declaration.
63935         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
63936         REPLACE_FSEEK.
63937
63938 2007-05-28  Bruno Haible  <bruno@clisp.org>
63939
63940         * lib/stdio_.h (fflush): More comments.
63941
63942 2007-05-28  Bruno Haible  <bruno@clisp.org>
63943
63944         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
63945         runtime test.
63946
63947 2007-05-28  Eric Blake  <ebb9@byu.net>
63948
63949         Improve lseek module.
63950         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
63951         * lib/unistd_.h (lseek): Scale back link warning message.
63952         * tests/test-lseek.c: Beef up test.
63953         * tests/test-lseek.sh: Exercise more facets of lseek.
63954         Reported by Bruno Haible.
63955
63956 2007-05-28  Bruno Haible  <bruno@clisp.org>
63957
63958         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
63959         to define.
63960
63961 2007-05-27  Bruno Haible  <bruno@clisp.org>
63962
63963         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
63964
63965 2007-05-27  Bruno Haible  <bruno@clisp.org>
63966
63967         * modules/openmp: New file.
63968         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
63969         Noah Misch.
63970
63971 2007-05-26  Bruno Haible  <bruno@clisp.org>
63972
63973         * modules/chdir-long (Depends-on): Add fchdir.
63974         * modules/chdir-safer (Depends-on): Likewise.
63975         * modules/fts (Depends-on): Likewise.
63976         * modules/fts-lgpl (Depends-on): Likewise.
63977         * modules/openat (Depends-on): Likewise.
63978         * modules/savewd (Depends-on): Likewise.
63979
63980 2007-05-24  Eric Blake  <ebb9@byu.net>
63981
63982         Fix lseek on mingw.
63983         * modules/lseek: New module.
63984         * m4/lseek.m4: New file.
63985         * lib/lseek.c: New file.
63986         * modules/lseek-tests: New file.
63987         * tests/test-lseek.c: New file.
63988         * tests/test-lseek.sh: New file.
63989         * MODULES.html.sh: Document lseek module.
63990         * modules/fflush (Depends-on): Add lseek, fseeko.
63991         * modules/fseeko (Depends-on): Likewise.
63992         * modules/ftello (Depends-on): Likewise.
63993         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
63994         broken.
63995         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
63996         broken.
63997         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
63998         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
63999         * lib/ftello.c (rpl_ftello): Likewise.
64000         * tests/test-fseeko.c (main): Test this.
64001         * tests/test-fseeko.sh: Likewise.
64002         * tests/test-ftello.c (main): Likewise.
64003         * tests/test-ftello.sh: Likewise.
64004         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
64005         implies replacing fseek.
64006         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
64007         HAVE_FTELLO.
64008         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
64009         * modules/unistd (Makefile.am): Likewise.
64010         * lib/unistd_.h (lseek): Declare a replacement.
64011         * doc/functions/lseek.texi (lseek): Document this fix.
64012         * doc/functions/fseek.texi (fseek): Likewise.
64013         * doc/functions/ftell.texi (ftell): Likewise.
64014
64015 2007-05-24  Bruno Haible  <bruno@clisp.org>
64016
64017         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
64018         in the printed representation of a NaN.
64019         * tests/test-vasprintf-posix.c (test_function): Likewise.
64020         * tests/test-snprintf-posix.h (test_function): Likewise.
64021         * tests/test-sprintf-posix.h (test_function): Likewise.
64022         Reported by Eric Blake.
64023
64024 2007-05-23  Eric Blake  <ebb9@byu.net>
64025
64026         Fix fseeko/ftello on cygwin 1.5.24.
64027         * doc/functions/fseeko.texi (fseeko): Document the fix.
64028         * doc/functions/ftello.texi (ftello): Document the fix.
64029         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
64030         * doc/functions/stdout.text (stdout): New file.
64031         * doc/functions/stderr.text (stderr): New file.
64032         * doc/gnulib.texi (Function Substitutes): Use new files.
64033         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
64034         prior to 1.7.0.
64035         * tests/test-ftello.c (main): Likewise for ftello.
64036         * tests/test-fseeko.sh: New file.
64037         * tests/test-ftello.sh: New file.
64038         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
64039         with seekable stdin.
64040         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
64041         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
64042         (gl_REPLACE_FSEEKO): New macro.
64043         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
64044         * modules/fseeko (Files): Distribute fseeko.c.
64045         * modules/ftello (Files): Distribute ftello.c.
64046         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
64047         mode.
64048         * lib/ftello.c (rpl_ftello): New file.
64049         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
64050         fseeko, ftello.
64051         (gl_STDIN_LARGE_OFFSET): New macro.
64052         * modules/stdio (Makefile.am): Perform the replacement.
64053         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
64054
64055 2007-05-23  Bruno Haible  <bruno@clisp.org>
64056
64057         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
64058         GNULIB_POSIXCHECK is defined.
64059
64060 2007-05-21  Bruno Haible  <bruno@clisp.org>
64061
64062         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
64063         Check also the output for NaN arguments. When cross-compiling, guess
64064         no on IRIX.
64065         * lib/vasnprintf.c: Update comments.
64066         * tests/test-vasnprintf-posix.c (strisnan): New function.
64067         (test_function): Use it.
64068         * tests/test-vasprintf-posix.c (strisnan): New function.
64069         (test_function): Use it.
64070         * tests/test-snprintf-posix.h (strisnan): New function.
64071         (test_function): Use it.
64072         * tests/test-sprintf-posix.h (strisnan): New function.
64073         (test_function): Use it.
64074         Reported by Eric Blake.
64075
64076 2007-05-20  Bruno Haible  <bruno@clisp.org>
64077
64078         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
64079         numbers that fails on BeOS.
64080         * doc/functions/frexpl.texi: Update.
64081
64082 2007-05-20  Jim Meyering  <jim@meyering.net>
64083
64084         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
64085         forced upon us by glibc-2.6.
64086
64087 2007-05-20  Bruno Haible  <bruno@clisp.org>
64088
64089         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
64090         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
64091         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
64092         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
64093         NEED_PRINTF_INFINITE.
64094         (is_infinitel): New function.
64095         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
64096         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
64097         gl_PREREQ_VASNPRINTF_INFINITE.
64098         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
64099         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64100         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
64101         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
64102         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
64103         gl_PREREQ_VASNPRINTF_INFINITE.
64104         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64105         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64106         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64107         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64108         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64109         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64110         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64111         * doc/functions/fprintf.texi: Update.
64112         * doc/functions/printf.texi: Update.
64113         * doc/functions/snprintf.texi: Update.
64114         * doc/functions/sprintf.texi: Update.
64115         * doc/functions/vfprintf.texi: Update.
64116         * doc/functions/vprintf.texi: Update.
64117         * doc/functions/vsnprintf.texi: Update.
64118         * doc/functions/vsprintf.texi: Update.
64119
64120 2007-05-20  Bruno Haible  <bruno@clisp.org>
64121
64122         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
64123         was not found in libc.
64124         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
64125
64126 2007-05-20  Bruno Haible  <bruno@clisp.org>
64127
64128         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
64129         printed as "-nan" instead of "nan".
64130         * tests/test-vasprintf-posix.c (test_function): Likewise.
64131         * tests/test-snprintf-posix.h (test_function): Likewise.
64132         * tests/test-sprintf-posix.h (test_function): Likewise.
64133         Needed for HP-UX 11.
64134
64135 2007-05-20  Jim Meyering  <jim@meyering.net>
64136
64137         Fix buggy test for the fchownat-deref bug.
64138         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
64139         symlink required for the run-test.  Without it, this test would
64140         always declare that fchownat doesn't work, and client code would
64141         unnecessarily use the replacement function with fixed libc.
64142         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
64143         Reported by Greg Schafer.
64144
64145 2007-05-19  Bruno Haible  <bruno@clisp.org>
64146
64147         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
64148         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
64149         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
64150         Needed for IRIX 6.5 and Solaris 2.5.1.
64151
64152 2007-05-19  Bruno Haible  <bruno@clisp.org>
64153
64154         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
64155         (test_function): Skip tests involving -0.0 on platforms where
64156         -0.0 = 0.0.
64157         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
64158         (test_function): Skip tests involving -0.0 on platforms where
64159         -0.0 = 0.0.
64160         * tests/test-snprintf-posix.h (have_minus_zero): New function.
64161         (test_function): Skip tests involving -0.0 on platforms where
64162         -0.0 = 0.0.
64163         * tests/test-sprintf-posix.h (have_minus_zero): New function.
64164         (test_function): Skip tests involving -0.0 on platforms where
64165         -0.0 = 0.0.
64166         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
64167         tests.
64168         * tests/test-printf-posix.h (test_function): Likewise.
64169         * tests/test-printf-posix.output: Remove all -0.0 related results.
64170         Needed for IRIX 6.5.
64171
64172 2007-05-19  Bruno Haible  <bruno@clisp.org>
64173
64174         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
64175         printed as "nan0x7fffffff" instead of "nan".
64176         * tests/test-vasprintf-posix.c (test_function): Likewise.
64177         * tests/test-snprintf-posix.h (test_function): Likewise.
64178         * tests/test-sprintf-posix.h (test_function): Likewise.
64179         * tests/test-fprintf-posix.h (NaN): Remove macro.
64180         (test_function): Remove all NaN related tests.
64181         * tests/test-printf-posix.h (NaN): Remove macro.
64182         (test_function): Remove all NaN related tests.
64183         * tests/test-printf-posix.output: Remove all NaN related results.
64184         Needed for IRIX 6.5.
64185
64186 2007-05-19  Bruno Haible  <bruno@clisp.org>
64187
64188         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
64189         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
64190
64191 2007-05-19  Bruno Haible  <bruno@clisp.org>
64192
64193         * lib/float_.h: New file.
64194         * m4/float_h.m4: New file.
64195         * modules/float: New file.
64196         * modules/isnanl (Dependencies): Add float.
64197         * modules/isnanl-nolibm (Dependencies): Likewise.
64198         * modules/mathl (Dependencies): Likewise.
64199         * modules/printf-frexpl (Dependencies): Likewise.
64200         * modules/signbit (Dependencies): Likewise.
64201         * modules/vasnprintf (Dependencies): Likewise.
64202         * doc/headers/float.texi: Update.
64203
64204 2007-05-19  Jim Meyering  <jim@meyering.net>
64205
64206         * lib/utimens.c (gl_futimens): Rename from futimens,
64207         now that glibc-2.6 declares futimens.
64208         * lib/utimens.h: Likewise.
64209
64210 2007-05-19  Bruno Haible  <bruno@clisp.org>
64211
64212         Avoid test failures on mingw.
64213         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
64214         * tests/test-printf-posix.sh: Likewise.
64215         * tests/test-vfprintf-posix.sh: Likewise.
64216         * tests/test-vprintf-posix.sh: Likewise.
64217
64218 2007-05-19  Bruno Haible  <bruno@clisp.org>
64219
64220         Fix *printf result for NaN, Inf, -0.0 on mingw.
64221         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
64222         * lib/vasnprintf.c: Include math.h and isnan.h.
64223         (is_infinite_or_zero): New function.
64224         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
64225         values in the %f, %F, %e, %E, %g, %G directives.
64226         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
64227         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64228         gl_PRINTF_INFINITE and test its result. Invoke
64229         gl_PREREQ_VASNPRINTF_INFINITE.
64230         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64231         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64232         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64233         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64234         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64235         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64236         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64237         * doc/functions/fprintf.texi: Update.
64238         * doc/functions/printf.texi: Update.
64239         * doc/functions/snprintf.texi: Update.
64240         * doc/functions/sprintf.texi: Update.
64241         * doc/functions/vfprintf.texi: Update.
64242         * doc/functions/vprintf.texi: Update.
64243         * doc/functions/vsnprintf.texi: Update.
64244         * doc/functions/vsprintf.texi: Update.
64245
64246 2007-05-19  Bruno Haible  <bruno@clisp.org>
64247
64248         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
64249         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
64250         Instead of multiplying with 10^k, set extra_zeroes to k.
64251         (scale10_round_long_double): Remove function.
64252
64253 2007-05-18  Bruno Haible  <bruno@clisp.org>
64254
64255         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
64256         introduced on 2007-05-06.
64257
64258 2007-05-18  Bruno Haible  <bruno@clisp.org>
64259
64260         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
64261         %g directives.
64262         * tests/test-vasprintf-posix.c (test_function): Likewise.
64263         * tests/test-snprintf-posix.h (test_function): Likewise.
64264         * tests/test-sprintf-posix.h (test_function): Likewise.
64265
64266 2007-05-18  Bruno Haible  <bruno@clisp.org>
64267
64268         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
64269         (strmatch): New function.
64270         (test_function): Test the %f directive on numbers of various exponents.
64271         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
64272         (strmatch): New function.
64273         (test_function): Test the %f directive on numbers of various exponents.
64274         * tests/test-snprintf-posix.h (strmatch): New function.
64275         (test_function): Test the %f directive on numbers of various exponents.
64276         * tests/test-sprintf-posix.h (strmatch): New function.
64277         (test_function): Test the %f directive on numbers of various exponents.
64278         * tests/test-snprintf-posix.c (SIZEOF): New macro.
64279         * tests/test-sprintf-posix.c (SIZEOF): New macro.
64280         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
64281         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
64282
64283 2007-05-18  Bruno Haible  <bruno@clisp.org>
64284
64285         Add support for 'long double' number output.
64286         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
64287         * lib/vasnprintf.c: Include math.h and float+.h.
64288         (mp_limb_t): New type.
64289         (GMP_LIMB_BITS): New macro.
64290         (mp_twolimb_t): New type.
64291         (GMP_TWOLIMB_BITS): New macro.
64292         (mpn_t): New type.
64293         (multiply, divide, convert_to_decimal, decode_long_double,
64294         scale10_round_long_double, scale10_round_decimal_long_double,
64295         floorlog10l): New functions.
64296         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
64297         for the %f, %F, %e, %E, %g, %G directives.
64298         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
64299         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
64300         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
64301         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
64302         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
64303         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64304         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64305         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64306         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64307         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64308         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64309         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
64310         * modules/snprintf-posix (Depends-on): Likewise.
64311         * modules/sprintf-posix (Depends-on): Likewise.
64312         * modules/vasnprintf-posix (Depends-on): Likewise.
64313         * modules/vasprintf-posix (Depends-on): Likewise.
64314         * modules/vfprintf-posix (Depends-on): Likewise.
64315         * modules/vsnprintf-posix (Depends-on): Likewise.
64316         * modules/vsprintf-posix (Depends-on): Likewise.
64317         * modules/vasnprintf (Files): Add lib/float+.h.
64318         * doc/functions/fprintf.texi: Update.
64319         * doc/functions/printf.texi: Update.
64320         * doc/functions/snprintf.texi: Update.
64321         * doc/functions/sprintf.texi: Update.
64322         * doc/functions/vfprintf.texi: Update.
64323         * doc/functions/vprintf.texi: Update.
64324         * doc/functions/vsnprintf.texi: Update.
64325         * doc/functions/vsprintf.texi: Update.
64326
64327 2007-05-18  Bruno Haible  <bruno@clisp.org>
64328
64329         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
64330
64331 2007-05-18  Bruno Haible  <bruno@clisp.org>
64332
64333         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
64334         for printing 64-bit integers. Needed for mingw.
64335
64336 2007-05-18  Bruno Haible  <bruno@clisp.org>
64337
64338         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
64339         gl_FUNC_FREXPL_WORKS.
64340         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
64341
64342 2007-05-18  Bruno Haible  <bruno@clisp.org>
64343
64344         * modules/frexpl-nolibm-tests: New file.
64345
64346         * modules/frexpl-nolibm: New file.
64347         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
64348
64349 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
64350
64351         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
64352         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
64353         GCC 4.2, which otherwise issues a lot of warnings.
64354         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
64355         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
64356         Likewise.
64357         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
64358         * modules/iconv_open (iconv.h): Likewise.
64359         * modules/locale (locale.h): Likewise.
64360         * modules/netinet_in (netinet/in.h): Likewise.
64361         * modules/sys_select (sys_select.h): Likewise.
64362         * modules/sys_socket (sys/socket.h): Likewise.
64363         * modules/sys_stat (sys/stat.h): Likewise.
64364         * modules/sysexits (sysexits.h): Likewise.
64365         * modules/unistd (unistd.h): Likewise.
64366
64367 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64368
64369         * modules/closein-tests (Makefile.am): Distribute
64370         `test-closein.sh'.
64371
64372 2007-05-17  Bruno Haible  <bruno@clisp.org>
64373
64374         * tests/test-printf-posix.output: Renamed from
64375         tests/test-fprintf-posix.out.
64376         * modules/fprintf-posix-tests: Update.
64377         * modules/printf-posix-tests: Update.
64378         * modules/vfprintf-posix-tests: Update.
64379         * modules/vprintf-posix-tests: Update.
64380         * tests/test-fprintf-posix.sh: Update.
64381         * tests/test-printf-posix.sh: Update.
64382         * tests/test-vfprintf-posix.sh: Update.
64383         * tests/test-vprintf-posix.sh: Update.
64384         Reported by Ralf Wildenhues.
64385
64386 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
64387
64388         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
64389         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
64390         GCC 4.2, which otherwise issues a lot of warnings.
64391         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
64392         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
64393         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
64394         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
64395         it should no longer be needed.
64396         * lib/string_.h: Likewise.
64397         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
64398         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
64399         * modules/inttypes (inttypes.h): Likewise.
64400         * modules/math (math.h): Likewise.
64401         * modules/search (search.h): Likewise.
64402         * modules/signal (signal.h): Likewise.
64403         * modules/stdint (stdint.h): Likewise.
64404         * modules/stdio (stdio.h): Likewise.
64405         * modules/stdlib (stdlib.h): Likewise.
64406         * modules/string (string.h): Likewise.
64407         * modules/sys_time (sys/time.h): Likewise.
64408         * modules/time (time.h): Likewise.
64409         * modules/wchar (wchar.h): Likewise.
64410         * modules/wctype (wtype.h): Likewise.
64411
64412 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
64413
64414         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
64415
64416 2007-05-13  Bruno Haible  <bruno@clisp.org>
64417
64418         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
64419         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
64420         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
64421         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
64422         (gl_PREREQ_STRTOK_R): Don't require it here.
64423
64424 2007-05-13  Bruno Haible  <bruno@clisp.org>
64425
64426         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
64427         when used in C++ mode.
64428
64429 2007-05-12  Bruno Haible  <bruno@clisp.org>
64430
64431         * lib/linebuffer.h: Tweak doc.
64432         * lib/linebuffer.c: Likewise.
64433
64434 2007-05-12  James Youngman  <jay@gnu.org>
64435
64436         * lib/linebuffer.c (readlinebuffer_delim): New function,
64437         like readlinebuffer, but use a caller-specified delimiter.
64438         (readlinebuffer): Just call readlinebuffer_delim with '\n'
64439         as the delimiter.
64440         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
64441
64442 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
64443
64444         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
64445         * modules/openat (Files): Remove openat-die.c.
64446         (Depends-on): Add openat-die.
64447         * modules/openat-die: New module.
64448
64449 2007-05-06  Bruno Haible  <bruno@clisp.org>
64450
64451         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
64452         Update with info about Cygwin.
64453         * doc/functions/fprintf.texi: Update.
64454         * doc/functions/printf.texi: Update.
64455         * doc/functions/snprintf.texi: Update.
64456         * doc/functions/sprintf.texi: Update.
64457         * doc/functions/vfprintf.texi: Update.
64458         * doc/functions/vprintf.texi: Update.
64459         * doc/functions/vsnprintf.texi: Update.
64460         * doc/functions/vsprintf.texi: Update.
64461         Reported by Eric Blake.
64462
64463 2007-05-06  Bruno Haible  <bruno@clisp.org>
64464
64465         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
64466         padding ourselves for the floating-point directives.
64467         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
64468         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
64469         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
64470         gl_PRINTF_FLAG_ZERO and test its result. Invoke
64471         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
64472         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64473         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
64474         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64475         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64476         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64477         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64478         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64479         * tests/test-snprintf-posix.h (test_function): Also check the width
64480         and some flags in the %f directive.
64481         * tests/test-sprintf-posix.h (test_function): Likewise.
64482         * tests/test-vasnprintf-posix.c (test_function): Likewise.
64483         * tests/test-vasprintf-posix.c (test_function): Likewise.
64484         * doc/functions/fprintf.texi: Update.
64485         * doc/functions/printf.texi: Update.
64486         * doc/functions/snprintf.texi: Update.
64487         * doc/functions/sprintf.texi: Update.
64488         * doc/functions/vfprintf.texi: Update.
64489         * doc/functions/vprintf.texi: Update.
64490         * doc/functions/vsnprintf.texi: Update.
64491         * doc/functions/vsprintf.texi: Update.
64492
64493 2007-05-06  Bruno Haible  <bruno@clisp.org>
64494
64495         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
64496         pass the ' flag character to sprintf or snprintf.
64497         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
64498         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
64499         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
64500         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
64501         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
64502         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64503         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
64504         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64505         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64506         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
64507         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64508         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64509         * tests/test-snprintf-posix.h (test_function): Also check the grouping
64510         flag.
64511         * tests/test-sprintf-posix.h (test_function): Likewise.
64512         * tests/test-vasnprintf-posix.c (test_function): Likewise.
64513         * tests/test-vasprintf-posix.c (test_function): Likewise.
64514         * doc/functions/fprintf.texi: Update.
64515         * doc/functions/printf.texi: Update.
64516         * doc/functions/snprintf.texi: Update.
64517         * doc/functions/sprintf.texi: Update.
64518         * doc/functions/vfprintf.texi: Update.
64519         * doc/functions/vprintf.texi: Update.
64520         * doc/functions/vsnprintf.texi: Update.
64521         * doc/functions/vsprintf.texi: Update.
64522
64523 2007-05-01  Bruno Haible  <bruno@clisp.org>
64524
64525         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
64526
64527 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
64528
64529         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
64530         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
64531
64532 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
64533
64534         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
64535         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
64536         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
64537
64538 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
64539
64540         * lib/argp-help.c (struct hol_entry): New member `ord'.
64541         (HOL_ENTRY_PTRCMP): Use ord for comparison
64542         (hol_sort): Initialize ord.
64543
64544 2007-05-01  Bruno Haible  <bruno@clisp.org>
64545
64546         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
64547         Reported by Eric Blake.
64548         * doc/gnulib.texi (Function Substitutes): Update.
64549
64550 2007-05-01  Bruno Haible  <bruno@clisp.org>
64551
64552         * doc/functions.texi: Remove file, now redundant through
64553         doc/functions/*.texi.
64554
64555 2007-05-01  Bruno Haible  <bruno@clisp.org>
64556
64557         * modules/argp (Depends-on): Add sleep.
64558
64559 2007-05-01  Bruno Haible  <bruno@clisp.org>
64560
64561         * modules/sleep-tests: New file.
64562         * tests/test-sleep.c: New file.
64563
64564         * modules/sleep: New file.
64565         * lib/sleep.c: New file.
64566         * m4/sleep.m4: New file.
64567         * lib/unistd_.h (sleep): New declaration.
64568         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
64569         HAVE_SLEEP.
64570         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
64571         * doc/functions/sleep.texi: Document the sleep module.
64572
64573 2007-05-01  Bruno Haible  <bruno@clisp.org>
64574
64575         * lib/sigprocmask.h: Remove file.
64576         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
64577         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
64578         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
64579         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
64580         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
64581         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
64582         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
64583         HAVE_SIGSET_T as a shell variable.
64584         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
64585         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
64586         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
64587         (Depends-on): Add signal. Remove verify.
64588         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
64589         (Include): Mention <signal.h> instead of sigprocmask.h.
64590         * NEWS: Mention the change.
64591         * lib/fatal-signal.c: Don't include sigprocmask.h.
64592
64593 2007-05-01  Bruno Haible  <bruno@clisp.org>
64594
64595         * modules/signal: New file.
64596         * lib/signal_.h: New file.
64597         * m4/signal_h.m4: New file.
64598
64599 2007-05-01  Bruno Haible  <bruno@clisp.org>
64600
64601         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
64602         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
64603         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
64604         HAVE_WCTYPE_CTMP_BUG into wctype.h.
64605
64606 2007-05-01  Bruno Haible  <bruno@clisp.org>
64607
64608         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
64609         configure time.
64610         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
64611         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
64612         * modules/sys_stat (Makefile.am): Substitute their values into
64613         sys/stat.h.
64614
64615 2007-05-01  Bruno Haible  <bruno@clisp.org>
64616
64617         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
64618         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
64619         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
64620
64621 2007-05-01  Bruno Haible  <bruno@clisp.org>
64622
64623         * doc/header/assert.texi: Undo last change: don't mention the gnulib
64624         'assert' module here.
64625
64626 2007-05-01  Bruno Haible  <bruno@clisp.org>
64627
64628         * doc/functions/*.texi: New files.
64629         * doc/functions/google-ranking.txt: New file.
64630         * doc/gnulib.texi (Function Substitutes): New chapter.
64631         (ctime, inet_ntoa): Remove sections.
64632         * doc/ctime.texi: Remove file.
64633         * doc/inet_ntoa.texi: Remove file.
64634         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
64635         dependencies.
64636         (%.info): New rule, specifying a --reference-limit.
64637
64638 2007-05-01  Bruno Haible  <bruno@clisp.org>
64639
64640         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
64641
64642 2007-05-01  Bruno Haible  <bruno@clisp.org>
64643
64644         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
64645         the portability of 'mkdir' to mingw systems.
64646
64647 2007-05-01  Bruno Haible  <bruno@clisp.org>
64648
64649         * doc/headers/google-ranking.txt: New file.
64650
64651 2007-04-30  Eric Blake  <ebb9@byu.net>
64652
64653         Prefer fseeko to fseek.
64654         * modules/getpass (Depends-on): Add fseeko.
64655         * lib/getpass.c (getpass): Use fseeko, not fseek.
64656
64657 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
64658
64659         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
64660         assumes the sorting is stable, while most qsort implementations
64661         are not.  Use argument addresses to ensure they never compare as
64662         equal.
64663
64664         * tests/test-argp-2.sh (usage-indent test): Fix output
64665         (func_compare): Restore diff options
64666         * tests/test-argp.c: Restore #include "progname.h"
64667
64668 2007-04-29  Bruno Haible  <bruno@clisp.org>
64669
64670         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
64671         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
64672         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
64673         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64674         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
64675         (configure.ac): Define CHECK_SNPRINTF_POSIX.
64676         (TESTS, check_PROGRAMS): Add test-snprintf.
64677         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
64678         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
64679         (TESTS, check_PROGRAMS): Add test-vsnprintf.
64680         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
64681         assertions that fail on HP-UX, OSF/1, or IRIX.
64682         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
64683
64684 2007-04-29  Bruno Haible  <bruno@clisp.org>
64685
64686         * MODULES.html.sh (posix_functions): Remove 'contents'.
64687
64688 2007-04-29  Karl Berry  <karl@gnu.org>
64689
64690         * config/srclist.txt (gendocs_template_min): new entry.
64691
64692 2007-04-29  Bruno Haible  <bruno@clisp.org>
64693
64694         Work around fpurge bug on BSD systems.
64695         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
64696         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
64697         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
64698         fpurge to rpl_fpurge if the system already has this function.
64699         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
64700         the case where the system already has this function. Correct invariants
64701         on BSD systems.
64702         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
64703         BSD systems.
64704
64705 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
64706
64707         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
64708         proposed by Sven Verdoolaege.
64709
64710         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
64711         options.
64712         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
64713         (usage and help tests): Update
64714
64715 2007-04-29  Bruno Haible  <bruno@clisp.org>
64716
64717         * tests/test-fflush.c (main): Use a file of size 17, not 10.
64718         Print more information in case of failure. Disable a test on BeOS.
64719
64720 2007-04-29  Bruno Haible  <bruno@clisp.org>
64721
64722         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
64723         This helps debugging on systems on which no gdb is available.
64724
64725 2007-04-29  Bruno Haible  <bruno@clisp.org>
64726
64727         * lib/freading.h: Improve comments.
64728         * lib/fwriting.h: Likewise.
64729         * tests/test-freading.c (main): Don't check freading immediately after
64730         repositioning. Needed for glibc.
64731
64732 2007-04-29  Bruno Haible  <bruno@clisp.org>
64733
64734         * lib/freading.c (freading): Trivial simplification.
64735
64736 2007-04-28  Bruno Haible  <bruno@clisp.org>
64737
64738         * tests/test-fwriting.c (main): Also test the interaction between
64739         fflush and fwriting.
64740         * modules/fwriting-tests (Depends-on): Add fflush.
64741
64742         * tests/test-freading.c (main): Also test the interaction between
64743         fflush and freading.
64744         * modules/freading-tests (Depends-on): Add fflush.
64745
64746 2007-04-28  Bruno Haible  <bruno@clisp.org>
64747
64748         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
64749         fseeko and ftello.
64750         Suggested by Eric Blake.
64751
64752 2007-04-28  Jim Meyering  <jim@meyering.net>
64753
64754         Avoid false-negative in gl_STDINT_H's C99 conformance test.
64755         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
64756         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
64757
64758 2007-04-27  Eric Blake  <ebb9@byu.net>
64759
64760         * doc/headers/assert.texi (assert.h): Document assert module use.
64761
64762 2007-04-27  Bruno Haible  <bruno@clisp.org>
64763
64764         * doc/headers/*.texi: New files.
64765         * doc/gnulib.texi (Header File Substitutes): New chapter.
64766         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
64767         dependencies.
64768         (standards.info ,standards.html, standards.dvi): Update dependencies.
64769         (mostlyclean, clean): New targets.
64770
64771 2007-04-27  Bruno Haible  <bruno@clisp.org>
64772
64773         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
64774         * modules/sysexits (Files, Makefile.am): Update.
64775
64776         * lib/sys_socket_.h: Renamed from lib/socket_.h.
64777         * modules/sys_socket (Files, Makefile.am): Update.
64778
64779         * lib/sys_stat_.h: Renamed from lib/stat_.h.
64780         * modules/sys_stat (Files, Makefile.am): Update.
64781
64782 2007-04-27  Eric Blake  <ebb9@byu.net>
64783
64784         * lib/freading.h: Improve comments.
64785         * lib/fwriting.h: Likewise.
64786         * lib/fflush.c: Likewise.
64787
64788         Fix closein for mingw.
64789         * modules/closein-tests: Add tests for closein.
64790         * tests/test-closein.c: New file.
64791         * tests/test-closein.sh: Likewise.
64792         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
64793         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
64794
64795 2007-04-27  Bruno Haible  <bruno@clisp.org>
64796
64797         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
64798         version is < 6.
64799         * lib/math_.h [__DECC]: Likewise.
64800         * lib/stdio_.h [__DECC]: Likewise.
64801         * lib/stdlib_.h [__DECC]: Likewise.
64802         * lib/string_.h [__DECC]: Likewise.
64803         * lib/time_.h [__DECC]: Likewise.
64804         * lib/wchar_.h [__DECC]: Likewise.
64805         * lib/wctype_.h [__DECC]: Likewise.
64806
64807 2007-04-27  Bruno Haible  <bruno@clisp.org>
64808
64809         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
64810
64811 2007-04-27  Bruno Haible  <bruno@clisp.org>
64812
64813         * lib/fflush.c: Add comments.
64814         * modules/fpurge-tests (Depends-on): Add fflush.
64815         * modules/freadable-tests (Depends-on): Likewise.
64816         * modules/fwritable-tests (Depends-on): Likewise.
64817
64818 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
64819
64820         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
64821         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
64822         Report by Bruno Haible <bruno@clisp.org>.
64823
64824 2007-04-26  Eric Blake  <ebb9@byu.net>
64825
64826         Fix fflush on mingw.
64827         * modules/fflush (Depends-on): Add freading.
64828         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
64829         but unread data.
64830
64831 2007-04-26  Eric Blake  <ebb9@byu.net>
64832         and Bruno Haible  <bruno@clisp.org>
64833
64834         Implement freading and fwriting.
64835         * lib/freading.c: New file.
64836         * lib/freading.h: Likewise.
64837         * m4/freading.m4: Likewise.
64838         * modules/freading: Likewise.
64839         * modules/freading-tests: Likewise.
64840         * tests/test-freading.c: Likewise.
64841         * lib/fwriting.c: New file.
64842         * lib/fwriting.h: Likewise.
64843         * m4/fwriting.m4: Likewise.
64844         * modules/fwriting: Likewise.
64845         * modules/fwriting-tests: Likewise.
64846         * tests/test-fwriting.c: Likewise.
64847         * MODULES.html.sh (File stream based Input/Output): Mention them.
64848
64849 2007-04-26  Bruno Haible  <bruno@clisp.org>
64850
64851         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
64852         'long' when we assume it.
64853         Suggested by Eric Blake.
64854
64855 2007-04-26  Bruno Haible  <bruno@clisp.org>
64856
64857         Ensure fseeko, ftello are declared on glibc systems.
64858         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
64859         * modules/fseeko (configure.ac-early): Likewise.
64860         * modules/ftello (configure.ac-early): Likewise.
64861         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
64862         AC_FUNC_FSEEKO for this.
64863         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
64864         (gl_CHECK_FSEEKO): Remove macro.
64865
64866 2007-04-26  Bruno Haible  <bruno@clisp.org>
64867
64868         * tests/test-fflush.c (main): Also check the ftell result after
64869         fflush and fseek/fseeko.
64870         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
64871         file descriptor position cache in the stream.
64872         * lib/fseeko.c (rpl_fseeko): Likewise.
64873
64874 2007-04-26  Bruno Haible  <bruno@clisp.org>
64875
64876         * modules/fflush-tests (Depends-on): Add fseeko.
64877
64878 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
64879             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64880
64881         * lib/argz_.h: ensure error_t definition is obtained in same
64882         mechanism system argz.h would have.
64883         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
64884         argz facilities are known bad.  Err on the side of caution if
64885         cross-compiling.
64886
64887 2007-04-25  Eric Blake  <ebb9@byu.net>
64888
64889         * lib/fpurge.c (includes): Use stdlib.h for free.
64890         * tests/test-fflush.c (main): Also test fflush-fseeko.
64891
64892 2007-04-25  Bruno Haible  <bruno@clisp.org>
64893
64894         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
64895         * lib/fseeko.c: New file.
64896         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
64897         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
64898         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
64899         gl_FUNC_FSEEKO.
64900         (gl_FUNC_FSEEKO): Invoke it.
64901         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
64902         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
64903         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
64904
64905 2007-04-25  Bruno Haible  <bruno@clisp.org>
64906
64907         * modules/fflush (Depends-on): Add ftello.
64908
64909 2007-04-25  Bruno Haible  <bruno@clisp.org>
64910
64911         * modules/ftello-tests: New file.
64912         * tests/test-ftello.c: New file.
64913
64914         * modules/ftello: New file.
64915         * m4/ftello.m4: New file.
64916         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
64917         HAVE_FTELLO.
64918         * lib/stdio_.h (ftello): New declaration.
64919         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
64920         HAVE_FTELLO.
64921
64922 2007-04-25  Bruno Haible  <bruno@clisp.org>
64923
64924         * modules/fseeko-tests: New file.
64925         * tests/test-fseeko.c: New file.
64926
64927         * modules/fseeko: New file.
64928         * m4/fseeko.m4: New file.
64929         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
64930         HAVE_FSEEKO.
64931         * lib/stdio_.h (fseeko): New declaration.
64932         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
64933         HAVE_FSEEKO.
64934
64935 2007-04-25  Bruno Haible  <bruno@clisp.org>
64936
64937         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
64938
64939 2007-04-25  Bruno Haible  <bruno@clisp.org>
64940
64941         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
64942         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
64943         * tests/test-unistd.c: Likewise.
64944         * tests/test-fcntl.c: Likewise.
64945
64946 2007-04-23  Eric Blake  <ebb9@byu.net>
64947
64948         * lib/fflush.c: Fix missing include.
64949         Reported by Bruno Haible.
64950
64951 2007-04-23  Bruno Haible  <bruno@clisp.org>
64952
64953         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
64954         Reported by Eric Blake.
64955
64956 2007-04-23  Bruno Haible  <bruno@clisp.org>
64957
64958         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
64959
64960 2007-04-23  Bruno Haible  <bruno@clisp.org>
64961
64962         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
64963
64964 2007-04-23  Bruno Haible  <bruno@clisp.org>
64965
64966         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
64967         Needed on HP-UX 11.
64968
64969 2007-04-16  Eric Blake  <ebb9@byu.net>
64970
64971         Make fflush rely on fpurge.
64972         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
64973         open coding all variants.
64974         * modules/fflush (Depends-on): Add fpurge and unistd.
64975         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
64976         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
64977
64978         Fix --with-tests compilation on cygwin.
64979         * modules/argmatch-tests (Makefile.am): List gnulib library first
64980         in LDADD.
64981         * modules/argp-tests (Makefile.am): Likewise.
64982         * modules/array-list-tests (Makefile.am): Likewise.
64983         * modules/array-oset-tests (Makefile.am): Likewise.
64984         * modules/avltree-list-tests (Makefile.am): Likewise.
64985         * modules/avltree-oset-tests (Makefile.am): Likewise.
64986         * modules/avltreehash-list-tests (Makefile.am): Likewise.
64987         * modules/carray-list-tests (Makefile.am): Likewise.
64988         * modules/dirname-tests (Makefile.am): Likewise.
64989         * modules/frexp-tests (Makefile.am): Likewise.
64990         * modules/isnanl-tests (Makefile.am): Likewise.
64991         * modules/linked-list-tests (Makefile.am): Likewise.
64992         * modules/linkedhash-list-tests (Makefile.am): Likewise.
64993         * modules/lock-tests (Makefile.am): Likewise.
64994         * modules/rbtree-list-tests (Makefile.am): Likewise.
64995         * modules/rbtree-oset-tests (Makefile.am): Likewise.
64996         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
64997         * modules/tls-tests (Makefile.am): Likewise.
64998         * modules/tsearch-tests (Makefile.am): Likewise.
64999         * modules/xvasprintf-tests (Makefile.am): Likewise.
65000
65001         Fix fpurge for cygwin.
65002         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
65003         value.
65004         * modules/fpurge-tests (Depends-on): Clean up trash.
65005
65006 2007-04-16  Simon Josefsson  <simon@josefsson.org>
65007
65008         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
65009
65010         * m4/autobuild.m4: Re-indent.
65011
65012 2007-04-13  Bruno Haible  <bruno@clisp.org>
65013
65014         * modules/fpurge-tests: New file.
65015         * tests/test-fpurge.c: New file.
65016
65017         * modules/fpurge: New file.
65018         * lib/fpurge.h: New file.
65019         * lib/fpurge.c: New file.
65020         * m4/fpurge.m4: New file.
65021
65022 2007-04-13  Bruno Haible  <bruno@clisp.org>
65023
65024         * modules/fbufmode-tests: New file.
65025         * tests/test-fbufmode.c: New file.
65026
65027         * modules/fbufmode: New file.
65028         * lib/fbufmode.h: New file.
65029         * lib/fbufmode.c: New file.
65030         * m4/fbufmode.m4: New file.
65031
65032 2007-04-13  Bruno Haible  <bruno@clisp.org>
65033
65034         * modules/fwritable-tests: New file.
65035         * tests/test-fwritable.c: New file.
65036
65037         * modules/fwritable: New file.
65038         * lib/fwritable.h: New file.
65039         * lib/fwritable.c: New file.
65040         * m4/fwritable.m4: New file.
65041
65042 2007-04-13  Bruno Haible  <bruno@clisp.org>
65043
65044         * modules/freadable-tests: New file.
65045         * tests/test-freadable.c: New file.
65046
65047         * modules/freadable: New file.
65048         * lib/freadable.h: New file.
65049         * lib/freadable.c: New file.
65050         * m4/freadable.m4: New file.
65051
65052 2007-04-13  Bruno Haible  <bruno@clisp.org>
65053
65054         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
65055         MOSTLYCLEANFILES.
65056
65057 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
65058
65059         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
65060         gzip bootstrap.conf to avoid dragging in i18n machinery.
65061         (gnulib_tool_option): Use it.
65062
65063 2007-04-13  Bruno Haible  <bruno@clisp.org>
65064
65065         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
65066         %F directives.
65067         * tests/test-vasprintf-posix.c (test_function): Likewise.
65068         * tests/test-snprintf-posix.h (test_function): Likewise.
65069         * tests/test-sprintf-posix.h (test_function): Likewise.
65070         * tests/test-fprintf-posix.h (test_function): Likewise.
65071         * tests/test-printf-posix.h (test_function): Likewise.
65072         * tests/test-fprintf-posix.out: Likewise.
65073
65074 2007-04-13  Bruno Haible  <bruno@clisp.org>
65075
65076         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
65077         * modules/tls-tests (configure.ac): Likewise.
65078         Reported by Arto C. Nirkko <anirkko@insel.ch>.
65079
65080 2007-04-13  Bruno Haible  <bruno@clisp.org>
65081
65082         * lib/tls.c (glthread_tls_get): Fix return type.
65083         Patch by Arto C. Nirkko <anirkko@insel.ch>.
65084
65085 2007-04-12  Eric Blake  <ebb9@byu.net>
65086
65087         * modules/gettime (Depends-on): Remove gettime.
65088         Reported by Dmitry V. Levin.
65089
65090 2007-04-12  Bruno Haible  <bruno@clisp.org>
65091
65092         * modules/fflush (Include): Mention <stdio.h>.
65093         * modules/strtoimax (Include): Mention <inttypes.h>.
65094         * modules/strtoumax (Include): Likewise.
65095
65096 2007-04-12  Eric Blake  <ebb9@byu.net>
65097
65098         * .cvsignore: New file.
65099         * .gitignore: Likewise.
65100
65101 2007-04-12  Bruno Haible  <bruno@clisp.org>
65102
65103         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
65104         not before, since $(LDADD) often contains libgnu.a.
65105         * modules/striconv-tests (test_striconv_LDADD): Likewise.
65106         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
65107         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
65108         Needed on Cygwin.
65109
65110 2007-04-12  Eric Blake  <ebb9@byu.net>
65111
65112         Work around glibc's failure to flush stdin on fclose.
65113         * lib/closein.c (close_stdin): Flush stdin before closing.
65114
65115         Work around glibc's failure to reset seekable stdin on exit.
65116         * modules/closein: New module.
65117         * lib/closein.c: New file.
65118         * lib/closein.h: Likewise.
65119         * m4/closein.m4: Likewise.
65120         * MODULES.html.sh (File stream based Input/Output): Document it.
65121
65122 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65123
65124         * gnulib-tool: Rename generated 'autobuild' script to
65125         'do-autobuild' in --create-megatestdir output.
65126
65127         * doc/gnulib.texi (Build robot for gnulib): Fix.
65128
65129 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65130
65131         * modules/sysexits (Depends-on): Add absolute-header.
65132
65133 2007-04-12  Eric Blake  <ebb9@byu.net>
65134
65135         No need to preserve errno on success.
65136         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
65137         Reported by Bruno Haible.
65138
65139 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65140
65141         * MODULES.html.sh (Support for maintaining and releasing
65142         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
65143
65144 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65145
65146         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
65147
65148 2007-04-12  Simon Josefsson  <simon@josefsson.org>
65149
65150         * modules/autobuild: New module.
65151
65152         * m4/autobuild.m4: New file.
65153
65154 2007-04-11  Bruno Haible  <bruno@clisp.org>
65155
65156         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
65157         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
65158         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
65159         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
65160         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
65161         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65162         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65163         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
65164         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65165         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65166         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
65167         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65168         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65169         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
65170         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65171         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65172         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
65173         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65174         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65175         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
65176         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65177         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65178         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
65179         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65180         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65181         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
65182         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
65183         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
65184         Reported by Eric Blake.
65185
65186 2007-04-11  Bruno Haible  <bruno@clisp.org>
65187
65188         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
65189
65190 2007-04-10  Bruno Haible  <bruno@clisp.org>
65191
65192         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
65193         for NaN and Infinity. Needed on FreeBSD 6.1.
65194         * tests/test-vasnprintf-posix.c (test_function): Undo last change
65195         regarding results for "%010a" of Infinity and NaN.
65196         * tests/test-vasprintf-posix.c (test_function): Likewise.
65197         * tests/test-snprintf-posix.h (test_function): Likewise.
65198         * tests/test-sprintf-posix.h (test_function): Likewise.
65199         * tests/test-fprintf-posix.h (test_function): Likewise.
65200         * tests/test-printf-posix.h (test_function): Likewise.
65201         * tests/test-fprintf-posix.out: Likewise.
65202
65203 2007-04-10  Bruno Haible  <bruno@clisp.org>
65204
65205         * modules/locale-tests: New file.
65206         * tests/test-locale.c: New file.
65207
65208         * modules/locale: New file.
65209         * lib/locale_.h: New file.
65210         * m4/locale_h.m4: New file.
65211
65212 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
65213             Bruno Haible  <bruno@clisp.org>
65214
65215         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
65216         be determined, test for availability of the copysignf, copysign,
65217         copysignl functions.
65218         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
65219         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
65220         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
65221
65222 2007-04-09  Eric Blake  <ebb9@byu.net>
65223
65224         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
65225         * modules/stdio (Makefile.am): Support fflush.
65226         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
65227         * modules/fflush: New file.
65228         * lib/fflush.c: Likewise.
65229         * m4/fflush.m4: Likewise.
65230         * modules/fflush-tests: New test.
65231         * tests/test-fflush.c: Likewise.
65232         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
65233
65234 2007-04-06  Bruno Haible  <bruno@clisp.org>
65235
65236         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
65237         (VASNPRINTF): Use signbit for faster determination whether to print a
65238         minus sign.
65239         * modules/vasnprintf (Files): Remove lib/float+.h.
65240         * modules/fprintf-posix (Depends-on): Add signbit.
65241         * modules/snprintf-posix (Depends-on): Likewise.
65242         * modules/sprintf-posix (Depends-on): Likewise.
65243         * modules/vasnprintf-posix (Depends-on): Likewise.
65244         * modules/vasprintf-posix (Depends-on): Likewise.
65245         * modules/vfprintf-posix (Depends-on): Likewise.
65246         * modules/vsnprintf-posix (Depends-on): Likewise.
65247         * modules/vsprintf-posix (Depends-on): Likewise.
65248
65249 2007-04-06  Bruno Haible  <bruno@clisp.org>
65250
65251         * tests/test-frexp.c (main): Test also the sign bit of zero results.
65252         * tests/test-frexpl.c (main): Likewise.
65253         * tests/test-ldexpl.c (main): Likewise.
65254         * modules/frexp-tests (Depends-on): Add signbit.
65255         * modules/frexpl-tests (Depdends-on): Likewise.
65256         * modules/ldexpl-tests (Depdends-on): Likewise.
65257
65258 2007-04-06  Bruno Haible  <bruno@clisp.org>
65259
65260         * modules/signbit-tests: New file.
65261         * tests/test-signbit.c: New file.
65262
65263         * modules/signbit: New file.
65264         * lib/signbitf.c: New file.
65265         * lib/signbitd.c: New file.
65266         * lib/signbitl.c: New file.
65267         * m4/signbit.m4: New file.
65268         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
65269         (signbit): New macro.
65270         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
65271         REPLACE_SIGNBIT.
65272         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
65273         REPLACE_FREXPL into math.h.
65274
65275 2007-04-06  Bruno Haible  <bruno@clisp.org>
65276
65277         * modules/isnanf-nolibm-tests: New file.
65278         * tests/test-isnanf.c: New file.
65279
65280         * modules/isnanf-nolibm: New file.
65281         * lib/isnanf.h: New file.
65282         * lib/isnanf.c: New file.
65283         * lib/isnan.c: Consider the USE_FLOAT macro.
65284         * m4/isnanf.m4: New file.
65285
65286 2007-04-06  Bruno Haible  <bruno@clisp.org>
65287
65288         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
65289         (Link): New section.
65290
65291         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
65292
65293 2007-04-06  Bruno Haible  <bruno@clisp.org>
65294
65295         Assume the 'long double' type.
65296         * m4/longdouble.m4: Remove file.
65297         * config/srclist.txt: Don't mention longdouble.m4.
65298         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
65299         * lib/float+.h: Likewise.
65300         * lib/frexp.c: Likewise.
65301         * lib/printf-args.h: Likewise.
65302         * lib/printf-args.c: Likewise.
65303         * lib/printf-frexp.c: Likewise.
65304         * lib/printf-parse.c: Likewise.
65305         * lib/vasnprintf.c: Likewise.
65306         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
65307         * m4/intl.m4: Likewise.
65308         * m4/isnanl.m4: Likewise.
65309         * m4/printf.m4: Likewise.
65310         * m4/printf-frexpl.m4: Likewise.
65311         * m4/vasnprintf.m4: Likewise.
65312         * modules/allocsa (Files): Remove m4/longdouble.m4.
65313         * modules/gettext (Files): Likewise.
65314         * modules/relocatable-prog-wrapper (Files): Likewise.
65315         * modules/vasnprintf (Files): Likewise.
65316         * modules/isnanl (Files): Likewise.
65317         (Include): Simplify.
65318         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
65319         (Include): Simplify.
65320         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
65321         (Include): Simplify.
65322         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
65323         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65324         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
65325         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65326         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
65327         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65328         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
65329         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65330         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
65331         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65332         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
65333         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
65334         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
65335         * tests/test-isnanl.c: Likewise.
65336         * tests/test-snprintf-posix.h: Likewise.
65337         * tests/test-sprintf-posix.h: Likewise.
65338         * tests/test-vasnprintf-posix.c: Likewise.
65339         * tests/test-vasnprintf-posix2.c: Likewise.
65340         * tests/test-vasprintf-posix.c: Likewise.
65341
65342 2007-04-06  Bruno Haible  <bruno@clisp.org>
65343
65344         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
65345         * lib/math_.h [__DECC]: Include the overridden include file through
65346         #include_next, outside the double-inclusion guard.
65347         * lib/stdio_.h [__DECC]: Likewise.
65348         * lib/stdlib_.h [__DECC]: Likewise.
65349         * lib/string_.h [__DECC]: Likewise.
65350         * lib/time_.h [__DECC]: Likewise.
65351         * lib/wchar_.h [__DECC]: Likewise.
65352         * lib/wctype_.h [__DECC]: Likewise.
65353         * lib/inttypes_.h [__DECC]: Likewise.
65354         Reported by Albert Chin <china@thewrittenword.com> in
65355         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
65356
65357 2007-04-04  Eric Blake  <ebb9@byu.net>
65358
65359         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
65360         1.5.x.
65361
65362 2007-04-04  Bruno Haible  <bruno@clisp.org>
65363
65364         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
65365         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
65366
65367 2007-04-04  Bruno Haible  <bruno@clisp.org>
65368
65369         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
65370         results for "%010a" of Infinity and NaN.
65371         * tests/test-vasprintf-posix.c (test_function): Likewise.
65372         * tests/test-snprintf-posix.h (test_function): Likewise.
65373         * tests/test-sprintf-posix.h (test_function): Likewise.
65374         * tests/test-fprintf-posix.h (test_function): Remove these tests.
65375         * tests/test-printf-posix.h (test_function): Likewise.
65376         * tests/test-fprintf-posix.out: Update.
65377         Needed for FreeBSD 6.1.
65378
65379 2007-04-04  Bruno Haible  <bruno@clisp.org>
65380
65381         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
65382         directly used by the gnulib modules nor by gnulib-tool.
65383
65384 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
65385
65386         * DEPENDENCIES: Give overall description of version dependency
65387         desirability.  Use more-typical names for apps.
65388         Add shell, coreutils, diffutils, grep, tar, gzip.
65389
65390 2007-04-04  Simon Josefsson  <simon@josefsson.org>
65391
65392         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
65393
65394 2007-04-04  Karl Berry  <karl@gnu.org>
65395
65396         * MODULES.html.sh (func_module): missing '.
65397
65398 2007-04-03  Bruno Haible  <bruno@clisp.org>
65399
65400         * modules/argmatch-tests (Makefile.am): New variable
65401         test_argmatch_LDADD.
65402         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
65403         * modules/array-list-tests (Makefile.am): New variable
65404         test_array_list_LDADD.
65405         * modules/array-oset-tests (Makefile.am): New variable
65406         test_array_oset_LDADD.
65407         * modules/avltree-list-tests (Makefile.am): New variable
65408         test_avltree_list_LDADD.
65409         * modules/avltree-oset-tests (Makefile.am): New variable
65410         test_avltree_oset_LDADD.
65411         * modules/avltreehash-list-tests (Makefile.am): New variable
65412         test_avltreehash_list_LDADD.
65413         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
65414         test_canonicalize_lgpl_LDADD.
65415         * modules/carray-list-tests (Makefile.am): New variable
65416         test_carray_list_LDADD.
65417         * modules/dirname-tests (Makefile.am): New variable
65418         test_dirname_LDADD.
65419         * modules/linked-list-tests (Makefile.am): New variable
65420         test_linked_list_LDADD.
65421         * modules/linkedhash-list-tests (Makefile.am): New variable
65422         test_linkedhash_list_LDADD.
65423         * modules/rbtree-list-tests (Makefile.am): New variable
65424         test_rbtree_list_LDADD.
65425         * modules/rbtree-oset-tests (Makefile.am): New variable
65426         test_rbtree_oset_LDADD.
65427         * modules/rbtreehash-list-tests (Makefile.am): New variable
65428         test_rbtreehash_list_LDADD.
65429         * modules/xvasprintf-tests (Makefile.am): New variable
65430         test_xvasprintf_LDADD.
65431         Reported by Eric Blake.
65432
65433 2007-04-03  Eric Blake  <ebb9@byu.net>
65434
65435         * DEPENDENCIES: Weaken m4 requirements.
65436
65437 2007-04-03  Bruno Haible  <bruno@clisp.org>
65438
65439         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
65440         * modules/isnanl-tests (configure.ac): Likewise.
65441
65442 2007-04-03  Ben Pfaff  <blp@gnu.org>
65443
65444         * modules/iconv_open: Add $(srcdir)/ to source directory
65445         references in Makefile fragments that call gperf, to fix VPATH
65446         builds.
65447
65448 2007-04-03  Bruno Haible  <bruno@clisp.org>
65449
65450         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
65451         * lib/ldexpl.c: Undo last change.
65452
65453 2007-04-03  Bruno Haible  <bruno@clisp.org>
65454
65455         * modules/printf-frexpl (Depends-on): Undo last change.
65456         (Files): Add m4/ldexpl.m4.
65457
65458 2007-04-03  Bruno Haible  <bruno@clisp.org>
65459
65460         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
65461         * modules/isnanl (Link): New section.
65462
65463         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
65464         * modules/frexp (Link): New section.
65465
65466         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
65467         * modules/frexpl (Link): New section.
65468
65469         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
65470         * modules/ldexpl (Link): New section.
65471
65472 2007-04-03  Bruno Haible  <bruno@clisp.org>
65473
65474         * modules/TEMPLATE-EXTENDED: New file.
65475         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
65476
65477 2007-04-03  Bruno Haible  <bruno@clisp.org>
65478
65479         * DEPENDENCIES: New file.
65480         Suggested by Simon Josefsson.
65481
65482 2007-04-03  Bruno Haible  <bruno@clisp.org>
65483
65484         * doc/gnulib.texi: Escape @.
65485
65486 2007-04-03  James Youngman  <jay@gnu.org>
65487         and Paul Eggert  <eggert@cs.ucla.edu>
65488
65489         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
65490         birthtime on all systems that have birthtime, not just those which
65491         use st_birthtimensec rather than st_birthtim.  Putting zero in
65492         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
65493         that the birth time is not available for files on an NFS mount.
65494
65495 2007-04-03  Simon Josefsson  <simon@josefsson.org>
65496
65497         * modules/memxor: Move back from crypto/, suggested by Bruno.
65498         * modules/crypto/hmac-sha1: Fix memxor dependency.
65499
65500         * modules/crypto/gc: Moved from ../.
65501
65502 2007-04-02  Eric Blake  <ebb9@byu.net>
65503
65504         * lib/ldexpl.c (includes): Avoid libm.
65505
65506         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
65507
65508 2007-04-02  Bruno Haible  <bruno@clisp.org>
65509
65510         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
65511         on IRIX.
65512
65513 2007-04-02  Bruno Haible  <bruno@clisp.org>
65514
65515         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
65516         x86 or x86_64 platforms running MacOS X.
65517         Reported by Ryan Schmidt <@ryandesign.com>.
65518
65519 2007-04-02  Bruno Haible  <bruno@clisp.org>
65520
65521         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
65522         i386.
65523
65524 2007-04-01  Simon Josefsson  <simon@josefsson.org>
65525
65526         * modules/crypto/arcfour: Moved from ../.
65527         * modules/crypto/arcfour-tests: Moved from ../.
65528         * modules/crypto/arctwo: Moved from ../.
65529         * modules/crypto/arctwo-tests: Moved from ../.
65530         * modules/crypto/des: Moved from ../.
65531         * modules/crypto/des-tests: Moved from ../.
65532         * modules/crypto/gc-arcfour: Moved from ../.
65533         * modules/crypto/gc-arcfour-tests: Moved from ../.
65534         * modules/crypto/gc-arctwo: Moved from ../.
65535         * modules/crypto/gc-arctwo-tests: Moved from ../.
65536         * modules/crypto/gc-des: Moved from ../.
65537         * modules/crypto/gc-des-tests: Moved from ../.
65538         * modules/crypto/gc-hmac-md5: Moved from ../.
65539         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
65540         * modules/crypto/gc-hmac-sha1: Moved from ../.
65541         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
65542         * modules/crypto/gc-md2: Moved from ../.
65543         * modules/crypto/gc-md2-tests: Moved from ../.
65544         * modules/crypto/gc-md4: Moved from ../.
65545         * modules/crypto/gc-md4-tests: Moved from ../.
65546         * modules/crypto/gc-md5: Moved from ../.
65547         * modules/crypto/gc-md5-tests: Moved from ../.
65548         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
65549         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
65550         * modules/crypto/gc-random: Moved from ../.
65551         * modules/crypto/gc-rijndael: Moved from ../.
65552         * modules/crypto/gc-rijndael-tests: Moved from ../.
65553         * modules/crypto/gc-sha1: Moved from ../.
65554         * modules/crypto/gc-sha1-tests: Moved from ../.
65555         * modules/crypto/gc-tests: Moved from ../.
65556         * modules/crypto/hmac-md5: Moved from ../.
65557         * modules/crypto/hmac-md5-tests: Moved from ../.
65558         * modules/crypto/hmac-sha1: Moved from ../.
65559         * modules/crypto/hmac-sha1-tests: Moved from ../.
65560         * modules/crypto/md2: Moved from ../.
65561         * modules/crypto/md2-tests: Moved from ../.
65562         * modules/crypto/md4: Moved from ../.
65563         * modules/crypto/md4-tests: Moved from ../.
65564         * modules/crypto/md5: Moved from ../.
65565         * modules/crypto/md5-tests: Moved from ../.
65566         * modules/crypto/memxor: Moved from ../.
65567         * modules/crypto/rijndael: Moved from ../.
65568         * modules/crypto/rijndael-tests: Moved from ../.
65569         * modules/crypto/sha1: Moved from ../.
65570
65571 2007-03-30  James Youngman  <jay@gnu.org>
65572
65573         * tests/test-stat-time.c (prepare_test): use chmod() rather than
65574         rename() to change the ctime of a file (because ctime is unaffected
65575         by rename on jfs2 on AIX 5.1).
65576         (main): Start by doing cleanup, in case a previous run failed leaving
65577         test files behind.
65578
65579 2007-03-31  Bruno Haible  <bruno@clisp.org>
65580
65581         Support old proprietary implementations of iconv.
65582         * modules/iconv_open: New file.
65583         * lib/iconv_.h: New file.
65584         * m4/iconv_h.m4: New file.
65585         * lib/iconv_open.c: New file.
65586         * lib/iconv_open-aix.gperf: New file.
65587         * lib/iconv_open-hpux.gperf: New file.
65588         * lib/iconv_open-irix.gperf: New file.
65589         * lib/iconv_open-osf.gperf: New file.
65590         * m4/iconv_open.m4: New file.
65591         * modules/linebreak (Depends-on): Add iconv_open.
65592         * modules/striconv (Depends-on): Likewise.
65593         * modules/striconveh (Depends-on): Likewise.
65594         * modules/unicodeio (Depends-on): Likewise.
65595         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
65596         (iconv_t)(-1).
65597         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
65598         conversion if cd is (iconv_t)(-1).
65599         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
65600         is not possible.
65601
65602 2007-03-31  Bruno Haible  <bruno@clisp.org>
65603
65604         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
65605         work on Solaris either. Protect also second use of "autodetect_jp".
65606
65607 2007-03-31  Bruno Haible  <bruno@clisp.org>
65608
65609         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
65610         the function is not present.
65611
65612 2007-03-31  Bruno Haible  <bruno@clisp.org>
65613
65614         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
65615         the function is not present.
65616
65617 2007-03-31  Bruno Haible  <bruno@clisp.org>
65618
65619         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
65620         a bug in HP-UX iconv_open().
65621
65622 2007-03-31  Bruno Haible  <bruno@clisp.org>
65623
65624         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
65625         (Mathematics <math.h>): New section, add fpieee.
65626         (Input/output <stdio.h>): Add fseterr.
65627         (Mathematics <math.h>): New section, add printf-frexp.
65628         (Container data structures): Add sublist.
65629         (Core language properties): Add fpucw, inline.
65630         (Functions for greatest-width integer types <inttypes.h>): Add
65631         imaxabs, imaxdiv, inttypes.
65632         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
65633         isnanl-nolibm, ldexp.
65634         (Mathematics <math.h>): New section, add printf-frexpl.
65635         (Support for systems lacking POSIX:2001): Add fprintf-posix,
65636         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
65637         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
65638         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
65639         (Unicode string functions): Add unistr/u*-mbtoucr.
65640         (Java): Add javacomp-script, javaexec-script.
65641         (C#): Add csharpcomp-script, csharpexec-script.
65642         (Support for building libraries and executables): Add havelib,
65643         relocatable-*.
65644         (Support for maintaining and releasing projects): Renamed from
65645         'Support for maintaining and release projects'. Add announce-gen.
65646
65647 2007-03-31  Bruno Haible  <bruno@clisp.org>
65648
65649         * README: Talk primarily about git.
65650         (git and CVS): Renamed from CVS.
65651         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
65652         gnulib is available through git.
65653         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
65654
65655 2007-03-30  Bruno Haible  <bruno@clisp.org>
65656
65657         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
65658         * lib/poll_.h: Likewise.
65659         * lib/stat_.h: Likewise.
65660         * lib/sys_time_.h: Likewise.
65661         * lib/sysexit_.h: Likewise.
65662         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
65663         * lib/stdbool_.h: Likewise.
65664         * lib/byteswap_.h: Add double-inclusion guard.
65665
65666 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
65667
65668         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
65669
65670 2007-03-30  Karl Berry  <karl@gnu.org>
65671
65672         * config/srclist-update: double space after USA in the license
65673         substitution, since that's how it's usually (?) written.
65674
65675 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
65676
65677         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
65678         reported by Bruno Haible.
65679
65680 2007-03-29  Bruno Haible  <bruno@clisp.org>
65681
65682         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
65683         a bug in AIX iconv().
65684
65685 2007-03-29  Bruno Haible  <bruno@clisp.org>
65686
65687         * modules/ldexpl-tests: New file.
65688         * tests/test-ldexpl.c: New file.
65689
65690 2007-03-29  Bruno Haible  <bruno@clisp.org>
65691
65692         * lib/ldexpl.c: Include fpucw.h.
65693         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
65694         multiplication.
65695         * modules/ldexpl (Depends-on): Add fpucw.
65696
65697 2007-03-29  Bruno Haible  <bruno@clisp.org>
65698
65699         * modules/ldexpl: New file.
65700         * m4/ldexpl.m4: New file.
65701         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
65702         set.
65703         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
65704         REPLACE_LDEXPL.
65705         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
65706         REPLACE_LDEXPL.
65707         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
65708         gl_FUNC_LDEXPL_WORKS.
65709         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
65710         * modules/mathl (Files): Remove lib/ldexpl.c.
65711         (Depends-on): Add ldexpl.
65712
65713 2007-03-29  Bruno Haible  <bruno@clisp.org>
65714
65715         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
65716
65717 2007-03-29  Bruno Haible  <bruno@clisp.org>
65718
65719         * tests/test-striconveh.c (main): Don't assume that a direct conversion
65720         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
65721         and possibly also HP-UX.
65722         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
65723         work on AIX, IRIX, HP-UX, OSF/1.
65724         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
65725         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
65726         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
65727         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
65728         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
65729         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
65730
65731 2007-03-29  Bruno Haible  <bruno@clisp.org>
65732
65733         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
65734
65735 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
65736
65737         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
65738         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
65739
65740 2007-03-29  Eric Blake  <ebb9@byu.net>
65741
65742         * lib/acl-internal.h: Remove redundant include.
65743         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
65744         Cygwin when a file is locked.
65745
65746 2007-03-29  Bruno Haible  <bruno@clisp.org>
65747
65748         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
65749         file.
65750         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
65751
65752 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
65753
65754         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
65755         try to remove a parent directory if the child couldn't be removed
65756         (except for the first rmdir, which could fail because the child
65757         doesn't exist).  Problem reported by Jeff Blaine in
65758         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
65759
65760 2007-03-28  Bruno Haible  <bruno@clisp.org>
65761
65762         * lib/striconveh.c (utf8conv_carefully): New function.
65763         (mem_cd_iconveh_internal): Invoke it.
65764
65765 2007-03-28  Bruno Haible  <bruno@clisp.org>
65766
65767         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
65768         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
65769         input.
65770         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
65771         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
65772         unistr/u8-uctomb.
65773
65774 2007-03-28  Bruno Haible  <bruno@clisp.org>
65775
65776         * modules/unistr/u8-mbtoucr: New file.
65777         * lib/unistr/u8-mbtoucr.c: New file.
65778         * modules/unistr/u16-mbtoucr: New file.
65779         * lib/unistr/u16-mbtoucr.c: New file.
65780         * modules/unistr/u16-mbtoucr: New file.
65781         * lib/unistr/u16-mbtoucr.c: New file.
65782         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
65783
65784 2007-03-27  Simon Josefsson  <simon@josefsson.org>
65785             Bruno Haible  <bruno@clisp.org>
65786
65787         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
65788         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
65789         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
65790
65791         * m4/stdio_h.m4: Add stubs for vasprintf too.
65792
65793         * modules/stdio: Support vasprintf in sed command.
65794
65795         * modules/vasprintf: Depend on stdio for prototypes.  Remove
65796         vasprintf.h.  Add stdio module indicator.
65797
65798         * lib/stdio_.h: Declare asprintf and vasprintf, based on
65799         vasprintf.h.
65800
65801         * lib/vasprintf.h: File removed.
65802
65803         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
65804         * lib/vasprintf.c: Ditto.
65805         * lib/xvasprintf.c: Ditto.
65806         * tests/test-vasprintf-posix.c: Ditto.
65807         * tests/test-vasprintf.c: Ditto.
65808
65809 2007-03-27  Bruno Haible  <bruno@clisp.org>
65810
65811         Make vasnprintf multithread-safe.
65812         * lib/vasnprintf.c (decimal_point_char): New function.
65813         (VASNPRINTF): Use it.
65814         Suggested by Simon Josefsson.
65815
65816 2007-03-27  Eric Blake  <ebb9@byu.net>
65817
65818         Support sub-second birthtime on cygwin.
65819         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
65820         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
65821         (get_stat_birthtime): Also work with st_birthtim.
65822
65823 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
65824
65825         * lib/stat-time.h (USE_BIRTHTIME): Remove.
65826         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
65827         (get_stat_birthtime_ns): Do not try to use "spare" fields.
65828         (get_stat_birthtime_ns): Simplify compile-time tests.
65829         (get_stat_birthtime): Change the API to look like
65830         get_stat_mtime etc., except return a negative tv_nsec on error.
65831         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
65832         Don't check for "spare" fields.
65833         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
65834         or for struct stat.st_birthtime, as these tests aren't used.
65835         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
65836
65837 2007-03-27  Bruno Haible  <bruno@clisp.org>
65838
65839         * lib/stat-time.h: Include <sys/stat.h>.
65840
65841 2007-03-27  James Youngman  <jay@gnu.org>
65842
65843         * lib/stat-time.h (get_stat_birthtime): New function for
65844           retrieving st_birthtime as provided by UFS2 (hence *BSD).
65845         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
65846           and its variants.
65847         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
65848         * modules/stat-time-test: New file.
65849         * tests/test-stat-time.c: New test, devised by Bruno Haible.
65850
65851 2007-03-26  Bruno Haible  <bruno@clisp.org>
65852
65853         Better support of signalling NaNs.
65854         * lib/atanl.c: Include isnanl.h.
65855         (atanl): Perform test for NaN at the beginning of the function and
65856         through a call to isnanl.
65857         * lib/cosl.c: Include isnanl.h.
65858         (cosl): Perform test for NaN at the beginning of the function and
65859         through a call to isnanl.
65860         * lib/ldexpl.c: Include isnanl.h.
65861         (ldexpl): Perform test for NaN through a call to isnanl.
65862         * lib/logl.c: Include isnanl.h.
65863         (logl): Perform test for NaN at the beginning of the function and
65864         through a call to isnanl.
65865         * lib/sinl.c: Include isnanl.h.
65866         (sinl): Perform test for NaN at the beginning of the function and
65867         through a call to isnanl.
65868         * lib/sqrtl.c: Include isnanl.h.
65869         (sqrtl): Perform test for NaN at the beginning of the function and
65870         through a call to isnanl.
65871         * lib/tanl.c: Include isnanl.h.
65872         (tanl): Perform test for NaN at the beginning of the function and
65873         through a call to isnanl.
65874         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
65875         * modules/mathl (Depends-on): Add isnanl.
65876
65877 2007-03-26  Eric Blake  <ebb9@byu.net>
65878
65879         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
65880         regression in logic sense of previous patch.
65881
65882 2007-03-26  Bruno Haible  <bruno@clisp.org>
65883
65884         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
65885         unportable shell command "if ! ...".
65886         Reported by Ralf Wildenhues.
65887
65888 2007-03-25  Bruno Haible  <bruno@clisp.org>
65889
65890         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
65891         <sysexits.h> file, and only add EX_CONFIG.
65892         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
65893         absolute file name and whether it is sufficient. Substitute also
65894         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
65895         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
65896         ABSOLUTE_SYSEXITS_H into sysexits.h.
65897
65898 2007-03-25  Bruno Haible  <bruno@clisp.org>
65899
65900         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
65901         hints is NULL.
65902
65903 2007-03-25  Bruno Haible  <bruno@clisp.org>
65904
65905         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
65906         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
65907
65908 2007-03-25  Bruno Haible  <bruno@clisp.org>
65909
65910         * lib/vasnprintf.c: Include langinfo.h.
65911         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
65912         multithread-safe.
65913         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
65914         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
65915         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
65916         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
65917         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
65918         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65919         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
65920         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
65921         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
65922         Reported by Simon Josefsson.
65923
65924 2007-03-25  Bruno Haible  <bruno@clisp.org>
65925
65926         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
65927         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
65928         * modules/vasnprintf (Depends-on): Add stdint.
65929
65930 2007-03-25  Bruno Haible  <bruno@clisp.org>
65931
65932         * modules/fpieee: New file.
65933         * m4/fpieee.m4: New file.
65934         * modules/isnan-nolibm (Depends-on): Add fpieee.
65935         * modules/isnanl-nolibm (Depends-on): Add fpieee.
65936         * modules/isnanl (Depends-on): Add fpieee.
65937
65938 2007-03-25  Bruno Haible  <bruno@clisp.org>
65939
65940         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
65941
65942 2007-03-25  Bruno Haible  <bruno@clisp.org>
65943
65944         Avoid test failures on IRIX 6.5.
65945         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
65946         (main): Use it.
65947         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
65948         macros.
65949         (main): Use them.
65950
65951 2007-03-25  Bruno Haible  <bruno@clisp.org>
65952
65953         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
65954         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
65955         exists but doesn't work.
65956         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
65957         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
65958         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
65959         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
65960         math.h.
65961
65962 2007-03-25  Bruno Haible  <bruno@clisp.org>
65963
65964         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
65965         returns inf. Needed on IRIX 6.5.
65966
65967 2007-03-25  Bruno Haible  <bruno@clisp.org>
65968
65969         * tests/test-frexpl.c: Include isnanl-nolibm.h.
65970         (main): Use isnanl instead of x != x idiom.
65971         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
65972
65973         * tests/test-frexp.c: Include isnan.h.
65974         (main): Use isnan instead of x != x idiom.
65975         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
65976
65977 2007-03-25  Bruno Haible  <bruno@clisp.org>
65978
65979         * tests/test-frexp.c (NaN): New function/macro.
65980         (main): Use it instead of 0.0 / 0.0.
65981         * tests/test-isnan.c (NaN): New function/macro.
65982         (main): Use it instead of 0.0 / 0.0.
65983         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
65984         (test_function): Use it instead of 0.0 / 0.0.
65985         * tests/test-vasprintf-posix.c (NaN): New function/macro.
65986         (test_function): Use it instead of 0.0 / 0.0.
65987         * tests/test-snprintf-posix.h (NaN): New function/macro.
65988         (test_function): Use it instead of 0.0 / 0.0.
65989         * tests/test-sprintf-posix.h (NaN): New function/macro.
65990         (test_function): Use it instead of 0.0 / 0.0.
65991         * tests/test-fprintf-posix.h (NaN): New function/macro.
65992         (test_function): Use it instead of 0.0 / 0.0.
65993         * tests/test-printf-posix.h (NaN): New function/macro.
65994         (test_function): Use it instead of 0.0 / 0.0.
65995
65996         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
65997
65998 2007-03-25  Bruno Haible  <bruno@clisp.org>
65999
66000         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
66001
66002 2007-03-25  Bruno Haible  <bruno@clisp.org>
66003
66004         * lib/regexec.c (merge_state_with_log): Make static.
66005
66006 2007-03-25  Bruno Haible  <bruno@clisp.org>
66007
66008         * lib/trigl.c (kernel_rem_pio2): Make static.
66009
66010 2007-03-25  Bruno Haible  <bruno@clisp.org>
66011
66012         * lib/sincosl.c (sincosl_table): Make static.
66013
66014 2007-03-25  Bruno Haible  <bruno@clisp.org>
66015
66016         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
66017         if the compiler does not support C99.
66018
66019 2007-03-25  Bruno Haible  <bruno@clisp.org>
66020
66021         * modules/time (Makefile.am): Ensure all rule action lines start with a
66022         tab.
66023
66024 2007-03-24  Bruno Haible  <bruno@clisp.org>
66025
66026         * modules/tsearch-tests: New file.
66027         * tests/test-tsearch.sh: New file.
66028         * tests/test-tsearch.c: New file, mostly copied from glibc.
66029
66030         * modules/search-tests: New file.
66031         * tests/test-search.c: New file.
66032
66033         * modules/search: New file.
66034         * lib/search_.h: New file, incorporating lib/tsearch.h.
66035         * m4/search_h.m4: New file.
66036         * lib/tsearch.h: Remove file.
66037         * lib/tsearch.c: Include search.h instead of tsearch.h.
66038         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
66039         HAVE_TSEARCH.
66040         * modules/tsearch (Files): Remove lib/tsearch.h.
66041         (Depends-on): Add search.
66042         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
66043         (Include): Change tsearch.h into search.h.
66044
66045 2007-03-24  Bruno Haible  <bruno@clisp.org>
66046
66047         * modules/fpucw: New file.
66048         * lib/fpucw.h: New file.
66049         * lib/frexp.c: Include fpucw.h.
66050         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
66051         (FUNC): Use them.
66052         * lib/printf-frexp.c: Include fpucw.h.
66053         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
66054         (FUNC): Use them.
66055         * lib/vasnprintf.c: Include fpucw.h.
66056         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
66057         'long double' calculations.
66058         * tests/test-frexpl.c: Include fpucw.h.
66059         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
66060         * tests/test-printf-frexpl.c: Include fpucw.h.
66061         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
66062         * modules/frexpl (Depends-on): Add fpucw.
66063         * modules/printf-frexpl (Depends-on): Likewise.
66064         * modules/fprintf-posix (Depends-on): Likewise.
66065         * modules/snprintf-posix (Depends-on): Likewise.
66066         * modules/sprintf-posix (Depends-on): Likewise.
66067         * modules/vasnprintf-posix (Depends-on): Likewise.
66068         * modules/vasprintf-posix (Depends-on): Likewise.
66069         * modules/vfprintf-posix (Depends-on): Likewise.
66070         * modules/vsnprintf-posix (Depends-on): Likewise.
66071         * modules/vsprintf-posix (Depends-on): Likewise.
66072         * modules/frexpl-tests (Depends-on): Likewise.
66073         * modules/printf-frexpl-tests (Depends-on): Likewise.
66074
66075 2007-03-24  Bruno Haible  <bruno@clisp.org>
66076
66077         * lib/float+.h: New file.
66078         * lib/isnan.c: Include float+.h.
66079         (SIZE): New macro.
66080         (FUNC): Compare only SIZE bytes of the value.
66081         * lib/vasnprintf.c: Include float+.h.
66082         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
66083         SIZEOF_LDBL or SIZEOF_DBL bytes.
66084         * modules/isnan-nolibm (Files): Add lib/float+.h.
66085         * modules/isnanl-nolibm (Files): Add lib/float+.h.
66086         * modules/isnanl (Files): Add lib/float+.h.
66087         * modules/vasnprintf (Files): Add lib/float+.h.
66088
66089 2007-03-24  Bruno Haible  <bruno@clisp.org>
66090
66091         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
66092         include isnanl-nolibm.h.
66093
66094 2007-03-24  Bruno Haible  <bruno@clisp.org>
66095
66096         * tests/test-read-file.c (main): Don't produce spurious output for
66097         expected situations. Make the test fail if it encountered unexpected
66098         results.
66099
66100 2007-03-24  Bruno Haible  <bruno@clisp.org>
66101
66102         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
66103         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
66104
66105 2007-03-24  Bruno Haible  <bruno@clisp.org>
66106
66107         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
66108
66109 2007-03-24  Bruno Haible  <bruno@clisp.org>
66110
66111         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
66112         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
66113
66114         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
66115         * modules/utf8-ucs4: Turn into a symbolic link to module
66116         unistr/u8-mbtouc.
66117
66118         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
66119         utf8-ucs4-unsafe.
66120         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
66121         unistr/u8-mbtouc-unsafe.
66122
66123         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
66124         * modules/utf16-ucs4: Turn into a symbolic link to module
66125         unistr/u16-mbtouc.
66126
66127         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
66128         utf16-ucs4-unsafe.
66129         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
66130         unistr/u16-mbtouc-unsafe.
66131
66132         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
66133         * modules/ucs4-utf8: Turn into a symbolic link to module
66134         unistr/u8-ubtomb.
66135
66136         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
66137         * modules/ucs4-utf16: Turn into a symbolic link to module
66138         unistr/u16-ubtomb.
66139
66140 2007-03-24  Bruno Haible  <bruno@clisp.org>
66141
66142         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
66143         Enable the function only if HAVE_INLINE.
66144         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
66145         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
66146         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
66147         Enable the function only if HAVE_INLINE.
66148         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
66149         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
66150         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
66151         Enable the function only if HAVE_INLINE.
66152         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
66153         Enable the function only if HAVE_INLINE.
66154         * modules/utf8-ucs4: Update.
66155         * modules/utf8-ucs4-unsafe: Update.
66156         * modules/utf16-ucs4: Update.
66157         * modules/utf16-ucs4-unsafe: Update.
66158         * modules/ucs4-utf8: Update.
66159         * modules/ucs4-utf16: Update.
66160
66161 2007-03-24  Bruno Haible  <bruno@clisp.org>
66162
66163         * lib/utf8-ucs4.h: Remove file.
66164         * lib/utf8-ucs4-unsafe.h: Remove file.
66165         * lib/utf16-ucs4.h: Remove file.
66166         * lib/utf16-ucs4-unsafe.h: Remove file.
66167         * lib/ucs4-utf8.h: Remove file.
66168         * lib/ucs4-utf16.h: Remove file.
66169         * lib/unistr.h: Include their previous contents.
66170         * m4/utf-ucs4.m4: Remove file.
66171         * m4/ucs4-utf.m4: Remove file.
66172         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
66173         (Depends-on): Add unistr/base.
66174         (configure.ac): Remove gl_UTF_UCS4.
66175         (Makefile.am): Update.
66176         (Include): Change to unistr.h.
66177         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
66178         (Depends-on): Add unistr/base.
66179         (configure.ac): Remove gl_UTF_UCS4.
66180         (Makefile.am): Update.
66181         (Include): Change to unistr.h.
66182         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
66183         (Depends-on): Add unistr/base.
66184         (configure.ac): Remove gl_UTF_UCS4.
66185         (Makefile.am): Update.
66186         (Include): Change to unistr.h.
66187         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
66188         (Depends-on): Add unistr/base.
66189         (configure.ac): Remove gl_UTF_UCS4.
66190         (Makefile.am): Update.
66191         (Include): Change to unistr.h.
66192         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
66193         (Depends-on): Add unistr/base.
66194         (configure.ac): Remove gl_UCS4_UTF.
66195         (Makefile.am): Update.
66196         (Include): Change to unistr.h.
66197         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
66198         (Depends-on): Add unistr/base.
66199         (configure.ac): Remove gl_UCS4_UTF.
66200         (Makefile.am): Update.
66201         (Include): Change to unistr.h.
66202         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
66203         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
66204         utf8-ucs4-unsafe.h.
66205         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
66206         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
66207         utf16-ucs4-unsafe.h.
66208         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
66209         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
66210         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
66211         * lib/unistr/u8-strchr.c: Likewise.
66212         * lib/unistr/u8-strrchr.c: Likewise.
66213         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
66214         * lib/unistr/u16-strchr.c: Likewise.
66215         * lib/unistr/u16-strrchr.c: Likewise.
66216         * lib/striconveh.c: Update.
66217         * lib/linebreak.c: Update.
66218
66219 2007-03-24  Bruno Haible  <bruno@clisp.org>
66220
66221         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
66222         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
66223
66224 2007-03-22  Bruno Haible  <bruno@clisp.org>
66225
66226         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
66227
66228 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
66229
66230         * MODULES.html.sh (File system functions): New module write-any-file.
66231         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
66232         * m4/write-any-file.m4: New files.
66233
66234 2007-03-23  Eric Blake  <ebb9@byu.net>
66235
66236         * gnulib-tool: Rearrange space-tab sequences, since some editors
66237         like to eat them.
66238
66239 2007-03-23  Eric Blake  <ebb9@byu.net>
66240
66241         * lib/version-etc.c (version_etc_va): Update license wording to
66242         be more concise.  Recommended by Richard Stallman.
66243
66244 2007-03-22  Bruno Haible  <bruno@clisp.org>
66245
66246         * lib/poll.c (MSG_PEEK): New fallback definition.
66247
66248 2007-03-22  Bruno Haible  <bruno@clisp.org>
66249
66250         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
66251         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
66252         (main): Update.
66253         Fixes a compilation error on BeOS.
66254
66255 2007-03-22  Bruno Haible  <bruno@clisp.org>
66256
66257         * modules/frexpl-tests: New file.
66258         * tests/test-frexpl.c: New file.
66259
66260         * modules/frexpl: New file.
66261         * m4/frexpl.m4: New file.
66262         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
66263         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
66264         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
66265         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
66266         (Depends-on): Add frexpl. Remove isnanl-nolibm.
66267         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
66268
66269 2007-03-22  Bruno Haible  <bruno@clisp.org>
66270
66271         * lib/frexpl.c: Share code with lib/frexp.c.
66272         * modules/mathl (Files): Add lib/frexp.c.
66273         (Depends-on): Add isnanl-nolibm.
66274
66275 2007-03-22  Bruno Haible  <bruno@clisp.org>
66276
66277         * modules/printf-frexp (Files): Add m4/frexp.m4.
66278         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
66279         only if the found frexp function actually works.
66280
66281 2007-03-22  Bruno Haible  <bruno@clisp.org>
66282
66283         * lib/frexp.c: Remove older implementation that uses divisions.
66284
66285 2007-03-21  Bruno Haible  <bruno@clisp.org>
66286
66287         * modules/frexp-tests: New file.
66288         * tests/test-frexp.c: New file.
66289
66290         * modules/frexp: New file.
66291         * lib/frexp.c: New file.
66292         * m4/frexp.m4: New file.
66293         * lib/math_.h (frexp): New declaration.
66294         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
66295         REPLACE_FREXP.
66296         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
66297
66298 2007-03-21  Bruno Haible  <bruno@clisp.org>
66299
66300         * modules/isnanl-tests: New file.
66301         * tests/test-isnanl.c: New file.
66302
66303         * modules/isnanl: New file.
66304         * lib/isnanl.h: New file.
66305         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
66306         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
66307         gl_FUNC_ISNANL_WORKS.
66308         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
66309         New macros.
66310
66311 2007-03-21  Bruno Haible  <bruno@clisp.org>
66312
66313         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
66314         lib/isnanl.h.
66315         (Include): Update.
66316         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
66317         * lib/vasnprintf.c: Update.
66318         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
66319         tests/test-isnanl.h, remove tests/test-isnanl.c.
66320         (Makefile.am): Update.
66321         * tests/test-isnanl-nolibm.c: New file.
66322         * tests/test-isnanl.h: New file.
66323         * tests/test-isnanl.c: Remove file.
66324
66325 2007-03-21  Jim Meyering  <jim@meyering.net>
66326
66327         When trying to open ".", treat ESTALE like EACCES.
66328         * lib/savewd.c (savewd_save): Resort to forking not just upon
66329         failure with EACCES, but also when errno is ESTALE.
66330
66331 2007-03-20  Bruno Haible  <bruno@clisp.org>
66332
66333         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
66334         Needed on AIX 5.1. Reported by Matthew Woehlke.
66335
66336 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
66337
66338         Suggestions by Bruno Haible:
66339         * lib/acl-internal.h: Include "gettext.h" rather than rolling
66340         our own.
66341         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
66342         * modules/acl (Depends-on): Add gettext.
66343
66344 2007-03-19  Bruno Haible  <bruno@clisp.org>
66345
66346         * modules/iconvme: Remove file.
66347         * lib/iconvme.h: Remove file.
66348         * lib/iconvme.c: Remove file.
66349         * m4/iconvme.m4: Remove file.
66350
66351 2007-03-19  Bruno Haible  <bruno@clisp.org>
66352
66353         * doc/relocatable-maint.texi: Break long shell script line.
66354         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
66355
66356 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
66357
66358         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
66359         handle file_has_acl.
66360         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
66361         * lib/acl.c: Move header inclusions and related macro defns into
66362         lib/acl-internal.h.
66363         (S_ISLNK): Remove defn, since that's now done for us.
66364         (file_has_acl): Move to lib/file-has-acl.c.
66365         Call acl_trivial if available.  This is the crucial part of the fix.
66366         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
66367         shared within the library.  Rewrite a bit, partly to make it compatible
66368         with the GNU coding style.
66369         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
66370         Remove unnecessary double-quotes.
66371         Don't test for acl_to_text; the build will catch that.
66372         Replace acl_entries if it doesn't exist and it is needed.
66373         Check for -lsec and acl_trivial (as used on Solaris 10).
66374         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
66375         lib/file-has-acl.c.
66376         (Depends-on): Add sys_stat, for S_ISLNK.
66377
66378 2007-03-19  Ben Pfaff  <blp@gnu.org>
66379
66380         * doc/gnulib.texi: Fix typos.
66381         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
66382
66383 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
66384
66385         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
66386         If size is zero here, buf must be zero.
66387
66388 2007-03-19  Simon Josefsson  <simon@josefsson.org>
66389
66390         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
66391         <bruno@clisp.org>.
66392
66393 2007-03-18  Bruno Haible  <bruno@clisp.org>
66394
66395         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
66396         Suggested by Eric Blake.
66397
66398 2007-03-18  Ben Pfaff  <blp@gnu.org>
66399
66400         * doc/relocatable.texi: Recommend using as prefix a directory
66401         that does not exist and will never be created.  Based on
66402         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
66403         and others.
66404
66405 2007-03-17  Bruno Haible  <bruno@clisp.org>
66406
66407         * lib/fchownat.c: Include lchown.h.
66408
66409 2007-03-17  Bruno Haible  <bruno@clisp.org>
66410
66411         Fix endless loop when the given allocated size was > INT_MAX.
66412         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
66413         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
66414         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
66415         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
66416         * lib/sprintf.c (sprintf): Likewise.
66417
66418 2007-03-17  Bruno Haible  <bruno@clisp.org>
66419
66420         * tests/test-argp-2.sh (func_compare): Output a context diff.
66421
66422 2007-03-17  Bruno Haible  <bruno@clisp.org>
66423
66424         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
66425         locale's decimal-point character.
66426
66427 2007-03-17  Bruno Haible  <bruno@clisp.org>
66428
66429         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
66430         before comparing it. Needed because on some platforms (e.g. x86) a
66431         'long double' occupies less bytes than sizeof (long double).
66432
66433 2007-03-17  Bruno Haible  <bruno@clisp.org>
66434
66435         * tests/test-crc.c (main): Make printf statements 64-bit clean.
66436         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
66437         * tests/test-getaddrinfo.c (simple): Likewise.
66438         * tests/test-read-file.c (main): Likewise.
66439
66440 2007-03-17  Bruno Haible  <bruno@clisp.org>
66441
66442         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
66443
66444 2007-03-17  Bruno Haible  <bruno@clisp.org>
66445
66446         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
66447         unused variable.
66448
66449 2007-03-17  Bruno Haible  <bruno@clisp.org>
66450
66451         * tests/test-c-strcasecmp.c: Include c-strcase.h.
66452         * tests/test-c-strncasecmp.c: Likewise.
66453
66454 2007-03-17  Bruno Haible  <bruno@clisp.org>
66455
66456         * modules/stdlib (Depends-on): Add unistd.
66457         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
66458         Needed for MacOS X 10.3.
66459
66460 2007-03-17  Bruno Haible  <bruno@clisp.org>
66461
66462         * lib/unistr/u-strdup.h: Include <stdlib.h>.
66463
66464 2007-03-17  Bruno Haible  <bruno@clisp.org>
66465
66466         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
66467
66468 2007-03-17  Bruno Haible  <bruno@clisp.org>
66469
66470         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
66471         to reflect files copied from gnulib (with or without modifications).
66472         Suggested by Jim Meyering.
66473
66474 2007-03-17  Eric Blake  <ebb9@byu.net>
66475
66476         * NEWS: Document stdlib change from 2007-02-18.
66477
66478 2007-03-17  Jim Meyering  <jim@meyering.net>
66479
66480         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
66481         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
66482         someone uses a name containing shell meta-characters.
66483         Reported by Alfred M. Szmidt.
66484
66485         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
66486
66487 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
66488
66489         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
66490         and copy gettext configuration files only if configure.ac contains
66491         a use of AM_GNU_GETTEXT_VERSION.
66492
66493 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
66494
66495         * build-aux/bootstrap (gnulib_name): New variable.
66496         (gnulib_tool_options): Use it.
66497
66498 2007-03-13  Simon Josefsson  <simon@josefsson.org>
66499
66500         * tests/test-des.c: Use new namespace.
66501
66502 2007-03-15  Bruno Haible  <bruno@clisp.org>
66503
66504         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
66505         Reported by James Youngman <jay@gnu.org>.
66506
66507 2007-03-15  Bruno Haible  <bruno@clisp.org>
66508
66509         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
66510         declared prototype. Needed with cc on OSF/1 5.1.
66511
66512 2007-03-15  Bruno Haible  <bruno@clisp.org>
66513
66514         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
66515         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
66516         (struct gl_list_implementation): Add dispose_fn argument to the
66517         'create_empty', 'create' methods.
66518         (struct gl_list_impl_base): Add field 'dispose_fn'.
66519         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
66520         argument.
66521         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
66522         dispose_fn argument.
66523         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
66524         dispose_fn on the dropped values.
66525         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
66526         dispose_fn argument.
66527         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
66528         dropped values.
66529         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
66530         (gl_tree_remove_node): Call dispose_fn on the dropped value.
66531         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
66532         (gl_tree_remove_node): Call dispose_fn on the dropped value.
66533         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
66534         argument.
66535         (gl_tree_list_free): Call dispose_fn on the dropped values.
66536         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
66537         the dropped values.
66538         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
66539         Add dispose_fn argument.
66540         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
66541         Call dispose_fn on the dropped values.
66542         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
66543         Add dispose_fn argument.
66544         (gl_sublist_create): Initialize the 'dispose_fn' field.
66545         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
66546         * tests/test-array_list.c (main): Update.
66547         * tests/test-carray_list.c (main): Update.
66548         * tests/test-avltree_list.c (main): Update.
66549         * tests/test-rbtree_list.c (main): Update.
66550         * tests/test-avltreehash_list.c (main): Update.
66551         * tests/test-rbtreehash_list.c (main): Update.
66552         * tests/test-linked_list.c (main): Update.
66553         * tests/test-linkedhash_list.c (main): Update.
66554         * tests/test-array_oset.c (main): Update.
66555
66556 2007-03-15  Bruno Haible  <bruno@clisp.org>
66557
66558         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
66559         (gl_oset_create_empty): Add dispose_fn argument.
66560         (struct gl_oset_implementation): Add dispose_fn argument to
66561         'create_empty' method.
66562         (struct gl_oset_impl_base): Add dispose_fn field.
66563         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
66564         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
66565         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
66566         values.
66567         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
66568         (gl_tree_oset_free): Call dispose_fn on the dropped values.
66569         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
66570         dropped value.
66571         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
66572         dropped value.
66573         * tests/test-array_oset.c (main): Update.
66574         * tests/test-avltree_oset.c (main): Update.
66575         * tests/test-rbtree_oset.c (main): Update.
66576         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
66577
66578 2007-03-13  Bruno Haible  <bruno@clisp.org>
66579
66580         * tests/test-stdbool.c (i): Update after last patch.
66581
66582 2007-03-12  Bruno Haible  <bruno@clisp.org>
66583
66584         * lib/quotearg.c: Include <wctype.h> early, before the definition of
66585         the iswprint macro. Needed on Solaris 2.5.1.
66586
66587 2007-03-12  Bruno Haible  <bruno@clisp.org>
66588
66589         * tests/test-printf-frexp.c (main): Declare x as volatile.
66590
66591 2007-03-12  Simon Josefsson  <simon@josefsson.org>
66592
66593         * doc/gnulib.texi (Build robot for gnulib): New section.
66594
66595 2007-03-12  Jim Meyering  <jim@meyering.net>
66596
66597         * build-aux/bootstrap: New file.
66598         * build-aux/bootstrap.conf: New file, from coreutils.
66599
66600 2007-03-11  Bruno Haible  <bruno@clisp.org>
66601
66602         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
66603
66604 2007-03-12  Simon Josefsson  <simon@josefsson.org>
66605
66606         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
66607         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
66608         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
66609
66610 2007-03-11  Bruno Haible  <bruno@clisp.org>
66611
66612         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
66613         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
66614
66615 2007-03-11  Bruno Haible  <bruno@clisp.org>
66616
66617         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
66618         formula. Needed for SunPRO C 5.0.
66619
66620 2007-03-11  Bruno Haible  <bruno@clisp.org>
66621
66622         * modules/long-options (Depends-on): Add getopt.
66623
66624 2007-03-11  Bruno Haible  <bruno@clisp.org>
66625
66626         * modules/modechange (Depends-on): Add stdbool.
66627
66628 2007-03-11  Bruno Haible  <bruno@clisp.org>
66629
66630         * modules/i-ring (Depends-on): Add stdbool.
66631
66632 2007-03-11  Bruno Haible  <bruno@clisp.org>
66633
66634         * modules/gc-des (Depends-on): Add stdbool.
66635
66636 2007-03-11  Bruno Haible  <bruno@clisp.org>
66637
66638         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
66639
66640 2007-03-11  Bruno Haible  <bruno@clisp.org>
66641
66642         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
66643
66644 2007-03-11  Bruno Haible  <bruno@clisp.org>
66645
66646         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
66647
66648 2007-03-11  Bruno Haible  <bruno@clisp.org>
66649
66650         * lib/vasnprintf.c (sprintf): Undefine.
66651
66652 2007-03-11  Bruno Haible  <bruno@clisp.org>
66653
66654         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
66655         initializers in SunPRO C and Compaq C compilers.
66656
66657 2007-03-11  Bruno Haible  <bruno@clisp.org>
66658
66659         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
66660         decrementing code ANSI C compliant.
66661
66662 2007-03-11  Bruno Haible  <bruno@clisp.org>
66663
66664         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
66665         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
66666
66667 2007-03-11  Bruno Haible  <bruno@clisp.org>
66668
66669         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
66670         <stdbool.h> substitute doesn't pass.
66671
66672 2007-03-11  Bruno Haible  <bruno@clisp.org>
66673
66674         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
66675
66676 2007-03-11  Bruno Haible  <bruno@clisp.org>
66677
66678         * gnulib-tool (func_create_megatestdir): Create also an autobuild
66679         script, for submission to autobuild.josefsson.org.
66680
66681 2007-03-10  Bruno Haible  <bruno@clisp.org>
66682
66683         * modules/canonicalize-lgpl-tests: New file.
66684         * tests/test-canonicalize-lgpl.sh: New file.
66685         * tests/test-canonicalize-lgpl.c: New file.
66686
66687         * modules/c-strcase-tests: New file.
66688         * tests/test-c-strcase.sh: New file.
66689         * tests/test-c-strcasecmp.c: New file.
66690         * tests/test-c-strncasecmp.c: New file.
66691
66692         * modules/atexit-tests: New file.
66693         * tests/test-atexit.sh: New file.
66694         * tests/test-atexit.c: New file.
66695
66696 2007-03-10  Bruno Haible  <bruno@clisp.org>
66697
66698         * tests/test-binary-io.sh: Use temporary filenames that are not so
66699         likely to clash with those of other tests (in a parallel make).
66700         * tests/test-binary-io.c: Likewise.
66701
66702 2007-03-10  Bruno Haible  <bruno@clisp.org>
66703
66704         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
66705         fallback; use #error instead.
66706         Suggested by Simon Josefsson.
66707
66708 2007-03-10  Bruno Haible  <bruno@clisp.org>
66709
66710         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
66711         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
66712         first and the last.
66713
66714 2007-03-10  Bruno Haible  <bruno@clisp.org>
66715
66716         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
66717
66718 2007-03-10  Bruno Haible  <bruno@clisp.org>
66719
66720         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
66721         "make distcheck".
66722         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
66723         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
66724         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
66725
66726 2007-03-10  Bruno Haible  <bruno@clisp.org>
66727
66728         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
66729         variable.
66730         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
66731         variable.
66732
66733 2007-03-09  Eric Blake  <ebb9@byu.net>
66734         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
66735
66736         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
66737         types are not being provided by gnulib.
66738         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
66739         types are supported.
66740
66741 2007-03-10  Bruno Haible  <bruno@clisp.org>
66742
66743         * lib/stdio_.h (__attribute__): New macro.
66744         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
66745         vsprintf): Specify __attribute__ __format__ for GCC.
66746         Suggested by Eric Blake.
66747
66748 2007-03-09  Bruno Haible  <bruno@clisp.org>
66749
66750         * modules/printf-posix-tests: New file.
66751         * tests/test-printf-posix.sh: New file.
66752         * tests/test-printf-posix.c: New file.
66753
66754         * modules/printf-posix: New file.
66755         * lib/printf.c: New file.
66756         * m4/printf-posix-rpl.m4: New file.
66757         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
66758         REPLACE_PRINTF.
66759         * lib/stdio_.h (printf): New declaration.
66760         (format, __format__, ____printf____, ____scanf____, ____strftime____,
66761         ____strfmon____): New macros.
66762         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
66763         REPLACE_PRINTF.
66764
66765 2007-03-09  Bruno Haible  <bruno@clisp.org>
66766
66767         * tests/test-vasnprintf-posix2.sh: New file.
66768         * tests/test-vasnprintf-posix2.c: New file.
66769         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
66770         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
66771         (Makefile.am): Activate test-vasnprintf-posix2.sh.
66772
66773         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
66774         a locale dependent decimal point, rather than always '.'.
66775
66776 2007-03-09  Eric Blake  <ebb9@byu.net>
66777
66778         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
66779         spite of platforms like Tandem/NSK that define it to -1.
66780
66781 2007-03-08  Bruno Haible  <bruno@clisp.org>
66782
66783         * modules/vprintf-posix-tests: New file.
66784         * tests/test-vprintf-posix.sh: New file.
66785         * tests/test-vprintf-posix.c: New file.
66786         * tests/test-printf-posix.h: New file.
66787
66788         * modules/vprintf-posix: New file.
66789         * lib/vprintf.c: New file.
66790         * m4/vprintf-posix.m4: New file.
66791         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
66792         REPLACE_VPRINTF.
66793         * lib/stdio_.h (vprintf): New declaration.
66794         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
66795         REPLACE_VPRINTF.
66796
66797 2007-03-08  Bruno Haible  <bruno@clisp.org>
66798
66799         * modules/fprintf-posix-tests: New file.
66800         * tests/test-fprintf-posix.sh: New file.
66801         * tests/test-fprintf-posix.c: New file.
66802
66803         * modules/fprintf-posix: New file.
66804         * lib/fprintf.c: New file.
66805         * m4/fprintf-posix.m4: New file.
66806         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
66807         REPLACE_FPRINTF.
66808         * lib/stdio_.h (fprintf): New declaration.
66809         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
66810         REPLACE_FPRINTF.
66811
66812 2007-03-08  Bruno Haible  <bruno@clisp.org>
66813
66814         * modules/vfprintf-posix-tests: New file.
66815         * tests/test-vfprintf-posix.sh: New file.
66816         * tests/test-vfprintf-posix.c: New file.
66817         * tests/test-fprintf-posix.h: New file.
66818         * tests/test-fprintf-posix.out: New file.
66819
66820         * modules/vfprintf-posix: New file.
66821         * lib/vfprintf.c: New file.
66822         * m4/vfprintf-posix.m4: New file.
66823         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
66824         REPLACE_VFPRINTF.
66825         * lib/stdio_.h (vfprintf): New declaration.
66826         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
66827         REPLACE_VFPRINTF.
66828
66829 2007-03-08  Bruno Haible  <bruno@clisp.org>
66830
66831         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
66832
66833 2007-03-08  Bruno Haible  <bruno@clisp.org>
66834
66835         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
66836         instead of 'expr' invocations.
66837         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66838         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66839         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66840         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66841         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66842         Suggested by Paul Eggert.
66843
66844 2007-03-08  Bruno Haible  <bruno@clisp.org>
66845
66846         * modules/fseterr-tests: New file.
66847         * tests/test-fseterr.c: New file.
66848
66849         * modules/fseterr: New file.
66850         * lib/fseterr.h: New file.
66851         * lib/fseterr.c: New file.
66852
66853 2007-03-08  Bruno Haible  <bruno@clisp.org>
66854
66855         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
66856         * lib/getopt_.h: Likewise.
66857         * lib/mbswidth.h: Likewise.
66858         * lib/setenv.h: Likewise.
66859         * lib/vasnprintf.h: Likewise.
66860         * lib/vasprintf.h: Likewise.
66861         * lib/verror.h: Likewise.
66862         * lib/xsetenv.h: Likewise.
66863         * lib/xvasprintf.h: Likewise.
66864
66865 2007-03-08  Jim Meyering  <jim@meyering.net>
66866
66867         * users.txt: Add parted.
66868
66869         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
66870
66871 2007-03-07  Bruno Haible  <bruno@clisp.org>
66872
66873         * m4/printf.m4: Make the shell script snippets copy&pastable.
66874
66875 2007-03-02  Bruno Haible  <bruno@clisp.org>
66876
66877         * lib/netinet_in_.h: New file.
66878         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
66879         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
66880         * modules/netinet_in (Files): Add lib/netinet_in_.h.
66881         (Depends-on): Add absolute-header.
66882         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
66883         into netinet/in.h.
66884
66885 2007-03-03  Bruno Haible  <bruno@clisp.org>
66886
66887         * lib/sys_select_.h: New file.
66888         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
66889         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
66890         * modules/sys_select (Files): Add lib/sys_select_.h.
66891         (Depends-on): Add absolute-header.
66892         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
66893         into sys/select.h.
66894
66895 2007-03-02  Bruno Haible  <bruno@clisp.org>
66896
66897         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
66898         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
66899         values.
66900         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
66901         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
66902         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
66903         * modules/sys_socket (Depends-on): Add absolute-header.
66904         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
66905         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
66906         (Include): Remove requirement of inclusion of <sys/types.h>.
66907
66908 2007-03-02  Bruno Haible  <bruno@clisp.org>
66909
66910         * lib/byteswap_.h (bswap_32): Fix formula.
66911
66912 2007-03-06  Bruno Haible  <bruno@clisp.org>
66913
66914         * modules/sprintf-posix-tests: New file.
66915         * tests/test-sprintf-posix.c: New file.
66916
66917         * modules/sprintf-posix: New file.
66918         * lib/sprintf.c: New file.
66919         * m4/sprintf-posix.m4: New file.
66920         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
66921         REPLACE_SPRINTF.
66922         * lib/stdio_.h (sprintf): New declaration.
66923         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
66924         REPLACE_SPRINTF.
66925
66926 2007-03-06  Bruno Haible  <bruno@clisp.org>
66927
66928         * modules/vsprintf-posix-tests: New file.
66929         * tests/test-vsprintf-posix.c: New file.
66930         * tests/test-sprintf-posix.h: New file.
66931
66932         * modules/vsprintf-posix: New file.
66933         * lib/vsprintf.c: New file.
66934         * m4/vsprintf-posix.m4: New file.
66935         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
66936         REPLACE_VSPRINTF.
66937         * lib/stdio_.h (vsprintf): New declaration.
66938         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
66939         REPLACE_VSPRINTF.
66940
66941 2007-03-06  Bruno Haible  <bruno@clisp.org>
66942
66943         * modules/vsnprintf (Depend-on): Remove minmax.
66944
66945 2007-03-06  Bruno Haible  <bruno@clisp.org>
66946
66947         * modules/snprintf-posix-tests: New file.
66948         * tests/test-snprintf-posix.c: New file.
66949
66950         * modules/snprintf-posix: New file.
66951         * m4/snprintf-posix.m4: New file.
66952         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
66953         gl_FUNC_SNPRINTF.
66954         (gl_FUNC_SNPRINTF): Invoke it.
66955         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
66956         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
66957         is set.
66958         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
66959
66960 2007-03-06  Bruno Haible  <bruno@clisp.org>
66961
66962         * modules/vsnprintf-posix-tests: New file.
66963         * tests/test-vsnprintf-posix.c: New file.
66964         * tests/test-snprintf-posix.h: New file.
66965
66966         * modules/vsnprintf-posix: New file.
66967         * m4/vsnprintf-posix.m4: New file.
66968         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
66969         gl_FUNC_VSNPRINTF.
66970         (gl_FUNC_VSNPRINTF): Invoke it.
66971         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
66972         * lib/stdio_.h (vsnprintf): Define as a replacement if
66973         REPLACE_VSNPRINTF is set.
66974         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
66975
66976 2007-03-06  Bruno Haible  <bruno@clisp.org>
66977
66978         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
66979         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
66980
66981 2007-03-06  Bruno Haible  <bruno@clisp.org>
66982
66983         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
66984         (asinl): Declare also if HAVE_DECL_ASINL is set.
66985         (atanl): Declare also if HAVE_DECL_ATANL is set.
66986         (ceill): Declare also if HAVE_DECL_CEILL is set.
66987         (cosl): Declare also if HAVE_DECL_COSL is set.
66988         (expl): Declare also if HAVE_DECL_EXPL is set.
66989         (floorl): Declare also if HAVE_DECL_FLOORL is set.
66990         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
66991         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
66992         (logl): Declare also if HAVE_DECL_LOGL is set.
66993         (sinl): Declare also if HAVE_DECL_SINL is set.
66994         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
66995         (tanl): Declare also if HAVE_DECL_TANL is set.
66996         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
66997         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
66998         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
66999         declaration of frexpl, ldexpl.
67000         * modules/printf-frexpl (Depends-on): Add math.
67001         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
67002
67003 2007-03-05  Bruno Haible  <bruno@clisp.org>
67004
67005         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
67006         frexpl and ldexpl are declared.
67007         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
67008
67009 2007-03-05  Bruno Haible  <bruno@clisp.org>
67010
67011         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
67012         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
67013
67014 2007-03-05  Bruno Haible  <bruno@clisp.org>
67015
67016         * lib/stdio_.h: Include <stddef.h>.
67017
67018 2007-03-05  Bruno Haible  <bruno@clisp.org>
67019
67020         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
67021
67022 2007-03-05  Bruno Haible  <bruno@clisp.org>
67023
67024         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
67025         NetBSD 4, from Ralf Wildenhues.
67026
67027 2007-03-04  Bruno Haible  <bruno@clisp.org>
67028
67029         * lib/vasprintf.h: Update #if logic for the case when the functions
67030         exist but are overridden.
67031
67032 2007-03-04  Bruno Haible  <bruno@clisp.org>
67033
67034         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
67035         implementations: glibc-2.4 and MacOS X 10.3.
67036         * tests/test-vasnprintf-posix.c (test_function): Test also the case
67037         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
67038         * tests/test-vasprintf-posix.c (test_function): Likewise.
67039
67040 2007-03-04  Bruno Haible  <bruno@clisp.org>
67041
67042         * modules/vasprintf-posix-tests: New file.
67043         * tests/test-vasprintf-posix.c: New file.
67044
67045         * modules/vasprintf-posix: New file.
67046         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
67047         defined.
67048         * m4/vasprintf-posix.m4: New file.
67049         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
67050         gl_FUNC_VASPRINTF.
67051         (gl_FUNC_VASPRINTF): Invoke it.
67052         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
67053         here.
67054         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
67055
67056 2007-03-04  Bruno Haible  <bruno@clisp.org>
67057
67058         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
67059         REPLACE_GETTIMEOFDAY.
67060         * modules/sys_time (Makefile.am): Likewise.
67061         * m4/sys_time_h.m4: Likewise.
67062         * m4/gettimeofday.m4: Likewise.
67063
67064 2007-03-04  Bruno Haible  <bruno@clisp.org>
67065
67066         * modules/vasnprintf-posix-tests: New file.
67067         * tests/test-vasnprintf-posix.c: New file.
67068
67069         * modules/vasnprintf-posix: New file.
67070         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
67071         printf-frexpl.h.
67072         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
67073         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
67074         REPLACE_VASNPRINTF is defined.
67075         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
67076         gl_FUNC_VASNPRINTF.
67077         (gl_FUNC_VASNPRINTF): Invoke it.
67078         * m4/vasnprintf-posix.m4: New file.
67079         * m4/printf.m4: New file.
67080
67081 2007-03-04  Bruno Haible  <bruno@clisp.org>
67082
67083         Compile progreloc.c only if --enable-relocatable is specified.
67084         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
67085         if --enable-relocatable was specified.
67086         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
67087         lib_SOURCES.
67088
67089 2007-03-04  Jim Meyering  <jim@meyering.net>
67090
67091         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
67092         Use it consistently, rather than enumerating errno constants.
67093
67094 2007-03-04  Bruno Haible  <bruno@clisp.org>
67095
67096         * modules/xvasprintf-tests: New file.
67097         * tests/test-xvasprintf.c: New file.
67098
67099         * modules/vasprintf-tests: New file.
67100         * tests/test-vasprintf.c: New file.
67101
67102         * modules/vasnprintf-tests: New file.
67103         * tests/test-vasnprintf.c: New file.
67104
67105         * modules/vsnprintf-tests: New file.
67106         * tests/test-vsnprintf.c: New file.
67107
67108         * modules/snprintf-tests: New file.
67109         * tests/test-snprintf.c: New file.
67110
67111 2007-03-04  Bruno Haible  <bruno@clisp.org>
67112
67113         Compile relocatable.c only if --enable-relocatable is specified.
67114         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
67115         gl_RELOCATABLE_LIBRARY.
67116         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
67117         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
67118         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
67119         gl_RELOCATABLE_LIBRARY.
67120         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
67121         (Makefile.am): Remove lib_SOURCES.
67122         * modules/relocatable-lib-lgpl (configure.ac): Invoke
67123         gl_RELOCATABLE_LIBRARY.
67124         (Makefile.am): Remove lib_SOURCES.
67125         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
67126         always.
67127         * modules/relocatable-prog-wrapper (configure.ac): Invoke
67128         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
67129
67130 2007-03-04  Bruno Haible  <bruno@clisp.org>
67131
67132         * modules/argmatch-tests: New file.
67133         * tests/test-argmatch.c: New file.
67134
67135         * tests/test-allocsa.c (main): Halve the number of loop runs.
67136
67137         * modules/alloca-opt-tests: New file.
67138         * tests/test-alloca-opt.c: New file.
67139
67140 2007-03-04  Jim Meyering  <jim@meyering.net>
67141
67142         Work around difference between Linux ACLs and Solaris 10 ZFS.
67143         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
67144         for EINVAL.
67145
67146 2007-03-03  Bruno Haible  <bruno@clisp.org>
67147
67148         * modules/relocatable-prog (Depends-on): Add back progreloc's
67149         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
67150
67151 2007-03-03  Bruno Haible  <bruno@clisp.org>
67152
67153         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
67154         * modules/relocatable-lib: New file.
67155
67156 2007-03-03  Bruno Haible  <bruno@clisp.org>
67157
67158         * modules/relocatable-prog: Renamed from modules/relocatable.
67159         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
67160
67161 2007-03-03  Bruno Haible  <bruno@clisp.org>
67162
67163         * modules/relocatable-script (Files): Add doc/relocatable.texi,
67164         m4/relocatable-lib.m4.
67165         (Depends-on): Remove 'relocatable'.
67166         (configure.ac): Add gl_RELOCATABLE_NOP.
67167
67168 2007-03-03  Bruno Haible  <bruno@clisp.org>
67169
67170         * modules/relocatable-prog-wrapper: New file.
67171         * modules/relocatable (Depends-on): Add it. Remove all other
67172         dependencies except progname.
67173         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
67174
67175         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
67176         (gl_FUNC_STRERROR): Nop.
67177         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
67178
67179         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
67180         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
67181
67182         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
67183         (gl_FUNC_READLINK): Update.
67184
67185         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
67186
67187 2007-03-03  Bruno Haible  <bruno@clisp.org>
67188
67189         * lib/xreadlink.c: Include <unistd.h> unconditionally.
67190         * modules/xreadlink (Depends-on): Add unistd.
67191         * modules/xreadlink-with-size (Depends-on): Likewise.
67192
67193 2007-03-03  Bruno Haible  <bruno@clisp.org>
67194
67195         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
67196         extracted from gt_FUNC_SETENV.
67197         (gt_FUNC_SETENV): Remove macro.
67198         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
67199         remove gt_FUNC_SETENV.
67200
67201 2007-03-03  Bruno Haible  <bruno@clisp.org>
67202
67203         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
67204         ENABLE_RELOCATABLE here.
67205         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
67206
67207 2007-03-03  Bruno Haible  <bruno@clisp.org>
67208
67209         * modules/rbtreehash-list-tests (Depends-on): Add progname.
67210         * tests/test-rbtreehash_list.c: Include progname.h.
67211         (main): Call set_program_name.
67212
67213         * modules/rbtree-oset-tests (Depends-on): Add progname.
67214         * tests/test-rbtree_oset.c: Include progname.h.
67215         (main): Call set_program_name.
67216
67217         * modules/rbtree-list-tests (Depends-on): Add progname.
67218         * tests/test-rbtree_list.c: Include progname.h.
67219         (main): Call set_program_name.
67220
67221         * modules/linked-list-tests (Depends-on): Add progname.
67222         * tests/test-linked_list.c: Include progname.h.
67223         (main): Call set_program_name.
67224
67225 2007-03-03  Bruno Haible  <bruno@clisp.org>
67226
67227         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
67228         All uses of __restrict changed to _Restrict_.
67229         * lib/glob_.h (__restrict): Remove macro.
67230
67231 2007-03-02  Bruno Haible  <bruno@clisp.org>
67232
67233         * modules/gettext (configure.ac): Require gettext infrastructure
67234         from version 0.16.1.
67235
67236 2007-03-02  Bruno Haible  <bruno@clisp.org>
67237
67238         * modules/linkedhash-list-tests (Depends-on): Add progname.
67239         * tests/test-linkedhash_list.c: Include progname.h.
67240         (main): Call set_program_name.
67241
67242         * modules/carray-list-tests (Depends-on): Add progname.
67243         * tests/test-carray_list.c: Include progname.h.
67244         (main): Call set_program_name.
67245
67246         * modules/avltreehash-list-tests (Depends-on): Add progname.
67247         * tests/test-avltreehash_list.c: Include progname.h.
67248         (main): Call set_program_name.
67249
67250         * modules/avltree-oset-tests (Depends-on): Add progname.
67251         * tests/test-avltree_oset.c: Include progname.h.
67252         (main): Call set_program_name.
67253
67254         * modules/avltree-list-tests (Depends-on): Add progname.
67255         * tests/test-avltree_list.c: Include progname.h.
67256         (main): Call set_program_name.
67257
67258         * modules/array-oset-tests (Depends-on): Add progname.
67259         * tests/test-array_oset.c: Include progname.h.
67260         (main): Call set_program_name.
67261
67262         * modules/array-list-tests (Depends-on): Add progname.
67263         * tests/test-array_list.c: Include progname.h.
67264         (main): Call set_program_name.
67265
67266         * modules/argp-tests (Depends-on): Add progname.
67267         * tests/test-argp.c: Include argp.h first. Include progname.h.
67268         (main): Call set_program_name.
67269
67270 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
67271
67272         * doc/gnulib-tool.texi (Initial import): Reword description of
67273         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
67274         limited effect even if defined after the first system include.
67275
67276 2007-03-01  Bruno Haible  <bruno@clisp.org>
67277
67278         * build-aux/config.libpath: Update to libtool-1.5.22.
67279         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
67280
67281 2007-03-01  Bruno Haible  <bruno@clisp.org>
67282
67283         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
67284         foo_CFLAGS.
67285         Reported by Ralf Wildenhues.
67286
67287 2007-03-01  Bruno Haible  <bruno@clisp.org>
67288
67289         * build-aux/install-reloc: Remove object files left over by some
67290         compilers.
67291         Reported by Ralf Wildenhues.
67292
67293 2007-03-01  Bruno Haible  <bruno@clisp.org>
67294
67295         * build-aux/install-reloc: Break long lines.
67296
67297 2007-03-01  Bruno Haible  <bruno@clisp.org>
67298
67299         * doc/relocatable.texi: Document that it may not work on OpenBSD.
67300         Reported by Ralf Wildenhues.
67301
67302 2007-03-01  Bruno Haible  <bruno@clisp.org>
67303
67304         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
67305         include ordering constraints.
67306
67307 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
67308
67309         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
67310         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
67311         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
67312         as another example.
67313         * lib/time_.h: Fix misspelling.
67314         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
67315         Require gl_HEADER_TIME_H_DEFAULTS.
67316         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
67317         * m4/time_r.m4 (gl_TIME_R): Likewise.
67318         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
67319
67320 2007-03-01  Bruno Haible  <bruno@clisp.org>
67321
67322         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
67323         * m4/utimens.m4 (gl_UTIMENS): Likewise.
67324
67325 2007-03-01  Jim Meyering  <jim@meyering.net>
67326
67327         * modules/xreadlink (Maintainer): Add my name.
67328         * modules/xreadlink-with-size (Depends-on): Alphabetize.
67329
67330 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
67331             Bruno Haible  <bruno@clisp.org>
67332
67333         * build-aux/install-reloc: Compile also c-ctype.c.
67334         * build-aux/relocatable.sh.in: New file.
67335         * doc/relocatable.texi: New file.
67336         * doc/relocatable-maint.texi: New file.
67337         * doc/gnulib.texi: Include relocatable-maint.texi.
67338         * lib/progreloc.c: Include unistd.h unconditionally.
67339         * lib/relocwrapper.c: Include unistd.h unconditionally.
67340         Include c-ctype.h.
67341         (add_dotbin): Use c_tolower.
67342         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
67343         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
67344         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
67345         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
67346         to m4/relocatable-lib.m4.
67347         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
67348         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
67349         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
67350         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
67351         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
67352         * modules/relocatable: New file.
67353         * modules/relocatable-lib: New file.
67354         * modules/relocatable-script: New file.
67355
67356 2007-02-28  Bruno Haible  <bruno@clisp.org>
67357
67358         Import --enable-relocatable infrastructure.
67359         * build-aux/config.libpath: New file, from GNU gettext.
67360         * build-aux/install-reloc: New file, from GNU gettext.
67361         * build-aux/reloc-ldflags: New file, from GNU gettext.
67362         * lib/relocatable.h: New file, from GNU gettext.
67363         * lib/relocatable.c: New file, from GNU gettext.
67364         * lib/relocwrapper.c: New file, from GNU gettext.
67365         * m4/relocatable.m4: New file, from GNU gettext.
67366
67367 2007-02-28  Bruno Haible  <bruno@clisp.org>
67368
67369         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
67370
67371         * modules/xreadlink: New file, from GNU gettext with modifications.
67372         * lib/xreadlink.c: New file, from GNU gettext.
67373         * lib/xreadlink.h: Add comments.
67374         (xreadlink): New declaration.
67375
67376         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
67377         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
67378         lib/xreadlink-with-size.c.
67379         (configure.ac): Remove gl_XREADLINK invocation.
67380         (Makefile.am): Augment lib_SOURCES.
67381         * m4/xreadlink.m4: Remove file.
67382         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
67383         (xreadlink_with_size): Renamed from xreadink.
67384         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
67385         * modules/canonicalize (Depends-on): Replace xreadlink with
67386         xreadlink-with-size.
67387         * lib/canonicalize.c (canonicalize_filename_mode): Update.
67388
67389 2007-02-25  Jim Meyering  <jim@meyering.net>
67390
67391         * build-aux/announce-gen: When complaining about excess arguments,
67392         list them.
67393
67394 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
67395
67396         * README: Document signed integer overflow situation more
67397         accurately.
67398
67399 2007-02-25  Bruno Haible  <bruno@clisp.org>
67400
67401         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
67402         'a' or 'A' conversion.
67403
67404 2007-02-25  Bruno Haible  <bruno@clisp.org>
67405
67406         * modules/filename: Renamed from modules/pathname.
67407         (Files): Replace lib/pathname.h with lib/filename.h. Replace
67408         lib/concatpath.c with lib/concat-filename.c.
67409         (Makefile.am): Update.
67410         (Include): Replace pathname.h with filename.h.
67411         * lib/filename.h: Renamed from lib/pathname.h.
67412         (concatenated_filename): Renamed from concatenated_pathname.
67413         * lib/concat-filename.c: Renamed from lib/concatpath.c.
67414         (concatenated_filename): Renamed from concatenated_pathname.
67415         * lib/findprog.c: Include filename.h instead of pathname.h.
67416         (find_in_path): Update.
67417         * lib/javacomp.c: Include filename.h instead of pathname.h.
67418         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
67419         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
67420         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
67421         is_oldgcj_14_13_usable, is_javac_usable): Update.
67422         * lib/javaexec.c: Include filename.h instead of pathname.h.
67423         (execute_java_class): Update.
67424         * modules/findprog: Update.
67425         * modules/javacomp: Update.
67426         * modules/javaexec: Update.
67427         * MODULES.html.sh (File system functions): Add 'filename', remove
67428         'pathname'.
67429
67430 2007-02-25  Bruno Haible  <bruno@clisp.org>
67431
67432         * modules/printf-frexpl-tests: New file.
67433         * tests/test-printf-frexpl.c: New file.
67434
67435         * modules/printf-frexpl: New file.
67436         * lib/printf-frexpl.h: New file.
67437         * lib/printf-frexpl.c: New file.
67438         * m4/printf-frexpl.m4: New file.
67439
67440 2007-02-25  Bruno Haible  <bruno@clisp.org>
67441
67442         * modules/printf-frexp-tests: New file.
67443         * tests/test-printf-frexp.c: New file.
67444
67445         * modules/printf-frexp: New file.
67446         * lib/printf-frexp.h: New file.
67447         * lib/printf-frexp.c: New file.
67448         * m4/printf-frexp.m4: New file.
67449
67450 2007-02-25  Bruno Haible  <bruno@clisp.org>
67451
67452         Assume automake >= 1.10 for the tests.
67453         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
67454         * modules/arctwo-tests: Likewise.
67455         * modules/argp-tests: Likewise.
67456         * modules/avltree-list-tests: Likewise.
67457         * modules/avltree-oset-tests: Likewise.
67458         * modules/avltreehash-list-tests: Likewise.
67459         * modules/carray-list-tests: Likewise.
67460         * modules/crc-tests: Likewise.
67461         * modules/des-tests: Likewise.
67462         * modules/gc-arcfour-tests: Likewise.
67463         * modules/gc-arctwo-tests: Likewise.
67464         * modules/gc-des-tests: Likewise.
67465         * modules/gc-hmac-md5-tests: Likewise.
67466         * modules/gc-hmac-sha1-tests: Likewise.
67467         * modules/gc-md2-tests: Likewise.
67468         * modules/gc-md4-tests: Likewise.
67469         * modules/gc-md5-tests: Likewise.
67470         * modules/gc-pbkdf2-sha1-tests: Likewise.
67471         * modules/gc-rijndael-tests: Likewise.
67472         * modules/gc-sha1-tests: Likewise.
67473         * modules/gc-tests: Likewise.
67474         * modules/getaddrinfo-tests: Likewise.
67475         * modules/hmac-md5-tests: Likewise.
67476         * modules/hmac-sha1-tests: Likewise.
67477         * modules/linked-list-tests: Likewise.
67478         * modules/linkedhash-list-tests: Likewise.
67479         * modules/lock-tests: Likewise.
67480         * modules/md2-tests: Likewise.
67481         * modules/md4-tests: Likewise.
67482         * modules/md5-tests: Likewise.
67483         * modules/rbtree-list-tests: Likewise.
67484         * modules/rbtree-oset-tests: Likewise.
67485         * modules/rbtreehash-list-tests: Likewise.
67486         * modules/read-file-tests: Likewise.
67487         * modules/rijndael-tests: Likewise.
67488         * modules/stdint-tests: Likewise.
67489         * modules/tls-tests: Likewise.
67490
67491 2007-02-24  Bruno Haible  <bruno@clisp.org>
67492
67493         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
67494         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
67495         function; instead check whether isnan with a double argument links.
67496         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
67497         function; instead check whether isnan with a 'long double' argument
67498         links.
67499         Reported by Eric Blake <ebb9@byu.net>.
67500
67501 2007-02-24  Bruno Haible  <bruno@clisp.org>
67502
67503         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
67504         defined.
67505         * lib/isnanl.c: Remove all code. Just include isnan.c.
67506         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
67507
67508 2007-02-25  Jim Meyering  <jim@meyering.net>
67509
67510         Avoid conflicting types for 'unsetenv' on FreeBSD.
67511         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
67512         conflicting with FreeBSD's (5.0 and 6.1) function declaration
67513         in stdlib.h.
67514
67515 2007-02-24  Bruno Haible  <bruno@clisp.org>
67516
67517         * modules/isnanl-nolibm-tests: New file.
67518         * tests/test-isnanl.c: New file.
67519
67520         * modules/isnanl-nolibm: New file.
67521         * lib/isnanl.h: New file.
67522         * lib/isnanl.c: New file.
67523         * m4/isnanl.m4: New file.
67524
67525 2007-02-24  Bruno Haible  <bruno@clisp.org>
67526
67527         * modules/isnan-nolibm-tests: New file.
67528         * tests/test-isnan.c: New file.
67529
67530         * modules/isnan-nolibm: New file.
67531         * lib/isnan.h: New file.
67532         * lib/isnan.c: New file.
67533         * m4/isnan.m4: New file.
67534
67535 2007-02-24  Bruno Haible  <bruno@clisp.org>
67536
67537         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
67538         assume that an exponent fits in 20 bits.
67539
67540 2007-02-24  Jim Meyering  <jim@meyering.net>
67541
67542         * m4/regex.m4: Update the description of the configure-time option,
67543         --without-included-regex, to state accurately what the defaults are,
67544         and perhaps to give people an idea why using this option is risky.
67545
67546 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
67547
67548         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
67549         loops on small arguments.  This attempts to avoid the problem
67550         Bruno Haible reported for AIX 4.3.2 in
67551         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
67552
67553 2007-02-23  Bruno Haible  <bruno@clisp.org>
67554
67555         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
67556         Needed for help2man.
67557
67558 2007-02-23  Karl Berry  <karl@gnu.org>
67559
67560         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
67561         exists, foo.h should be cvs-ignored, not committed.
67562
67563 2007-02-23  Eric Blake  <ebb9@byu.net>
67564
67565         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
67566         * lib/stat-time.h (includes): Likewise.
67567         * lib/utimecmp.c (includes): Likewise.
67568         * lib/utimens.h (includes): Likewise.
67569         * lib/getdate.y (includes): Also include "timespec.h" for use
67570         internal to the module.
67571         * modules/utimens (Depends-on): Revert yesterday's patch.
67572         * modules/nanosleep (Depends-on): Add missing dependency.
67573
67574 2007-02-22  Bruno Haible  <bruno@clisp.org>
67575
67576         * lib/glob.c: Don't include getlogin_r.h.
67577
67578 2007-02-22  Jim Meyering  <jim@meyering.net>
67579
67580         * modules/utimens (Depends-on): Add timespec, required for
67581         utimens.h's inclusion of timespec.h.
67582
67583 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
67584
67585         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
67586         long unreadable paths in GNU/Linux.  Problem reported by Andreas
67587         Schwab in
67588         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
67589         I'll try to think of a better way to fix the Solaris problem.
67590
67591         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
67592         like glibc; on Solaris 10, it fails with errno == EINVAL.
67593         POSIX says the behavior is unspecified if the first argument is NULL,
67594         so play it safe and never pass NULL to the system getcwd.
67595
67596 2007-02-21  Jim Meyering  <jim@meyering.net>
67597
67598         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
67599         of gettimeofday.  It would conflict with the one now always
67600         provided via sys_time_.h.  Reported by Matthew Woehlke, as
67601         an IRIX 6.5 build failure.
67602
67603 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
67604
67605         Minor fixups to port to Solaris 10 with Sun C 5.8.
67606         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
67607         * modules/getcwd (Depends-on): Add dirfd.
67608         * lib/putenv.c (putenv): #undef it.
67609         (rpl_putenv): New decl.
67610         (malloc, free): Include <stdlib.h> rather than prototyping separately.
67611
67612 2007-02-20  Bruno Haible  <bruno@clisp.org>
67613
67614         * modules/stdio-tests: New file.
67615         * tests/test-stdio.c: New file.
67616
67617         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
67618         (Depends-on): Add stdio.
67619         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
67620         (Include): Use <stdio.h> instead of vsnprintf.h.
67621         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
67622         HAVE_DECL_VSNPRINTF.
67623         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
67624
67625         * modules/snprintf (Files): Remove lib/snprintf.h.
67626         (Depends-on): Add stdio.
67627         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
67628         (Include): Use <stdio.h> instead of snprintf.h.
67629         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
67630         HAVE_DECL_SNPRINTF.
67631         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
67632         * lib/getaddrinfo.c: Likewise.
67633
67634         * modules/stdio: New file.
67635         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
67636         * lib/snprintf.h: Remove file.
67637         * lib/vsnprintf.h: Remove file.
67638         * lib/.cppi-disable: Remove snprintf.h.
67639         * m4/stdio_h.m4: New file.
67640         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
67641
67642 2007-02-20  Jim Meyering  <jim@meyering.net>
67643
67644         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
67645         used by e.g., mingw.  From Bruno Haible.
67646
67647 2007-02-19  Bruno Haible  <bruno@clisp.org>
67648
67649         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
67650         warnings.
67651         Reported by Ben Pfaff <blp@cs.stanford.edu>.
67652
67653 2007-02-19  Bruno Haible  <bruno@clisp.org>
67654
67655         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
67656         from mingw users.
67657
67658 2007-02-19  Bruno Haible  <bruno@clisp.org>
67659
67660         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
67661         warnings.
67662         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
67663
67664 2007-02-19  Jim Meyering  <jim@meyering.net>
67665
67666         Don't use FD after a successful "fdopendir (fd)".
67667         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
67668         Reset it by calling dirfd on the just-obtained DIR*.
67669
67670         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
67671         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
67672
67673 2007-02-18  Bruno Haible  <bruno@clisp.org>
67674
67675         * lib/readlink.c: Include <unistd.h>.
67676         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
67677         HAVE_READLINK.
67678         * modules/readlink (Depends-on): Add unistd.
67679         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67680         (Include): Add <unistd.h>.
67681
67682         * lib/getlogin_r.h: Remove file.
67683         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
67684         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
67685         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
67686         HAVE_DECL_GETLOGIN_R.
67687         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
67688         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67689         (Include): Use <unistd.h> instead of getlogin_r.h.
67690
67691         * lib/getcwd.h: Remove file.
67692         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
67693         * lib/xgetcwd.c: Likewise.
67694         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
67695         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
67696         * modules/getcwd (Files): Remove lib/getcwd.h.
67697         (Depends-on): Add unistd.
67698         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67699         (Include): Use <unistd.h> instad of getcwd.h.
67700
67701         * lib/ftruncate.c: Include <unistd.h> first.
67702         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
67703         Set HAVE_FTRUNCATE.
67704         * modules/ftruncate (Depends-on): Add unistd.
67705         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67706
67707         * lib/fchdir.c: Include <unistd.h> first.
67708         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
67709         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
67710         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
67711         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67712         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
67713
67714         * lib/dup2.c: Include <unistd.h> first.
67715         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
67716         HAVE_DUP2.
67717         * modules/dup2 (Depends-on): Add unistd.
67718         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67719
67720         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
67721         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
67722         REPLACE_CHOWN. Don't define chown as a macro here.
67723         * modules/chown (Depends-on): Add unistd.
67724         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
67725
67726         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
67727         Add definition for GL_LINK_WARNING.
67728         (chown, dup2): New declarations.
67729         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
67730         link warning.
67731         (ftruncate): New declaration.
67732         (getcwd): New declaration, taken from old getcwd.h.
67733         (getlogin_r): New declaration, taken from old getlogin_r.h.
67734         (readlink): New declaration.
67735         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
67736         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
67737         (gl_PREREQ_UNISTD): Remove macro.
67738         (gl_UNISTD_MODULE_INDICATOR): New macro.
67739         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
67740         many new variables. Don't set UNISTD_H.
67741         * modules/unistd (Description): Change.
67742         (Depends-on): Add link-warning.
67743         (configure.ac): Update.
67744         (Makefile.am): Create unistd.h always. Substitute many new variables
67745         into it.
67746
67747 2007-02-18  Bruno Haible  <bruno@clisp.org>
67748
67749         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
67750         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
67751         HAVE_GETSUBOPT.
67752         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
67753         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
67754         * lib/getsubopt.h: Remove file.
67755         * modules/getsubopt (Files): Remove lib/getsubopt.h.
67756         (Depends-on): Add stdlib.
67757         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
67758         (Includes): Use <stdlib.h> instead of getsubopt.h.
67759         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
67760         Set HAVE_GETSUBOPT.
67761         * lib/getsubopt.c: Don't include getsubopt.h.
67762
67763 2007-02-18  Bruno Haible  <bruno@clisp.org>
67764
67765         * modules/fchdir (Depends-on): Add dup2.
67766
67767 2007-02-18  Bruno Haible  <bruno@clisp.org>
67768
67769         * lib/stdlib_.h: Handle glibc's special invocation convention
67770         specially.
67771
67772 2007-02-18  Bruno Haible  <bruno@clisp.org>
67773
67774         * modules/stdlib-tests: New file.
67775         * tests/test-stdlib.c: New file.
67776
67777         * modules/mkstemp (Files): Remove lib/mkstemp.h.
67778         (Depends-on): Add stdlib.
67779         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
67780         (Includes): Use <stdlib.h> instead of mkstemp.h.
67781         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
67782         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
67783         * lib/mkstemp.c: Don't include mkstemp.h.
67784         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
67785         * lib/stdlib--.h: Don't include mkstemp.h.
67786
67787         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
67788         (Depends-on): Add stdlib.
67789         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
67790         (Includes): Use <stdlib.h> instead of mkdtemp.h.
67791         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
67792         HAVE_MKDTEMP.
67793         * lib/mkdtemp.c: Don't include mkdtemp.h.
67794         * lib/clean-temp.c: Don't include mkdtemp.h.
67795
67796         * modules/exit (Files): Remove lib/exit.h.
67797         (Depends-on): Add stdlib.
67798         (Makefile.am): Remove lib_SOURCES.
67799         (Include): Use <stdlib.h> instead of exit.h.
67800         * lib/argmatch.c: Don't include exit.h.
67801         * lib/execute.c: Likewise.
67802         * lib/pagealign_alloc.c: Likewise.
67803         * lib/pipe.c: Likewise.
67804         * lib/wait-process.c: Likewise.
67805         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
67806         * lib/exitfail.c: Likewise.
67807         * lib/savewd.c: Likewise.
67808         * lib/xsetenv.c: Likewise.
67809
67810         * modules/stdlib: New file.
67811         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
67812         and extra comments about mkstemp().
67813         * lib/exit.h: Remove file.
67814         * lib/mkdtemp.h: Remove file.
67815         * lib/mkstemp.h: Remove file.
67816         * m4/stdlib_h.m4: New file.
67817         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
67818
67819 2007-02-18  Bruno Haible  <bruno@clisp.org>
67820
67821         * modules/math-tests: New file.
67822         * tests/test-math.c: New file.
67823
67824         * modules/math: New file.
67825         * modules/mathl (Files): Remove lib/mathl.h.
67826         (Depends-on): Add math.
67827         (Makefile.am): Don't mention mathl.h.
67828         (Include): Use <math.h> instead of mathl.h.
67829         * lib/math_.h: New file.
67830         * lib/mathl.h: Remove file.
67831         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
67832         mathl.h.
67833         * lib/asinl.c: Likewise.
67834         * lib/atanl.c: Likewise.
67835         * lib/ceill.c: Likewise.
67836         * lib/cosl.c: Likewise.
67837         * lib/expl.c: Likewise.
67838         * lib/floorl.c: Likewise.
67839         * lib/frexpl.c: Likewise.
67840         * lib/ldexpl.c: Likewise.
67841         * lib/logl.c: Likewise.
67842         * lib/sincosl.c: Likewise.
67843         * lib/sinl.c: Likewise.
67844         * lib/sqrtl.c: Likewise.
67845         * lib/tanl.c: Likewise.
67846         * lib/trigl.c: Likewise.
67847         * m4/math_h.m4: New file.
67848         * MODULES.html.sh (Mathematics): Add math.
67849
67850 2007-02-17  Bruno Haible  <bruno@clisp.org>
67851
67852         * modules/wctype-tests: New file.
67853         * tests/test-wctype.c: New file.
67854
67855         * modules/wchar-tests: New file.
67856         * tests/test-wchar.c: New file.
67857
67858         * modules/unistd-tests: New file.
67859         * tests/test-unistd.c: New file.
67860
67861         * modules/time-tests: New file.
67862         * tests/test-time.c: New file.
67863
67864         * modules/sysexits-tests: New file.
67865         * tests/test-sysexits.c: New file.
67866
67867         * modules/sys_time-tests: New file.
67868         * tests/test-sys_time.c: New file.
67869
67870         * modules/sys_stat-tests: New file.
67871         * tests/test-sys_stat.c: New file.
67872
67873         * modules/sys_socket-tests: New file.
67874         * tests/test-sys_socket.c: New file.
67875
67876         * modules/sys_select-tests: New file.
67877         * tests/test-sys_select.c: New file.
67878
67879         * modules/string-tests: New file.
67880         * tests/test-string.c: New file.
67881
67882         * modules/stdbool-tests: New file.
67883         * tests/test-stdbool.c: New file.
67884
67885         * modules/netinet_in-tests: New file.
67886         * tests/test-netinet_in.c: New file.
67887
67888         * modules/inttypes-tests: New file.
67889         * tests/test-inttypes.c: New file.
67890
67891         * modules/fcntl-tests: New file.
67892         * tests/test-fcntl.c: New file.
67893
67894         * modules/byteswap-tests: New file.
67895         * tests/test-byteswap.c: New file.
67896
67897         * modules/arpa_inet-tests: New file.
67898         * tests/test-arpa_inet.c: New file.
67899
67900 2007-02-17  Bruno Haible  <bruno@clisp.org>
67901
67902         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
67903         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
67904         if the corresponding module is not enabled. Emit link warnings if
67905         the function is used nevertheless.
67906         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
67907         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
67908         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
67909         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
67910         * modules/inttypes (Depends-on): Add link-warning.
67911         (Makefile.am): Copy the contents of build-aux/link-warning.h into
67912         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
67913         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
67914         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
67915         * modules/imaxdiv (configure.ac): Likewise.
67916         * modules/strtoimax (configure.ac): Likewise.
67917         * modules/strtoumax (configure.ac): Likewise.
67918
67919 2007-02-17  Bruno Haible  <bruno@clisp.org>
67920
67921         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
67922         gl_STRING_MODULE_INDICATOR_DEFAULTS.
67923         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
67924         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
67925
67926 2007-02-17  Bruno Haible  <bruno@clisp.org>
67927
67928         * modules/link-warning: New file.
67929         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
67930         * lib/string_.h (GL_LINK_WARNING): Remove definition.
67931         * modules/string (Depends-on): Add link-warning.
67932         (Makefile.am): Copy the contents of build-aux/link-warning.h into
67933         string.h.
67934         * MODULES.html.sh (Support for building libraries and executables): Add
67935         link-warning.
67936
67937 2007-02-17  Bruno Haible  <bruno@clisp.org>
67938
67939         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
67940         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
67941         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
67942         long lines.
67943
67944 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
67945             Bruno Haible  <bruno@clisp.org>
67946
67947         * modules/tmpfile: New file.
67948         * lib/tmpfile.c: New file.
67949         * m4/tmpfile.m4: New file.
67950         * MODULES.html.sh (func_all_modules): New section "Input/output".
67951
67952 2007-02-15  Bruno Haible  <bruno@clisp.org>
67953
67954         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
67955         (supports_delete_on_close): New function.
67956         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
67957
67958 2007-02-14  Bruno Haible  <bruno@clisp.org>
67959
67960         * modules/mbspcasecmp-tests: New file.
67961         * tests/test-mbspcasecmp.sh: New file.
67962         * tests/test-mbspcasecmp.c: New file.
67963
67964         New module mbspcasecmp.
67965         * modules/mbspcasecmp: New file.
67966         * lib/mbspcasecmp.c: New file.
67967         * lib/string_.h (strncasecmp): Change warning message.
67968         (mbspcasecmp): New declaration.
67969         * m4/mbspcasecmp.m4: New file.
67970         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67971         GNULIB_MBSPCASECMP.
67972         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
67973         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
67974
67975 2007-02-14  Bruno Haible  <bruno@clisp.org>
67976
67977         * modules/mbsncasecmp-tests: New file.
67978         * tests/test-mbsncasecmp.sh: New file.
67979         * tests/test-mbsncasecmp.c: New file.
67980
67981         New module mbsncasecmp.
67982         * modules/mbsncasecmp: New file.
67983         * lib/mbsncasecmp.c: New file.
67984         * lib/string_.h (mbsncasecmp): New declaration.
67985         * m4/mbsncasecmp.m4: New file.
67986         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
67987         GNULIB_MBSNCASECMP.
67988         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
67989         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
67990
67991 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
67992
67993         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
67994         Verify that it doesn't overlap with our flags.
67995         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
67996         do not have the desired effect in multibyte locales; instead, use
67997         mbscasecmp.
67998         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
67999         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
68000         we don't require GNU fnmatch ourselves (if our users require it, they
68001         should do so explicitly).
68002
68003         Fix regex code so it doesn't rely on strcasecmp.
68004         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
68005         Otherwise, include gnulib's langinfo.h.
68006         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
68007         undesirable behavior in non-C locales.  Instead, rely on localecharset.
68008         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
68009         * modules/regex (FILES): Remove m4/codeset.m4.
68010         (Depends-on): Add localcharset.  Remove strcase.
68011
68012 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68013
68014         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
68015         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
68016
68017 2007-02-13  Bruno Haible  <bruno@clisp.org>
68018
68019         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
68020         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68021
68022 2007-02-12  Bruno Haible  <bruno@clisp.org>
68023
68024         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
68025         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
68026         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
68027         time warning rather than a link error.
68028
68029 2007-02-12  Bruno Haible  <bruno@clisp.org>
68030
68031         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
68032         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
68033         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68034
68035 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
68036
68037         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
68038         args, not 2.
68039
68040 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
68041
68042         New module 'time', so that apps can include <time.h> as per
68043         POSIX and GNU instead of separate include files like time_r.h
68044         and timegm.h.  This implementation tries out a simpler approach
68045         for replacing decls in standard include files (as compared to
68046         the string module), somewhat as an experiment.
68047
68048         * config/srclist.txt: Comment out mktime.c for now.
68049         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
68050         since it doesn't apply any more.  Use generic wording instead.
68051         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
68052         'time'.
68053         * lib/time_.h, m4/time_h.m4, modules/time: New files.
68054         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
68055         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
68056         Don't include <sys/types.h>; no longer needed since we assume C89.
68057         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
68058         * lib/strftime.c: Likewise.
68059         * lib/time_r.c: Likewise.
68060         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
68061         * lib/nanosleep.c: Include <time.h> first, to check interface.
68062         * lib/strptime.c: Likewise.
68063         * lib/time_r.c: Likewise.
68064         * lib/timegm.c: Likewise.
68065         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
68066         needed.
68067         * lib/timegm.c: Don't include timegm.h; no longer needed.
68068         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
68069         time.h now handles any problems in that area.
68070         (struct timespec, nanosleep): Remove; time.h now arranges for these.
68071         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
68072         that time.h defines struct timespec.
68073         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
68074         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
68075         handles that.
68076         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
68077         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
68078         needed.  Set REPLACE_LOCALTIME.
68079         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
68080         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
68081         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
68082         nanosleep; time_h.m4 now does that.  Don't require
68083         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
68084         module handles this now.
68085         * modules/getdate (Depends-on): Remove timespec.  Add time.
68086         * modules/nanosleep (Depends-on): Likewise.
68087         * modules/stat-time (Depends-on): Likewise.
68088         * modules/nanosleep (Include): Include time.h, not timespec.h.
68089         * modules/strptime (Files): Remove lib/strptime.h.
68090         (Depends-on): Add extensions, time.
68091         (Include): Include time.h, not strptime.h.
68092         * modules/time_r (Files): Remove lib/time_r.h.
68093         (Depends-on): Add time.
68094         (Include): Include time.h, not time_r.h.
68095         * modules/timegm: Likewise.
68096         * modules/timespec (Description): Now does timespec-related decls
68097         of our own, instead of struct timespec itself.
68098         (Depends-on): Add time; remove extensions.
68099         (Maintainer): Add self.
68100         * modules/utimecmp (Depends-on): Add time; remove timespec.
68101         * modules/utimens (Depends-on): Likewise.
68102         * modules/xnanosleep (Depends-on): Likewise.
68103
68104 2007-02-11  Bruno Haible  <bruno@clisp.org>
68105
68106         * lib/c-strstr.c: Include allocsa.h.
68107         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
68108         * lib/c-strcasestr.c: Include allocsa.h.
68109         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
68110         * lib/strcasestr.c: Include allocsa.h.
68111         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
68112         * lib/mbsstr.c: Include allocsa.h.
68113         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
68114         allocsa/freesa instead of malloc/free.
68115         * lib/mbscasestr.c: Include allocsa.h.
68116         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
68117         allocsa/freesa instead of malloc/free.
68118         * modules/c-strstr (Depends-on): Add allocsa.
68119         * modules/c-strcasestr (Depends-on): Likewise.
68120         * modules/strcasestr (Depends-on): Likewise.
68121         * modules/mbsstr (Depends-on): Likewise.
68122         * modules/mbscasestr (Depends-on): Likewise.
68123
68124 2007-02-11  Bruno Haible  <bruno@clisp.org>
68125
68126         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
68127
68128         * modules/mbsspn-tests: New file.
68129         * tests/test-mbsspn.sh: New file.
68130         * tests/test-mbsspn.c: New file.
68131
68132 2007-02-11  Bruno Haible  <bruno@clisp.org>
68133
68134         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
68135
68136         * modules/mbspbrk-tests: New file.
68137         * tests/test-mbspbrk.sh: New file.
68138         * tests/test-mbspbrk.c: New file.
68139
68140 2007-02-11  Bruno Haible  <bruno@clisp.org>
68141
68142         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
68143         unneeded cast.
68144
68145         * modules/mbscspn-tests: New file.
68146         * tests/test-mbscspn.sh: New file.
68147         * tests/test-mbscspn.c: New file.
68148
68149 2007-02-11  Bruno Haible  <bruno@clisp.org>
68150
68151         * modules/mbscasecmp-tests: New file.
68152         * tests/test-mbscasecmp.sh: New file.
68153         * tests/test-mbscasecmp.c: New file.
68154
68155 2007-02-11  Bruno Haible  <bruno@clisp.org>
68156
68157         Ensure O(n) worst-case complexity of mbscasestr.
68158         * lib/mbscasestr.c: Include stdbool.h.
68159         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
68160         functions.
68161         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
68162         the bookkeeping indicates that it's worth it.
68163         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
68164
68165         * modules/mbscasestr-tests: New file.
68166         * tests/test-mbscasestr1.c: New file.
68167         * tests/test-mbscasestr2.sh: New file.
68168         * tests/test-mbscasestr2.c: New file.
68169         * tests/test-mbscasestr3.sh: New file.
68170         * tests/test-mbscasestr3.c: New file.
68171         * tests/test-mbscasestr4.sh: New file.
68172         * tests/test-mbscasestr4.c: New file.
68173         * m4/locale-tr.m4: New file.
68174
68175 2007-02-11  Bruno Haible  <bruno@clisp.org>
68176
68177         Ensure O(n) worst-case complexity of mbsstr.
68178         * lib/mbsstr.c: Include stdbool.h.
68179         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
68180         functions.
68181         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
68182         bookkeeping indicates that it's worth it.
68183         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
68184
68185         * modules/mbsstr-tests: New file.
68186         * tests/test-mbsstr1.c: New file.
68187         * tests/test-mbsstr2.sh: New file.
68188         * tests/test-mbsstr2.c: New file.
68189         * tests/test-mbsstr3.sh: New file.
68190         * tests/test-mbsstr3.c: New file.
68191         * m4/locale-fr.m4: New file.
68192
68193 2007-02-11  Bruno Haible  <bruno@clisp.org>
68194
68195         * lib/mbsrchr.c (mbsrchr): Fix bug.
68196
68197         * modules/mbsrchr-tests: New file.
68198         * tests/test-mbsrchr.sh: New file.
68199         * tests/test-mbsrchr.c: New file.
68200
68201 2007-02-11  Bruno Haible  <bruno@clisp.org>
68202
68203         * lib/mbschr.c (mbschr): Fix bug.
68204
68205         * modules/mbschr-tests: New file.
68206         * tests/test-mbschr.sh: New file.
68207         * tests/test-mbschr.c: New file.
68208         * m4/locale-zh.m4: New file.
68209
68210 2007-02-11  Bruno Haible  <bruno@clisp.org>
68211
68212         Support for copying multibyte string iterators.
68213         * lib/mbiter.h: Include <string.h>.
68214         (mbiter_multi_copy): New function.
68215         (mbi_copy): New macro.
68216         * lib/mbuiter.h: Include <string.h>.
68217         (mbuiter_multi_copy): New function.
68218         (mbui_copy): New macro.
68219
68220 2007-02-11  Bruno Haible  <bruno@clisp.org>
68221
68222         New module mbslen.
68223         * modules/mbslen: New file.
68224         * lib/mbslen.c: New file.
68225         * lib/string_.h (mbslen): New declaration.
68226         * m4/mbslen.m4: New file.
68227         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68228         GNULIB_MBSLEN.
68229         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
68230         * MODULES.html.sh (Internationalization functions): Add mbslen.
68231
68232 2007-02-11  Bruno Haible  <bruno@clisp.org>
68233
68234         Ensure O(n) worst-case complexity of strcasestr substitute.
68235         * lib/strcasestr.c: Include stdbool.h.
68236         (knuth_morris_pratt): New function.
68237         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
68238         bookkeeping indicates that it's worth it.
68239         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
68240
68241         * modules/strcasestr-tests: New file.
68242         * tests/test-strcasestr.c: New file.
68243
68244 2007-02-11  Bruno Haible  <bruno@clisp.org>
68245
68246         Ensure O(n) worst-case complexity of c_strcasestr.
68247         * lib/c-strcasestr.c: Include stdbool.h, string.h.
68248         (knuth_morris_pratt): New function.
68249         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
68250         the bookkeeping indicates that it's worth it.
68251         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
68252
68253         * modules/c-strcasestr-tests: New file.
68254         * tests/test-c-strcasestr.c: New file.
68255
68256 2007-02-11  Bruno Haible  <bruno@clisp.org>
68257
68258         Ensure O(n) worst-case complexity of c_strstr.
68259         * lib/c-strstr.c: Include stdbool.h, string.h.
68260         (knuth_morris_pratt): New function.
68261         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
68262         bookkeeping indicates that it's worth it.
68263         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
68264
68265         * lib/c-strstr.c: Complete rewrite for maintainability.
68266
68267         * modules/c-strstr-tests: New file.
68268         * tests/test-c-strstr.c: New file.
68269
68270 2007-02-11  Bruno Haible  <bruno@clisp.org>
68271
68272         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
68273         5.2.1 and earlier, whereby \055 was treated just like the range
68274         delimiter '-'.
68275         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
68276
68277 2007-02-08  Bruno Haible  <bruno@clisp.org>
68278
68279         * modules/regex (Depends-on): Add stdbool.
68280         Reported by Dalibor Topic <robilad@kaffe.org>.
68281
68282 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
68283
68284         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
68285         Prefer returning from main to exiting from it.
68286         Remove unnecessary parens after sizeof.
68287
68288 2007-02-05  Bruno Haible  <bruno@clisp.org>
68289
68290         New module mbssep.
68291         * modules/mbssep: New file.
68292         * lib/mbssep.c: New file.
68293         * lib/string_.h (strsep): Add a conditional link warning.
68294         (mbssep): New declaration.
68295         * m4/mbssep.m4: New file.
68296         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68297         GNULIB_MBSSEP.
68298         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
68299         * MODULES.html.sh (Internationalization functions): Add mbssep.
68300
68301 2007-02-05  Bruno Haible  <bruno@clisp.org>
68302
68303         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
68304         Optimize search in case of 1 delimiter.
68305
68306 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
68307
68308         * lib/acl.h: Include sys/types.h before sys/acl.h.
68309
68310 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
68311
68312         Merge upstream fix for glibc bugzilla #3957:
68313
68314         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
68315
68316         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
68317         bit for RE_HAT_LISTS_NOT_NEWLINE.
68318         (build_charclass_op): Remove bogus comment.
68319
68320 2007-02-05  Simon Josefsson  <simon@josefsson.org>
68321
68322         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
68323
68324 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
68325
68326         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
68327         * lib/memmem.c [!defined _LIBC]: Include config.h.
68328
68329 2007-02-04  Bruno Haible  <bruno@clisp.org>
68330
68331         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
68332         warning message.
68333
68334 2007-02-04  Bruno Haible  <bruno@clisp.org>
68335
68336         New module mbstok_r.
68337         * modules/mbstok_r: New file.
68338         * lib/mbstok_r.c: New file.
68339         * lib/string_.h (strtok_r): Change argument names to match the
68340         comments. Add a conditional link warning.
68341         (mbstok_r): New declaration.
68342         * m4/mbstok_r.m4: New file.
68343         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68344         GNULIB_MBSTOK_R.
68345         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
68346         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
68347
68348 2007-02-04  Bruno Haible  <bruno@clisp.org>
68349
68350         New module mbsspn.
68351         * modules/mbsspn: New file.
68352         * lib/mbsspn.c: New file.
68353         * lib/string_.h (strspn): Add a conditional link warning.
68354         (mbsspn): New declaration.
68355         * m4/mbsspn.m4: New file.
68356         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68357         GNULIB_MBSSPN.
68358         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
68359         * MODULES.html.sh (Internationalization functions): Add mbsspn.
68360
68361 2007-02-04  Bruno Haible  <bruno@clisp.org>
68362
68363         New module mbspbrk.
68364         * modules/mbspbrk: New file.
68365         * lib/mbspbrk.c: New file.
68366         * lib/string_.h (strpbrk): Add a conditional link warning.
68367         (mbspbrk): New declaration.
68368         * m4/mbspbrk.m4: New file.
68369         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68370         GNULIB_MBSPBRK.
68371         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
68372         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
68373
68374 2007-02-04  Bruno Haible  <bruno@clisp.org>
68375
68376         New module mbscspn.
68377         * modules/mbscspn: New file.
68378         * lib/mbscspn.c: New file.
68379         * lib/string_.h (strcspn): Add a conditional link warning.
68380         (mbscspn): New declaration.
68381         * m4/mbscspn.m4: New file.
68382         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68383         GNULIB_MBSCSPN.
68384         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
68385         * MODULES.html.sh (Internationalization functions): Add mbscspn.
68386
68387 2007-02-04  Bruno Haible  <bruno@clisp.org>
68388
68389         New module mbscasestr, reduced goal of strcasestr.
68390         * modules/mbscasestr: New file.
68391         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
68392         (mbscasestr): Renamed from strcasestr.
68393         * lib/strcasestr.c: Don't include mbuiter.h.
68394         (strcasestr): Remove support for multibyte locales.
68395         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
68396         Change the conditional link warning.
68397         (mbscasestr): New declaration.
68398         * m4/mbscasestr.m4: New file.
68399         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
68400         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
68401         REPLACE_STRCASESTR.
68402         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
68403         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
68404         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
68405         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
68406         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
68407         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
68408         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
68409         (Depends-on): Remove mbuiter.
68410         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
68411
68412 2007-02-04  Bruno Haible  <bruno@clisp.org>
68413
68414         Simplify handling of strncasecmp.
68415         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
68416         the conditional link warning.
68417         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
68418         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
68419         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
68420         * modules/strcase (configure.ac): Don't invoke
68421         gl_STRING_MODULE_INDICATOR.
68422         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
68423
68424 2007-02-04  Bruno Haible  <bruno@clisp.org>
68425
68426         New module mbscasecmp, reduced goal of strcasecmp.
68427         * modules/mbscasecmp: New file.
68428         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
68429         (mbscasecmp): Renamed from strcasecmp.
68430         * lib/strcasecmp.c: Don't include mbuiter.h.
68431         (strcasecmp): Remove support for multibyte locales.
68432         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
68433         Change the conditional link warning.
68434         (mbscasecmp): New declaration.
68435         * m4/mbscasecmp.m4: New file.
68436         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
68437         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
68438         REPLACE_STRCASECMP.
68439         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
68440         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68441         GNULIB_MBSCASECMP.
68442         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
68443         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
68444         * modules/strcase (Files): Remove m4/mbrtowc.m4.
68445         (Depends-on): Remove mbuiter.
68446         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
68447
68448 2007-02-04  Bruno Haible  <bruno@clisp.org>
68449
68450         New module mbsstr. Remove module strstr.
68451         * modules/mbsstr: New file.
68452         * modules/strstr: Remove file.
68453         * lib/mbsstr.c: Renamed from lib/strstr.c.
68454         (mbsstr): Renamed from strstr.
68455         * lib/string_.h (strstr): Remove declaration. Change the conditional
68456         link warning.
68457         (mbsstr): New declaration.
68458         * m4/mbsstr.m4: New file.
68459         * m4/strstr.m4: Remove file.
68460         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
68461         REPLACE_STRSTR.
68462         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
68463         Don't initialize GNULIB_STRSTR.
68464         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
68465         substitute GNULIB_STRSTR and REPLACE_STRSTR.
68466         * MODULES.html.sh (Internationalization functions): Add mbsstr.
68467         (Support for systems lacking ANSI C 89): Remove strstr.
68468
68469 2007-02-04  Bruno Haible  <bruno@clisp.org>
68470
68471         New module mbsrchr.
68472         * modules/mbsrchr: New file.
68473         * lib/mbsrchr.c: New file.
68474         * lib/string_.h (strrchr): Add a conditional link warning.
68475         (mbsrchr): New declaration.
68476         * m4/mbsrchr.m4: New file.
68477         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68478         GNULIB_MBSRCHR.
68479         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
68480         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
68481
68482 2007-02-04  Bruno Haible  <bruno@clisp.org>
68483
68484         New module mbschr.
68485         * modules/mbschr: New file.
68486         * lib/mbschr.c: New file.
68487         * lib/string_.h (strchr): Add a conditional link warning.
68488         (mbschr): New declaration.
68489         * m4/mbschr.m4: New file.
68490         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
68491         GNULIB_MBSCHR.
68492         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
68493         * MODULES.html.sh (Internationalization functions): Add mbschr.
68494
68495 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
68496
68497         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
68498
68499         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
68500
68501 2007-02-04  Bruno Haible  <bruno@clisp.org>
68502
68503         New module description section 'configure.ac-early'.
68504         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
68505         (func_get_autoconf_early_snippet): New function.
68506         (func_import, func_create_testdir): Use it. Remove special cases for
68507         modules 'extensions' and 'lock'.
68508         * modules/extensions (configure.ac-early): Require
68509         gl_USE_SYSTEM_EXTENSIONS.
68510         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
68511
68512 2007-02-04  Bruno Haible  <bruno@clisp.org>
68513
68514         Make use of gcj-4.3's -fsource and -ftarget option.
68515         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
68516         and if so try the options -fsource and -ftarget.
68517         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
68518         source_version, ftarget_option, target_version arguments.
68519         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
68520         (is_envjavac_oldgcj_14_14_usable): Renamed from
68521         is_envjavac_gcj_14_14_usable.
68522         (is_envjavac_oldgcj_14_13_usable): Renamed from
68523         is_envjavac_gcj_14_13_usable.
68524         (is_gcj_present): Update.
68525         (is_gcj_43, is_gcj43_usable): New functions.
68526         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
68527         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
68528         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
68529         try the options -fsource and -ftarget.
68530
68531 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
68532
68533         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
68534         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
68535         larger value.
68536
68537 2007-02-03  Jim Meyering  <jim@meyering.net>
68538
68539         Give tools a better chance to allocate space for very large buffers.
68540         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
68541
68542         Make pwd and readlink work also when run with an unreadable parent dir
68543         on systems with openat support.
68544         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
68545         provided getcwd function, even when we have openat support.
68546         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
68547
68548 2007-02-02  Bruno Haible  <bruno@clisp.org>
68549
68550         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
68551         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
68552         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
68553         portability problems if one of these functions is only used on specific
68554         platforms.
68555         Reported by Paul Eggert.
68556
68557 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
68558
68559         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
68560         is causing more trouble than it's curing.
68561         * lib/regex_internal.h (__mempcpy): Remove.
68562         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
68563         (and make the code a tad smaller to boot).
68564         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
68565
68566 2007-02-02  Jim Meyering  <jim@meyering.net>
68567
68568         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
68569         section, not in the Makefile.am: one.
68570
68571 2007-02-02  Eric Blake  <ebb9@byu.net>
68572
68573         * lib/strchrnul.c: Always include config.h first.
68574
68575         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
68576         gnulib strstr is not necessary here.
68577
68578 2007-02-02  Simon Josefsson  <simon@josefsson.org>
68579
68580         * m4/socklen.m4: Fix typo.
68581
68582 2007-02-02  Eric Blake  <ebb9@byu.net>
68583
68584         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
68585         * modules/netinet_in (Makefile.am): Likewise.
68586
68587 2007-02-01  Bruno Haible  <bruno@clisp.org>
68588
68589         * lib/string_.h (GL_LINK_WARNING): New macro.
68590         (strcasecmp, strstr, strcasestr): If provided by the system,
68591         conditionally define as a macro that leads to a warning instead of to
68592         an error.
68593         (strncasecmp): Conditionally define as a macro that leads to a warning.
68594
68595 2007-02-01  Karl Berry  <karl@gnu.org>
68596
68597         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
68598
68599 2007-02-01  Bruno Haible  <bruno@clisp.org>
68600
68601         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
68602         renamings.
68603
68604 2007-02-01  Eric Blake  <ebb9@byu.net>
68605
68606         * modules/regex (Depends-on): Revert dependence on mempcpy.
68607         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
68608         module's definition of mempcpy.
68609         Reported by Paul Eggert.
68610
68611 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
68612
68613         * lib/string_.h: If the gnulib module XYZ is not present, undefine
68614         the symbol XYZ before redefining it.  This fixes a problem with
68615         programs that don't use XYZ, when compiled on systems that define
68616         XYZ to something else.
68617
68618 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
68619
68620         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
68621         occurs when "mkdir -m foo" creates a setgid directory that is (1)
68622         writeable to group or other and (2) is intended to have a special
68623         mode bit that is set or cleared.  In such a case, the directory
68624         should be neither group- nor other-writeable until the special
68625         mode bits are right.
68626
68627 2007-01-31  Eric Blake  <ebb9@byu.net>
68628
68629         * modules/mountlist (Depends-on): Add strstr.
68630
68631         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
68632         bug.
68633         * modules/string (Makefile.am): Remove redundant replacement.
68634         * modules/regex (Depends-on): Add mempcpy.
68635
68636 2007-01-31  Bruno Haible  <bruno@clisp.org>
68637
68638         New module description field 'Link'.
68639         * gnulib-tool (func_usage): Document --extract-link-directive.
68640         (sed_extract_prog): Recognize 'Link' directive.
68641         (func_get_link_directive): New function.
68642         (func_import): Show summary of link directives.
68643         Handle --extract-link-directive option.
68644         * modules/acl (Link): New section.
68645         * modules/clock-time (Link): New section.
68646         * modules/euidaccess (Link): New section.
68647         * modules/gettext (Link): New section.
68648         * modules/iconv (Link): New section.
68649         * modules/lock (Link): New section.
68650         * modules/nanosleep (Link): New section.
68651         * modules/readline (Link): New section.
68652
68653 2007-01-27  Bruno Haible  <bruno@clisp.org>
68654
68655         Enforce the use of gnulib modules for unportable <string.h> functions.
68656         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
68657         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
68658         (gl_HEADER_STRING_H_BODY): Require it.
68659         * lib/string_.h: If the gnulib module XYZ is not present, redefine
68660         the symbol XYZ to one that gives a link error.
68661         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
68662         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
68663         * modules/mempcpy (configure.ac): Likewise.
68664         * modules/memrchr (configure.ac): Likewise.
68665         * modules/stpcpy (configure.ac): Likewise.
68666         * modules/stpncpy (configure.ac): Likewise.
68667         * modules/strcase (configure.ac): Likewise.
68668         * modules/strcasestr (configure.ac): Likewise.
68669         * modules/strchrnul (configure.ac): Likewise.
68670         * modules/strdup (configure.ac): Likewise.
68671         * modules/strndup (configure.ac): Likewise.
68672         * modules/strnlen (configure.ac): Likewise.
68673         * modules/strpbrk (configure.ac): Likewise.
68674         * modules/strsep (configure.ac): Likewise.
68675         * modules/strstr (configure.ac): Likewise.
68676         * modules/strtok_r (configure.ac): Likewise.
68677
68678 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
68679
68680         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
68681
68682 2007-01-30  Jim Meyering  <jim@meyering.net>
68683
68684         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
68685
68686 2007-01-29  Bruno Haible  <bruno@clisp.org>
68687
68688         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
68689         * lib/execute.c: Likewise.
68690         * lib/pipe.c: Likewise.
68691         * lib/printf-args.h: Likewise.
68692         * lib/printf-args.c: Likewise.
68693         * lib/printf-parse.c: Likewise.
68694         * lib/vasnprintf.c: Likewise.
68695
68696 2007-01-29  Eric Blake  <ebb9@byu.net>
68697
68698         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
68699         declaration.
68700
68701 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
68702
68703         * lib/strptime.h (strptime): Use 'restrict' for args where
68704         POSIX requires this.
68705         * lib/strptime.c (strptime): Likewise.
68706         Change license notice from LGPL to GPL, since gnulib-tool will
68707         change this as needed.
68708         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
68709         defined.
68710         Include "strptime.h" first, to check interface.
68711         Do not #undef _LIBC and _NL_CURRENT.
68712         Do not include <stdlib.h>; no longer needed.
68713         Include "time_r.h" and declare ptime_locale_status
68714         only if _LIBC is not defined.
68715         (__P): Remove unused macro.
68716         (match_string): Bring back glibc version, but use it only if _LIBC
68717         is defined.
68718         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
68719         Remove unnecessary assertion and abort() call.
68720         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
68721         * m4/strptime.m4: Fix serial number comment.
68722         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
68723         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
68724         (Depends-on): Add time_r.
68725
68726 2007-01-29  Bruno Haible  <bruno@clisp.org>
68727
68728         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68729         strptime.
68730         * modules/strptime (Depends-on): Add stdbool.
68731         * lib/strptime.h: Include <time.h> always. Add comments.
68732
68733 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
68734
68735         * modules/strptime: New file.
68736         * lib/strptime.h: New file.
68737         * lib/strptime.c: New file.
68738         * m4/strptime.m4: New file.
68739
68740 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
68741
68742         * MODULES.html.sh: New module mpsort.
68743         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
68744
68745         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
68746         a circularity problem with HP-UX ia64 reported by Bob Proulx in
68747         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
68748         All uses changed.
68749         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
68750         All uses changed.
68751         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
68752         to _Restrict_.
68753         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
68754         the parameter matches the prototype.
68755
68756 2007-01-28  Jim Meyering  <jim@meyering.net>
68757
68758         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
68759         sys/time.h here, reverting that part of the previous patch:
68760         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
68761
68762 2007-01-28  Bruno Haible  <bruno@clisp.org>
68763
68764         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
68765         value of $(SYS_TIME_H).
68766         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
68767         remove it conditionally, too. [added by Jim Meyering]
68768         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
68769         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
68770         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
68771         GETTIMEOFDAY_REPLACEMENT to 1.
68772
68773 2007-01-28  Bruno Haible  <bruno@clisp.org>
68774
68775         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
68776         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
68777         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
68778         Set UNISTD_H instead of UNISTD_H2.
68779         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
68780
68781 2007-01-28  Bruno Haible  <bruno@clisp.org>
68782
68783         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
68784         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
68785
68786 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68787
68788         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
68789         (func_create_testdir): Ensure C locale for `grep' and `tr'
68790         character ranges.
68791         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
68792         ACLOCAL_AMFLAGS parsing state machine.
68793
68794 2007-01-27  Bruno Haible  <bruno@clisp.org>
68795
68796         * modules/unistr/base: Update.
68797
68798 2007-01-27  Bruno Haible  <bruno@clisp.org>
68799
68800         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
68801         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
68802         * modules/unistr/u32-mbtouc-unsafe: Renamed from
68803         modules/unistr/u32-mbtouc.
68804         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
68805         * lib/unistr.h: Update.
68806         * lib/linebreak.c: Update.
68807         * modules/unistr/u32-mbtouc: Renamed from
68808         modules/unistr/u32-mbtouc-safe.
68809         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
68810         * lib/unistr.h: Update.
68811         * lib/unistr/u32-to-u8.c: Update.
68812         * lib/unistr/u32-to-u16.c: Update.
68813
68814 2007-01-27  Bruno Haible  <bruno@clisp.org>
68815
68816         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
68817         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
68818         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
68819         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
68820         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
68821         * modules/unistr/u16-mbtouc-unsafe: Renamed from
68822         modules/unistr/u16-mbtouc.
68823         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
68824         * lib/unistr.h: Update.
68825         * lib/linebreak.c: Update.
68826         * modules/linebreak: Update.
68827         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
68828         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
68829         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
68830         * modules/unistr/u16-mbtouc: Renamed from
68831         modules/unistr/u16-mbtouc-safe.
68832         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
68833         * lib/unistr.h: Update.
68834         * lib/unistr/u16-to-u8.c: Update.
68835         * modules/unistr/u16-to-u8: Update.
68836         * lib/unistr/u16-to-u32.c: Update.
68837         * modules/unistr/u16-to-u32: Update.
68838
68839 2007-01-27  Bruno Haible  <bruno@clisp.org>
68840
68841         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
68842         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
68843         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
68844         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
68845         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
68846         * modules/unistr/u8-mbtouc-unsafe: Renamed from
68847         modules/unistr/u8-mbtouc.
68848         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
68849         * lib/unistr.h: Update.
68850         * lib/striconveh.c: Update.
68851         * modules/striconveh: Update.
68852         * lib/linebreak.c: Update.
68853         * modules/linebreak: Update.
68854         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
68855         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
68856         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
68857         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
68858         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
68859         * lib/unistr.h: Update.
68860         * lib/striconveh.c: Update.
68861         * modules/striconveh: Update.
68862         * lib/unistr/u8-to-u16.c: Update.
68863         * modules/unistr/u8-to-u16: Update.
68864         * lib/unistr/u8-to-u32.c: Update.
68865         * modules/unistr/u8-to-u32: Update.
68866
68867 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68868
68869         Sync from Libtool.
68870         * lib/argz.c: Do not include strings.h nor memory.h, include
68871         string.h unconditionally.  Patch by Simon Josefsson.
68872
68873 2007-01-27  Bruno Haible  <bruno@clisp.org>
68874
68875         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
68876         from gl_HEADER_STRING_H_BODY.
68877         (gl_HEADER_STRING_H_BODY): Require it.
68878         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
68879         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
68880         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
68881         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
68882         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
68883         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
68884         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
68885         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
68886         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
68887         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
68888         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
68889         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
68890         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
68891         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
68892         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
68893
68894 2007-01-27  Bruno Haible  <bruno@clisp.org>
68895
68896         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
68897         check_PROGRAMS into noinst_PROGRAMS.
68898         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
68899         check_PROGRAMS in this case.
68900         (func_import): Set for_test to false.
68901         (func_create_testdir): Set for_test to true.
68902
68903 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
68904             Bruno Haible  <bruno@clisp.org>
68905
68906         * modules/strcasestr (Files): Remove lib/strcasestr.h.
68907         (Depends-on): Add string.
68908         (Includes): Use <string.h> instead of strcasestr.h.
68909         * modules/string (Makefile.am): Also substitute the value of
68910         REPLACE_STRCASESTR.
68911         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
68912         assume strcasestr is declared in <string.h> not <strings.h>. Also
68913         set REPLACE_STRCASESTR.
68914         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
68915         REPLACE_STRCASESTR.
68916         * lib/strcasestr.h: Remove file.
68917         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
68918         * lib/string_.h (strcasestr): New declaration.
68919
68920 2007-01-27  Bruno Haible  <bruno@clisp.org>
68921
68922         * lib/string_.h: Use 'extern'.
68923
68924 2007-01-27  Jim Meyering  <jim@meyering.net>
68925
68926         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
68927         of set-but-not-used local, "q".
68928
68929         * lib/mempcpy.c: Include <config.h> before <string.h>.
68930         This fixes a compilation error on HP-UX, due to the system's
68931         "restrict"-using mempcpy prototype.
68932
68933 2007-01-26  Bruno Haible  <bruno@clisp.org>
68934
68935         Small optimization.
68936         * lib/javacomp.c: Include c-strstr.h.
68937          (is_envjavac_gcj): Use c_strstr instead of strstr.
68938         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
68939
68940 2007-01-26  Bruno Haible  <bruno@clisp.org>
68941
68942         * MODULES.html.sh (Unicode string functions): Add the new modules.
68943
68944         * modules/uniconv/u32-strconv-to-locale: New file.
68945         * lib/uniconv/u32-strconv-to-locale.c: New file.
68946
68947         * modules/uniconv/u16-strconv-to-locale: New file.
68948         * lib/uniconv/u16-strconv-to-locale.c: New file.
68949
68950         * modules/uniconv/u8-strconv-to-locale: New file.
68951         * lib/uniconv/u8-strconv-to-locale.c: New file.
68952
68953         * modules/uniconv/u32-strconv-from-locale: New file.
68954         * lib/uniconv/u32-strconv-from-locale.c: New file.
68955
68956         * modules/uniconv/u16-strconv-from-locale: New file.
68957         * lib/uniconv/u16-strconv-from-locale.c: New file.
68958
68959         * modules/uniconv/u8-strconv-from-locale: New file.
68960         * lib/uniconv/u8-strconv-from-locale.c: New file.
68961
68962         * modules/uniconv/u32-strconv-to-enc: New file.
68963         * lib/uniconv/u32-strconv-to-enc.c: New file.
68964         * modules/uniconv/u32-strconv-to-enc-tests: New file.
68965         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
68966
68967         * modules/uniconv/u16-strconv-to-enc: New file.
68968         * lib/uniconv/u16-strconv-to-enc.c: New file.
68969         * lib/uniconv/u-strconv-to-enc.h: New file.
68970         * modules/uniconv/u16-strconv-to-enc-tests: New file.
68971         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
68972
68973         * modules/uniconv/u8-strconv-to-enc: New file.
68974         * lib/uniconv/u8-strconv-to-enc.c: New file.
68975         * modules/uniconv/u8-strconv-to-enc-tests: New file.
68976         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
68977
68978         * modules/uniconv/u32-strconv-from-enc: New file.
68979         * lib/uniconv/u32-strconv-from-enc.c: New file.
68980         * modules/uniconv/u32-strconv-from-enc-tests: New file.
68981         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
68982
68983         * modules/uniconv/u16-strconv-from-enc: New file.
68984         * lib/uniconv/u16-strconv-from-enc.c: New file.
68985         * modules/uniconv/u16-strconv-from-enc-tests: New file.
68986         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
68987
68988         * modules/uniconv/u8-strconv-from-enc: New file.
68989         * lib/uniconv/u8-strconv-from-enc.c: New file.
68990         * lib/uniconv/u-strconv-from-enc.h: New file.
68991         * modules/uniconv/u8-strconv-from-enc-tests: New file.
68992         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
68993
68994         * modules/uniconv/u32-conv-from-enc: New file.
68995         * lib/uniconv/u32-conv-from-enc.c: New file.
68996         * modules/uniconv/u32-conv-from-enc-tests: New file.
68997         * tests/uniconv/test-u32-conv-from-enc.c: New file.
68998
68999         * modules/uniconv/u16-conv-from-enc: New file.
69000         * lib/uniconv/u16-conv-from-enc.c: New file.
69001         * lib/uniconv/u-conv-from-enc.h: New file.
69002         * modules/uniconv/u16-conv-from-enc-tests: New file.
69003         * tests/uniconv/test-u16-conv-from-enc.c: New file.
69004
69005         * modules/uniconv/u8-conv-from-enc: New file.
69006         * lib/uniconv/u8-conv-from-enc.c: New file.
69007         * modules/uniconv/u8-conv-from-enc-tests: New file.
69008         * tests/uniconv/test-u8-conv-from-enc.c: New file.
69009
69010         * modules/uniconv/base: New file.
69011         * lib/uniconv.h: New file.
69012
69013 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
69014
69015         * doc/gnulib-tool.texi (Initial import): Update to match current
69016         behavior with strdup module.
69017         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
69018         * lib/memmem.h: Remove; all uses removed.  This is now done
69019         by <string.h>.
69020         * lib/mempcpy.h: Likewise.
69021         * lib/memrchr.h: Likewise.
69022         * lib/stpcpy.h: Likewise.
69023         * lib/stpncpy.h: Likewise.
69024         * lib/strcase.h: Likewise.
69025         * lib/strchrnul.h: Likewise.
69026         * lib/strdup.h: Likewise.
69027         * lib/strndup.h: Likewise.
69028         * lib/strnlen.h: Likewise.
69029         * lib/strpbrk.h: Likewise.
69030         * lib/strsep.h: Likewise.
69031         * lib/strstr.h: Likewise.
69032         * lib/strtok_r.h: Likewise.
69033         * lib/string_.h: New file.
69034         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
69035         Rely on <string.h> instead.
69036         * lib/canon-host.c: Likewise.
69037         * lib/chdir-long.c: Likewise.
69038         * lib/concatpath.c: Likewise.
69039         * lib/exclude.c: Likewise.
69040         * lib/fchdir.c: Likewise.
69041         * lib/getaddrinfo.c: Likewise.
69042         * lib/getcwd.c: Likewise.
69043         * lib/getsubopt.c: Likewise.
69044         * lib/glob.c: Likewise.
69045         * lib/hard-locale.c: Likewise.
69046         * lib/iconvme.c: Likewise.
69047         * lib/javacomp.c: Likewise.
69048         * lib/mempcpy.c: Likewise.
69049         * lib/memrchr.c: Likewise.
69050         * lib/regex_internal.h: Likewise.
69051         * lib/stpncpy.c: Likewise.
69052         * lib/strcasecmp.c: Likewise.
69053         * lib/strchrnul.c: Likewise.
69054         * lib/strdup.c: Likewise.
69055         * lib/striconv.c: Likewise.
69056         * lib/striconveh.c: Likewise.
69057         * lib/striconveha.c: Likewise.
69058         * lib/strncasecmp.c: Likewise.
69059         * lib/strndup.c: Likewise.
69060         * lib/strnlen.c: Likewise.
69061         * lib/strsep.c: Likewise.
69062         * lib/strstr.c: Likewise.
69063         * lib/strtok_r.c: Likewise.
69064         * lib/userspec.c: Likewise.
69065         * lib/w32spawn.h: Likewise.
69066         * lib/xstrndup.c: Likewise.
69067         * lib/mountlist.c (strstr): Remove decl.
69068         * m4/string_h.m4: New file.
69069         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
69070         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
69071         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
69072         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
69073         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
69074         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
69075         Set REPLACE_STRCASECMP if necessary.
69076         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
69077         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
69078         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
69079         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
69080         HAVE_DECL_STRDUP if necessary.
69081         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
69082         since gl_FUNC_STRNDUP does that now.
69083         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
69084         Check for decl here...
69085         (gl_PREREQ_STRNLEN): ... not here.
69086         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
69087         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
69088         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
69089         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
69090         necessary.
69091         * modules/string: New file.
69092         * modules/memmem (Files): Remove special-purpose include file.
69093         (Depends-on): Add string.
69094         (Include): Include <string.h>, not the removed file.
69095         * modules/mempcpy: Likewise.
69096         * modules/memrchr: Likewise.
69097         * modules/stpcpy: Likewise.
69098         * modules/stpncpy: Likewise.
69099         * modules/strcase: Likewise.
69100         * modules/strchrnul: Likewise.
69101         * modules/strdup: Likewise.
69102         * modules/strndup: Likewise.
69103         * modules/strnlen: Likewise.
69104         * modules/strpbrk: Likewise.
69105         * modules/strsep: Likewise.
69106         * modules/strstr: Likewise.
69107         * modules/strtok_r: Likewise.
69108         * tests/test-dirname.c: Don't include "strdup.h", since
69109         <string.h> now suffices.
69110         * tests/test-memmem.c: Don't include "memmem.h", since
69111         <string.h> now suffices.
69112
69113 2007-01-25  Bruno Haible  <bruno@clisp.org>
69114
69115         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
69116         *resultp is 0.
69117
69118         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
69119         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
69120         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
69121         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
69122
69123         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
69124         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
69125         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
69126         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
69127         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
69128         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
69129
69130 2007-01-24  Bruno Haible  <bruno@clisp.org>
69131
69132         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
69133         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
69134         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
69135         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
69136         gl_FUNC_FTS_CORE.
69137         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
69138         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
69139         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
69140         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
69141         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
69142         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
69143         gl_FUNC_FCHOWNAT.
69144         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
69145         gl_FUNC_STRFTIME.
69146         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
69147         Reported by Ralf Wildenhues.
69148
69149 2007-01-24  Bruno Haible  <bruno@clisp.org>
69150
69151         Drop AC_REQUIRE calls that are redundant with the module dependencies.
69152         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
69153         gl_GETADDRINFO.
69154         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
69155         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
69156         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
69157
69158 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
69159
69160         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
69161         Don't use 'exit'; just return from 'main'.
69162         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
69163
69164         * lib/fnmatch_.h: Readjust white space and comments to match
69165         glibc, to avoid spurious diffs.
69166
69167 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69168
69169         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
69170         2004-12-01 change by Jakub Jelinek, since this code won't compile
69171         if !LIBC.  Problem reported by Bob Proulx.
69172
69173 2007-01-23  Bruno Haible  <bruno@clisp.org>
69174
69175         * lib/striconveh.c: Include c-strcaseeq.h.
69176         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
69177         * modules/striconveh (Depends-on): Add c-strcaseeq.
69178
69179 2007-01-23  Bruno Haible  <bruno@clisp.org>
69180
69181         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
69182
69183         * modules/c-strcaseeq: New file.
69184         * lib/c-strcaseeq.h: New file.
69185
69186         * modules/streq: New file.
69187         * lib/streq.h: New file.
69188
69189 2007-01-23  Bruno Haible  <bruno@clisp.org>
69190
69191         * modules/striconveha-tests: New file.
69192         * tests/test-striconveha.c: New file.
69193
69194         * lib/striconveha.h: Include <stdbool.h>.
69195         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
69196         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
69197         (mem_iconveha_notranslit): Renamed from mem_iconveha.
69198         (mem_iconveha): New function.
69199         (str_iconveha_notranslit): Renamed from str_iconveha.
69200         (str_iconveha): New function.
69201         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
69202         c-strcase.
69203
69204 2007-01-23  Bruno Haible  <bruno@clisp.org>
69205
69206         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
69207         encodings without forgiving before trying any encoding with handler.
69208         (str_iconveha): Try all encodings without forgiving before trying any
69209         encoding with handler.
69210
69211 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69212
69213         Import the following changes from libc.
69214
69215         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
69216
69217         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
69218
69219         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
69220
69221         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
69222         normal_bracket label.
69223
69224         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
69225
69226         [BZ #361]
69227         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
69228         to normal_bracket after fetching the next character.
69229
69230 2007-01-22  Bruno Haible  <bruno@clisp.org>
69231
69232         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
69233         argument.
69234         * lib/striconveh.c (iconv_carefully_1): New function.
69235         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
69236         argument.
69237         (str_cd_iconveh): Update.
69238         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
69239         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
69240         * tests/test-striconveh.c (MAGIC): New macro.
69241         (new_offsets): New function.
69242         (main): Test call with and without offsets.
69243
69244 2007-01-22  Bruno Haible  <bruno@clisp.org>
69245
69246         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
69247         * modules/sys_select (Makefile.am): Likewise.
69248         * modules/sys_socket (Makefile.am): Likewise.
69249         * modules/sys_time (Makefile.am): Likewise.
69250
69251 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
69252
69253         * modules/gettimeofday (License): Change from GPL to LGPL, since
69254         gettimeofday is a library function.
69255
69256 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69257
69258         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
69259
69260 2007-01-21  Bruno Haible  <bruno@clisp.org>
69261
69262         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
69263
69264 2007-01-21  Bruno Haible  <bruno@clisp.org>
69265
69266         * modules/striconveha: New file.
69267         * lib/striconveha.h: New file.
69268         * lib/striconveha.c: New file.
69269         * MODULES.html.sh (Internationalization functions): Add striconveha.
69270         * lib/striconv.c (str_iconv): Optimize the case of an empty input
69271         string.
69272         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
69273
69274 2007-01-21  Bruno Haible  <bruno@clisp.org>
69275
69276         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
69277         * lib/striconveh.c (str_iconveh): Likewise.
69278
69279 2007-01-21  Bruno Haible  <bruno@clisp.org>
69280
69281         * lib/striconveh.h (mem_iconveh): New declaration.
69282         * lib/striconveh.c (mem_iconveh): New function.
69283         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
69284
69285 2007-01-21  Bruno Haible  <bruno@clisp.org>
69286
69287         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
69288
69289         * lib/striconveh.h (mem_cd_iconveh): Change specification.
69290         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
69291         original result buffer.
69292         (str_cd_iconveh): Update.
69293         * tests/test-striconveh.c (main): Update.
69294
69295         * lib/striconv.h (mem_cd_iconv): Change specification.
69296         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
69297         result buffer.
69298         (str_cd_iconv): Update.
69299         * tests/test-striconv.c (main): Update.
69300
69301 2007-01-21  Bruno Haible  <bruno@clisp.org>
69302
69303         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
69304
69305 2007-01-20  Jim Meyering  <jim@meyering.net>
69306
69307         * lib/userspec.c (parse_with_separator): If a user or group string
69308         starts with "+", skip the corresponding name-to-ID look-up, since
69309         such a look-up must fail: user and group names may not include "+".
69310
69311 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
69312
69313         * lib/poll.c: Include sys/time.h and time.h unconditionally,
69314         since we now assume the sys_time module.
69315         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
69316         check for sys/time.h; no longer needed.
69317         * modules/poll (Depends-on): Depend on sys_time.
69318
69319 2007-01-18  Bruno Haible  <bruno@clisp.org>
69320
69321         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
69322         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
69323
69324         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
69325         gettimeofday.
69326
69327         * tests/test-gettimeofday.c: Include <time.h>.
69328         (dummy): Remove variable.
69329
69330         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
69331         gl_HEADER_SYS_TIME_H.
69332         (gl_HEADER_SYS_TIME_H): New macro.
69333
69334         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
69335         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69336         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
69337         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
69338         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69339         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
69340         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
69341         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69342         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
69343         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
69344         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69345
69346         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
69347         last change; it caused a compilation error when cross-compiling to
69348         Cygwin.
69349
69350 2007-01-18  Jim Meyering  <jim@meyering.net>
69351
69352         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
69353         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
69354         than the race-prone "test -d sys || mkdir sys".
69355         (configure.ac): Use AC_PROG_MKDIR_P.
69356         * modules/sys_select: Likewise.
69357         * modules/sys_socket: Likewise.
69358         * modules/sys_time: Likewise.
69359
69360 2007-01-18  Eric Blake  <ebb9@byu.net>
69361
69362         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
69363         replace gettimeofday.
69364         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
69365         name, to avoid infinite recursion.
69366
69367 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
69368
69369         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
69370         module sys_time.
69371         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
69372         assume timespec.h defines struct timeval.
69373         * lib/settime.c: Likewise.
69374         * lib/utimens.c: Likewise.
69375         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
69376         since we now assume the gettimeofday module.
69377         * lib/tempname.c (__gen_tempname): Likewise.
69378         * lib/gettimeofday.h: Remove.
69379         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
69380         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
69381         Include <time.h>, for 'time()'.
69382         (localtime_buffer_addr): Also use this workaround if
69383         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
69384         to simplify the uses.  All uses changed.
69385         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
69386         that #undef is inside {}, and 'const' follows type name consistently.
69387         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
69388         (gettimeofday): Do not use the maximum possible value for
69389         tv->tv_usec, since that might break usages other than ls.c.
69390         Instead, we'll leave ls.c alone.  This undoes today's patch
69391         by Bruno.  Add a compile-time warning for 1s-clock resolution;
69392         we've never observed the problem but might as well keep the
69393         canary.
69394         * lib/nanosleep.c: Include timespec.h first, for interface check.
69395         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
69396         now assume the sys_time module.
69397         * lib/tempname.c: Likewise.
69398         * lib/timespec.h: Likewise.
69399         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
69400         needed.
69401         * lib/strftime.c: Likewise.
69402         * lib/timespec.h: Likewise.
69403         * lib/posixtm.c: Include posixtm.h first, for interface check.
69404         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
69405         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
69406         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
69407         * lib/sys_time_.h: New file.
69408         * lib/timespec.h (struct timespec): Use long int, not long.
69409         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
69410         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
69411         Remove obsolescent call to AC_HEADER_TIME.
69412         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
69413         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
69414         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
69415         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
69416         Likewise.
69417         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
69418         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
69419         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
69420         into the sys_time module.  Check for gettimeofday just once.
69421         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
69422         for gettimeofday signature to just check the signature.  Merely
69423         compile it, since linking doesn't test signature.  Improve test for
69424         whether gettimeofday.o is actually needed.
69425         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
69426         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
69427         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
69428         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69429         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
69430         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
69431         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
69432         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
69433         than worrying about sys/time.h.
69434         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
69435         Don't bother worrying about TIME_WITH_SYS_TIME.
69436         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
69437         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
69438         * m4/sys_time_h.m4: New file.
69439         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
69440         Don't include sys/time.h.  Return from main rather than exiting.
69441         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
69442         all uses changed.
69443         * modules/gethrxtime (Depends-on): Add sys_time.
69444         * modules/gettime (Depends-on): Likewise.
69445         * modules/gettimeofday (Depends-on): Likewise.
69446         * modules/nanosleep (Depends-on): Likewise.
69447         * modules/settime (Depends-on): Likewise.
69448         * modules/tempname (Depends-on): Likewise.
69449         * modules/utimens (Depends-on): Likewise.
69450         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
69451         (Include): Change back to <sys/time.h>.
69452         (Maintainer): Add self.
69453         * modules/sys_time: New file.
69454         * modules/tempname (Depends-on): Add gettimeofday.
69455         * tests/test-gettimeofday.c: Include <sys/time.h>
69456         rather than gettimeofday.h.
69457
69458 2007-01-17  Bruno Haible  <bruno@clisp.org>
69459
69460         * gnulib-tool (func_get_license): Revert last patch. Instead, let
69461         the license default to GPL.
69462         (func_create_testdir): Don't complain if a module is LGPL and its
69463         tests module depends on GPLed modules.
69464
69465 2007-01-17  Bruno Haible  <bruno@clisp.org>
69466
69467         * lib/gettimeofday.c (gettimeofday): Add code for the case
69468         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
69469         maximum possible value for tv->tv_usec, rather than the minimum one.
69470
69471 2005-10-08  Martin Lambers  <marlam@marlam.de>
69472 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
69473 2007-01-16  Bruno Haible  <bruno@clisp.org>
69474
69475         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
69476         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
69477         gl_FUNC_GETTIMEOFDAY.
69478         (Include): Add gettimeofday.h.
69479         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
69480         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
69481         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
69482         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
69483         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
69484         * lib/gettimeofday.h: New file.
69485         * lib/gettimeofday.c: Include <sys/timeb.h>.
69486         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
69487         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
69488         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
69489         fall back on time().
69490
69491         * tests/test-gettimeofday.c: New file.
69492         * modules/gettimeofday-tests: New file.
69493
69494 2007-01-16  Eric Blake  <ebb9@byu.net>
69495
69496         * modules/fnmatch (Depends-on): Depend on wchar.
69497         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
69498         * m4/fnmatch.m4: Likewise.
69499         * modules/mbchar (Makefile.am): Assume <wchar.h>.
69500         * m4/mbchar.m4: Likewise.
69501         * modules/mbswidth (Depends-on): Depend on wchar.
69502         * lib/mbswidth.c: Assume <wchar.h>.
69503         * m4/mbswidth.m4: Likewise.
69504         * modules/quotearg (Depends-on): Depend on wchar.
69505         * lib/quotearg.c: Assume <wchar.h>.
69506         * m4/quotearg.m4: Likewise.
69507         * modules/regex (Depends-on): Depend on wchar.
69508         * lib/regex_internal.h: Assume <wchar.h>.
69509         * m4/regex.m4: Likewise.
69510         * modules/stdint (Depends-on): Depend on wchar.
69511         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
69512         * m4/stdint.m4: Likewise.
69513         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
69514         * modules/strftime (Depends-on): Depend on wchar.
69515         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
69516         * modules/strtol (Depends-on): Depend on wchar.
69517         * lib/strtol.c: Assume <wchar.h>.
69518         * modules/wcwidth (Depends-on): Depend on wchar.
69519         * lib/wcwidth.h: Assume <wchar.h>.
69520         * m4/wcwidth.m4: Likewise.
69521
69522 2007-01-16  Bruno Haible  <bruno@clisp.org>
69523
69524         * modules/csharpexec-script: New, created from...
69525         * modules/csharpexec: ... this.
69526
69527 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
69528
69529         * modules/javaexec-script: New, created from...
69530         * modules/javaexec: ... this.
69531
69532 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
69533
69534         * modules/poll (Dependencies): Add sys_select.
69535
69536 2007-01-15  Jim Meyering  <jim@meyering.net>
69537
69538         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
69539         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
69540         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
69541         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
69542
69543 2007-01-15  Bruno Haible  <bruno@clisp.org>
69544
69545         * modules/striconveh: New file.
69546         * lib/striconveh.h: New file.
69547         * lib/striconveh.c: New file.
69548         * MODULES.html.sh (Internationalization functions): Add striconveh.
69549
69550         * modules/striconveh-tests: New file.
69551         * tests/test-striconveh.c: New file.
69552
69553 2007-01-15  Bruno Haible  <bruno@clisp.org>
69554
69555         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
69556         not from GNU libiconv or GNU libc.
69557
69558 2007-01-15  Bruno Haible  <bruno@clisp.org>
69559
69560         * doc/gnulib-intro.texi (Copyright): Explain the different license
69561         terms for module descriptions, autoconf macros, tests, documentation.
69562
69563 2007-01-14  Bruno Haible  <bruno@clisp.org>
69564
69565         * modules/striconv-tests: New file.
69566         * tests/test-striconv.c: New file.
69567
69568 2007-01-14  Bruno Haible  <bruno@clisp.org>
69569
69570         * modules/iconv-tests: New file.
69571         * tests/test-iconv.c: New file.
69572
69573 2007-01-14  Bruno Haible  <bruno@clisp.org>
69574
69575         * gnulib-tool (func_get_license): For test modules, use the license of
69576         the main module.
69577
69578 2007-01-14  Bruno Haible  <bruno@clisp.org>
69579
69580         * modules/iconv (Include): Clarify that <iconv.h> can only be included
69581         if iconv is found to exist.
69582
69583 2007-01-14  Bruno Haible  <bruno@clisp.org>
69584
69585         * modules/c-ctype-tests: New file.
69586         * tests/test-c-ctype.c: New file.
69587
69588 2007-01-14  Bruno Haible  <bruno@clisp.org>
69589
69590         * modules/binary-io-tests: New file.
69591         * tests/test-binary-io.sh: New file.
69592         * tests/test-binary-io.c: New file.
69593
69594 2007-01-14  Bruno Haible  <bruno@clisp.org>
69595
69596         * modules/array-oset-tests: New file.
69597         * tests/test-array_oset.c: New file.
69598
69599 2007-01-14  Bruno Haible  <bruno@clisp.org>
69600
69601         * modules/array-list-tests: New file.
69602         * tests/test-array_list.c: New file.
69603
69604 2007-01-14  Bruno Haible  <bruno@clisp.org>
69605
69606         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
69607         and make.
69608         Reported by Simon Josefsson in
69609         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
69610
69611 2007-01-14  Bruno Haible  <bruno@clisp.org>
69612
69613         * modules/allocsa-tests: New file.
69614         * tests/test-allocsa.c: New file.
69615
69616 2007-01-14  Bruno Haible  <bruno@clisp.org>
69617
69618         * modules/fchdir (Depends-on): Add absolute-header.
69619         * modules/unistd (Depends-on): Likewise.
69620
69621 2006-12-30  Bruno Haible  <bruno@clisp.org>
69622
69623         * modules/fchdir: New file.
69624         * modules/unistd (Files): Add lib/unistd_.h.
69625         (Makefile.am): Generate unistd.h from unistd_.h.
69626         * lib/fchdir.c: New file.
69627         * lib/dirent_.h: New file.
69628         * lib/unistd_.h: New file.
69629         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
69630         * m4/fchdir.m4: New file.
69631         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
69632         (gl_HEADER_UNISTD): Invoke it.
69633         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
69634         function.
69635         * lib/backupfile.c (opendir, closedir): Undefine.
69636         * lib/chown.c (open, close): Undefine.
69637         * lib/clean-temp.c (open, close): Undefine.
69638         * lib/copy-file.c (open, close): Undefine.
69639         * lib/execute.c (open, close): Undefine.
69640         * lib/fsusage.c (open, close): Undefine.
69641         * lib/gc-gnulib.c (open, close): Undefine.
69642         * lib/getcwd.c (opendir, closedir): Undefine.
69643         * lib/glob.c (opendir, closedir): Undefine.
69644         * lib/javacomp.c (open, close): Undefine.
69645         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
69646         * lib/openat-proc.c (open, close): Undefine.
69647         * lib/pagealign_alloc.c (open, close): Undefine.
69648         * lib/pipe.c (open, close): Undefine.
69649         * lib/progreloc.c (open, close): Undefine.
69650         * lib/savedir.c (opendir, closedir): Undefine.
69651         * lib/utime.c (open, close): Undefine.
69652         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
69653
69654 2007-01-10  Bruno Haible  <bruno@clisp.org>
69655
69656         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
69657
69658 2007-01-12  Eric Blake  <ebb9@byu.net>
69659
69660         Provide a robust <wchar.h>.  Further simplifications are now
69661         possible in other modules, but not included here.
69662         * modules/wchar: New module.
69663         * m4/wchar.m4: New file.
69664         * lib/wchar_.h: Likewise.
69665         * modules/mbchar (Depends-on): Depend on wchar, as the first use
69666         of the new module.
69667         * MODULES.html.sh (Extended multibyte and wide character utilities):
69668         New section.
69669
69670 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
69671
69672         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
69673         to a reasonable default for memory allocation.
69674         (xreadlink): Don't allocate a huge buffer, to work around a buggy
69675         file system that reports garbage st_size values for symlinks.
69676         Problem reported by Liyang Hu.
69677
69678 2007-01-11  Simon Josefsson  <simon@josefsson.org>
69679
69680         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
69681         Emacs .#* auto-save files).
69682
69683 2007-01-11  Bruno Haible  <bruno@clisp.org>
69684
69685         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
69686         directory.
69687
69688 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69689
69690         Use @...@ consistently in lib/wctype_.h.
69691         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
69692         on it being set to 1 or 0.
69693         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
69694         go back to AC_SUBSTing it.
69695         * modules/wctype (Makefile.am): Undo previous change.
69696
69697 2007-01-10  Eric Blake  <ebb9@byu.net>
69698
69699         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
69700         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
69701         * modules/wctype (Makefile.am): Likewise.
69702         Reported by Chris McGuire.
69703
69704 2007-01-10  Jim Meyering  <jim@meyering.net>
69705
69706         fts.c: a small readability/maintainability improvement
69707         * lib/fts.c (fts_read): Make this code slightly more readable and
69708         maintainable by hoisting the "sp->fts_cur = p" assignments to
69709         immediately follow the statements that set P.  Derived from
69710         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
69711
69712 2007-01-10  Eric Blake  <ebb9@byu.net>
69713
69714         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
69715         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
69716         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
69717         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
69718         Reported by Chris McGuire.
69719
69720 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69721
69722         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
69723         in sed script.
69724
69725 2007-01-09  Bruno Haible  <bruno@clisp.org>
69726
69727         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
69728         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
69729         variables.
69730         (func_module): Use them.
69731
69732 2007-01-09  Bruno Haible  <bruno@clisp.org>
69733
69734         * modules/unistr/base: New file.
69735         * lib/unistr.h: New file.
69736
69737         * modules/unistr/u8-to-u16: New file.
69738         * lib/unistr/u8-to-u16.c: New file.
69739
69740         * modules/unistr/u8-to-u32: New file.
69741         * lib/unistr/u8-to-u32.c: New file.
69742
69743         * modules/unistr/u16-to-u8: New file.
69744         * lib/unistr/u16-to-u8.c: New file.
69745
69746         * modules/unistr/u16-to-u32: New file.
69747         * lib/unistr/u16-to-u32.c: New file.
69748
69749         * modules/unistr/u32-to-u8: New file.
69750         * lib/unistr/u32-to-u8.c: New file.
69751
69752         * modules/unistr/u32-to-u16: New file.
69753         * lib/unistr/u32-to-u16.c: New file.
69754
69755         * modules/unistr/u8-check: New file.
69756         * modules/unistr/u16-check: New file.
69757         * modules/unistr/u32-check: New file.
69758         * lib/unistr/u8-check.c: New file.
69759         * lib/unistr/u16-check.c: New file.
69760         * lib/unistr/u32-check.c: New file.
69761
69762         * modules/unistr/u8-chr: New file.
69763         * modules/unistr/u16-chr: New file.
69764         * modules/unistr/u32-chr: New file.
69765         * lib/unistr/u8-chr.c: New file.
69766         * lib/unistr/u16-chr.c: New file.
69767         * lib/unistr/u32-chr.c: New file.
69768
69769         * modules/unistr/u8-cmp: New file.
69770         * modules/unistr/u16-cmp: New file.
69771         * modules/unistr/u32-cmp: New file.
69772         * lib/unistr/u8-cmp.c: New file.
69773         * lib/unistr/u16-cmp.c: New file.
69774         * lib/unistr/u32-cmp.c: New file.
69775
69776         * modules/unistr/u8-cpy: New file.
69777         * modules/unistr/u16-cpy: New file.
69778         * modules/unistr/u32-cpy: New file.
69779         * lib/unistr/u8-cpy.c: New file.
69780         * lib/unistr/u16-cpy.c: New file.
69781         * lib/unistr/u32-cpy.c: New file.
69782         * lib/unistr/u-cpy.h: New file.
69783
69784         * modules/unistr/u8-cpy-alloc: New file.
69785         * modules/unistr/u16-cpy-alloc: New file.
69786         * modules/unistr/u32-cpy-alloc: New file.
69787         * lib/unistr/u8-cpy-alloc.c: New file.
69788         * lib/unistr/u16-cpy-alloc.c: New file.
69789         * lib/unistr/u32-cpy-alloc.c: New file.
69790         * lib/unistr/u-cpy-alloc.h: New file.
69791
69792         * modules/unistr/u8-endswith: New file.
69793         * modules/unistr/u16-endswith: New file.
69794         * modules/unistr/u32-endswith: New file.
69795         * lib/unistr/u8-endswith.c: New file.
69796         * lib/unistr/u16-endswith.c: New file.
69797         * lib/unistr/u32-endswith.c: New file.
69798         * lib/unistr/u-endswith.h: New file.
69799
69800         * modules/unistr/u8-mblen: New file.
69801         * modules/unistr/u16-mblen: New file.
69802         * modules/unistr/u32-mblen: New file.
69803         * lib/unistr/u8-mblen.c: New file.
69804         * lib/unistr/u16-mblen.c: New file.
69805         * lib/unistr/u32-mblen.c: New file.
69806
69807         * modules/unistr/u8-mbtouc: New file.
69808         * modules/unistr/u16-mbtouc: New file.
69809         * modules/unistr/u32-mbtouc: New file.
69810         * lib/unistr/u8-mbtouc.c: New file.
69811         * lib/unistr/u16-mbtouc.c: New file.
69812         * lib/unistr/u32-mbtouc.c: New file.
69813
69814         * modules/unistr/u8-mbtouc-safe: New file.
69815         * modules/unistr/u16-mbtouc-safe: New file.
69816         * modules/unistr/u32-mbtouc-safe: New file.
69817         * lib/unistr/u8-mbtouc-safe.c: New file.
69818         * lib/unistr/u16-mbtouc-safe.c: New file.
69819         * lib/unistr/u32-mbtouc-safe.c: New file.
69820
69821         * modules/unistr/u8-move: New file.
69822         * modules/unistr/u16-move: New file.
69823         * modules/unistr/u32-move: New file.
69824         * lib/unistr/u8-move.c: New file.
69825         * lib/unistr/u16-move.c: New file.
69826         * lib/unistr/u32-move.c: New file.
69827         * lib/unistr/u-move.h: New file.
69828
69829         * modules/unistr/u8-next: New file.
69830         * modules/unistr/u16-next: New file.
69831         * modules/unistr/u32-next: New file.
69832         * lib/unistr/u8-next.c: New file.
69833         * lib/unistr/u16-next.c: New file.
69834         * lib/unistr/u32-next.c: New file.
69835
69836         * modules/unistr/u8-prev: New file.
69837         * modules/unistr/u16-prev: New file.
69838         * modules/unistr/u32-prev: New file.
69839         * lib/unistr/u8-prev.c: New file.
69840         * lib/unistr/u16-prev.c: New file.
69841         * lib/unistr/u32-prev.c: New file.
69842
69843         * modules/unistr/u8-set: New file.
69844         * modules/unistr/u16-set: New file.
69845         * modules/unistr/u32-set: New file.
69846         * lib/unistr/u8-set.c: New file.
69847         * lib/unistr/u16-set.c: New file.
69848         * lib/unistr/u32-set.c: New file.
69849         * lib/unistr/u-set.h: New file.
69850
69851         * modules/unistr/u8-startswith: New file.
69852         * modules/unistr/u16-startswith: New file.
69853         * modules/unistr/u32-startswith: New file.
69854         * lib/unistr/u8-startswith.c: New file.
69855         * lib/unistr/u16-startswith.c: New file.
69856         * lib/unistr/u32-startswith.c: New file.
69857         * lib/unistr/u-startswith.h: New file.
69858
69859         * modules/unistr/u8-stpcpy: New file.
69860         * modules/unistr/u16-stpcpy: New file.
69861         * modules/unistr/u32-stpcpy: New file.
69862         * lib/unistr/u8-stpcpy.c: New file.
69863         * lib/unistr/u16-stpcpy.c: New file.
69864         * lib/unistr/u32-stpcpy.c: New file.
69865         * lib/unistr/u-stpcpy.h: New file.
69866
69867         * modules/unistr/u8-stpncpy: New file.
69868         * modules/unistr/u16-stpncpy: New file.
69869         * modules/unistr/u32-stpncpy: New file.
69870         * lib/unistr/u8-stpncpy.c: New file.
69871         * lib/unistr/u16-stpncpy.c: New file.
69872         * lib/unistr/u32-stpncpy.c: New file.
69873         * lib/unistr/u-stpncpy.h: New file.
69874
69875         * modules/unistr/u8-strcat: New file.
69876         * modules/unistr/u16-strcat: New file.
69877         * modules/unistr/u32-strcat: New file.
69878         * lib/unistr/u8-strcat.c: New file.
69879         * lib/unistr/u16-strcat.c: New file.
69880         * lib/unistr/u32-strcat.c: New file.
69881         * lib/unistr/u-strcat.h: New file.
69882
69883         * modules/unistr/u8-strchr: New file.
69884         * modules/unistr/u16-strchr: New file.
69885         * modules/unistr/u32-strchr: New file.
69886         * lib/unistr/u8-strchr.c: New file.
69887         * lib/unistr/u16-strchr.c: New file.
69888         * lib/unistr/u32-strchr.c: New file.
69889
69890         * modules/unistr/u8-strcmp: New file.
69891         * modules/unistr/u16-strcmp: New file.
69892         * modules/unistr/u32-strcmp: New file.
69893         * lib/unistr/u8-strcmp.c: New file.
69894         * lib/unistr/u16-strcmp.c: New file.
69895         * lib/unistr/u32-strcmp.c: New file.
69896
69897         * modules/unistr/u8-strcpy: New file.
69898         * modules/unistr/u16-strcpy: New file.
69899         * modules/unistr/u32-strcpy: New file.
69900         * lib/unistr/u8-strcpy.c: New file.
69901         * lib/unistr/u16-strcpy.c: New file.
69902         * lib/unistr/u32-strcpy.c: New file.
69903         * lib/unistr/u-strcpy.h: New file.
69904
69905         * modules/unistr/u8-strcspn: New file.
69906         * modules/unistr/u16-strcspn: New file.
69907         * modules/unistr/u32-strcspn: New file.
69908         * lib/unistr/u8-strcspn.c: New file.
69909         * lib/unistr/u16-strcspn.c: New file.
69910         * lib/unistr/u32-strcspn.c: New file.
69911         * lib/unistr/u-strcspn.h: New file.
69912
69913         * modules/unistr/u8-strdup: New file.
69914         * modules/unistr/u16-strdup: New file.
69915         * modules/unistr/u32-strdup: New file.
69916         * lib/unistr/u8-strdup.c: New file.
69917         * lib/unistr/u16-strdup.c: New file.
69918         * lib/unistr/u32-strdup.c: New file.
69919         * lib/unistr/u-strdup.h: New file.
69920
69921         * modules/unistr/u8-strlen: New file.
69922         * modules/unistr/u16-strlen: New file.
69923         * modules/unistr/u32-strlen: New file.
69924         * lib/unistr/u8-strlen.c: New file.
69925         * lib/unistr/u16-strlen.c: New file.
69926         * lib/unistr/u32-strlen.c: New file.
69927         * lib/unistr/u-strlen.h: New file.
69928
69929         * modules/unistr/u8-strmblen: New file.
69930         * modules/unistr/u16-strmblen: New file.
69931         * modules/unistr/u32-strmblen: New file.
69932         * lib/unistr/u8-strmblen.c: New file.
69933         * lib/unistr/u16-strmblen.c: New file.
69934         * lib/unistr/u32-strmblen.c: New file.
69935
69936         * modules/unistr/u8-strmbtouc: New file.
69937         * modules/unistr/u16-strmbtouc: New file.
69938         * modules/unistr/u32-strmbtouc: New file.
69939         * lib/unistr/u8-strmbtouc.c: New file.
69940         * lib/unistr/u16-strmbtouc.c: New file.
69941         * lib/unistr/u32-strmbtouc.c: New file.
69942
69943         * modules/unistr/u8-strncat: New file.
69944         * modules/unistr/u16-strncat: New file.
69945         * modules/unistr/u32-strncat: New file.
69946         * lib/unistr/u8-strncat.c: New file.
69947         * lib/unistr/u16-strncat.c: New file.
69948         * lib/unistr/u32-strncat.c: New file.
69949         * lib/unistr/u-strncat.h: New file.
69950
69951         * modules/unistr/u8-strncmp: New file.
69952         * modules/unistr/u16-strncmp: New file.
69953         * modules/unistr/u32-strncmp: New file.
69954         * lib/unistr/u8-strncmp.c: New file.
69955         * lib/unistr/u16-strncmp.c: New file.
69956         * lib/unistr/u32-strncmp.c: New file.
69957
69958         * modules/unistr/u8-strncpy: New file.
69959         * modules/unistr/u16-strncpy: New file.
69960         * modules/unistr/u32-strncpy: New file.
69961         * lib/unistr/u8-strncpy.c: New file.
69962         * lib/unistr/u16-strncpy.c: New file.
69963         * lib/unistr/u32-strncpy.c: New file.
69964         * lib/unistr/u-strncpy.h: New file.
69965
69966         * modules/unistr/u8-strnlen: New file.
69967         * modules/unistr/u16-strnlen: New file.
69968         * modules/unistr/u32-strnlen: New file.
69969         * lib/unistr/u8-strnlen.c: New file.
69970         * lib/unistr/u16-strnlen.c: New file.
69971         * lib/unistr/u32-strnlen.c: New file.
69972         * lib/unistr/u-strnlen.h: New file.
69973
69974         * modules/unistr/u8-strpbrk: New file.
69975         * modules/unistr/u16-strpbrk: New file.
69976         * modules/unistr/u32-strpbrk: New file.
69977         * lib/unistr/u8-strpbrk.c: New file.
69978         * lib/unistr/u16-strpbrk.c: New file.
69979         * lib/unistr/u32-strpbrk.c: New file.
69980         * lib/unistr/u-strpbrk.h: New file.
69981
69982         * modules/unistr/u8-strrchr: New file.
69983         * modules/unistr/u16-strrchr: New file.
69984         * modules/unistr/u32-strrchr: New file.
69985         * lib/unistr/u8-strrchr.c: New file.
69986         * lib/unistr/u16-strrchr.c: New file.
69987         * lib/unistr/u32-strrchr.c: New file.
69988
69989         * modules/unistr/u8-strspn: New file.
69990         * modules/unistr/u16-strspn: New file.
69991         * modules/unistr/u32-strspn: New file.
69992         * lib/unistr/u8-strspn.c: New file.
69993         * lib/unistr/u16-strspn.c: New file.
69994         * lib/unistr/u32-strspn.c: New file.
69995         * lib/unistr/u-strspn.h: New file.
69996
69997         * modules/unistr/u8-strstr: New file.
69998         * modules/unistr/u16-strstr: New file.
69999         * modules/unistr/u32-strstr: New file.
70000         * lib/unistr/u8-strstr.c: New file.
70001         * lib/unistr/u16-strstr.c: New file.
70002         * lib/unistr/u32-strstr.c: New file.
70003         * lib/unistr/u-strstr.h: New file.
70004
70005         * modules/unistr/u8-strtok: New file.
70006         * modules/unistr/u16-strtok: New file.
70007         * modules/unistr/u32-strtok: New file.
70008         * lib/unistr/u8-strtok.c: New file.
70009         * lib/unistr/u16-strtok.c: New file.
70010         * lib/unistr/u32-strtok.c: New file.
70011         * lib/unistr/u-strtok.h: New file.
70012
70013         * modules/unistr/u8-uctomb: New file.
70014         * modules/unistr/u16-uctomb: New file.
70015         * modules/unistr/u32-uctomb: New file.
70016         * lib/unistr/u8-uctomb.c: New file.
70017         * lib/unistr/u16-uctomb.c: New file.
70018         * lib/unistr/u32-uctomb.c: New file.
70019
70020         * MODULES.html.sh (Unicode string functions): Add the new modules.
70021
70022 2007-01-08  Bruno Haible  <bruno@clisp.org>
70023
70024         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
70025         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
70026         subdirectories.
70027
70028 2007-01-08  Karl Berry  <karl@gnu.org>
70029
70030         * doc/error.texi: mention that main() fns must set program_name
70031         when progname is used.
70032
70033 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
70034
70035         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
70036         WCTYPE_H is empty, for the benefit of builds from non-distclean
70037         directories.  Problem reported by Eric Blake in
70038         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
70039
70040 2007-01-08  Bruno Haible  <bruno@clisp.org>
70041
70042         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
70043         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
70044         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
70045         PROVIDE_CANONICALIZE_FILENAME_MODE.
70046         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
70047
70048 2007-01-08  Bruno Haible  <bruno@clisp.org>
70049
70050         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
70051         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
70052         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
70053         * lib/fts.c: Likewise.
70054         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
70055
70056 2006-12-25  Bruno Haible  <bruno@clisp.org>
70057
70058         * modules/utf8-ucs4-safe: New file.
70059         * lib/utf8-ucs4-safe.h: New file.
70060         * lib/unistr/utf8-ucs4-safe.c: New file.
70061
70062         * modules/utf16-ucs4-safe: New file.
70063         * lib/utf16-ucs4-safe.h: New file.
70064         * lib/unistr/utf16-ucs4-safe.c: New file.
70065
70066         * MODULES.html.sh (Unicode string functions): Add the new modules.
70067
70068 2007-01-08  Bruno Haible  <bruno@clisp.org>
70069
70070         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
70071         (Depends-on): Add unitypes.
70072         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
70073         (u8_mbtouc_aux): Move out to separate file.
70074         (u8_mbtouc): Use ucs4_t, uint8_t types.
70075         * lib/unistr/utf8-ucs4.c: New file.
70076
70077         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
70078         (Depends-on): Add unitypes.
70079         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
70080         (u16_mbtouc_aux): Move out to separate file.
70081         (u16_mbtouc): Use ucs4_t, uint16_t types.
70082         * lib/unistr/utf16-ucs4.c: New file.
70083
70084         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
70085         (Depends-on): Add unitypes.
70086         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
70087         (u8_uctomb_aux): Move out to separate file.
70088         (u8_uctomb): Use ucs4_t, uint8_t types.
70089         * lib/unistr/ucs4-utf8.c: New file.
70090
70091         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
70092         (Depends-on): Add unitypes.
70093         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
70094         (u16_uctomb_aux): Move out to separate file.
70095         (u16_uctomb): Use ucs4_t, uint16_t types.
70096         * lib/unistr/ucs4-utf16.c: New file.
70097
70098 2006-12-25  Bruno Haible  <bruno@clisp.org>
70099
70100         * modules/unitypes: New file.
70101         * lib/unitypes.h: New file.
70102         * MODULES.html.sh (func_all_modules): New section "Unicode string
70103         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
70104         this section. Add unitypes.
70105
70106 2007-01-08  Bruno Haible  <bruno@clisp.org>
70107
70108         Avoid variable names that conflict with those from libtool.
70109         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
70110         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
70111         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
70112         library_names_spec to acl_library_names_spec, hardcode_* to
70113         acl_hardcode_*.
70114         Reported by Ralf Wildenhues.
70115
70116 2007-01-08  Bruno Haible  <bruno@clisp.org>
70117
70118         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
70119         definition.
70120         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
70121         definition.
70122         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
70123         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
70124         definition.
70125         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
70126         definition.
70127         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
70128         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
70129         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
70130         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
70131         definition.
70132         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
70133         definition.
70134         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
70135         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
70136         GC_USE_<algorithm>.
70137         * lib/gc-libgcrypt.c: Likewise.
70138         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
70139         * modules/gc-arctwo (configure.ac): Likewise.
70140         * modules/gc-des (configure.ac): Likewise.
70141         * modules/gc-hmac-md5 (configure.ac): Likewise.
70142         * modules/gc-hmac-sha1 (configure.ac): Likewise.
70143         * modules/gc-md2 (configure.ac): Likewise.
70144         * modules/gc-md4 (configure.ac): Likewise.
70145         * modules/gc-md5 (configure.ac): Likewise.
70146         * modules/gc-random (configure.ac): Likewise.
70147         * modules/gc-rijndael (configure.ac): Likewise.
70148         * modules/gc-sha1 (configure.ac): Likewise.
70149
70150 2007-01-08  Bruno Haible  <bruno@clisp.org>
70151
70152         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
70153         macro definition.
70154         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
70155         definition.
70156         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
70157         definition.
70158         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
70159         * modules/fcntl-safer (configure.ac): Likewise.
70160         * modules/fopen-safer (configure.ac): Likewise.
70161         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
70162         GNULIB_FWRITEERROR macro definition.
70163
70164 2007-01-08  Bruno Haible  <bruno@clisp.org>
70165
70166         * m4/gnulib-common.m4: New file.
70167         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
70168         (func_get_filelist): Add m4/gnulib-common.m4.
70169
70170 2007-01-08  Bruno Haible  <bruno@clisp.org>
70171
70172         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
70173         command.
70174
70175 2007-01-08  Jim Meyering  <jim@meyering.net>
70176
70177         Use a more robust test for a "can't happen" condition.
70178         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
70179         narrowed the st_size value.  Presuming the "can't happen" condition
70180         is true, that narrowing could conceivably convert an invalid st_size
70181         value into a valid one.  Instead, use a change based on Matthew
70182         Woehlke's original patch.
70183
70184         Slight readability improvement: use an assert-like macro
70185         in place of literal "abort ()" uses.
70186         * lib/fts.c (fts_assert): Define.
70187         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
70188         Use this macro instead of a bare 'abort'.
70189
70190 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
70191
70192         Don't worry about using IRIX 5.3's wctype.h broken definitions;
70193         simply work around them.
70194         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
70195         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
70196         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
70197         declaring.
70198         Don't bother to define as macros, since the standard doesn't require it.
70199         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
70200         longer worry about IRIX 5.3.
70201         (HAVE_WCTYPE_CTMP_BUG): Remove.
70202
70203 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
70204
70205         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
70206         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
70207         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
70208         Problems reported by Georg Schwarz for IRIX 5.3.
70209
70210         * gnulib-tool (autoconf_minversion): Take the maximum version number
70211         found, not the minimum.  Problem reported by James Youngman.
70212
70213 2007-01-03  Karl Berry  <karl@gnu.org>
70214
70215         * doc/error.texi: new file, explaining interaction with progname.
70216         * doc/gnulib.texi: include it.  Update copyright.
70217
70218 2007-01-03  Simon Josefsson  <simon@josefsson.org>
70219
70220         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
70221         AC_CANONICAL_HOST, to improve autobuild outputs.
70222
70223 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
70224             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
70225
70226         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
70227         sockets, server sockets, and other file descriptors.  Count errors
70228         to compute the return value.  Reorder the code a bit to be easier
70229         to follow.  Don't set event bits that were not requested (except
70230         POLLERR and POLLHUP).
70231
70232 2007-01-01  Bruno Haible  <bruno@clisp.org>
70233
70234         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
70235
70236 2007-01-03  Jim Meyering  <jim@meyering.net>
70237
70238         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
70239
70240 2007-01-02  Bruno Haible  <bruno@clisp.org>
70241
70242         * modules/settime (Include): Require timespec.h.
70243         * modules/nanosleep (Include): Likewise.
70244
70245 2007-01-01  Bruno Haible  <bruno@clisp.org>
70246
70247         * gnulib-tool (func_emit_copyright_notice): Bump year.
70248         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
70249
70250 2007-01-01  Bruno Haible  <bruno@clisp.org>
70251
70252         Improve support for OpenBSD.
70253         * build-aux/config.rpath (libname_spec): Export.
70254         (library_names_spec): New variable. Export.
70255         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
70256         library_names_spec from the config.rpath output. Locate shared library
70257         through the name pattern in library_names_spec.
70258
70259 2007-01-01  Eric Blake  <ebb9@byu.net>
70260
70261         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
70262
70263 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
70264
70265         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
70266         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
70267         assume the C locale, and avoid an "eval" that could cause trouble.
70268         Problem with SORT reported by Bob Proulx.
70269
70270         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
70271         Define.  Trivial patch from Henning Nielsen Lund, originally
70272         sent to bug-grep@gnu.org today.
70273
70274 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
70275
70276         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
70277         struct stat.  Problem reported by Henning Nielsen Lund.
70278         * lib/acl.c: Include acl.h first, to check interface.  Don't
70279         bother to include sys/types.h and sys/stat.h again.
70280
70281 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
70282
70283         Import the following change from libc; problem reported by
70284         Sven Verdoolaege.
70285
70286         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
70287
70288         [BZ #1373]
70289         * lib/argp.h: Remove __NTH for __argp_usage inline function.
70290
70291 2006-12-28  Jim Meyering  <jim@meyering.net>
70292
70293         * build-aux/announce-gen: Do not assume that the package
70294         builds any of tar.gz, tar.bz2, and .xdelta files.
70295         Suggestion from Simon Josefsson.
70296
70297 2006-12-28  Simon Josefsson  <simon@josefsson.org>
70298
70299         * modules/announce-gen: New file.
70300
70301 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
70302
70303         * lib/mbchar.h: Just include <wctype.h>; the wctype module
70304         handles its gotchas now.
70305         * lib/mbswidth.c: Likewise.
70306         * lib/wcwidth.h: Likewise.
70307         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
70308         and iswcntrl; the wctype module does this stuff now.
70309         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
70310         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
70311         * modules/mbchar (Depends-on): Add wctype.
70312         * modules/mbswidth (Depends-on): Likewise.
70313         * modules/wcwidth (Depends-on): Likewise.
70314
70315 2006-12-27  Eric Blake  <ebb9@byu.net>
70316
70317         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
70318         module uses more than what <wctype.h> is required to provide.
70319
70320 2006-12-26  Eric Blake  <ebb9@byu.net>
70321
70322         * gnulib-tool (sed_extract_prog): Avoid space-tab.
70323
70324 2006-12-26  Eric Blake  <ebb9@byu.net>
70325
70326         * modules/absolute-header: New module.
70327         * modules/fcntl (Depends-on): Depend on it.
70328         * modules/inttypes (Depends-on): Likewise.
70329         * modules/stdint (Depends-on): Likewise.
70330         * modules/sys_stat (Depends-on): Likewise.
70331         * modules/wctype (Depends-on): Likewise.
70332         * MODULES.html.sh (Support for building libraries and
70333         executables): Document it.
70334
70335 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
70336
70337         * gnulib-tool (SED): Remove, undoing previous change.
70338         The problem was that it broke coreutils on Solaris, because
70339         "sed --posix" leaked into a makefile.
70340         (sed): New alias, if 'alias' and GNU sed.
70341
70342 2006-12-24  Jim Meyering  <jim@meyering.net>
70343
70344         Work around an fchownat bug in glibc-2.4:
70345         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
70346         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
70347         in spite of the -P option.
70348         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
70349         New macros.
70350         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
70351         * modules/openat (Files): Add lib/fchownat.c.
70352         * lib/openat.c (fchownat): Don't define here.  Move to...
70353         * lib/fchownat.c: ...this new file.
70354
70355 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
70356
70357         Fix bug reported by Bruno Haible in
70358         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
70359         where quotearg.c didn't compile on Mac OS X 10.2 because it
70360         lacks <wchar.h> and wint_t.
70361         * lib/wctype_.h (__wctype_wint_t): New type.
70362         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
70363         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
70364         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
70365         Arg is now of type __wctype_wint_t, not wint_t.
70366         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
70367         substitute HAVE_WINT_T.
70368         * modules/wctype (Files): Add m4/wint_t.m4.
70369         (wctype.h): Substitute HAVE_WINT_T.
70370
70371 2006-12-23  Bruno Haible  <bruno@clisp.org>
70372
70373         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
70374
70375 2006-12-23  Bruno Haible  <bruno@clisp.org>
70376
70377         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
70378         S_ISLNK.
70379         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
70380         mingw.
70381
70382 2006-12-22  Bruno Haible  <bruno@clisp.org>
70383
70384         * lib/copy-file.c: Include acl.h.
70385         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
70386         Close the file descriptors only after being done with copy_acl.
70387         * modules/copy-file (Depends-on): Add acl.
70388
70389 2006-12-22  Bruno Haible  <bruno@clisp.org>
70390
70391         * gnulib-tool (SED): New variable.
70392         Use $SED instead of sed everywhere.
70393
70394 2006-12-22  Bruno Haible  <bruno@clisp.org>
70395
70396         * modules/no-c++: New file.
70397         * m4/no-c++.m4: New file.
70398         * MODULES.html.sh (Support for building libraries and executables):
70399         Add no-c++.
70400
70401 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
70402
70403         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
70404         Include <limits.h>, and use its INT_MAX to rewrite the
70405         j loop so that it does not overflow 'int'.  Problem reported by
70406         Ralf Wildenhues in
70407         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
70408         Play it safe by shifting left by 1 rather than multiplying by 2,
70409         as GCC is less likely to optimize this away when the value
70410         is signed (when it assumes overflow leads to undefined behavior).
70411         Also, don't assume time_t uses two's complement.
70412
70413 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
70414
70415         * MODULES.html.sh: New module wctype.
70416         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
70417         * lib/fnmatch.c: Don't bother to include <wchar.h> before
70418         <wctype.h>, since the new wctype module should fix this.
70419         * lib/quotearg.c: Include <wctype.h> unconditionally, since
70420         the wctype module should arrange for it.
70421         * lib/regex_internal.h: Likewise.
70422         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
70423         since the wctype module should handle this now.
70424         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
70425         * modules/fnmatch (Depends-on): Add wctype.
70426         * modules/quotearg (Depends-on): Likewise.
70427         * modules/regex (Depends-on): Likewise.
70428
70429 2006-12-19  Bruno Haible  <bruno@clisp.org>
70430
70431         * lib/strdup.h [C++]: Wrap definitions in extern "C".
70432         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
70433
70434 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70435
70436         * modules/savewd (Depends-on): Fix dependency on fcntl.
70437
70438 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
70439
70440         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
70441         conforms to C99, rather than relying on the user's environment
70442         setting of STDINT_H.
70443
70444 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
70445         and Eric Blake  <ebb9@byu.net>
70446
70447         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
70448         This is more consistent with the other defines here.
70449         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
70450         Port to z/OS.  Problem reported by Paul Gilmartin.
70451         Change local vars to use gl_ prefix rather than ac_.
70452         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
70453         with other defines.
70454         * modules/double-slash-root: New module.
70455         * modules/dirname (Files): Remove m4/double-slash-root.m4.
70456         (Depends-on): Add double-slash-root.
70457         * MODULES.html.sh (File system functions): Mention new module.
70458
70459 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
70460
70461         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
70462         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
70463         This is for the benefit of gzip, which doesn't do i18n.
70464
70465 2006-12-12  Jim Meyering  <jim@meyering.net>
70466
70467         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
70468         Reported by Andreas Schwab <schwab@suse.de>.
70469
70470 2006-12-12  Bruno Haible  <bruno@clisp.org>
70471
70472         Merge these changes.
70473         2006-09-05  Bruno Haible  <bruno@clisp.org>
70474         * lib/iconvme.c (iconv_string): No need to save and restore errno when
70475         iconv_alloc succeeded.
70476         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
70477         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
70478         test for " && dest " at the end - dest is always != NULL there. Call
70479         iconv with 4xNULL arguments initially, to reset the state. Call iconv
70480         with 2xNULL arguments, also to flush the state storage. Handle the
70481         IRIX iconv behaviour. Realloc the final result, to throw away unused
70482         memory.
70483
70484 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
70485
70486         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
70487         and fchmodat unconditionally, since glibc 2.4 has them.
70488         Problem reported by Arkadiusz Miskiewicz.
70489
70490 2006-12-10  Bruno Haible  <bruno@clisp.org>
70491
70492         * gnulib-tool (func_import): Show the include files only for those
70493         modules that are copied and specified.
70494         Reported by Karl Berry.
70495
70496 2006-12-08  Jim Meyering  <jim@meyering.net>
70497
70498         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
70499         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
70500
70501         * build-aux/announce-gen: Add two new options, both optional:
70502         --bootstrap-tools=TOOL_LIST
70503               a comma-separated list of tools, e.g.,
70504               autoconf,automake,bison,gnulib
70505         --gnulib-snapshot-date=DATE
70506               if gnulib is in the bootstrap tool list,
70507               then report this as the snapshot date.
70508               If not specified, use the current date/time.
70509               If you specify a date here, be sure it's UTC.
70510
70511 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70512
70513         * tests/test-argp-2.sh: Fix test to match actual output.
70514         (func_compare): Fix sed script to be portable.
70515
70516 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
70517
70518         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
70519         workaround for this case.  It is not autoconfigured now; offhand
70520         it's hard to see how to autoconfigure it.
70521
70522 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
70523
70524         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
70525         a directory that is about to be chowned.  Such a directory's
70526         initial file permissions should permit the owner only and this
70527         should not be changed until after the chown, since the group and
70528         other bits would be incorrect if they granted permission before
70529         the chown.
70530
70531         Fix porting problem for iswctype reported by Georg Schwarz in:
70532         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
70533         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
70534         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
70535         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
70536         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
70537
70538 2006-12-03  Jim Meyering  <jim@meyering.net>
70539
70540         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
70541         p->fts_statp may not yet be defined.
70542         (fts_read): Instead, set it in the caller, once p->fts_statp is
70543         sure to be defined, and corresponds to a top-level directory.
70544         This bug made du -x fail.  Here's the coreutils test case:
70545         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
70546         Reported by Mike Frysinger.
70547
70548 2006-12-01  Jim Meyering  <jim@meyering.net>
70549
70550         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
70551         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
70552         Reported by Simon Josefsson.
70553
70554 2006-11-30  Jim Meyering  <jim@meyering.net>
70555
70556         * m4/warning.m4: Use the all-permissive copyright notice
70557         recommended by RMS (rather than LGPL).
70558         * m4/vararrays.m4: Likewise.
70559         * m4/flexmember.m4: Likewise.
70560
70561 2006-11-29  Bruno Haible  <bruno@clisp.org>
70562
70563         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
70564         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
70565         using +=.
70566         Reported by Simon Josefsson <simon@josefsson.org>.
70567
70568 2006-11-28  James Youngman <jay@gnu.org>
70569
70570         * README: Advise users that they might find the bug-gnulib@gnu.org
70571         and autotools-announce@gnu.org mailing lists useful.
70572
70573 2006-11-28  Bruno Haible  <bruno@clisp.org>
70574
70575         * m4/ptrdiff_max.m4: Remove file.
70576
70577 2006-11-21  Bruno Haible  <bruno@clisp.org>
70578
70579         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
70580         _AC_COMPUTE_INT.
70581         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70582         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
70583         _AC_COMPUTE_INT.
70584         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70585         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
70586         _AC_COMPUTE_INT.
70587         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70588
70589 2006-11-28  Jim Meyering  <jim@meyering.net>
70590
70591         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
70592         warning from "gcc -Wshadow" about shadowing the builtin.
70593
70594 2006-11-27  Bruno Haible  <bruno@clisp.org>
70595
70596         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
70597         _AC_COMPUTE_INT.
70598         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
70599
70600 2006-11-27  Bruno Haible  <bruno@clisp.org>
70601             Paul Eggert  <eggert@cs.ucla.edu>
70602
70603         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
70604
70605 2006-11-26  Bruno Haible  <bruno@clisp.org>
70606
70607         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
70608         noinst_LTLIBRARIES.
70609
70610 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
70611             Bruno Haible  <bruno@clisp.org>
70612
70613         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
70614         if compiling with "gcc -ansi".
70615
70616 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
70617
70618         Fix some incompatibilities with gcc -ansi -pedantic.
70619         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
70620         if compiling pedantically with GCC, unless it's C99 or later.
70621         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
70622         it mishandles gcc -ansi -pedantic as well.
70623         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
70624         if gcc -pedantic.
70625         * lib/regexec.c (check_node_accept_bytes): Don't use auto
70626         initializers for struct if -pedantic, unless it's C99 or later.
70627
70628 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
70629
70630         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
70631         Don't close an fd more than once. Identical atimes indicate
70632         success, not failure.
70633
70634 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
70635
70636         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
70637
70638 2006-11-23  Jim Meyering  <jim@meyering.net>
70639
70640         * build-aux/announce-gen: New file.  From coreutils.
70641
70642 2006-11-22  Jim Meyering  <jim@meyering.net>
70643
70644         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
70645         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
70646         (fts_read): Use a temporary to narrow the overused st_size member
70647         before using it in a switch statement.  Reported by Matthew Woehlke.
70648
70649         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
70650         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
70651
70652 2006-11-20  Bruno Haible  <bruno@clisp.org>
70653
70654         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
70655         changequote instead of pairs of brackets.
70656         Reported by Andreas Schwab <schwab@suse.de>.
70657
70658 2006-11-21  Jim Meyering  <jim@meyering.net>
70659
70660         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
70661         so as to remain compatible with older compilers.
70662         Patch from Michael Deutschmann.
70663
70664 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
70665
70666         * MODULES.html.sh (File system functions): Add openat.
70667
70668         * lib/openat.h (rpl_fstatat): New macro, if
70669         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
70670         (fstatat): Define to rpl_fstatat under the same conditions,
70671         unless COMPILING_FSTATAT.
70672         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
70673         seems to have the bug.
70674         * lib/fstatat.c: New file.
70675         * modules/openat (Files): Add it.
70676
70677 2006-11-20  Bruno Haible  <bruno@clisp.org>
70678
70679         * Makefile: New file.
70680
70681 2006-11-20  Jim Meyering  <jim@meyering.net>
70682
70683         The beginnings of syntax-related checks for gnulib.
70684         * lib/Makefile: New file.
70685         * lib/t-idcache: New script.  Ensure that the two halves of
70686         idcache.c stay in sync.
70687
70688         * lib/idcache.c: Adjust comments in user- and group- portions to
70689         be more accurate, and to be consistent with one another.
70690
70691 2006-11-20  Jim Meyering  <jim@meyering.net>
70692
70693         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
70694         continue using the flexible array member (thus, this module performs
70695         half as many malloc calls), with the addition that...
70696         (getgroup, getuser): Consistently record a non-match via an empty
70697         "name" string, and map an empty string match to a NULL return value.
70698         * modules/idcache (Depends-on): Re-add flexmember.
70699
70700         * lib/idcache.c (getuser): Remove all uses of the register keyword.
70701         (getuidbyname, getgroup, getgidbyname): Likewise.
70702
70703         Use cleaner syntax: NULL rather than 0.
70704         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
70705
70706 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
70707
70708         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
70709         It mishandled the case where the group was missing.
70710         Problem reported by Greg Schafer.
70711         * modules/idcache: Likewise.
70712
70713 2006-11-18  Jim Meyering  <jim@meyering.net>
70714
70715         * check-module (%exempt_header): Add exception for some
70716         conditionally-included headers.
70717
70718         * modules/i-ring (Depends-on): Add verify.
70719         (License): Change to LGPL.
70720
70721 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
70722
70723         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
70724         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
70725         and inttostr.h.  Use snprintf rather than uinttostr, so that
70726         LGPLed code doesn't depend on GPLed.
70727
70728 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
70729
70730         * modules/inline (License): Change from GPL to LGPL.
70731
70732 2006-11-17  Jim Meyering  <jim@meyering.net>
70733
70734         * modules/d-type (License): Switch to LGPL.
70735
70736 2006-11-15  Bruno Haible  <bruno@clisp.org>
70737
70738         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
70739
70740 2006-11-15  Eric Blake  <ebb9@byu.net>
70741
70742         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
70743         the module dependency.
70744
70745 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
70746             Bruno Haible  <bruno@clisp.org>
70747
70748         * gnulib-tool (func_create_testdir): Add license consistency check.
70749
70750 2006-11-15  Eric Blake  <ebb9@byu.net>
70751
70752         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
70753         random "(cached)" in configure output.
70754
70755 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70756
70757         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
70758         test for conforming inttypes.h is both announced and cached.
70759
70760         * MODULES.html.sh (seen_modules, seen_files): New variables.
70761         (func_module): Rewrite to use a few less gnulib-tool and sed
70762         invocations.  Avoid a couple of quadratic algorithms for ...
70763         (missed_modules, missed_files): ... these, with ...
70764         (func_append, func_tmpdir): ... these new functions, from
70765         gnulib-tool.  Analogously, install traps for cleanup.
70766
70767         * tests/test-gc.c (main): Remove unused variables.
70768         * tests/test-read-file.c: Include stdlib.h, for 'free'.
70769
70770 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
70771
70772         * modules/inttostr (License): Change to LGPL.
70773
70774 2006-11-14  Eric Blake  <ebb9@byu.net>
70775
70776         * modules/tempname (License): Change to LGPL.
70777
70778 2006-11-14  Eric Blake  <ebb9@byu.net>
70779
70780         * doc/functions.texi (Function Portability): *printf functions on
70781         Cygwin now understand all POSIX size specifiers.
70782
70783 2006-11-14  Bruno Haible  <bruno@clisp.org>
70784
70785         * modules/c-ctype (License): Change to LGPL.
70786
70787 2006-11-12  Bruno Haible  <bruno@clisp.org>
70788
70789         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
70790         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
70791         for GNOME libraries, for which the include files are installed in
70792         subdirectories of $prefix/include.
70793
70794 2006-11-12  Bruno Haible  <bruno@clisp.org>
70795
70796         * m4/lib-link.m4: Require at least autoconf-2.54.
70797         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
70798         name to underscores for the --with option.
70799
70800 2006-11-13  Bruno Haible  <bruno@clisp.org>
70801
70802         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
70803         the tests directory.
70804         Reported by Ralf Wildenhues.
70805
70806 2006-11-13  Bruno Haible  <bruno@clisp.org>
70807
70808         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
70809         (func_emit_initmacro_end): Undo the override here.
70810         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
70811         Works around the famous automake error in coreutils.
70812
70813 2006-11-13  Eric Blake  <ebb9@byu.net>
70814
70815         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
70816         element, not its node.
70817
70818 2006-11-12  Bruno Haible  <bruno@clisp.org>
70819
70820         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
70821         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
70822
70823 2006-11-12  Bruno Haible  <bruno@clisp.org>
70824
70825         * gnulib-tool: New option --local-symlink.
70826         (func_usage): Document it.
70827         (lsymbolic): New variable.
70828         (func_import, func_create_testdir): If --symlink was not specified,
70829         test whether --local-symlink was specified and the file comes from
70830         the local_gnulib_dir.
70831
70832 2006-11-12  Bruno Haible  <bruno@clisp.org>
70833
70834         * gnulib-tool (func_ln): New function.
70835         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
70836
70837 2006-11-12  Bruno Haible  <bruno@clisp.org>
70838
70839         Finish support for source files in subdirectories.
70840         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
70841         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
70842         AUTOMAKE_OPTIONS.
70843         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
70844
70845 2006-11-12  Bruno Haible  <bruno@clisp.org>
70846
70847         * gnulib-tool (func_get_automake_snippet): Synthesize also an
70848         EXTRA_lib_SOURCES augmentation.
70849         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
70850
70851 2006-11-12  Jim Meyering  <jim@meyering.net>
70852
70853         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
70854         file descriptors.  This also averts a failure on systems with
70855         native openat support when a traversed directory lacks "x" access.
70856         * lib/fts_.h: Include "i-ring.h"
70857         (struct FTS) [fts_fd_ring]: New member.
70858         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
70859         (FCHDIR): Add parentheses.
70860         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
70861         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
70862         When descending, rather than simply closing the previous
70863         fts_cwd_fd value, push that file descriptor onto the ring.
70864         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
70865         (fts_open): Initialize the new fd_ring member.
70866         (fts_close): Clear the ring.
70867         (fts_safe_changedir): When possible, use our new fd_ring to skip
70868         the diropen and fstat and dev/ino comparison that would normally
70869         accompany a virtual `chdir ("..")'.
70870
70871         * modules/fts (Depends-on): Add i-ring.
70872         * modules/i-ring: New module.
70873         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
70874         * m4/i-ring.m4: New file.
70875
70876 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70877
70878         * gnulib-tool (func_create_testdir): Fix replacement of
70879         `build-aux' in configure.ac.  Run autotools in gltests
70880         subdirectory.
70881         (func_create_testdir, func_create_megatestdir, test): There is
70882         no need for '--force' in most autotool invocations in a new
70883         tree.  Actually fail the whole test if any of the tools, or the
70884         configure or make stages fail.
70885
70886         Sync from Automake.
70887         * build-aux/gnupload: Revert last change.  Add pointer to upload
70888         instructions of the GNU Maintenance Instructions.
70889         Suggestion by Karl Berry.
70890
70891 2006-11-10  Jim Meyering  <jim@meyering.net>
70892
70893         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
70894
70895 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
70896
70897         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
70898         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
70899         (bind_textdomain_codeset) [! ENABLE_NLS]:
70900         Evaluate all the arguments.  That way, callers get compatible behavior
70901         if the arguments have side effects.  Also, it avoids some GCC
70902         diagnostics in some cases; Joel E. Denny reported problems when Bison
70903         was configured with --enable-gcc-warnigs.
70904
70905 2006-11-10  Jim Meyering  <jim@meyering.net>
70906
70907         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
70908         relevant options in CFLAGS (like -O, -fno-inline) are taken into
70909         account.
70910
70911 2006-11-10  Jim Meyering  <jim@meyering.net>
70912
70913         * modules/inline: New file/module.
70914         * modules/xalloc (Files): Remove m4/inline.m4.
70915         (Depends-on): Add inline, instead.
70916         * modules/oset: Likewise.
70917         * modules/list: Likewise.
70918
70919 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
70920
70921         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
70922         Problem reported by Matthew Woehlke.
70923
70924 2006-11-09  Bruno Haible  <bruno@clisp.org>
70925
70926         * lib/tempname.c (gen_tempname): Remove variant that invokes
70927         __gen_tempname.
70928         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
70929         __gen_tempname.
70930
70931 2006-11-08  Bruno Haible  <bruno@clisp.org>
70932
70933         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
70934         to 'yes' instead of 'cross-compiling'.
70935
70936 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
70937
70938         * lib/quotearg.h (quotearg_free): New decl.
70939         * lib/quotearg.c (quotearg_free): New function.
70940         (slot0, nslots, slotvec0, slotvec):
70941         Now file-scope so that quotearg_free can get at them.
70942
70943 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70944
70945         Sync from Automake.
70946         * build-aux/gnupload: Add missing 'gnu' to example URL.
70947         Report by Karl Berry.
70948
70949 2006-11-08  Bruno Haible  <bruno@clisp.org>
70950
70951         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
70952         Suggested by Paul Eggert.
70953
70954 2006-11-08  Jim Meyering  <jim@meyering.net>
70955
70956         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
70957         It's already included if !_LIBC.
70958         (fts_safe_changedir): Add a comment.
70959
70960 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
70961
70962         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
70963         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
70964         Matthew Woehlke.
70965
70966         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
70967         definitions up, to avoid colliding with change below.
70968         (static_inline) [HAVE_INLINE]: New macro.
70969         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
70970         Provide extern decls when !HAVE_INLINE.  Do not define unless
70971         static_inline is defined, either by us or by xmalloc.c.  Use
70972         static_inline rather than static inline.
70973         (XCALLOC): Optimize sizeof(T) = 1 case.
70974         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
70975
70976 2006-11-07  Bruno Haible  <bruno@clisp.org>
70977
70978         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
70979         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
70980         AC_C_INLINE.
70981         * modules/xalloc (Files): Add m4/inline.m4.
70982
70983 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70984
70985         * README: Fix typo.
70986         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
70987         (Miscellanous Notes): ...from this.
70988
70989 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
70990
70991         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
70992         Mention that offsetof should be used instead of sizeof.
70993         From Bruno Haible.
70994
70995 2006-11-07  Bruno Haible  <bruno@clisp.org>
70996
70997         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
70998
70999 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
71000
71001         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
71002         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
71003         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
71004         (gl_tree_add_before, gl_tree_add_after):
71005         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
71006         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
71007         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
71008         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
71009         (gl_linked_add_after, gl_linked_add_at): Likewise.
71010         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
71011         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
71012         (gl_tree_add_before, gl_tree_add_after): Likewise.
71013         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
71014         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
71015         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
71016
71017 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71018
71019         * lib/gl_oset.h: Use C comment style, not C++ comment style.
71020
71021 2006-11-06  Bruno Haible  <bruno@clisp.org>
71022
71023         * m4/inline.m4: New file.
71024         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
71025         * modules/list (Files): Add m4/inline.m4.
71026         * modules/oset (Files): Likewise.
71027
71028 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
71029
71030         * lib/idcache.c: Include <stddef.h>, for offsetof.
71031         (struct userid.name): Change from char * to a flexible array member.
71032         All uses changed.
71033         * modules/idcache (Depends-on): Add flexmember.
71034
71035         * MODULES.html.sh (Core language properties): New module flexmember.
71036         * modules/flexmember, m4/flexmember.m4: New files.
71037
71038         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
71039         inline functions that are identical with the old xnmalloc_inline,
71040         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
71041         that we can avoid some unnecessary integer multiplications and
71042         divisions in the common case where the element size is known at
71043         compile time.
71044         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
71045         needed.
71046         (xnboundedmalloc): Remove.
71047         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
71048         arguments, for consistency with rest of this header.
71049         (xcharalloc): Rewrite using XNMALLOC.
71050         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
71051         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
71052         versions have been moved to lib/xalloc.h and renamed to be the
71053         non-*_inline versions.
71054         (xmalloc, xrealloc): Implement without reference to the xnmalloc
71055         and xnrealloc functions, since those functions are now inline and
71056         now call us.
71057         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
71058         renaming described above.
71059         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
71060         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
71061         captures the dependency in AC_C_INLINE.
71062
71063         New module canonicalize-lgpl, proposed by Charles Wilson in
71064         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
71065         with a few small changes afterwards.
71066         * MODULES.html.sh (File system functions): New module
71067         canonicalize-lgpl.
71068         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
71069         and canonicalize_file_name.
71070         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
71071         * modules/canonicalize-lgpl: New files.
71072
71073 2006-11-05  Bruno Haible  <bruno@clisp.org>
71074
71075         * gnulib-tool (func_import, func_create_testdir): Create directories
71076         also for files in subdirectories of lib/.
71077
71078 2006-11-05  Bruno Haible  <bruno@clisp.org>
71079
71080         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
71081         ANSI C compliant.
71082
71083 2006-11-03  Bruno Haible  <bruno@clisp.org>
71084
71085         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
71086         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
71087         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
71088         (xnboundedmalloc): New inline function.
71089         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
71090         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
71091         xmalloc.
71092         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
71093         xmalloc.
71094         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
71095         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
71096         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
71097         xmalloc.
71098         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
71099         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
71100         xmalloc.
71101         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
71102         gl_tree_add_after): Use XMALLOC instead of xmalloc.
71103         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
71104         xmalloc.
71105         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
71106         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
71107         gl_tree_add_after): Use XMALLOC instead of xmalloc.
71108         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
71109         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
71110         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
71111         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
71112
71113 2006-11-03  Bruno Haible  <bruno@clisp.org>
71114
71115         * lib/c-ctype.h [C++]: Define functions without name mangling.
71116         * lib/fwriteerror.h [C++]: Likewise.
71117         * lib/gcd.h [C++]: Likewise.
71118         * lib/linebreak.h [C++]: Likewise.
71119
71120 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
71121
71122         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
71123         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
71124         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
71125         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
71126         Check for functions and headers just once.
71127         Check for declaration of canonicalize_file_name.
71128         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
71129
71130 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
71131
71132         * gnulib-tool (func_import): Fix typo in actioncmd.
71133
71134 2006-11-02  Bruno Haible  <bruno@clisp.org>
71135
71136         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
71137         newline sequence in the Makefile.am snippet as a space, like "make"
71138         does.
71139         Reported by Roger Persson <perrog@gmail.com>.
71140
71141 2006-11-01  Bruno Haible  <bruno@clisp.org>
71142
71143         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
71144         already declared in <string.h>.
71145         * lib/strcase.h (strncasecmp): Don't declare it if yes.
71146
71147 2006-11-01  Bruno Haible  <bruno@clisp.org>
71148
71149         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
71150         * lib/strcase.h: Include <string.h>.
71151         (strcasecmp): Define to rpl_strcasecmp here.
71152
71153 2006-11-01  Bruno Haible  <bruno@clisp.org>
71154
71155         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
71156
71157 2006-11-01  Eric Blake  <ebb9@byu.net>
71158
71159         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
71160
71161         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
71162
71163 2006-10-29  Bruno Haible  <bruno@clisp.org>
71164
71165         Make it compile in C++ mode.
71166         * lib/full-write.c (full_rw): Add a cast.
71167
71168 2006-11-01  Bruno Haible  <bruno@clisp.org>
71169
71170         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
71171         be POSIX compliant.
71172         Reported by Roger Persson <perrog@gmail.com>.
71173
71174 2006-11-01  Eric Blake  <ebb9@byu.net>
71175
71176         * lib/getopt_.h: Fix comments.
71177
71178 2006-10-31  Eric Blake  <ebb9@byu.net>
71179
71180         * modules/tmpdir (Depends-on): Add sys_stat.
71181         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
71182         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
71183         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
71184         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
71185         tempname.
71186
71187 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
71188
71189         Avoid some C++ diagnostics reported by Bruno Haible.
71190         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
71191         xmalloc.
71192         (quotearg_alloc): Use xcharalloc rather than xmalloc.
71193         (struct slotvec): Move to top level.
71194         (quotearg_n_options): Rewrite to avoid xmalloc.
71195         * lib/xalloc.h (xcharalloc): New function.
71196         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
71197         [defined __cplusplus]: Add function template that provides result
71198         type propagation.  This part of the change is from Bruno Haible.
71199
71200 2006-10-29  Bruno Haible  <bruno@clisp.org>
71201
71202         Make it compile in C++ mode.
71203         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
71204         * lib/strnlen1.c (strnlen1): Cast memchr result.
71205         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
71206         * lib/clean-temp.c (string_equals, string_hash): Add casts.
71207         (create_temp_dir): Rename local variable 'template'.
71208         (compile_csharp_using_sscli): Add cast.
71209         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
71210         * lib/findprog.c (find_in_path): Likewise.
71211         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
71212         * lib/wait-process.c (register_slave_subprocess): Likewise.
71213
71214 2006-10-22  Bruno Haible  <bruno@clisp.org>
71215
71216         * modules/tsearch: New file.
71217         * lib/tsearch.h: New file.
71218         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
71219         * m4/tsearch.m4: New file.
71220         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
71221
71222 2006-10-29  Eric Blake  <ebb9@byu.net>
71223
71224         * lib/arcfour.c: Assume config.h.
71225         * lib/arctwo.c: Likewise.
71226         * lib/base64.c: Likewise.
71227         * lib/check-version.c: Likewise.
71228         * lib/crc.c: Likewise.
71229         * lib/des.c: Likewise.
71230         * lib/gc-gnulib.c: Likewise.
71231         * lib/gc-libgcrypt.c: Likewise.
71232         * lib/gc-pbkdf2-sha1.c: Likewise.
71233         * lib/getaddrinfo.c: Likewise.
71234         * lib/getdelim.c: Likewise.
71235         * lib/getline.c: Likewise.
71236         * lib/hmac-md5.c: Likewise.
71237         * lib/hmac-sha1.c: Likewise.
71238         * lib/iconvme.c: Likewise.
71239         * lib/md2.c: Likewise.
71240         * lib/md4.c: Likewise.
71241         * lib/memxor.c: Likewise.
71242         * lib/read-file.c: Likewise.
71243         * lib/readline.c: Likewise.
71244         * lib/rijndael-alg-fst.c: Likewise.
71245         * lib/rijndael-api-fst.c: Likewise.
71246         * lib/xgetdomainname.c: Likewise.
71247
71248 2006-10-28  Eric Blake  <ebb9@byu.net>
71249
71250         * lib/xstrndup.c: Assume config.h.
71251
71252 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
71253
71254         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
71255         stat-macros.h is now for our own macros, whereas stat_h is for
71256         macros in the <sys/stat.h> name space.
71257         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
71258         (STAT_MACROS_H): Remove.
71259         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
71260         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
71261         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
71262         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
71263         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
71264         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
71265         Move these macros to ...
71266         * lib/stat_.h: here.  Don't include stat-macros.h.
71267         * lib/canonicalize.c: Don't include stat-macros.h.
71268         * lib/chown.c: Likewise.
71269         * lib/euidaccess.c: Likewise.
71270         * lib/file-type.c: Likewise.
71271         * lib/filemode.c: Likewise.
71272         * lib/glob.c: Likewise.
71273         * lib/isapipe.c: Likewise.
71274         * lib/lchown.c: Likewise.
71275         * lib/lstat.c: Likewise.
71276         * lib/mkdir-p.c: Likewise.
71277         * lib/rmdir.c: Likewise.
71278         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
71279         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
71280         unless mkdir isn't declared, to speed up 'configure'.
71281         Always create sys/stat.h, since it's unlikely any real sys/stat.h
71282         would define all the S_* symbols.
71283         * modules/canonicalize (Depends-on):
71284         Depend on sys_stat, not stat-macros.
71285         * modules/chown: Likewise.
71286         * modules/euidaccess: Likewise.
71287         * modules/filemode: Likewise.
71288         * modules/file-type: Likewise.
71289         * modules/glob: Likewise.
71290         * modules/isapipe: Likewise.
71291         * modules/lchown: Likewise.
71292         * modules/lstat: Likewise.
71293         * modules/mkancesdirs: Likewise.
71294         * modules/rmdir: Likewise.
71295         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
71296         * modules/modechange: Likewise.
71297         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
71298         (configure.ac): Remove gl_STAT_MACROS.
71299         * modules/sys_stat (Depends-on): Remove stat-macros.
71300
71301 2006-10-27  Bruno Haible  <bruno@clisp.org>
71302
71303         * m4/signed.m4: Remove file.
71304         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
71305         invocation.
71306         * modules/vasnprintf (Files): Remove m4/signed.m4.
71307
71308 2006-10-27  Bruno Haible  <bruno@clisp.org>
71309
71310         Update to GNU gettext 0.16.
71311         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
71312         m4/inttypes-h.m4, m4/signed.m4.
71313         * m4/gettext.m4: Update to GNU gettext 0.16.
71314         * m4/intl.m4: New file, from GNU gettext.
71315         * m4/intldir.m4: New file, from GNU gettext.
71316         * config/srclist.txt: Update
71317
71318 2006-10-27  Eric Blake  <ebb9@byu.net>
71319
71320         * MODULES.html.sh: Document tempname.
71321         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
71322         dependencies.
71323         (Files): Move lib/tempname.c...
71324         * modules/tempname: ...to this new module.
71325         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
71326         (gl_PREREQ_TEMPNAME): Move...
71327         * m4/tempname.m4: ...to this new file.
71328         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
71329         * modules/sys_stat (Depends-on): Add stat-macros.
71330         * lib/stat_.h (includes): Pick up stat macros.
71331         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
71332         if stat macros are broken.
71333         * lib/tempname.c (includes): No need to include "stat-macros.h".
71334         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
71335         (direxists, __path_search) [!_LIBC]: Don't compile these in
71336         gnulib; the tmpdir module covers that.
71337         * lib/tempname.h: New file.
71338
71339 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
71340
71341         * COPYING: Explain how gnulib-tool converts licence headers.
71342         Almost all wording by Eric Blake.
71343
71344 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
71345
71346         * lib/mbchar.h (is_basic_table): Make read-only.
71347         * lib/mbchar.c (is_basic_table): Likewise.
71348         Reported by John Darrington.
71349
71350 2006-10-25  Bruno Haible  <bruno@clisp.org>
71351
71352         * lib/progname.h (set_program_name): Undefine before defining.
71353
71354 2006-10-25  Bruno Haible  <bruno@clisp.org>
71355
71356         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
71357         false for non-gcc C++ compilers.
71358         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
71359
71360 2006-10-24  Bruno Haible  <bruno@clisp.org>
71361
71362         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
71363         iconv implementations like Irix iconv.
71364
71365 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71366
71367         * modules/vararrays: New file.
71368         * m4/vararrays.m4: New file, taken from diffutils.
71369         * MODULES.html.sh: New module vararrays.
71370
71371 2006-10-24  Karl Berry  <karl@gnu.org>
71372
71373         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
71374         Don't call GNU Unix.
71375
71376 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71377
71378         * users.txt: Add Libtool.
71379
71380         Sync from Libtool:
71381
71382         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71383
71384         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
71385         to gnulib's policy of including config.h unconditionally.
71386
71387 2006-10-24  Bruno Haible  <bruno@clisp.org>
71388
71389         * modules/wcwidth (Files): Add m4/wint_t.m4.
71390         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
71391         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
71392
71393 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
71394
71395         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
71396         to pacify GCC with some -W flags enabled.  Problem reported by
71397         Bruno Haible.
71398
71399 2006-10-24  Jim Meyering  <jim@meyering.net>
71400
71401         * MODULES.html.sh: Remove uinttostr.  It's not a module.
71402         Reported by Karl Berry.
71403
71404 2006-10-23  Bruno Haible  <bruno@clisp.org>
71405
71406         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
71407
71408 2006-10-24  Bruno Haible  <bruno@clisp.org>
71409
71410         * lib/gl_list.h: Use C comment style, not C++ comment style.
71411
71412 2006-10-23  Eric Blake  <ebb9@byu.net>
71413
71414         * lib/getaddrinfo.c (includes): Add missing include.
71415
71416 2006-10-23  Bruno Haible  <bruno@clisp.org>
71417             Paul Eggert  <eggert@cs.ucla.edu>
71418
71419         Ability to rename obstack_free.
71420         * lib/obstack.h (__obstack_free): New macro. Declare instead of
71421         obstack_free.
71422         (obstack_free): Invoke the __obstack_free macro.
71423         * lib/obstack.c (obstack_free): Use __obstack_free macro.
71424
71425 2006-10-23  Bruno Haible  <bruno@clisp.org>
71426             Paul Eggert  <eggert@cs.ucla.edu>
71427
71428         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
71429         __argc, __argv from the declaration. (They are defined as macros on
71430         mingw.)
71431
71432 2006-10-22  Bruno Haible  <bruno@clisp.org>
71433
71434         * doc/gnulib-intro.texi: New file.
71435         * doc/gnulib.texi: Include it.
71436
71437 2006-10-21  Bruno Haible  <bruno@clisp.org>
71438
71439         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
71440         "Introduction", "Miscellanous Notes", "Particular Modules".
71441
71442 2006-10-21  Bruno Haible  <bruno@clisp.org>
71443
71444         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71445         Change mostlyclean-local rule to avoid sh syntax error from bash
71446         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
71447
71448 2006-10-23  Jim Meyering  <jim@meyering.net>
71449
71450         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
71451         in place of snprintf.
71452
71453         * modules/inttostr (Files): Add lib/uinttostr.c.
71454         * lib/uinttostr.c (inttostr): New file/function.
71455         * lib/inttostr.h (uinttostr): Declare.
71456         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
71457         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
71458         Add uinttostr.
71459         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
71460
71461 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
71462
71463         * lib/canonicalize.c (ELOOP): Define if not already defined.
71464         Problem reported by Bruno Haible in
71465         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
71466
71467 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
71468
71469         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
71470         Problem reported by Perry Smith and Ville Laurikari.
71471
71472         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
71473         uses.
71474
71475 2006-10-19  Bruno Haible  <bruno@clisp.org>
71476
71477         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
71478         for mingw.
71479
71480 2006-10-19  Bruno Haible  <bruno@clisp.org>
71481
71482         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
71483         Needed for mingw.
71484
71485 2006-10-19  Bruno Haible  <bruno@clisp.org>
71486
71487         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
71488
71489 2006-10-19  Bruno Haible  <bruno@clisp.org>
71490
71491         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
71492         it.
71493
71494 2006-10-19  Bruno Haible  <bruno@clisp.org>
71495
71496         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
71497         invocation.
71498
71499 2006-10-19  Bruno Haible  <bruno@clisp.org>
71500
71501         * gnulib-tool (func_create_testdir): Don't include ftruncate and
71502         mountlist by default.
71503
71504 2006-10-16  Bruno Haible  <bruno@clisp.org>
71505
71506         * lib/c-strstr.c: Include c-strstr.h.
71507
71508 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
71509
71510         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
71511         in a slash.
71512
71513 2006-10-18  Bruno Haible  <bruno@clisp.org>
71514
71515         * lib/lock.h [C++]: Wrap definitions in extern "C".
71516
71517 2006-10-18  Bruno Haible  <bruno@clisp.org>
71518
71519         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
71520         gl_LIBOBJS list.
71521
71522 2006-10-18  Bruno Haible  <bruno@clisp.org>
71523
71524         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
71525
71526 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
71527
71528         * lib/xstrtol.h: Include gettext.h.
71529         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
71530         Problem reported by Eric Blake.
71531         * modules/xstrtol (Depends-on): Add gettext-h.
71532
71533 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
71534
71535         * lib/strftime.c (advance): New macro.
71536         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
71537         incomplete type, so you can't add 0 to it.  Problem and patch
71538         reported by Eelco Dolstra for dietlibc.
71539
71540 2006-10-18  Jim Meyering  <jim@meyering.net>
71541
71542         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
71543         type for a local, and rename it: s/up/user_proc/.
71544
71545 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
71546
71547         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
71548         READ_UTMP_USER_PROCESS.
71549         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
71550
71551 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
71552
71553         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
71554         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
71555
71556 2006-10-17  Eric Blake  <ebb9@byu.net>
71557
71558         * lib/sigprocmask.c (sigprocmask): Fix typo.
71559
71560         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
71561
71562         * modules/clean-temp (Makefile.am): Don't add to make output...
71563         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
71564         config.h.
71565
71566 2006-10-17  Bruno Haible  <bruno@clisp.org>
71567
71568         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
71569         differently if DEFAULT_TEXT_DOMAIN is set.
71570
71571 2006-10-16  Bruno Haible  <bruno@clisp.org>
71572
71573         * lib/clean-temp.c: Include fwriteerror.h.
71574
71575 2006-10-16  Bruno Haible  <bruno@clisp.org>
71576
71577         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
71578
71579 2006-10-16  Bruno Haible  <bruno@clisp.org>
71580
71581         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
71582         * lib/sigprocmask.h: Include <sys/types.h>.
71583         (sigset_t): Use the system's definition if present.
71584
71585 2006-10-17  Eric Blake  <ebb9@byu.net>
71586
71587         * lib/xvasprintf.c (includes): Assume config.h.
71588         * lib/xasprintf.c (includes): Likewise.
71589
71590 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
71591
71592         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
71593         at least as wide as intmax_t.
71594
71595 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
71596
71597         (Imported from Automake.)
71598         * build-aux/gnupload: Update to version 1.1 of directive file.
71599
71600 2006-10-16  Eric Blake  <ebb9@byu.net>
71601
71602         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
71603         match Automake 1.10a.
71604
71605 2006-10-14  Bruno Haible  <bruno@clisp.org>
71606
71607         * modules/sigprocmask: New file.
71608         * lib/sigprocmask.h: New file.
71609         * lib/sigprocmask.c: New file.
71610         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
71611         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
71612         request sigprocmask.o.
71613         (gl_PREREQ_SIGPROCMASK): New macro.
71614         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
71615         (Depends-on): Add sigprocmask.
71616         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
71617         gt_SIGNALBLOCKING. Test for 'raise' only once.
71618         * lib/fatal-signal.c: Include sigprocmask.h.
71619         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
71620         unblock_fatal_signals): Define always.
71621         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71622         sigprocmask.
71623
71624 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
71625
71626         Sync from Automake.
71627         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
71628         which incorrectly sets the mode of an existing destination
71629         directory.  In some cases the unpatched install-sh could do the
71630         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
71631         system.  We hope this is rare in practice, but it's clearly worth
71632         fixing.  Problem reported by Alex Unleashed in
71633         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
71634         Also, don't bother to check for -m bugs unless we're using -m;
71635         suggested by Stepan Kasal.
71636
71637 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71638
71639         Sync from Automake.
71640         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
71641         `-c' flag, so they appear at the same position as in %FASTDEP%
71642         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
71643         which ignores unknown options only after the first non-option.
71644         Bug report against M4 by Nelson H. F. Beebe.
71645
71646 2006-10-13  Jim Meyering  <jim@meyering.net>
71647
71648         Fix a bug in yesterday's change.
71649         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
71650         p->fts_statp->st_dev would be used uninitialized.
71651         Ensures that we always call fts_stat on the very first entry.
71652         Miklos Szeredi reported that find -xdev stopped working.
71653
71654 2006-10-12  Bruno Haible  <bruno@clisp.org>
71655
71656         * gnulib-tool (func_get_automake_snippet): Append an automatically
71657         computed EXTRA_DIST augmentation.
71658         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
71659         * modules/alloca-opt (Makefile.am): Likewise.
71660         * modules/allocsa (Makefile.am): Likewise.
71661         * modules/arcfour (Makefile.am): Likewise.
71662         * modules/arctwo (Makefile.am): Likewise.
71663         * modules/argmatch (Makefile.am): Likewise.
71664         * modules/argz (Makefile.am): Likewise.
71665         * modules/atexit (Makefile.am): Likewise.
71666         * modules/backupfile (Makefile.am): Likewise.
71667         * modules/byteswap (Makefile.am): Likewise.
71668         * modules/c-strtod (Makefile.am): Likewise.
71669         * modules/c-strtold (Makefile.am): Likewise.
71670         * modules/calloc (Makefile.am): Likewise.
71671         * modules/canon-host (Makefile.am): Likewise.
71672         * modules/canonicalize (Makefile.am): Likewise.
71673         * modules/chdir-long (Makefile.am): Likewise.
71674         * modules/chdir-safer (Makefile.am): Likewise.
71675         * modules/check-version (Makefile.am): Likewise.
71676         * modules/chown (Makefile.am): Likewise.
71677         * modules/cloexec (Makefile.am): Likewise.
71678         * modules/close-stream (Makefile.am): Likewise.
71679         * modules/closeout (Makefile.am): Likewise.
71680         * modules/crc (Makefile.am): Likewise.
71681         * modules/csharpexec (Makefile.am): Likewise.
71682         * modules/cycle-check (Makefile.am): Likewise.
71683         * modules/des (Makefile.am): Likewise.
71684         * modules/dev-ino (Makefile.am): Likewise.
71685         * modules/dirfd (Makefile.am): Likewise.
71686         * modules/dirname (Makefile.am): Likewise.
71687         * modules/dup2 (Makefile.am): Likewise.
71688         * modules/eealloc (Makefile.am): Likewise.
71689         * modules/error (Makefile.am): Likewise.
71690         * modules/euidaccess (Makefile.am): Likewise.
71691         * modules/exclude (Makefile.am): Likewise.
71692         * modules/exitfail (Makefile.am): Likewise.
71693         * modules/fcntl-safer (Makefile.am): Likewise.
71694         * modules/fcntl (Makefile.am): Likewise.
71695         * modules/file-type (Makefile.am): Likewise.
71696         * modules/fileblocks (Makefile.am): Likewise.
71697         * modules/filemode (Makefile.am): Likewise.
71698         * modules/filenamecat (Makefile.am): Likewise.
71699         * modules/fnmatch (Makefile.am): Likewise.
71700         * modules/fopen-safer (Makefile.am): Likewise.
71701         * modules/fpending (Makefile.am): Likewise.
71702         * modules/fprintftime (Makefile.am): Likewise.
71703         * modules/free (Makefile.am): Likewise.
71704         * modules/fsusage (Makefile.am): Likewise.
71705         * modules/ftruncate (Makefile.am): Likewise.
71706         * modules/fts (Makefile.am): Likewise.
71707         * modules/gc-arcfour (Makefile.am): Likewise.
71708         * modules/gc-des (Makefile.am): Likewise.
71709         * modules/gc-hmac-md5 (Makefile.am): Likewise.
71710         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
71711         * modules/gc-md4 (Makefile.am): Likewise.
71712         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
71713         * modules/gc-sha1 (Makefile.am): Likewise.
71714         * modules/gc (Makefile.am): Likewise.
71715         * modules/getaddrinfo (Makefile.am): Likewise.
71716         * modules/getcwd (Makefile.am): Likewise.
71717         * modules/getdelim (Makefile.am): Likewise.
71718         * modules/getdomainname (Makefile.am): Likewise.
71719         * modules/getgroups (Makefile.am): Likewise.
71720         * modules/gethostname (Makefile.am): Likewise.
71721         * modules/gethrxtime (Makefile.am): Likewise.
71722         * modules/getline (Makefile.am): Likewise.
71723         * modules/getloadavg (Makefile.am): Likewise.
71724         * modules/getlogin_r (Makefile.am): Likewise.
71725         * modules/getndelim2 (Makefile.am): Likewise.
71726         * modules/getopt (Makefile.am): Likewise.
71727         * modules/getpagesize (Makefile.am): Likewise.
71728         * modules/getpass-gnu (Makefile.am): Likewise.
71729         * modules/getpass (Makefile.am): Likewise.
71730         * modules/getsubopt (Makefile.am): Likewise.
71731         * modules/gettime (Makefile.am): Likewise.
71732         * modules/gettimeofday (Makefile.am): Likewise.
71733         * modules/getugroups (Makefile.am): Likewise.
71734         * modules/getusershell (Makefile.am): Likewise.
71735         * modules/glob (Makefile.am): Likewise.
71736         * modules/group-member (Makefile.am): Likewise.
71737         * modules/hard-locale (Makefile.am): Likewise.
71738         * modules/hash (Makefile.am): Likewise.
71739         * modules/hmac-md5 (Makefile.am): Likewise.
71740         * modules/hmac-sha1 (Makefile.am): Likewise.
71741         * modules/human (Makefile.am): Likewise.
71742         * modules/idcache (Makefile.am): Likewise.
71743         * modules/imaxabs (Makefile.am): Likewise.
71744         * modules/imaxdiv (Makefile.am): Likewise.
71745         * modules/inet_ntop (Makefile.am): Likewise.
71746         * modules/inet_pton (Makefile.am): Likewise.
71747         * modules/intprops (Makefile.am): Likewise.
71748         * modules/inttostr (Makefile.am): Likewise.
71749         * modules/inttypes (Makefile.am): Likewise.
71750         * modules/isapipe (Makefile.am): Likewise.
71751         * modules/javaversion (Makefile.am): Likewise.
71752         * modules/lchmod (Makefile.am): Likewise.
71753         * modules/lchown (Makefile.am): Likewise.
71754         * modules/localcharset (Makefile.am): Likewise.
71755         * modules/long-options (Makefile.am): Likewise.
71756         * modules/lstat (Makefile.am): Likewise.
71757         * modules/malloc (Makefile.am): Likewise.
71758         * modules/mathl (Makefile.am): Likewise.
71759         * modules/mbchar (Makefile.am): Likewise.
71760         * modules/md2 (Makefile.am): Likewise.
71761         * modules/md4 (Makefile.am): Likewise.
71762         * modules/md5 (Makefile.am): Likewise.
71763         * modules/memcasecmp (Makefile.am): Likewise.
71764         * modules/memchr (Makefile.am): Likewise.
71765         * modules/memcmp (Makefile.am): Likewise.
71766         * modules/memcoll (Makefile.am): Likewise.
71767         * modules/memcpy (Makefile.am): Likewise.
71768         * modules/memmem (Makefile.am): Likewise.
71769         * modules/memmove (Makefile.am): Likewise.
71770         * modules/mempcpy (Makefile.am): Likewise.
71771         * modules/memrchr (Makefile.am): Likewise.
71772         * modules/memset (Makefile.am): Likewise.
71773         * modules/memxor (Makefile.am): Likewise.
71774         * modules/mkancesdirs (Makefile.am): Likewise.
71775         * modules/mkdir-p (Makefile.am): Likewise.
71776         * modules/mkdir (Makefile.am): Likewise.
71777         * modules/mkdtemp (Makefile.am): Likewise.
71778         * modules/mkstemp (Makefile.am): Likewise.
71779         * modules/mktime (Makefile.am): Likewise.
71780         * modules/modechange (Makefile.am): Likewise.
71781         * modules/mountlist (Makefile.am): Likewise.
71782         * modules/nanosleep (Makefile.am): Likewise.
71783         * modules/obstack (Makefile.am): Likewise.
71784         * modules/openat (Makefile.am): Likewise.
71785         * modules/pagealign_alloc (Makefile.am): Likewise.
71786         * modules/pathmax (Makefile.am): Likewise.
71787         * modules/physmem (Makefile.am): Likewise.
71788         * modules/poll (Makefile.am): Likewise.
71789         * modules/posixtm (Makefile.am): Likewise.
71790         * modules/posixver (Makefile.am): Likewise.
71791         * modules/putenv (Makefile.am): Likewise.
71792         * modules/quote (Makefile.am): Likewise.
71793         * modules/quotearg (Makefile.am): Likewise.
71794         * modules/raise (Makefile.am): Likewise.
71795         * modules/read-file (Makefile.am): Likewise.
71796         * modules/readline (Makefile.am): Likewise.
71797         * modules/readlink (Makefile.am): Likewise.
71798         * modules/readtokens (Makefile.am): Likewise.
71799         * modules/readutmp (Makefile.am): Likewise.
71800         * modules/realloc (Makefile.am): Likewise.
71801         * modules/regex (Makefile.am): Likewise.
71802         * modules/rename-dest-slash (Makefile.am): Likewise.
71803         * modules/rename (Makefile.am): Likewise.
71804         * modules/rijndael (Makefile.am): Likewise.
71805         * modules/rmdir (Makefile.am): Likewise.
71806         * modules/rpmatch (Makefile.am): Likewise.
71807         * modules/safe-read (Makefile.am): Likewise.
71808         * modules/safe-write (Makefile.am): Likewise.
71809         * modules/same-inode (Makefile.am): Likewise.
71810         * modules/same (Makefile.am): Likewise.
71811         * modules/save-cwd (Makefile.am): Likewise.
71812         * modules/savedir (Makefile.am): Likewise.
71813         * modules/setenv (Makefile.am): Likewise.
71814         * modules/settime (Makefile.am): Likewise.
71815         * modules/sha1 (Makefile.am): Likewise.
71816         * modules/sig2str (Makefile.am): Likewise.
71817         * modules/snprintf (Makefile.am): Likewise.
71818         * modules/stat-macros (Makefile.am): Likewise.
71819         * modules/stat-time (Makefile.am): Likewise.
71820         * modules/stdbool (Makefile.am): Likewise.
71821         * modules/stdint (Makefile.am): Likewise.
71822         * modules/stdlib-safer (Makefile.am): Likewise.
71823         * modules/stpcpy (Makefile.am): Likewise.
71824         * modules/stpncpy (Makefile.am): Likewise.
71825         * modules/strcase (Makefile.am): Likewise.
71826         * modules/strcasestr (Makefile.am): Likewise.
71827         * modules/strchrnul (Makefile.am): Likewise.
71828         * modules/strcspn (Makefile.am): Likewise.
71829         * modules/strdup (Makefile.am): Likewise.
71830         * modules/strerror (Makefile.am): Likewise.
71831         * modules/strftime (Makefile.am): Likewise.
71832         * modules/strndup (Makefile.am): Likewise.
71833         * modules/strnlen (Makefile.am): Likewise.
71834         * modules/strpbrk (Makefile.am): Likewise.
71835         * modules/strsep (Makefile.am): Likewise.
71836         * modules/strstr (Makefile.am): Likewise.
71837         * modules/strtod (Makefile.am): Likewise.
71838         * modules/strtoimax (Makefile.am): Likewise.
71839         * modules/strtok_r (Makefile.am): Likewise.
71840         * modules/strtol (Makefile.am): Likewise.
71841         * modules/strtoll (Makefile.am): Likewise.
71842         * modules/strtoul (Makefile.am): Likewise.
71843         * modules/strtoull (Makefile.am): Likewise.
71844         * modules/strtoumax (Makefile.am): Likewise.
71845         * modules/strverscmp (Makefile.am): Likewise.
71846         * modules/sys_socket (Makefile.am): Likewise.
71847         * modules/sys_stat (Makefile.am): Likewise.
71848         * modules/sysexits (Makefile.am): Likewise.
71849         * modules/time_r (Makefile.am): Likewise.
71850         * modules/timegm (Makefile.am): Likewise.
71851         * modules/timespec (Makefile.am): Likewise.
71852         * modules/tmpfile-safer (Makefile.am): Likewise.
71853         * modules/trim (Makefile.am): Likewise.
71854         * modules/unistd-safer (Makefile.am): Likewise.
71855         * modules/unlinkdir (Makefile.am): Likewise.
71856         * modules/unlocked-io (Makefile.am): Likewise.
71857         * modules/userspec (Makefile.am): Likewise.
71858         * modules/utime (Makefile.am): Likewise.
71859         * modules/utimecmp (Makefile.am): Likewise.
71860         * modules/utimens (Makefile.am): Likewise.
71861         * modules/vasnprintf (Makefile.am): Likewise.
71862         * modules/vasprintf (Makefile.am): Likewise.
71863         * modules/vsnprintf (Makefile.am): Likewise.
71864         * modules/xalloc (Makefile.am): Likewise.
71865         * modules/xgetcwd (Makefile.am): Likewise.
71866         * modules/xnanosleep (Makefile.am): Likewise.
71867         * modules/xreadlink (Makefile.am): Likewise.
71868         * modules/xstrtod (Makefile.am): Likewise.
71869         * modules/xstrtol (Makefile.am): Likewise.
71870         * modules/xstrtold (Makefile.am): Likewise.
71871         * modules/yesno (Makefile.am): Likewise.
71872         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
71873
71874 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
71875
71876         * modules/error (Makefile.am): Distribute files through
71877         EXTRA_DIST, not lib_SOURCES.
71878
71879 2006-10-12  Eric Blake  <ebb9@byu.net>
71880
71881         * modules/error (Makefile.am): Distribute files in /lib.
71882         * modules/obstack (Makefile.am): Likewise.
71883
71884 2006-10-12  Bruno Haible  <bruno@clisp.org>
71885
71886         * modules/acl (Makefile.am): Distribute all files in lib/ through
71887         EXTRA_DIST.
71888         * modules/arcfour (Makefile.am): Likewise.
71889         * modules/arctwo (Makefile.am): Likewise.
71890         * modules/argmatch (Makefile.am): Likewise.
71891         * modules/argz (Makefile.am): Likewise.
71892         * modules/atexit (Makefile.am): Likewise.
71893         * modules/backupfile (Makefile.am): Likewise.
71894         * modules/c-strtod (Makefile.am): Likewise.
71895         * modules/c-strtold (Makefile.am): Likewise.
71896         * modules/calloc (Makefile.am): Likewise.
71897         * modules/canon-host (Makefile.am): Likewise.
71898         * modules/canonicalize (Makefile.am): Likewise.
71899         * modules/chdir-long (Makefile.am): Likewise.
71900         * modules/chdir-safer (Makefile.am): Likewise.
71901         * modules/check-version (Makefile.am): Likewise.
71902         * modules/chown (Makefile.am): Likewise.
71903         * modules/cloexec (Makefile.am): Likewise.
71904         * modules/close-stream (Makefile.am): Likewise.
71905         * modules/closeout (Makefile.am): Likewise.
71906         * modules/crc (Makefile.am): Likewise.
71907         * modules/cycle-check (Makefile.am): Likewise.
71908         * modules/des (Makefile.am): Likewise.
71909         * modules/dirfd (Makefile.am): Likewise.
71910         * modules/dirname (Makefile.am): Likewise.
71911         * modules/dup2 (Makefile.am): Likewise.
71912         * modules/euidaccess (Makefile.am): Likewise.
71913         * modules/exclude (Makefile.am): Likewise.
71914         * modules/exitfail (Makefile.am): Likewise.
71915         * modules/fcntl-safer (Makefile.am): Likewise.
71916         * modules/file-type (Makefile.am): Likewise.
71917         * modules/fileblocks (Makefile.am): Likewise.
71918         * modules/filemode (Makefile.am): Likewise.
71919         * modules/filenamecat (Makefile.am): Likewise.
71920         * modules/fnmatch (Makefile.am): Likewise.
71921         * modules/fopen-safer (Makefile.am): Likewise.
71922         * modules/fpending (Makefile.am): Likewise.
71923         * modules/fprintftime (Makefile.am): Likewise.
71924         * modules/free (Makefile.am): Likewise.
71925         * modules/fsusage (Makefile.am): Likewise.
71926         * modules/ftruncate (Makefile.am): Likewise.
71927         * modules/fts (Makefile.am): Likewise.
71928         * modules/gc (Makefile.am): Likewise.
71929         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
71930         * modules/getaddrinfo (Makefile.am): Likewise.
71931         * modules/getcwd (Makefile.am): Likewise.
71932         * modules/getdelim (Makefile.am): Likewise.
71933         * modules/getdomainname (Makefile.am): Likewise.
71934         * modules/getgroups (Makefile.am): Likewise.
71935         * modules/gethostname (Makefile.am): Likewise.
71936         * modules/gethrxtime (Makefile.am): Likewise.
71937         * modules/getline (Makefile.am): Likewise.
71938         * modules/getloadavg (Makefile.am): Likewise.
71939         * modules/getlogin_r (Makefile.am): Likewise.
71940         * modules/getopt (Makefile.am): Likewise.
71941         * modules/getpass (Makefile.am): Likewise.
71942         * modules/getpass-gnu (Makefile.am): Likewise.
71943         * modules/getsubopt (Makefile.am): Likewise.
71944         * modules/gettime (Makefile.am): Likewise.
71945         * modules/gettimeofday (Makefile.am): Likewise.
71946         * modules/getugroups (Makefile.am): Likewise.
71947         * modules/getusershell (Makefile.am): Likewise.
71948         * modules/glob (Makefile.am): Likewise.
71949         * modules/group-member (Makefile.am): Likewise.
71950         * modules/hard-locale (Makefile.am): Likewise.
71951         * modules/hash (Makefile.am): Likewise.
71952         * modules/hmac-md5 (Makefile.am): Likewise.
71953         * modules/hmac-sha1 (Makefile.am): Likewise.
71954         * modules/human (Makefile.am): Likewise.
71955         * modules/idcache (Makefile.am): Likewise.
71956         * modules/imaxabs (Makefile.am): Likewise.
71957         * modules/imaxdiv (Makefile.am): Likewise.
71958         * modules/inet_ntop (Makefile.am): Likewise.
71959         * modules/inet_pton (Makefile.am): Likewise.
71960         * modules/inttostr (Makefile.am): Likewise.
71961         * modules/isapipe (Makefile.am): Likewise.
71962         * modules/lchown (Makefile.am): Likewise.
71963         * modules/long-options (Makefile.am): Likewise.
71964         * modules/lstat (Makefile.am): Likewise.
71965         * modules/malloc (Makefile.am): Likewise.
71966         * modules/mathl (Makefile.am): Likewise.
71967         * modules/mbchar (Makefile.am): Likewise.
71968         * modules/md2 (Makefile.am): Likewise.
71969         * modules/md4 (Makefile.am): Likewise.
71970         * modules/md5 (Makefile.am): Likewise.
71971         * modules/memcasecmp (Makefile.am): Likewise.
71972         * modules/memchr (Makefile.am): Likewise.
71973         * modules/memcmp (Makefile.am): Likewise.
71974         * modules/memcoll (Makefile.am): Likewise.
71975         * modules/memcpy (Makefile.am): Likewise.
71976         * modules/memmem (Makefile.am): Likewise.
71977         * modules/memmove (Makefile.am): Likewise.
71978         * modules/mempcpy (Makefile.am): Likewise.
71979         * modules/memrchr (Makefile.am): Likewise.
71980         * modules/memset (Makefile.am): Likewise.
71981         * modules/memxor (Makefile.am): Likewise.
71982         * modules/mkancesdirs (Makefile.am): Likewise.
71983         * modules/mkdir (Makefile.am): Likewise.
71984         * modules/mkdir-p (Makefile.am): Likewise.
71985         * modules/mkdtemp (Makefile.am): Likewise.
71986         * modules/mkstemp (Makefile.am): Likewise.
71987         * modules/mktime (Makefile.am): Likewise.
71988         * modules/modechange (Makefile.am): Likewise.
71989         * modules/mountlist (Makefile.am): Likewise.
71990         * modules/nanosleep (Makefile.am): Likewise.
71991         * modules/openat (Makefile.am): Likewise.
71992         * modules/pagealign_alloc (Makefile.am): Likewise.
71993         * modules/physmem (Makefile.am): Likewise.
71994         * modules/poll (Makefile.am): Likewise.
71995         * modules/posixtm (Makefile.am): Likewise.
71996         * modules/posixver (Makefile.am): Likewise.
71997         * modules/putenv (Makefile.am): Likewise.
71998         * modules/quote (Makefile.am): Likewise.
71999         * modules/quotearg (Makefile.am): Likewise.
72000         * modules/raise (Makefile.am): Likewise.
72001         * modules/read-file (Makefile.am): Likewise.
72002         * modules/readline (Makefile.am): Likewise.
72003         * modules/readlink (Makefile.am): Likewise.
72004         * modules/readtokens (Makefile.am): Likewise.
72005         * modules/readutmp (Makefile.am): Likewise.
72006         * modules/realloc (Makefile.am): Likewise.
72007         * modules/regex (Makefile.am): Likewise.
72008         * modules/rename (Makefile.am): Likewise.
72009         * modules/rename-dest-slash (Makefile.am): Likewise.
72010         * modules/rijndael (Makefile.am): Likewise.
72011         * modules/rmdir (Makefile.am): Likewise.
72012         * modules/rpmatch (Makefile.am): Likewise.
72013         * modules/safe-read (Makefile.am): Likewise.
72014         * modules/safe-write (Makefile.am): Likewise.
72015         * modules/same (Makefile.am): Likewise.
72016         * modules/save-cwd (Makefile.am): Likewise.
72017         * modules/savedir (Makefile.am): Likewise.
72018         * modules/setenv (Makefile.am): Likewise.
72019         * modules/settime (Makefile.am): Likewise.
72020         * modules/sha1 (Makefile.am): Likewise.
72021         * modules/sig2str (Makefile.am): Likewise.
72022         * modules/snprintf (Makefile.am): Likewise.
72023         * modules/stdlib-safer (Makefile.am): Likewise.
72024         * modules/stpcpy (Makefile.am): Likewise.
72025         * modules/stpncpy (Makefile.am): Likewise.
72026         * modules/strcase (Makefile.am): Likewise.
72027         * modules/strcasestr (Makefile.am): Likewise.
72028         * modules/strchrnul (Makefile.am): Likewise.
72029         * modules/strcspn (Makefile.am): Likewise.
72030         * modules/strdup (Makefile.am): Likewise.
72031         * modules/strerror (Makefile.am): Likewise.
72032         * modules/strftime (Makefile.am): Likewise.
72033         * modules/strndup (Makefile.am): Likewise.
72034         * modules/strnlen (Makefile.am): Likewise.
72035         * modules/strpbrk (Makefile.am): Likewise.
72036         * modules/strsep (Makefile.am): Likewise.
72037         * modules/strstr (Makefile.am): Likewise.
72038         * modules/strtod (Makefile.am): Likewise.
72039         * modules/strtoimax (Makefile.am): Likewise.
72040         * modules/strtok_r (Makefile.am): Likewise.
72041         * modules/strtol (Makefile.am): Likewise.
72042         * modules/strtoll (Makefile.am): Likewise.
72043         * modules/strtoul (Makefile.am): Likewise.
72044         * modules/strtoull (Makefile.am): Likewise.
72045         * modules/strtoumax (Makefile.am): Likewise.
72046         * modules/strverscmp (Makefile.am): Likewise.
72047         * modules/time_r (Makefile.am): Likewise.
72048         * modules/timegm (Makefile.am): Likewise.
72049         * modules/tmpfile-safer (Makefile.am): Likewise.
72050         * modules/unistd-safer (Makefile.am): Likewise.
72051         * modules/unlinkdir (Makefile.am): Likewise.
72052         * modules/userspec (Makefile.am): Likewise.
72053         * modules/utime (Makefile.am): Likewise.
72054         * modules/utimecmp (Makefile.am): Likewise.
72055         * modules/utimens (Makefile.am): Likewise.
72056         * modules/vasnprintf (Makefile.am): Likewise.
72057         * modules/vasprintf (Makefile.am): Likewise.
72058         * modules/vsnprintf (Makefile.am): Likewise.
72059         * modules/xalloc (Makefile.am): Likewise.
72060         * modules/xgetcwd (Makefile.am): Likewise.
72061         * modules/xnanosleep (Makefile.am): Likewise.
72062         * modules/xreadlink (Makefile.am): Likewise.
72063         * modules/xstrtod (Makefile.am): Likewise.
72064         * modules/xstrtol (Makefile.am): Likewise.
72065         * modules/xstrtold (Makefile.am): Likewise.
72066         * modules/yesno (Makefile.am): Likewise.
72067
72068 2006-10-12  Jim Meyering  <jim@meyering.net>
72069
72070         * m4/getloadavg.m4: Revert the change below.
72071
72072         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
72073         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
72074         fail with a symlink, which is what coreutils' ./bootstrap now
72075         creates by default.
72076
72077 2006-10-12  Bruno Haible  <bruno@clisp.org>
72078
72079         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
72080         mingw.
72081         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
72082         MSVC and mingw explicitly.
72083
72084 2006-10-11  Simon Josefsson  <jas@extundo.com>
72085             Bruno Haible  <bruno@clisp.org>
72086
72087         Add support for multiple gnulib-tool invocations in the scope of a
72088         single configure.ac file.
72089         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
72090         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
72091         with the same contents as the _LIBADD variable.
72092         (func_emit_initmacro_start, func_emit_initmacro_end,
72093         func_emit_initmacro_done): New functions.
72094         (func_import, func_create_testdir): Invoke them. Allow the identifiers
72095         gl_LIBOBJS and gl_LTLIBOBJS.
72096
72097 2006-10-11  Bruno Haible  <bruno@clisp.org>
72098
72099         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
72100         (func_create_testdir): Don't create po/Makefile.am, don't invoke
72101         autoreconf. Instead, invoke autopoint explicitly but move back the
72102         *.m4 files from gnulib.
72103
72104 2006-10-11  Bruno Haible  <bruno@clisp.org>
72105
72106         * gnulib-tool (func_usage): Make module names after --create-testdir
72107         optional.
72108         (func_create_testdir): If no module was specified, use nearly all
72109         modules.
72110
72111 2006-10-12  Jim Meyering  <jim@meyering.net>
72112
72113         Big performance improvement for fts-based tools that use FTS_NOSTAT.
72114         Avoid spurious inode-mismatch problems on non-POSIX file systems.
72115         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
72116         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
72117         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
72118         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
72119         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
72120         (fts_set_stat_required): New function.
72121         (fts_open): Defer the calls to fts_stat, if possible or requested.
72122         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
72123         into fts_stat itself.
72124         (fts_read): Perform any required (deferred) fts_stat call.
72125         (fts_build): Likewise, for the directory we're about to open and read.
72126         In the readdir loop, carefully decide whether each entry will require
72127         an eventual call to fts_stat, using dirent.d_type info if available.
72128         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
72129         a command line argument into this function.  Update all callers.
72130         Map a return value of FTS_DOT to FTS_D for a command line argument.
72131         * modules/fts (Depends-on): Add d-type.  Alphabetize.
72132         Thanks to Miklos Szeredi for his tenacity and for the initial
72133         bug report about "find" failing on a FUSE-based file system.
72134
72135         * lib/fts.c (fts_open): Use consistent indentation.
72136
72137 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
72138
72139         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
72140         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
72141         reported by Jim Meyering.  All uses of cache variables renamed
72142         to match Autoconf's.
72143         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
72144         the other one.
72145
72146         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
72147         Fix misspelling in diagnostic.
72148
72149 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
72150
72151         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
72152         defined.  Problem reported by Matthew Woehlke.
72153
72154         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
72155         Add support for Tandem NonStop R series.
72156         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
72157         Use new macro.
72158
72159         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
72160         (has_trailing_slash): Omit size arg; all callers changed.
72161         Omit 'inline', since it doesn't help performance and we'd
72162         need to configure it.
72163         Don't count //, ///, etc. as having a trailing slash.
72164         As a side effect, this removes a C99ism reported by Matthew Woehlke.
72165         (rpl_rename_dest_slash): On failure, use rename's errno rather
72166         than (in some cases) an incorrect or junk errno.
72167         Simplify code by removing need to compute length; this does
72168         cause it to make two passes instead of one over the file name,
72169         but it's worth it.
72170
72171         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
72172         change, since Autoconf's version may no longer be appropriate now
72173         that we are using CVS Autoconf's version.  Add support for Tandem.
72174
72175 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
72176             Bruno Haible  <bruno@clisp.org>
72177
72178         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
72179         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
72180         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
72181         gl_AC_TYPE_LONG_LONG.
72182
72183         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
72184         instead of HAVE_LONG_LONG.
72185         * lib/printf-args.c (printf_fetchargs): Likewise.
72186         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
72187         * lib/vasnprintf.c (VASNPRINTF): Likewise.
72188         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
72189         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
72190         gl_AC_TYPE_LONG_LONG.
72191
72192 2006-10-11  Bruno Haible  <bruno@clisp.org>
72193
72194         * m4/longlong.m4: Add comments.
72195         * m4/ulonglong.m4: Likewise.
72196
72197 2006-10-10  Bruno Haible  <bruno@clisp.org>
72198
72199         Make it possible to #define stpcpy, strdup to aliases.
72200         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
72201         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
72202
72203 2006-10-10  Bruno Haible  <bruno@clisp.org>
72204
72205         Make it possible to #define gcd to an alias.
72206         * lib/gcd.c: Include config.h.
72207
72208 2006-10-10  Bruno Haible  <bruno@clisp.org>
72209
72210         Make it possible to #define c_isascii to an alias.
72211         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
72212         defined. Undefine the macros before defining them, to avoid gcc
72213         warnings.
72214         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
72215         define NO_C_CTYPE_MACROS early.
72216
72217 2006-10-10  Bruno Haible  <bruno@clisp.org>
72218
72219         Make it possible to #define set_program_name to an alias.
72220         * lib/progname.c: Don't undefine set_program_name; instead, undefine
72221         ENABLE_RELOCATABLE early.
72222
72223 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
72224
72225         Port to Tandem NSK OSS, which has 64-bit signed int but at most
72226         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
72227         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
72228         More generally, don't assume that 64-bit signed int is available
72229         if unsigned int is, and vice versa.
72230         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
72231         unsigned symbols, not on their signed counterparts.
72232         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
72233         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
72234         (UINT64_C, UINTMAX_C):
72235         Likewise.
72236         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
72237         unsigned counterparts.
72238         (Have_long_long, Unsigned): New macros.
72239         (Int): Renamed from INT.
72240         (strtoimax): Use the new macros.
72241         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
72242         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
72243         * modules/inttypes (inttypes.h): Substitute
72244         HAVE_UNSIGNED_LONG_LONG_INT.
72245         * modules/stdint (stdint.h): Likewise.
72246         (Files): Add m4/ulonglong.m4.
72247
72248 2006-10-10  Bruno Haible  <bruno@clisp.org>
72249
72250         Fix a gcc -Wshadow warning.
72251         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
72252         to 'bucket'.
72253         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
72254         gl_linked_indexof_from_to): Likewise.
72255         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
72256         Likewise.
72257         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
72258         Likewise.
72259         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
72260         Reported by Eric Blake.
72261
72262 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
72263
72264         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
72265         for NetBSD.  Problem reported by Bruno Haible.
72266
72267 2006-10-09  Jim Meyering  <jim@meyering.net>
72268
72269         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
72270         Patch from Bruno Haible.
72271
72272 2006-10-09  Jim Meyering  <jim@meyering.net>
72273
72274         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
72275         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
72276         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
72277
72278 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
72279
72280         Don't include <config.h> twice; this doesn't work in some cases,
72281         e.g., when config.h has "#define intmax_t long long int" and
72282         we include <config.h>, <inttypes.h>, <config.h> in that order.
72283         Problem reported by Matthew Woehlke in:
72284         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
72285         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
72286         * lib/fts-cycle.c: Don't include config.h.
72287         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
72288         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
72289         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
72290         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
72291         inttypes.h.
72292         * lib/xstrtoumax.c: Likewise.
72293         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
72294         __strtol and the like, so that this module is more like its siblings.
72295         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
72296         Remove; no longer needed now that we assume gnulib inttypes.h.
72297
72298 2006-10-08  Bruno Haible  <bruno@clisp.org>
72299
72300         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
72301         option.
72302
72303 2006-10-07  Jim Meyering  <jim@meyering.net>
72304
72305         * modules/inttypes (inttypes.h): Revert what seems to have been
72306         an inadvertent part of today's change: use "|", not "/" in the
72307         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
72308
72309 2006-10-07  Bruno Haible  <bruno@clisp.org>
72310
72311         * modules/sublist: New file.
72312
72313 2006-10-07  Bruno Haible  <bruno@clisp.org>
72314
72315         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
72316         * modules/argz (argz.h): Likewise.
72317         * modules/arpa_inet (arpa/inet.h): Likewise.
72318         * modules/byteswap (byteswap.h): Likewise.
72319         * modules/configmake (configmake.h): Likewise.
72320         * modules/fcntl (fcntl.h): Likewise.
72321         * modules/fnmatch (fnmatch.h): Likewise.
72322         * modules/getopt (getopt.h): Likewise.
72323         * modules/glob (glob.h): Likewise.
72324         * modules/inttypes (inttypes.h): Likewise.
72325         * modules/netinet_in (netinet/in.h): Likewise.
72326         * modules/poll (poll.h): Likewise.
72327         * modules/stdbool (stdbool.h): Likewise.
72328         * modules/stdint (stdint.h): Likewise.
72329         * modules/sys_select (sys/select.h): Likewise.
72330         * modules/sys_socket (sys/socket.h): Likewise.
72331         * modules/sys_stat (sys/stat.h): Likewise.
72332         * modules/sysexits (sysexits.h): Likewise.
72333         * modules/unistd (unistd.h): Likewise.
72334         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72335         Add a "DO NOT EDIT" comment to the generated file.
72336         (func_import): Likewise for gnulib-comp.m4.
72337
72338 2006-10-07  Bruno Haible  <bruno@clisp.org>
72339
72340         * lib/gl_sublist.h: New file.
72341         * lib/gl_sublist.c: New file.
72342
72343 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
72344
72345         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
72346         name (relative to the original working directory) and the file
72347         name component (relative to the temporary working directory).  All
72348         callers changed.
72349         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
72350         * lib/mkdir-p.c (make_dir_parents): Likewise.
72351         * lib/mkdir-p.h (make_dir_parents): Likewise.
72352
72353 2006-10-06  Eric Blake  <ebb9@byu.net>
72354
72355         Define several macros for use by the clean-temp module.
72356         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
72357         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
72358         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
72359
72360         * lib/clean-temp.h (close_stream_temp): New declaration.
72361         * lib/clean-temp.c (includes): Pull in headers according to what
72362         other modules are in use.
72363         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
72364
72365 2006-10-06  Bruno Haible  <bruno@clisp.org>
72366
72367         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
72368         instead of fopen, fwriteerror.
72369
72370 2006-10-06  Bruno Haible  <bruno@clisp.org>
72371
72372         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
72373         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
72374         int.
72375         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
72376         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
72377         Return an error indicator.
72378         Suggested by Eric Blake.
72379
72380 2006-10-06  Bruno Haible  <bruno@clisp.org>
72381
72382         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
72383         Reported by Eric Blake.
72384
72385 2006-10-06  Bruno Haible  <bruno@clisp.org>
72386
72387         * modules/closeout (Description): Mention stderr too.
72388
72389 2006-10-06  Bruno Haible  <bruno@clisp.org>
72390         and Paul Eggert  <eggert@cs.ucla.edu>
72391
72392         * lib/closeout.c (close_stdout): Also close stderr.
72393         * lib/closeout.h: Update comment.
72394
72395 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
72396
72397         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
72398         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
72399         * lib/dirchownmod.c: Include lchown.h.
72400         * lib/lchown.c: Don't include files that lchown.h now includes.
72401         Don't declare chown, since lchown.h now does that.
72402         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
72403         (lchown): Define to rpl_chown if lchown is declared but
72404         does not exist.  Declare using a prototype if lchown is not
72405         declared.  Add a copyright notice.
72406         * lib/mkstemp.h: Include <unistd.h>.
72407         * lib/openat.c: Include lchown.h.
72408
72409         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
72410         we now test for that separately.
72411         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
72412         rather than O_NOFOLLOW, when testing whether it's possible to
72413         avoid a race condition reliably.
72414         * lib/savewd.c (savewd_chdir): Likewise.
72415
72416         Remove macros that are no longer needed now that stdint.h is
72417         reliable.
72418         * lib/fsusage.c (UINTMAX_MAX): Remove.
72419         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
72420         * lib/utimecmp.c (SIZE_MAX): Remove.
72421
72422         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
72423
72424         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
72425         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
72426         O_NOATIME works.
72427
72428 2006-10-05  Bruno Haible  <bruno@clisp.org>
72429
72430         * lib/gl_list.h (gl_sortedlist_search_from_to,
72431         gl_sortedlist_indexof_from_to): New declarations.
72432         (gl_list_implementation): New fields sortedlist_search_from_to,
72433         sortedlist_indexof_from_to.
72434         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
72435         inline functions.
72436         * lib/gl_list.c (gl_sortedlist_search_from_to,
72437         gl_sortedlist_indexof_from_to): New functions.
72438         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
72439         function.
72440         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
72441         (gl_array_sortedlist_search_from_to): New function.
72442         (gl_array_list_implementation): Update.
72443         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
72444         function.
72445         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
72446         (gl_carray_sortedlist_search_from_to): New function.
72447         (gl_carray_list_implementation): Update.
72448         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
72449         gl_linked_sortedlist_indexof_from_to): New functions.
72450         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
72451         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
72452         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
72453         gl_tree_sortedlist_indexof_from_to): New functions.
72454         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
72455         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
72456         Update.
72457         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
72458         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
72459         Update.
72460
72461 2006-10-05  Bruno Haible  <bruno@clisp.org>
72462
72463         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
72464         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
72465         (struct gl_list_implementation): Add fields search_from_to,
72466         indexof_from_to. Remove fields search, indexof.
72467         (gl_list_search): Use the search_from_to method.
72468         (gl_list_search_from, gl_list_search_from_to): New functions.
72469         (gl_list_indexof): Use the indexof_from_to method.
72470         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
72471         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
72472         (gl_list_search_from, gl_list_search_from_to): New functions.
72473         (gl_list_indexof): Use the indexof_from_to method.
72474         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
72475         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
72476         gl_array_indexof. Add start_index, end_index arguments.
72477         (gl_array_search_from_to): Renamed from gl_array_search. Add
72478         start_index, end_index arguments.
72479         (gl_array_remove, gl_array_list_implementation): Update.
72480         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
72481         gl_carray_indexof. Add start_index, end_index arguments.
72482         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
72483         start_index, end_index arguments.
72484         (gl_carray_remove, gl_carray_list_implementation): Update.
72485         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
72486         gl_linked_search. Add start_index, end_index arguments.
72487         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
72488         start_index, end_index arguments.
72489         (gl_linked_remove): Update.
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_list1.h (iterstack_item_t): Change type of 'rightp'
72493         field to 'size_t'.
72494         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
72495         gl_tree_search. Add start_index, end_index arguments.
72496         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
72497         start_index, end_index arguments.
72498         (gl_tree_remove): Update.
72499         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
72500         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
72501         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
72502         function.
72503         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
72504         gl_tree_search. Add start_index, end_index arguments.
72505         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
72506         start_index, end_index arguments.
72507         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
72508         Update.
72509         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
72510
72511 2006-10-05  Bruno Haible  <bruno@clisp.org>
72512
72513         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
72514
72515         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
72516         fwriteerror_temp): New declarations.
72517         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
72518         (descriptors): New variable.
72519         (cleanup): First, close the descriptors.
72520         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
72521         fclose_temp, fwriteerror_temp): New functions.
72522
72523 2006-10-04  Jim Meyering  <jim@meyering.net>
72524
72525         * lib/fts.c (fts_open): Tiny comment change.
72526
72527 2006-10-04  Bruno Haible  <bruno@clisp.org>
72528
72529         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
72530         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
72531         gl_LOCK_BODY.
72532         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
72533         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
72534         gl_LOCK_EARLY_BODY.
72535         (gl_LOCK): Require gl_LOCK_BODY.
72536
72537 2006-10-04  Bruno Haible  <bruno@clisp.org>
72538
72539         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
72540         (gl_oset_search_atleast): New declaration.
72541         (struct gl_oset_implementation): Add field 'search_atleast'.
72542         (gl_oset_search_atleast): New inline function.
72543         * lib/gl_oset.c (gl_oset_search_atleast): New function.
72544         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
72545         (gl_array_oset_implementation): Update.
72546         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
72547         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
72548         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
72549
72550 2006-10-04  Bruno Haible  <bruno@clisp.org>
72551
72552         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
72553
72554 2006-10-03  Bruno Haible  <bruno@clisp.org>
72555
72556         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
72557         from gl_avltreehash_list_implementation.
72558
72559 2006-10-03  Bruno Haible  <bruno@clisp.org>
72560
72561         * lib/gl_oset.c (gl_oset_add): Fix return type.
72562
72563 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
72564
72565         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
72566
72567 2006-10-02  Eric Blake  <ebb9@byu.net>
72568
72569         * modules/strnlen (Depends-on): Add extensions.
72570
72571 2006-10-02  Eric Blake  <ebb9@byu.net>
72572
72573         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
72574         definition in 2.60+.
72575
72576 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
72577
72578         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
72579         checks.
72580
72581 2006-10-02  Bruno Haible  <bruno@clisp.org>
72582
72583         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
72584         to the AUTOMAKE_OPTIONS.
72585         Reported by Jim Meyering.
72586
72587 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
72588
72589         Work around bug in Solaris 10 /proc file system:
72590         /proc/self/fd/NNN/.. isn't the parent directory of
72591         the directory whose file descriptor is NNN.  This needs to
72592         be worked around at run time, not compile time, since a
72593         program might be built on Solaris 8, where things work, and
72594         run on Solaris 10.
72595         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
72596         to use the following interface instead:
72597         (OPENAT_BUFFER_SIZE): New macro.
72598         (openat_proc_name): New function.
72599         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
72600         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
72601         Likewise.
72602         * lib/openat-proc.c: New file.
72603         * modules/openat (Files): Add lib/openat-proc.c.
72604         (Depends-on): Add same-inode, stdbool.
72605         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
72606
72607 2006-09-29  Bruno Haible  <bruno@clisp.org>
72608
72609         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
72610         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
72611         argument. Set stdout_closed before testing for ferror, not after.
72612         (fwriteerror, fwriteerror_no_ebadf): New functions.
72613
72614 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72615
72616         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
72617
72618 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
72619
72620         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
72621         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
72622
72623 2006-09-28  Jim Meyering  <jim@meyering.net>
72624
72625         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
72626         Include <unistd.h>.
72627
72628 2006-09-28  Bruno Haible  <bruno@clisp.org>
72629
72630         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
72631         * modules/linkedhash-list (Depends-on): Likewise.
72632         * modules/rbtreehash-list (Depends-on): Likewise.
72633
72634 2006-09-28  Bruno Haible  <bruno@clisp.org>
72635
72636         * lib/strndup.h: Simplify the redefinition of strndup.
72637         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
72638         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
72639
72640 2006-09-28  Bruno Haible  <bruno@clisp.org>
72641
72642         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
72643         * lib/gl_linkedhash_list.c: Likewise.
72644         * lib/gl_rbtreehash_list.c: Likewise.
72645
72646 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
72647
72648         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
72649         getaddrinfo.
72650
72651         * lib/__fpending.h: Don't include <stdio_ext.h> unless
72652         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
72653         it causes <stdio_ext.h> to cause a compile-time error.
72654         Problem reported by Nelson H. F. Beebe.
72655         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
72656         of HAVE_DECL___PENDING.
72657
72658         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
72659         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
72660         declaration.
72661
72662 2006-09-27  Jim Meyering  <jim@meyering.net>
72663
72664         This file could end up with a definition for a function
72665         named __strndup, rather than rpl_strndup on a system with
72666         incomplete weak_alias support.
72667         * lib/strndup.c (strndup): Rename from __strndup.
72668         Remove #defines that used to map __strndup to strndup.
72669         Don't use K&R prototypes.
72670         Remove LIBC-related code, since this file is not sync'd with glibc.
72671         * lib/strndup.h: Revamp, accordingly.
72672         * m4/strndup.m4: Modernize.
72673
72674 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
72675
72676         * modules/savewd (Depends-on): Add 'raise'.
72677         * lib/savewd.c: Include <signal.h>, for 'raise'.
72678
72679 2006-09-26  Jim Meyering  <jim@meyering.net>
72680
72681         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
72682         when we detect Darwin 8.7.0's acl_get_file bug.
72683         Rearrange to perform the new (below) run-test while $LIBS
72684         contains any acl-related library.  Set USE_ACL at the end.
72685         (gl_ACL_GET_FILE): New function.
72686
72687 2006-09-26  Eric Blake  <ebb9@byu.net>
72688
72689         * lib/verror.c: Include <config.h> unconditionally.
72690
72691 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
72692
72693         * modules/clock-time (Maintainer): Add self.
72694         * modules/getlogin_r (Depends-on): Add extensions.
72695
72696 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72697
72698         * modules/clock-time: New module.
72699         * modules/nanosleep (Depends-on): Add clock-time.
72700         * modules/gethrxtime (Depends-on): Likewise.
72701         * modules/gettime (Depends-on): Likewise.
72702         * modules/settime (Depends-on): Likewise.
72703
72704         * modules/fts-lgpl: Depend on openat.
72705         * modules/mkancesdirs: Depend on savewd.
72706         * modules/mkdir-p: Likewise.
72707
72708 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72709
72710         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
72711
72712         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
72713         `gl_have_arbitrary_file_name_length_limit' to
72714         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
72715         actually works between configure runs.
72716
72717 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72718             Bruno Haible  <bruno@clisp.org>
72719
72720         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
72721
72722 2006-09-25  Jim Meyering  <jim@meyering.net>
72723
72724         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
72725         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
72726
72727 2006-09-25  Eric Blake  <ebb9@byu.net>
72728
72729         * gnulib-tool (func_import, func_create_testdir): Fix typos in
72730         exec's in 2006-09-18 patch when shuffling fds.
72731
72732 2006-09-25  Bruno Haible  <bruno@clisp.org>
72733
72734         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
72735         Reported by Jim Meyering.
72736
72737 2006-09-24  Jim Meyering  <jim@meyering.net>
72738
72739         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
72740         compare a pointer against a literal "0".  That caused failures with
72741         at least HP-UX's hpcc.
72742
72743 2006-09-22  Simon Josefsson  <jas@extundo.com>
72744
72745         * modules/gc-sha1:
72746         * modules/gc-md4:
72747         * modules/gc-hmac-sha1:
72748         * modules/gc-hmac-md5:
72749         * modules/gc-des:
72750         * modules/gc-arcfour: Distribute more files.
72751
72752 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72753
72754         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
72755         (gl_linked_iterator_from_to): Initialize struct completely.
72756         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
72757         (gl_tree_iterator_from_to): Likewise
72758         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
72759         * lib/gl_array_list.c [lint] (gl_array_iterator)
72760         (gl_array_iterator_from_to): Likewise.
72761         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
72762         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
72763         (gl_carray_iterator_from_to): Likewise.
72764
72765         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
72766         * lib/md4.c (md4_process_block): Remove unused variable.
72767         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
72768         parentheses for clarity.
72769
72770 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72771
72772         * modules/bison-i18n (Depends-on): Add gettext.
72773
72774 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72775
72776         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
72777         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
72778         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
72779         also add missing comma that caused broken test.
72780         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
72781         stdlib.h, for `abort'.
72782         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
72783         variables.
72784         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
72785         include unistd.h if present, for `rmdir'.
72786         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
72787         variables.
72788         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
72789         in the process include standard headers for prototypes.
72790         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
72791         gets declared on GNU/Linux.
72792         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
72793         unistd.h, for `rmdir'.
72794         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
72795
72796         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
72797         always true.
72798         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
72799
72800         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
72801
72802 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72803
72804         * gnulib-tool (func_version): Create output all at once.  This
72805         may help avoid triggering unnecessary SIGPIPEs, and at any
72806         rate it doesn't hurt.
72807
72808 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72809             Bruno Haible  <bruno@clisp.org>
72810
72811         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
72812         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
72813         * m4/signed.m4 (bh_C_SIGNED): Likewise.
72814
72815         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
72816         (gl_FUNC_VASPRINTF): Invoke it.
72817
72818 2006-09-22  Bruno Haible  <bruno@clisp.org>
72819
72820         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
72821         getloadavg.c as first argument.
72822
72823 2006-09-22  Bruno Haible  <bruno@clisp.org>
72824
72825         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
72826         at the beginning of the gl_INIT macro.
72827         * modules/getloadavg (configure.ac): Pass $gl_source_base to
72828         gl_GETLOADAVG.
72829
72830 2006-09-22  Bruno Haible  <bruno@clisp.org>
72831
72832         * gnulib-tool (func_create_megatestdir): Don't include the config-h
72833         module.
72834         Suggested by Ralf Wildenhues.
72835
72836 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
72837
72838         Import this patch from libc:
72839
72840         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
72841
72842         * lib/regex_internal.c (re_string_reconstruct): Handle
72843         offset < pstr->valid_raw_len && pstr->offsets_needed case.
72844         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
72845         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
72846         re_string_context_at.
72847
72848         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
72849         now requires it.
72850         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
72851         gl_REGEX now does it for us.
72852         (gl_REGEX): Add test taken from
72853         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
72854
72855         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
72856         Check that large offsets work.  Modernize Autoconf usages.
72857         Prefer "yes" to mean a good thing rather than a bad.
72858         Don't put "#define mkstemp" in config.h, as this might interfere
72859         with standard system headers that "#define mkstemp mkstemp64".
72860
72861         * modules/mkstemp (Depends-on): Add extensions, so that
72862         mkstemp is visible on some platforms.
72863         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
72864         (Include): Change to "mkstemp.h" from <stdlib.h>.
72865         (Files): Add mkstemp.h.
72866
72867         * lib/mkstemp.h: New file, since some standard headers
72868         #define mkstemp.
72869         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
72870         Include "mkstemp.h".
72871         Make the _LIBC code resemble glibc original more,
72872         e.g., use K&R style.
72873         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
72874         (mkstemp): Remove, since mkstemp.h does this for us.
72875         * lib/stdlib--.h: Include mkstemp.h.
72876
72877         Import this patch from libc:
72878
72879         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
72880
72881         * lib/tempname.c (__gen_tempname): Change attempts_min
72882         into a macro.  Use preprocessor to decide how to initialize
72883         attempts [Coverity CID 67].
72884
72885 2006-09-20  Bruno Haible  <bruno@clisp.org>
72886
72887         * lib/mkdtemp.c: Import from libc.
72888         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
72889                 * sysdeps/posix/tempname.c (__gen_tempname): Change
72890                 attempts_min into a macro.  Use preprocessor to decide how to
72891                 initialize attempts [Coverity CID 67].
72892         2001-11-27  Paul Eggert  <eggert@twinsun.com>
72893                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
72894                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
72895
72896 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72897
72898         * gnulib-tool (func_exit): New function, to allow to pass the
72899         exit status portably through the trap.  Use everywhere.
72900         (--help, --version): Signal a write error.
72901         (trap): catch SIGPIPE, for write errors.
72902         Exit at the end of the trap, with the correct exit status.
72903
72904 2006-09-19  Karl Berry  <karl@gnu.org>
72905
72906         * doc/gnulib.texi: note about the license texinfo files.
72907
72908 2006-09-19  Eric Blake  <ebb9@byu.net>
72909
72910         * gnulib-tool: Avoid space-tab.
72911
72912 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
72913
72914         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
72915         that prevented coreutils 6.1 from building.  Problem reported
72916         by Petter Reinholdtsen.
72917
72918 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
72919
72920         * gnulib-tool (avoidlist): Fix typo that broke options like
72921         --avoid=lock that are used by coreutils bootstrap.
72922
72923 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
72924
72925         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
72926         more systematically.
72927
72928 2006-09-18  Jim Meyering  <jim@meyering.net>
72929
72930         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
72931
72932 2006-09-18  Bruno Haible  <bruno@clisp.org>
72933
72934         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
72935
72936 2006-09-18  Bruno Haible  <bruno@clisp.org>
72937
72938         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
72939         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
72940         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
72941         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
72942         * m4/gettext.m4: Require autoconf >= 2.52.
72943         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
72944         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
72945         of gl_cv_header_inttypes_h.
72946
72947 2006-09-18  Bruno Haible  <bruno@clisp.org>
72948
72949         * lib/javaversion.c: Include configmake.h.
72950
72951 2006-09-18  Bruno Haible  <bruno@clisp.org>
72952
72953         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
72954         avoid that the while loops be executed in a subshell.
72955
72956 2006-09-18  Bruno Haible  <bruno@clisp.org>
72957
72958         * MODULES.html.sh (func_module): Break long lines.
72959         Suggested by Bruce Korb <bkorb@gnu.org>.
72960
72961 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72962
72963         Speed up by a factor of 1.12.
72964         * gnulib-tool (nl): New variable.
72965         (func_import): Rewrite include directive extraction to only read each
72966         directive once.
72967
72968 2006-09-17  Bruno Haible  <bruno@clisp.org>
72969
72970         * modules/javaversion (Makefile.am): Remove DEFS setting.
72971         (Depends-on): Add configmake, for PKGDATADIR definition.
72972
72973 2006-09-17  Bruno Haible  <bruno@clisp.org>
72974
72975         * gnulib-tool (func_create_testdir): Rewrite all files at once.
72976
72977 2006-09-17  Bruno Haible  <bruno@clisp.org>
72978
72979         * gnulib-tool (func_append): New function, stolen from libtool.m4.
72980         (func_modules_transitive_closure, func_modules_add_dummy,
72981         func_modules_to_filelist, func_import, func_create_testdir,
72982         func_create_megatestdir, ...): Use it wherever possible.
72983         Suggested by Ralf Wildenhues.
72984
72985 2006-09-16  Karl Berry  <karl@gnu.org>
72986
72987         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
72988         to avoid sectioning errors.
72989         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
72990         [ifinfo]: blank line after @center-ed titles.
72991         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
72992         Spell FSF address consistently with others.
72993         (These changes approved by rms.)
72994
72995 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72996
72997         Speed up by a factor of 1.61.
72998         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
72999         already checked module names again.
73000
73001 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73002
73003         Speed up by a factor of 1.13.
73004         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
73005         for new_files, and the input to func_add_or_update.
73006
73007 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73008
73009         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
73010         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
73011
73012 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73013
73014         * modules/mkancesdirs (Depends-on): Add fcntl.
73015         * modules/savewd: New file.
73016         * MODULES.html.sh (File system functions): Add savewd.
73017
73018         * modules/configmake (Makefile.am): Add support for the
73019         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
73020
73021 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73022
73023         * m4/savewd.m4: New file.
73024
73025 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
73026
73027         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
73028         (dirchownmod): New arg FD.  All callers changed.
73029         Use FD rather than opening the directory ourself, as opening is
73030         now the caller's responsibility.
73031         * lib/dirchownmod.h: Likewise.
73032         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
73033         hosts that require <sys/types.h> before <sys/stat.h>.  Include
73034         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
73035         (test_dir): Remove.
73036         (mkancesdirs): Return length of prefix of FILE that has already
73037         been made, or -2 if there is a child doing the work.  Redo
73038         algorithm so that it is O(N) rather than O(N**2).  Optimize away
73039         ".", and treat ".." specially since it might stray back into
73040         already-created areas.  Use a subprocess if necessary.  New arg
73041         WD; all users changed.  MAKE_DIR function should now return 1
73042         if it creates a directory that is not readable.  Return -2 if
73043         a child process is spun off.
73044         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
73045         Adjust signature to match code.
73046         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
73047         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
73048         all users changed.
73049         * lib/savewd.c, lib/savewd.h: New files.
73050
73051 2006-09-15  Jim Meyering  <jim@meyering.net>
73052
73053         * modules/rename-dest-slash: New module.
73054         * MODULES.html.sh (posix_compat): Add it here.
73055
73056         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
73057
73058 2006-09-15  Jim Meyering  <jim@meyering.net>
73059
73060         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
73061         file.
73062
73063         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
73064
73065 2006-09-15  Jim Meyering  <jim@meyering.net>
73066
73067         * lib/rename-dest-slash.c (has_trailing_slash): Use
73068         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
73069         (rpl_rename_dest_slash): Perform the cheaper trailing slash
73070         test before testing whether SRC is a directory.
73071         Suggestions from Bruno Haible.
73072
73073         Avoid a warning about an unused variable.
73074         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
73075         into the #ifdef block where it's used.
73076
73077         * lib/rename-dest-slash.c: New file.
73078
73079 2006-09-14  Bruno Haible  <bruno@clisp.org>
73080
73081         * lib/allocsa.c: Include <config.h> unconditionally.
73082         * lib/asnprintf.c: Likewise.
73083         * lib/asprintf.c: Likewise.
73084         * lib/c-strcasecmp.c: Likewise.
73085         * lib/c-strcasestr.c: Likewise.
73086         * lib/c-strncasecmp.c: Likewise.
73087         * lib/c-strstr.c: Likewise.
73088         * lib/classpath.c: Likewise.
73089         * lib/clean-temp.c: Likewise.
73090         * lib/concatpath.c: Likewise.
73091         * lib/copy-file.c: Likewise.
73092         * lib/csharpcomp.c: Likewise.
73093         * lib/csharpexec.c: Likewise.
73094         * lib/execute.c: Likewise.
73095         * lib/fatal-signal.c: Likewise.
73096         * lib/findprog.c: Likewise.
73097         * lib/fwriteerror.c: Likewise.
73098         * lib/gl_array_list.c: Likewise.
73099         * lib/gl_array_oset.c: Likewise.
73100         * lib/gl_avltree_list.c: Likewise.
73101         * lib/gl_avltree_oset.c: Likewise.
73102         * lib/gl_avltreehash_list.c: Likewise.
73103         * lib/gl_carray_list.c: Likewise.
73104         * lib/gl_linked_list.c: Likewise.
73105         * lib/gl_linkedhash_list.c: Likewise.
73106         * lib/gl_list.c: Likewise.
73107         * lib/gl_oset.c: Likewise.
73108         * lib/gl_rbtree_list.c: Likewise.
73109         * lib/gl_rbtree_oset.c: Likewise.
73110         * lib/gl_rbtreehash_list.c: Likewise.
73111         * lib/imaxabs.c: Likewise.
73112         * lib/imaxdiv.c: Likewise.
73113         * lib/javacomp.c: Likewise.
73114         * lib/javaexec.c: Likewise.
73115         * lib/javaversion.c: Likewise.
73116         * lib/linebreak.c: Likewise.
73117         * lib/localcharset.c: Likewise.
73118         * lib/lock.c: Likewise.
73119         * lib/mbchar.c: Likewise.
73120         * lib/mbswidth.c: Likewise.
73121         * lib/mkdtemp.c: Likewise.
73122         * lib/pipe.c: Likewise.
73123         * lib/printf-args.c: Likewise.
73124         * lib/printf-parse.c: Likewise.
73125         * lib/progname.c: Likewise.
73126         * lib/progreloc.c: Likewise.
73127         * lib/readlink.c: Likewise.
73128         * lib/sh-quote.c: Likewise.
73129         * lib/stpcpy.c: Likewise.
73130         * lib/stpncpy.c: Likewise.
73131         * lib/strcasecmp.c: Likewise.
73132         * lib/strcasestr.c: Likewise.
73133         * lib/strcspn.c: Likewise.
73134         * lib/striconv.c: Likewise.
73135         * lib/strncasecmp.c: Likewise.
73136         * lib/strnlen1.c: Likewise.
73137         * lib/strstr.c: Likewise.
73138         * lib/strtok_r.c: Likewise.
73139         * lib/tls.c: Likewise.
73140         * lib/tmpdir.c: Likewise.
73141         * lib/unicodeio.c: Likewise.
73142         * lib/unsetenv.c: Likewise.
73143         * lib/vasnprintf.c: Likewise.
73144         * lib/vasprintf.c: Likewise.
73145         * lib/wait-process.c: Likewise.
73146         * lib/xallocsa.c: Likewise.
73147         * lib/xsetenv.c: Likewise.
73148         * lib/xstriconv.c: Likewise.
73149
73150 2006-09-13  Simon Josefsson  <jas@extundo.com>
73151
73152         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
73153         that internally, suggested by Ralf Wildenhues
73154         <Ralf.Wildenhues@gmx.de>.
73155
73156 2006-09-13  Simon Josefsson  <jas@extundo.com>
73157
73158         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
73159         @LIBOBJS@.
73160         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73161
73162 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
73163
73164         * lib/_fpending.c: Include <config.h> unconditionally, since we no
73165         longer worry about uses that don't define HAVE_CONFIG_H.
73166         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
73167         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
73168         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
73169         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
73170         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
73171         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
73172         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
73173         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
73174         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
73175         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
73176         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
73177         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
73178         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
73179         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
73180         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
73181         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
73182         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
73183         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
73184         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
73185         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
73186         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
73187         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
73188         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
73189         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
73190         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
73191         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
73192         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
73193         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
73194         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
73195         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
73196         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
73197         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
73198         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
73199         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
73200         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
73201         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
73202         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
73203         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
73204         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
73205         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
73206         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
73207         Likewise.
73208
73209 2006-09-13  Eric Blake  <ebb9@byu.net>
73210
73211         * lib/getopt.c: Fix typo in last commit.
73212
73213 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
73214
73215         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
73216         dgettext.
73217
73218 2006-09-12  Jim Meyering  <jim@meyering.net>
73219
73220         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
73221         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
73222         Reported by Nelson H. F. Beebe.
73223
73224 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
73225
73226         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
73227         program_invocation_name and program_invocation_short_name are
73228         initialized.
73229         * lib/argp-namefrob.h: Move declarations of program_invocation_name
73230         and program_invocation_short_name to argp.h, so they are visible
73231         to user programs.
73232         * lib/argp.h: Likewise
73233
73234 2006-09-10  Bruno Haible  <bruno@clisp.org>
73235
73236         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
73237         m4/inttypes_h.m4, m4/uintmax_t.m4.
73238
73239 2006-09-10  Bruno Haible  <bruno@clisp.org>
73240
73241         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
73242         gl_AC_TYPE_UINTMAX_T.
73243
73244 2006-09-10  Bruno Haible  <bruno@clisp.org>
73245
73246         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
73247
73248 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73249
73250         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
73251         convention.  Text proposed by Bruno Haible.
73252         (struct argp_option): Document the use of N_() wrappers.
73253
73254         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
73255         '\v', and translate the two parts separately, instead of feeding
73256         the whole string to gettext.  This allows to exclude
73257         '\v' from the strings visible to the translator by writing doc
73258         strings as N_("..") "\v" N_("..").
73259
73260 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
73261
73262         * config/srclist.txt: Undo latest change; the bug was fixed.
73263
73264 2006-09-09  Bruno Haible  <bruno@clisp.org>
73265
73266         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
73267         assignments if building a library without libtool.
73268         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
73269         in func_emit_lib_Makefile_am.
73270         (func_import): When building a static library libfoo.a, arrange to
73271         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
73272         (func_create_testdir): Likewise.
73273         * modules/gc (configure.ac, Makefile.am): If building statically,
73274         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
73275         * modules/iconvme (configure.ac, Makefile.am): Likewise.
73276         * modules/striconv (configure.ac, Makefile.am): Likewise.
73277         Based on a suggestion by Ralf Wildenhues.
73278
73279 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73280
73281         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
73282         Check for unistd.h too, since Autoconf doesn't assume POSIX.
73283         Also:
73284
73285         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73286         Add year_2050_test to catch glibc bug 2821
73287         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
73288
73289         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
73290         Prefer #ifdef to #if.
73291
73292         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
73293         Return from 'main' instead of calling 'exit'.
73294
73295 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73296
73297         * lib/mktime.c (guess_time_tm): Fix bug where mktime
73298         returned the maximum time_t value rather than (time_t) -1.
73299         Problem originally reported by William Bardwell
73300         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
73301
73302         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
73303         Moved to here ...
73304         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
73305         ... from here.
73306
73307 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
73308
73309         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
73310         2821 is fixed.
73311
73312 2006-09-08  Jim Meyering  <jim@meyering.net>
73313
73314         Don't make generated files read-only.  That would bother too many
73315         people.  However, do retain the ability to work when targets are
73316         read-only: remove the destination and temporary files before writing
73317         them (when generated via sed or echo), or by using the -f option for
73318         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
73319         * modules/alloca-opt, modules/argz, modules/arpa_inet:
73320         * modules/byteswap, modules/configmake, modules/fcntl:
73321         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
73322         * modules/localcharset, modules/netinet_in, modules/poll:
73323         * modules/stdbool, modules/stdint, modules/sys_select:
73324         * modules/sys_socket, modules/sys_stat, modules/sysexits:
73325
73326 2006-09-08  Jim Meyering  <jim@meyering.net>
73327
73328         Avoid new build failure on FreeBSD 6.0.
73329         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
73330         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
73331         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
73332
73333 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73334
73335         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
73336
73337 2006-09-07  Jim Meyering  <jim@meyering.net>
73338
73339         Fix global typo in last change: use chmod u-w, not chmod u-x.
73340         Spotted by Paul Eggert and Bruce Korb.
73341         * modules/alloca-opt, modules/argz, modules/arpa_inet:
73342         * modules/byteswap, modules/configmake, modules/fcntl:
73343         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
73344         * modules/localcharset, modules/netinet_in, modules/poll:
73345         * modules/stdbool, modules/stdint, modules/sys_select:
73346         * modules/sys_socket, modules/sys_stat, modules/sysexits:
73347
73348 2006-09-06  Jim Meyering  <jim@meyering.net>
73349
73350         Make generated files be read-only.
73351         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
73352         Ensure that each generated file is now read-only.
73353         * modules/argz: Likewise.
73354         * modules/arpa_inet: Likewise.
73355         * modules/byteswap: Likewise.
73356         * modules/configmake: Likewise.
73357         * modules/fcntl: Likewise.
73358         * modules/fnmatch: Likewise.
73359         * modules/getopt: Likewise.
73360         * modules/glob: Likewise.
73361         * modules/inttypes: Likewise.
73362         * modules/netinet_in: Likewise.
73363         * modules/poll: Likewise.
73364         * modules/stdbool: Likewise.
73365         * modules/stdint: Likewise.
73366         * modules/sys_select: Likewise.
73367         * modules/sys_socket: Likewise.
73368         * modules/sys_stat: Likewise.
73369         * modules/sysexits: Likewise.
73370         * modules/localcharset: Same as above, but continue using temporary
73371         file named "t-$@" (why different?) rather than the "$@-t" used
73372         everywhere else.
73373
73374         * modules/sysexits (Makefile.am): Replace literal occurrences
73375         of "sysexit.h" more readable, and more consistent, "$@".
73376
73377 2006-09-06  Bruno Haible  <bruno@clisp.org>
73378
73379         * modules/striconv: New file.
73380         * modules/xstriconv: New file.
73381         * MODULES.html.sh (Internationalization functions): Add striconv,
73382         xstriconv.
73383
73384 2006-09-06  Bruno Haible  <bruno@clisp.org>
73385
73386         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
73387         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
73388         not using libtool correctly.
73389
73390 2006-09-06  Bruno Haible  <bruno@clisp.org>
73391
73392         * lib/striconv.h: New file.
73393         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
73394         iconvstring.c.
73395         * lib/xstriconv.h: New file.
73396         * lib/xstriconv.c: New file.
73397
73398 2006-09-06  Bruno Haible  <bruno@clisp.org>
73399
73400         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
73401         lib_..._LDFLAGS.
73402
73403 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73404
73405         * lib/argz_.h: Sync from Libtool.
73406
73407         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
73408                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
73409
73410         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
73411
73412 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
73413
73414         * modules/trim: New file.
73415
73416 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
73417
73418         * lib/trim.h: New file.
73419         * lib/trim.c: New file.
73420
73421 2006-09-05  Bruno Haible  <bruno@clisp.org>
73422
73423         * MODULES.html.sh (String handling): Add trim.
73424
73425 2006-09-04  Karl Berry  <karl@gnu.org>
73426
73427         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
73428         until next release.
73429
73430 2006-09-03  Bruno Haible  <bruno@clisp.org>
73431
73432         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
73433         correctly.
73434
73435 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73436
73437         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
73438         not gl_GETLOADAVG.  Omit unneeded semicolons.
73439         Problems reported by Ralf Wildenhues in
73440         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
73441         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
73442         at the end, which is the usual gnulib style.
73443
73444         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
73445         of doing all the work ourselves.
73446         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
73447         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
73448
73449 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73450
73451         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
73452         Problem reported by Ralf Wildenhues in
73453         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
73454
73455         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
73456         HAVE_STRUCT_STATFS_F_FSTYPENAME.
73457
73458 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
73459
73460         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
73461         yesterday's patch by changing test -n to test -z.
73462
73463 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73464
73465         * modules/getloadavg (Files): Add m4/getloadavg.m4.
73466         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
73467         the former is now obsolescent.
73468
73469         * modules/chdir-long (Depends-on): Add fcntl.
73470
73471 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73472
73473         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
73474         obsolescent, and programs should use gnulib instead.
73475         * m4/getloadavg.m4: New file, with contents taken from Autoconf
73476         but with prefixes changed.
73477
73478 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
73479
73480         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
73481         or stdbool.h, because they might not exist while configuring.
73482
73483         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
73484         Don't include unistd.h or limits.h; not needed, since chdir-long.h
73485         does that for us.
73486         (O_DIRECTORY): Remove.
73487
73488 2006-08-31  Eric Blake  <ebb9@byu.net>
73489
73490         * gnulib-tool: Don't let emacs change spaces to TAB.
73491
73492 2006-08-31  Bruno Haible  <bruno@clisp.org>
73493
73494         * gnulib-tool: When calling func_import more than once, do it in a
73495         subshell.
73496         Reported by Eric Blake <ebb9@byu.net>.
73497
73498 2006-08-31  Bruno Haible  <bruno@clisp.org>
73499
73500         * gnulib-tool (nl): Remove variable.
73501         (sed_transform_lib_file): Use more robust test for config-h module.
73502         (func_import): Fix typo in 2006-08-25 patch.
73503
73504 2006-08-31  Bruno Haible  <bruno@clisp.org>
73505
73506         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
73507         specified, augment Makefile.am variables instead of assigning them.
73508
73509 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73510
73511         Work around a bug in both the Linux and SunOS 64-bit kernels:
73512         nanosleep mishandles sleeps for longer than 2**31 seconds.
73513         Problem reported by Frank v Waveren in
73514         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
73515         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
73516         Check for nanosleep bug.
73517         (LIB_NANOSLEEP): Append clock_gettime library if needed.
73518
73519 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73520
73521         Work around a bug in both the Linux and SunOS 64-bit kernels:
73522         nanosleep mishandles sleeps for longer than 2**31 seconds.
73523         Problem reported by Frank v Waveren in
73524         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
73525         * lib/nanosleep.c (BILLION): New constant.
73526         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
73527         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
73528         implementation.
73529
73530 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73531
73532         * modules/nanosleep (Depends-on): Add gettime.
73533
73534 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
73535         and Simon Josefsson  <jas@extundo.com>
73536         and Oskar Liljeblad  <oskar@osk.mine.nu>
73537
73538         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
73539         * gnulib-tool (func_import): New license type 'unmodifiable license
73540         text'.
73541         * modules/fdl: Use it.  Longer description.
73542         * module/gpl, module/lgpl: New files.
73543
73544 2006-08-30  Jim Meyering  <jim@meyering.net>
73545
73546         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
73547         shadowing the parameter.
73548
73549 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73550
73551         Sync from Libtool:
73552
73553         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73554
73555         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
73556         sharing with gnulib.  Report by Eric Blake.
73557
73558 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73559
73560         * modules/isapipe: New file.
73561         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
73562
73563 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73564
73565         * modules/configmake (Makefile.am): Add a comment, and omit
73566         the CONFIGMAKE_ prefix from generated macro names.  Suggested
73567         by Bruno Haible.
73568
73569 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73570
73571         * m4/isapipe.m4: New file.
73572
73573 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
73574
73575         * lib/isapipe.c, lib/isapipe.h: New files.
73576
73577 2006-08-29  Jim Meyering  <jim@meyering.net>
73578
73579         * modules/configmake (Makefile.am): Make configmake.h depend on
73580         Makefile.  Otherwise, a stale configmake.h could hang around.
73581
73582 2006-08-29  Eric Blake  <ebb9@byu.net>
73583
73584         * lib/error.c (error_at_line, print_errno_message): Match libc, after
73585         resolution of upstream bug 3044.
73586
73587 2006-08-29  Bruno Haible  <bruno@clisp.org>
73588
73589         * modules/localcharset (Depends-on): Add configmake.
73590         (Makefile.am): Remove setting of LIBDIR through DEFS.
73591
73592 2006-08-29  Bruno Haible  <bruno@clisp.org>
73593
73594         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
73595         defined.
73596
73597 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73598
73599         * modules/fcntl: New file.
73600         * modules/chdir-safer (Depends-on): Add fcntl.
73601         * modules/fts: Likewise.
73602         * modules/mkdir-p: Likewise.
73603
73604         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
73605         This undoes the most recent change, since we're now addressing the
73606         problem in a different way.
73607
73608         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
73609         into output, since the output might be called Makefile.am even
73610         if $makefile_name is something different.
73611         (func_import): Use $makefile_am rather than
73612         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
73613         empty.
73614
73615         * modules/inttypes (Files): Add m4/inttypes-h.m4.
73616
73617 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73618
73619         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
73620         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
73621         recent change to stdint.m4, since we're now addressing the problem in a
73622         different way.
73623
73624 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73625
73626         * m4/fcntl_h.m4: New file.
73627
73628 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
73629
73630         * lib/fcntl_.h: New file.
73631         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
73632         the fcntl module.
73633         * lib/dirchownmod.c: Likewise.
73634         * lib/fts.c: Likewise.
73635
73636         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
73637         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
73638         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
73639         just before including <inttypes.h>, to avoid circular inclusion.
73640
73641 2006-08-28  Jim Meyering  <jim@meyering.net>
73642
73643         * doc/visibility.texi: Actually read and correct the grammar of the
73644         sentence affected by yesterday's change.
73645
73646 2006-08-28  Eric Blake  <ebb9@byu.net>
73647
73648         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
73649         needs wrapper.
73650
73651 2006-08-28  Eric Blake  <ebb9@byu.net>
73652
73653         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
73654
73655 2006-08-28  Eric Blake  <ebb9@byu.net>
73656
73657         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
73658
73659 2006-08-28  Bruno Haible  <bruno@clisp.org>
73660
73661         * modules/c-strstr: New file, from GNU gettext.
73662         * MODULES.html.sh (String handling): Add c-strstr.
73663
73664 2006-08-28  Bruno Haible  <bruno@clisp.org>
73665
73666         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
73667         macros.
73668         Reported by Eric Blake.
73669
73670 2006-08-28  Bruno Haible  <bruno@clisp.org>
73671
73672         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
73673         (VASNPRINTF): Return a string of length > INT_MAX without failing.
73674         * lib/vasprintf.c: Include errno.h, limits.h.
73675         (EOVERFLOW): New fallback definition.
73676         (vasprintf): Test here whether the string length is > INT_MAX.
73677         * lib/vsnprintf.c: Include errno.h, limits.h.
73678         (EOVERFLOW): New fallback definition.
73679         (vsnprintf): Fix bug when generated string was too long for the buffer.
73680         Test here whether the string length is > INT_MAX.
73681
73682 2006-08-28  Bruno Haible  <bruno@clisp.org>
73683
73684         * lib/inttypes_.h (SCNX*): Remove definitions.
73685         Reported by Eric Blake.
73686
73687 2006-08-28  Bruno Haible  <bruno@clisp.org>
73688
73689         * lib/c-strstr.h: New file, from GNU gettext.
73690         * lib/c-strstr.c: New file, from GNU gettext.
73691
73692 2006-08-28  Bruno Haible  <bruno@clisp.org>
73693
73694         * gnulib-tool: Reorder some statements.
73695
73696 2006-08-28  Bruno Haible  <bruno@clisp.org>
73697
73698         * gnulib-tool: New option --makefile-name.
73699         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
73700         $makefile_name.
73701         (func_import): Write $makefile_name to the cache file, and read it from
73702         there unless explicitly specified. Use $makefile_name as file name
73703         instead of Makefile.am. Adjust the recommendations accordingly.
73704
73705 2006-08-28  Bruno Haible  <bruno@clisp.org>
73706
73707         * gnulib-tool (func_verify_module): Check against misapplying patch.
73708
73709 2006-08-28  Bruno Haible  <bruno@clisp.org>
73710
73711         * gnulib-tool (func_relativize, func_relconcat): New functions.
73712         Give an error if --local-dir is given with --update.
73713         Remove trailing slashes from $local_gnulib_dir.
73714         (func_import): Store the relativized $local_gnulib_dir in
73715         gnulib-cache.m4, and read it from there if not specified explicitly.
73716
73717 2006-08-28  Bruno Haible  <bruno@clisp.org>
73718
73719         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
73720         is the current directory. Respect also $local_gnulib_dir.
73721
73722 2006-08-28  Bruno Haible  <bruno@clisp.org>
73723             Simon Josefsson  <jas@extundo.com>
73724
73725         BeOS portability.
73726         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
73727
73728 2006-08-27  Jim Meyering  <jim@meyering.net>
73729
73730         * doc/visibility.texi: Remove duplicate word: "pointer".
73731
73732 2006-08-26  Bruno Haible  <bruno@clisp.org>
73733
73734         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
73735         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
73736         (Makefile.am): Create inttypes.h from inttypes_.h.
73737         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
73738
73739         * modules/imaxabs: New file.
73740
73741         * modules/imaxdiv: New file.
73742
73743 2006-08-26  Bruno Haible  <bruno@clisp.org>
73744
73745         * m4/inttypes.m4: New file.
73746         * m4/_inttypes_h.m4: Remove file.
73747         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
73748         PRI_MACROS_BROKEN.
73749         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
73750
73751         * m4/imaxabs.m4: New file.
73752
73753         * m4/imaxdiv.m4: New file.
73754
73755 2006-08-26  Bruno Haible  <bruno@clisp.org>
73756
73757         * lib/inttypes_.h: New file.
73758         * lib/inttypes.h: Remove file.
73759         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
73760
73761         * lib/imaxabs.c: New file.
73762
73763         * lib/imaxdiv.c: New file.
73764
73765 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
73766
73767         New config-h module, so that "make" output needn't be cluttered
73768         by -DHAVE_CONFIG_H.
73769         * MODULES.html.sh (Support for building libraries and executables):
73770         Add config-h.
73771         * modules/config-h: New file.
73772         * gnulib-tool (nl, sed_transform_lib_file): New vars.
73773         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
73774         the config-h module is used.
73775
73776         New configmake module, so that "make" output needn't be cluttered
73777         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
73778         * MODULES.html.sh (Support for building libraries and executables):
73779         Add configmake.
73780         * modules/configmake: New file.
73781
73782 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
73783
73784         * m4/config-h.m4: New file.
73785
73786 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
73787
73788         * config/srclist.txt: Add elisp-comp.
73789
73790 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
73791
73792         * MODULES.html.sh (Support for building libraries and executables):
73793         Add elisp-comp.
73794         * build-aux/elisp-comp: New file.
73795         * modules/elisp-comp: New file.
73796
73797 2006-08-24  Bruno Haible  <bruno@clisp.org>
73798
73799         * gnulib-tool (func_create_testdir): Use non-default values of
73800         sourcebase and m4base.
73801
73802 2006-08-24  Bruno Haible  <bruno@clisp.org>
73803
73804         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
73805         HTML structure.
73806
73807 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
73808
73809         * modules/openat (Depends-on): Add lchown.
73810
73811 2006-08-23  Bruno Haible  <bruno@clisp.org>
73812
73813         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
73814         of gl_LOCK_EARLY instead of gl_LOCK.
73815
73816 2006-08-23  Bruno Haible  <bruno@clisp.org>
73817
73818         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
73819         on OSF/1 to no.
73820         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
73821
73822 2006-08-23  Bruno Haible  <bruno@clisp.org>
73823
73824         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
73825         as unusable.
73826
73827         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
73828         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
73829         (gl_LOCK): New macro.
73830
73831 2006-08-22  Simon Josefsson  <jas@extundo.com>
73832
73833         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
73834         to md5 module.
73835
73836 2006-08-22  Simon Josefsson  <jas@extundo.com>
73837
73838         * MODULES.html.sh: Add "Support for maintaining and release
73839         projects".
73840
73841         * build-aux/gnupload: New file, from coreutils.
73842
73843 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
73844
73845         Avoid the need for AC_LIBSOURCES in m4 macros.
73846         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
73847         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
73848         * modules/check-version (EXTRA_DIST): Add check-version.h.
73849         * modules/crc (EXTRA_DIST): Add crc.h.
73850         * modules/des (EXTRA_DIST): Add des.h.
73851         * modules/gc (EXTRA_DIST): Add gc.h.
73852         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
73853         * modules/getline (EXTRA_DIST): Add getline.h.
73854         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
73855         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
73856         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
73857         * modules/md2 (EXTRA_DIST): Add md2.h.
73858         * modules/md4 (EXTRA_DIST): Add md4.h.
73859         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
73860         * modules/read-file (EXTRA_DIST): Add read-file.h.
73861         * modules/readline (EXTRA_DIST): Add readline.h.
73862         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
73863         rijndael-api-fst.h.
73864
73865 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
73866
73867         * m4/rijndael.m4 (gl_ARCFOUR):
73868         * m4/arctwo.m4 (gl_ARCTWO):
73869         * m4/check-version.m4 (gl_CHECK_VERSION):
73870         * m4/crc.m4 (gl_CRC):
73871         * m4/des.m4 (gl_DES):
73872         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
73873         * m4/gc.m4 (gl_GC):
73874         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
73875         * m4/getline.m4 (gl_FUNC_GETLINE):
73876         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
73877         * m4/hmac-md5.m4 (gl_HMAC_MD5):
73878         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
73879         * m4/md2.m4 (gl_MD2):
73880         * m4/md4.m4 (gl_MD4):
73881         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
73882         * m4/read-file.m4 (gl_FUNC_READ_FILE):
73883         * m4/readline.m4 (gl_FUNC_READLINE):
73884         * m4/rijndael.m4 (gl_RIJNDAEL):
73885         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
73886         to get the necessary .h files and whatnot.
73887
73888 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
73889
73890         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
73891         gnulib rather than the other way around.
73892         * config/srclistvars.sh (COREUTILS): Remove.
73893
73894 2006-08-22  Jim Meyering  <jim@meyering.net>
73895
73896         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
73897
73898         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
73899
73900 2006-08-22  Eric Blake  <ebb9@byu.net>
73901
73902         * modules/regexprops-generic: New file.
73903         * MODULES.html.sh (Support for building documentation): List it.
73904
73905 2006-08-22  Eric Blake  <ebb9@byu.net>
73906
73907         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
73908         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
73909         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
73910         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
73911
73912 2006-08-22  Bruno Haible  <bruno@clisp.org>
73913
73914         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
73915         and lib_LTLIBRARIES like the other lib_* variables.
73916
73917 2006-08-22  Bruno Haible  <bruno@clisp.org>
73918
73919         * build-aux/x-to-1.in: New file, from GNU gettext.
73920
73921 2006-08-22  Bruno Haible  <bruno@clisp.org>
73922
73923         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
73924         <utmpx.h> exists.
73925
73926 2006-08-22  Bruno Haible  <bruno@clisp.org>
73927
73928         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
73929         <utmpx.h> exists.
73930
73931 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
73932
73933         BeOS portability.
73934         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
73935         exist.
73936         Problem reported by Bruno Haible.
73937
73938 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
73939
73940         Avoid the need for AC_LIBSOURCES in m4 macros.
73941         * modules/acl (EXTRA_DIST): Add acl.h.
73942         * modules/argmatch (Files): Add m4/argmatch.m4.
73943         (configure.ac): Add gl_ARGMATCH.
73944         (EXTRA_DIST): Renamed from lib_SOURCES, for
73945         consistency with the other modules.  Remove argmatch.c.
73946         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
73947         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
73948         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
73949         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
73950         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
73951         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
73952         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
73953         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
73954         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
73955         * modules/closeout (EXTRA_DIST): Add closeout.h.
73956         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
73957         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
73958         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
73959         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
73960         dirname.h; remove basename.c and stripslash.c.
73961         * modules/exclude (EXTRA_DIST): Add exclude.h.
73962         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
73963         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
73964         * modules/file-type (EXTRA_DIST): Add file-type.h.
73965         * modules/filemode (EXTRA_DIST): Add filemode.h.
73966         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
73967         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
73968         * modules/fpending (EXTRA_DIST): Add __fpending.h.
73969         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
73970         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
73971         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
73972         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
73973         * modules/getdate (EXTRA_DIST): Add getdate.c.
73974         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
73975         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
73976         * modules/getpass (EXTRA_DIST): Add getpass.h.
73977         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
73978         * modules/group-member (EXTRA_DIST): Add group-member.h.
73979         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
73980         * modules/hash (EXTRA_DIST): Add hash.h.
73981         * modules/human (EXTRA_DIST): Add human.h.
73982         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
73983         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
73984         * modules/lchown (EXTRA_DIST): Add lchown.h.
73985         * modules/long-options (EXTRA_DIST): Add long-options.h.
73986         * modules/lstat (EXTRA_DIST): Add lstat.h.
73987         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
73988         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
73989         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
73990         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
73991         * modules/memxor (EXTRA_DIST): Add memxor.h.
73992         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
73993         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
73994         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
73995         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
73996         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
73997         * modules/physmem (EXTRA_DIST): Add physmem.h.
73998         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
73999         * modules/posixver (EXTRA_DIST): Add posixver.h.
74000         * modules/quote (EXTRA_DIST): Add quote.h.
74001         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
74002         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
74003         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
74004         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
74005         regex_internal.h regexec.c.
74006         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
74007         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
74008         * modules/same (EXTRA_DIST): Add same.h.
74009         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
74010         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
74011         * modules/savedir (EXTRA_DIST): Add savedir.h.
74012         * modules/sha1 (EXTRA_DIST): Add sha1.h.
74013         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
74014         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
74015         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
74016         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
74017         * modules/strdup (EXTRA_DIST): Add strdup.h.
74018         * modules/strftime (EXTRA_DIST): Add strftime.h.
74019         * modules/strndup (EXTRA_DIST): Add strndup.h.
74020         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
74021         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
74022         * modules/time_r (EXTRA_DIST): Add time_r.h.
74023         * modules/timespec (EXTRA_DIST): Add timespec.h.
74024         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
74025         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
74026         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
74027         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
74028         * modules/userspec (EXTRA_DIST): Add userspec.h.
74029         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
74030         * modules/utimens (EXTRA_DIST): Add utimens.h.
74031         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
74032         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
74033         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
74034         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
74035         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
74036         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
74037         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
74038         * modules/yesno (EXTRA_DIST): Add yesno.h.
74039
74040 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
74041
74042         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
74043
74044         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
74045         * m4/dev-ino.m4, same-inode.m4: Remove.
74046
74047         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
74048         * m4/acl.m4 (AC_FUNC_ACL):
74049         * m4/backupfile.m4 (gl_BACKUPFILE):
74050         * m4/c-strtod.m4 (gl_C99_STRTOLD):
74051         * m4/canon-host.m4 (gl_CANON_HOST):
74052         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
74053         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
74054         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
74055         * m4/cloexec.m4 (gl_CLOEXEC):
74056         * m4/close-stream.m4 (gl_CLOSE_STREAM):
74057         * m4/closeout.m4 (gl_CLOSEOUT):
74058         * m4/dirfd.m4 (gl_FUNC_DIRFD):
74059         * m4/dirname.m4 (gl_DIRNAME):
74060         * m4/exclude.m4 (gl_EXCLUDE):
74061         * m4/exitfail.m4 (gl_EXITFAIL):
74062         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
74063         * m4/file-type.m4 (gl_FILE_TYPE):
74064         * m4/filemode.m4 (gl_FILEMODE):
74065         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
74066         * m4/fpending.m4 (gl_FUNC_FPENDING):
74067         * m4/fprintftime.m4 (gl_FPRINTFTIME):
74068         * m4/fts.m4 (gl_FUNC_FTS):
74069         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
74070         * m4/getdate.m4 (gl_GETDATE):
74071         * m4/gethrxtime.m4 (gl_GETHRXTIME):
74072         * m4/getpagesize.m4 (gl_GETPAGESIZE):
74073         * m4/getpass.m4 (gl_FUNC_GETPASS):
74074         * m4/gettime.m4 (gl_GETTIME):
74075         * m4/getugroups.m4 (gl_GETUGROUPS):
74076         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
74077         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
74078         * m4/hard-locale.m4 (gl_HARD_LOCALE):
74079         * m4/hash.m4 (gl_HASH):
74080         * m4/idcache.m4 (gl_IDCACHE):
74081         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
74082         * m4/lchown.m4 (gl_FUNC_LCHOWN):
74083         * m4/long-options.m4 (gl_LONG_OPTIONS):
74084         * m4/lstat.m4 (gl_FUNC_LSTAT):
74085         * m4/md5.m4 (gl_MD5):
74086         * m4/memcasecmp.m4 (gl_MEMCASECMP):
74087         * m4/memcoll.m4 (gl_MEMCOLL):
74088         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
74089         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
74090         * m4/memxor.m4 (gl_MEMXOR):
74091         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
74092         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
74093         * m4/modechange.m4 (gl_MODECHANGE):
74094         * m4/mountlist.m4 (gl_MOUNTLIST):
74095         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
74096         * m4/openat.m4 (gl_FUNC_OPENAT):
74097         * m4/pathmax.m4 (gl_PATHMAX):
74098         * m4/physmem.m4 (gl_PHYSMEM):
74099         * m4/posixtm.m4 (gl_POSIXTM):
74100         * m4/posixver.m4 (gl_POSIXVER):
74101         * m4/quote.m4 (gl_QUOTE):
74102         * m4/quotearg.m4 (gl_QUOTEARG):
74103         * m4/readtokens.m4 (gl_READTOKENS):
74104         * m4/readutmp.m4 (gl_READUTMP):
74105         * m4/regex.m4 (gl_REGEX):
74106         * m4/safe-read.m4 (gl_SAFE_READ):
74107         * m4/safe-write.m4 (gl_SAFE_WRITE):
74108         * m4/same.m4 (gl_SAME):
74109         * m4/save-cwd.m4 (gl_SAVE_CWD):
74110         * m4/savedir.m4 (gl_SAVEDIR):
74111         * m4/settime.m4 (gl_SETTIME):
74112         * m4/sha1.m4 (gl_SHA1):
74113         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
74114         * m4/stat-macros.m4 (gl_STAT_MACROS):
74115         * m4/stat-time.m4 (gl_STAT_TIME):
74116         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
74117         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
74118         * m4/strdup.m4 (gl_FUNC_STRDUP):
74119         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
74120         * m4/strndup.m4 (gl_FUNC_STRNDUP):
74121         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
74122         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
74123         * m4/time_r.m4 (gl_TIME_R):
74124         * m4/timespec.m4 (gl_TIMESPEC):
74125         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
74126         * m4/unlinkdir.m4 (gl_UNLINKDIR):
74127         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
74128         * m4/userspec.m4 (gl_USERSPEC):
74129         * m4/utimecmp.m4 (gl_UTIMECMP):
74130         * m4/utimens.m4 (gl_UTIMENS):
74131         * m4/xalloc.m4 (gl_XALLOC):
74132         * m4/xgetcwd.m4 (gl_XGETCWD):
74133         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
74134         * m4/xreadlink.m4 (gl_XREADLINK):
74135         * m4/xstrtod.m4 (gl_XSTRTOD):
74136         * m4/yesno.m4 (gl_YESNO):
74137         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
74138         to get the necessary .h files and whatnot.
74139
74140 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
74141             Bruno Haible  <bruno@clisp.org>
74142
74143         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
74144         /bin/sh understanding of '!' conditional negation.
74145
74146 2006-08-21  Jim Meyering  <jim@meyering.net>
74147
74148         * modules/openat (Depends-on): Really alphabetize.
74149
74150         * modules/acl (Depends-on): Add error and quote.
74151
74152         * check-module (find_included_lib_files): Add at-func.c to the
74153         ok-to-include-more-than-once white list.
74154
74155         * modules/openat (Depends-on): Add lstat.  Alphabetize.
74156
74157 2006-08-21  Bruno Haible  <bruno@clisp.org>
74158
74159         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74160         Emit a pkgdata_DATA variable only if some snippets add contents to it.
74161         Reported by Martin Lambers <marlam@marlam.de>.
74162
74163 2006-08-21  Bruno Haible  <bruno@clisp.org>
74164
74165         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
74166         specify an installation location, don't emit a noinst_LIBRARIES or
74167         noinst_LTLIBRARIES assignment.
74168
74169 2006-08-21  Bruno Haible  <bruno@clisp.org>
74170
74171         BeOS portability.
74172         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
74173         BeOS has mbrtowc() but no <wctype.h>.
74174
74175 2006-08-21  Bruno Haible  <bruno@clisp.org>
74176
74177         BeOS portability.
74178         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
74179         exist.
74180
74181 2006-08-21  Bruno Haible  <bruno@clisp.org>
74182
74183         BeOS portability.
74184         * lib/mbchar.h: Include <wctype.h> only if it exists.
74185
74186 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74187
74188         Remove files that are no longer needed by their respective modules.
74189         * m4/obstack.m4: Remove.
74190         * m4/strerror_r.m4: Remove.
74191         * m4/uint32_t.m4: Remove.
74192         * m4/uintptr_t.m4: Remove.
74193         * m4/ullong_max.m4: Remove.
74194         * m4/xstrtoimax.m4: Remove.
74195         * m4/xstrtoumax.m4: Remove.
74196
74197         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
74198         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
74199         dependencies now capture this.
74200
74201         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
74202         Do not use AC_LIBSOURCES, since gnulib modules now do this.
74203         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
74204         * m4/human.m4 (gl_HUMAN): Likewise.
74205         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
74206         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
74207
74208         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
74209
74210         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
74211         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
74212         stdint.
74213         * m4/human.m4 (gl_HUMAN): Likewise.
74214         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
74215         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
74216         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
74217         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
74218         * m4/xstrtol (gl_XSTRTOL): Likewise.
74219
74220         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
74221         AC_TYPE_LONG_LONG_INT.
74222         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
74223         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
74224         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
74225         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
74226
74227         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
74228         on stdbool.
74229
74230         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
74231         (gl_PREREQ_XSTRTOUL): Remove.
74232
74233         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
74234
74235         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
74236         mode.
74237
74238 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74239
74240         Add and change modules to make it easier for coreutils to use
74241         gnulib-tool.
74242         * modules/backupfile (Files): Remove m4/d-ino.m4.
74243         (Depends-on): Add d-ino.
74244         * modules/cycle-check (Depends-on): Add stdint.
74245         (lib_SOURCES): Add cycle-check.h.
74246         * modules/d-ino: New module.
74247         * modules/d-type: New module.
74248         * modules/error (Files): Remove m4/strerror_r.m4.
74249         * modules/filemode (Files): Add m4/st_dm_mode.m4.
74250         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
74251         m4/inttypes_h.m4, m4/uintmax_t.m4.
74252         (Depends-on): Add stdint.
74253         (lib_SOURCES): Add fsusage.h.
74254         * modules/getcwd (Files): Remove d-ino.m4.
74255         (Depends-on): Add d-ino.
74256         * modules/getndelim2 (Depends-on): Add stdint.
74257         * modules/glob (Files): Remove m4/d-type.m4.
74258         (Depends-on): Add d-type.
74259         * modules/host-os: New module.
74260         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
74261         m4/inttypes_h.m4, m4/uintmax_t.m4.
74262         * Depends-on: Add stdint.
74263         (lib_SOURCES): Add human.h.
74264         * modules/inttostr (Files): Remove m4/intmax_t.m4,
74265         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
74266         m4/uintmax_t.m4, m4/ulonglong.m4.
74267         (Depends-on): Add stdint.
74268         (EXTRA_DIST): Add inttostr.h.
74269         * modules/lchmod: New module.
74270         * modules/link-follow: New module.
74271         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
74272         (Depends-on): Add lchmod.
74273         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
74274         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
74275         (Depends-on): Add stdint.
74276         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
74277         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
74278         (Depends-on): Add stdint.
74279         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
74280         * modules/perl: New module.
74281         * modules/regex (Depends-on): Add stdint.
74282         * modules/rmdir-errno: New module.
74283         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
74284         m4/intmax_t.m4.
74285         (Depends-on): Add stdint.
74286         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
74287         m4/uintmax_t.m4.
74288         (Depends-on): Add stdint.
74289         * modules/unlink-busy: New module.
74290         * modules/utimecmp (Depends-on): Add stdint.
74291         * modules/uptime: New module.
74292         * modules/winsz-ioctl: New module.
74293         * modules/winsz-termios: New module.
74294         * modules/xnanosleep (Depends-on): Add nanosleep.
74295         * modules/ullong_max: Remove.
74296         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
74297         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
74298         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
74299         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
74300         (Depends-on): Add inttypes.
74301         (lib_SOURCES): Add xstrtol.h.
74302         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
74303         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
74304         * MODULES.html.sh: Move 'assert' into the assert section.
74305         Move 'dummy' into the linking section.
74306         Remove ullong_max.
74307         Add section for compatibility checks for POSIX:2001 functions,
74308         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
74309         winsz-ioctl, and winsz-termios into it.
74310         Add lchmod.
74311         Add top-level Misc section and put host-os, perl, and uptime
74312         into it.
74313
74314 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
74315
74316         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
74317         now assume the stdint module.  Do not include inttypes.h.
74318         * lib/fsusage.h: Likewise.
74319         * lib/getndelim2.c: Likewise.
74320         * lib/human.h: Likewise.
74321         * lib/inttostr.h: Likewise.
74322         * lib/obstack.c: Likewise.
74323         * lib/regex_internal.h: Likewise.
74324         * lib/tempname.c: Likewise.
74325         * lib/utimecmp.c: Likewise.
74326         * lib/xstrtol.h: Likewise.
74327
74328         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
74329
74330         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
74331         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
74332         * lib/xtime.h: Likewise.
74333
74334 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74335
74336         * modules/openat (Files): Add lib/fchmodat.c.
74337         Fixes problem reported by Jay Youngman.
74338
74339 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
74340
74341         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
74342         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
74343
74344 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
74345             Bruno Haible  <bruno@clisp.org>
74346
74347         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
74348         and is a script that invokes bison. Tighten the code. Add comments.
74349
74350 2006-08-18  Jim Meyering  <jim@meyering.net>
74351
74352         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
74353         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
74354         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
74355         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
74356
74357 2006-08-18  Bruno Haible  <bruno@clisp.org>
74358
74359         * modules/bison-i18n: New file.
74360         * MODULES.html.sh (Internationalization functions): Add it.
74361
74362 2006-08-18  Bruno Haible  <bruno@clisp.org>
74363
74364         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
74365         sys/statvfs.h. When getmntinfo was found, check its declaration and
74366         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
74367
74368 2006-08-18  Bruno Haible  <bruno@clisp.org>
74369
74370         * m4/bison-i18n.m4: New file, from bison.
74371
74372 2006-08-18  Bruno Haible  <bruno@clisp.org>
74373
74374         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
74375         (ME_DUMMY): Treat "kernfs" as a dummy.
74376         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
74377
74378 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74379
74380         Update from coreutils.
74381
74382         2006-08-15  Jim Meyering  <jim@meyering.net>
74383
74384         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
74385
74386         2006-01-17  Jim Meyering  <jim@meyering.net>
74387
74388         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
74389
74390         2006-01-11  Jim Meyering  <jim@meyering.net>
74391
74392         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
74393         Check for the lchmod function.
74394
74395 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
74396
74397         Update from coreutils.
74398
74399         * lib/__fpending.h: Add copyright notice.
74400         * lib/fprintftime.h: Likewise.
74401         * lib/savedir.c: Use (C) in copyright notice.
74402         * lib/savedir.h: Likewise.
74403
74404         2006-08-15  Jim Meyering  <jim@meyering.net>
74405
74406         * lib/at-func.c: New file, with the logic of all emulated at-functions.
74407         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
74408         in support of the EXPECTED_ERRNO macro.
74409         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
74410         definitions.  Instead, define the appropriate symbols and include
74411         "at-func.c".
74412         * lib/mkdirat.c (mkdirat): Likewise.
74413         * lib/fchmodat.c (fchmodat): Likewise.
74414         (ENOSYS): Remove definition.
74415         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
74416         it.  Don't include "unistd--.h" -- it wasn't ever used.
74417
74418         2006-01-17  Jim Meyering  <jim@meyering.net>
74419
74420         Rewrite fts.c not to change the current working directory,
74421         by using openat, fstatat, fdopendir, etc..
74422
74423         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
74424         (HAVE_OPENAT_SUPPORT): Define.
74425         [_LIBC] (fchdir): Don't undef or define; no longer used.
74426         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
74427         Now, this `function' always succeeds, and consumes its file descriptor
74428         parameter -- so callers must not close such FDs.  Update callers.
74429         (diropen_fd, opendirat, cwd_advance_fd): New functions.
74430         (diropen): Add parameter, SP.  Adjust all callers.
74431         Implement using diropen_fd, rather than open.
74432         (fts_open): Initialize new member, fts_cwd_fd.
74433         Remove fts_rft-setting code.
74434         (fts_close): Close fts_cwd_fd, if necessary.
74435         (__opendir2): Define in terms of opendir or opendirat,
74436         depending on whether the FST_NOCHDIR flag is set.
74437         (fts_build): Since fts_safe_changedir consumes its FD, and since
74438         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
74439         and close the dup'd file descriptor upon failure.
74440         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
74441         (fts_safe_changedir): Tweak semantics to reflect that this function
74442         now calls cwd_advance_fd and hence consumes its FD argument.
74443         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
74444         [struct FTS] (fts_rft): Remove now-unused member.
74445         [struct FTS] (fts_cycle.state): Improve comment.
74446
74447         * lib/openat.c (openat_needs_fchdir): New function.
74448         * lib/openat.h (openat_needs_fchdir): Declare it.
74449
74450 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
74451
74452         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
74453         Problem and fix reported by Pádraig Brady in
74454         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
74455
74456 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74457
74458         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
74459
74460 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74461
74462         * lib/memcoll.c (memcoll): Optimize for the common case where the
74463         arguments are bytewise equal.
74464
74465 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
74466
74467         * doc/regexprops-generic.texi: Add a copyright notice.
74468
74469 2006-08-15  Bruno Haible  <bruno@clisp.org>
74470
74471         * modules/tmpdir (License): Change to LGPL.
74472
74473 2006-08-15  Bruno Haible  <bruno@clisp.org>
74474
74475         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
74476         module.
74477
74478 2006-08-14  Simon Josefsson  <jas@extundo.com>
74479
74480         * config/srclist.txt: Add gnupload.
74481
74482 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74483
74484         Change copyright notice from LGPL 2 to GPL 2, since that's the
74485         standard form used in the gnulib repository.
74486         * tests/test-lock.c: Likewise.
74487         * tests/test-stdint.c: Likewise.
74488         * tests/test-tls.c: Likewise.
74489
74490         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
74491         prelude-manager.  User shorter URLs for GNU projects, without '?'.
74492         Add copyright notice.
74493
74494         * check-module: Add copyright notice.  Output a copyright
74495         notice if "--version" is specified.
74496         * modules/COPYING: New file.
74497         * tests/test-getaddrinfo.c: Add copyright notice.
74498         * tests/test-verify.c: Likewise.
74499
74500 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74501
74502         Change copyright notice from LGPL 2 to GPL 2, since that's the
74503         standard form used in the gnulib repository.
74504         * lib/lock.c: LGPL -> GPL.
74505         * lib/lock.h: Likewise.
74506         * lib/strnlen1.c: Likewise.
74507         * lib/strnlen1.h: Likewise.
74508         * lib/tls.c: Likewise.
74509         * lib/tls.h: Likewise.
74510         * lib/tmpdir.c: Likewise.
74511
74512         * lib/TODO: Remove; this belongs only in coreutils.
74513
74514 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74515
74516         Add copyright notices to long-enough files that lack them, since
74517         otherwise the files aren't clearly free.  Use the same notice that
74518         getdate.texi already uses.
74519         * doc/alloca-opt.texi: Add copyright notice.
74520         * doc/alloca.texi: Likewise.
74521         * doc/ctime.texi: Likewise.
74522         * doc/functions.texi: Likewise.
74523         * doc/gcd.texi: Likewise.
74524         * doc/gnulib-tool.texi: Likewise.
74525         * doc/inet_ntoa.texi: Likewise.
74526         * doc/visibility.texi: Likewise.
74527
74528         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
74529         * doc/quote.texi: Add copyright notice.
74530
74531         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
74532         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
74533         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
74534         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
74535         is now obsolete, and give a pointer to the Sun list.
74536         Add copyright notice.
74537
74538 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
74539
74540         * config/srclistvars.sh: Add copyright notice.
74541
74542 2006-08-14  Eric Blake  <ebb9@byu.net>
74543
74544         Import the following change from libc:
74545
74546         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
74547
74548         Upstream bug 2997.
74549         * lib/misc/error.c: Add space between program name and message if file
74550         name is missing.
74551
74552 2006-08-12  Karl Berry  <karl@gnu.org>
74553
74554         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
74555         remove, these originate in gnulib now.
74556
74557 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74558
74559         * doc/Makefile (standards.info standards.html standards.dvi):
74560         Also depend on make-stds.texi.
74561
74562 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
74563
74564         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
74565         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
74566
74567         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
74568         in wchar_t.  Problem reported by Eric Blake.
74569
74570         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
74571         LEN is smaller than SIZE.  Suggested by Bruno Haible.
74572         Also, help the compiler to keep LEN in a register.
74573
74574 2006-08-11  Eric Blake  <ebb9@byu.net>
74575
74576         * users.txt: Sort.  Add tar.
74577
74578 2006-08-11  Bruno Haible  <bruno@clisp.org>
74579
74580         * users.txt: New file.
74581
74582 2006-08-11  Bruno Haible  <bruno@clisp.org>
74583
74584         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
74585         before <wchar.h>. Needed for OSF/1 and BSD/OS.
74586
74587 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
74588
74589         * modules/snprintf (Depends-on): Remove minmax.
74590         (Maintainer): Add self and Bruno.
74591
74592 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
74593
74594         * lib/.cppi-disable: Add snprintf.h, socket_.h.
74595         * lib/snprintf.c: Include <errno.h> and <limits.h>.
74596         (EOVERFLOW): Define if the system does not.
74597         Do not include "minmax.h"; it wasn't used.
74598         (snprintf): Don't assume size_t promotes to an unsigned type.
74599         Fix bug when generated string was too long for the buffer: the
74600         buffer's contents are supposed to be the initial prefix of the
74601         output.  Don't assume vasnprintf returns EOVERFLOW if the size
74602         exceeds INT_MAX; do the check ourselves.
74603
74604         Import the following changes from libc:
74605
74606         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
74607
74608         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
74609         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
74610         set wc to the byte which couldn't be converted.
74611         (re_string_reconstruct): Don't clear valid_raw_len before calling
74612         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
74613         tip_context using re_string_context_at.
74614
74615         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
74616
74617         * lib/posix/regex.h: g++ still cannot handled [restrict].
74618
74619         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
74620
74621         * lib/posix/regex.h: Remove special handling for VMS.
74622
74623 2006-08-10  Jim Meyering  <jim@meyering.net>
74624
74625         * modules/same-inode: New module.
74626         * modules/dev-ino: New module.
74627         * modules/cycle-check: Depend on these modules, rather than simply
74628         including their .h files.
74629         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
74630         required via m4/cycle-check.m4.
74631         * modules/same: Depend on new same-inode module, rather than
74632         including same-inode.h.
74633         * modules/chdir-safer: New file.
74634
74635         * modules/chown (Depends-on): Add stat-macros.
74636
74637 2006-08-10  Jim Meyering  <jim@meyering.net>
74638
74639         * m4/cycle-check.m4: New file.
74640         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
74641         * m4/dev-ino.m4, m4/same-inode.m4: New files.
74642
74643 2006-08-10  Eric Blake  <ebb9@byu.net>
74644
74645         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
74646         in from original proposal.
74647
74648 2006-08-10  Eric Blake  <ebb9@byu.net>
74649         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
74650
74651         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
74652         namespace.
74653
74654 2006-08-10  Bruno Haible  <bruno@clisp.org>
74655
74656         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
74657         as well.
74658
74659 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74660
74661         Sync from coreutils.
74662
74663         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
74664
74665         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
74666         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
74667
74668 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74669
74670         * modules/restrict: Remove; no longer needed now that we assume
74671         Autoconf 2.59 or later.
74672         * MODULES.html.sh: Remove 'restrict'.
74673         * modules/argp (Depends-on): Remove 'restrict'.
74674         * modules/base64 (Depends-on): Likewise.
74675         * modules/gc (Depends-on): Likewise.
74676         * modules/getaddrinfo (Depends-on): Likewise.
74677         * modules/glob (Depends-on): Likewise.
74678         * modules/inet_ntop (Depends-on): Likewise.
74679         * modules/inet_pton (Depends-on): Likewise.
74680         * modules/memxor (Depends-on): Likewise.
74681         * modules/regex (Depends-on): Likewise.
74682         * modules/strtok_r (Depends-on): Likewise.
74683         * modules/time_r (Depends-on): Likewise.
74684
74685 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
74686
74687         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
74688         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
74689         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
74690         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
74691         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
74692         * m4/memxor.m4 (gl_MEMXOR): Likewise.
74693         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
74694         gl_C_RESTRICT replaced by AC_C_RESTRICT.
74695
74696         Merge from coreutils.
74697         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
74698         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
74699         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
74700         * m4/time_r.m4 (gl_TIME_R): Likewise.
74701
74702 2006-08-09  Karl Berry  <karl@gnu.org>
74703
74704         * config/srclist.txt: no more gettext-tools, per Bruno.
74705
74706 2006-08-08  Eric Blake  <ebb9@byu.net>
74707
74708         * modules/verror: New module.
74709         * MODULES.html.sh: Document it.
74710
74711 2006-08-08  Eric Blake  <ebb9@byu.net>
74712
74713         * lib/verror.h, lib/verror.c: New files.
74714
74715 2006-08-08  Eric Blake  <ebb9@byu.net>
74716
74717         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
74718         verror_at_line output complies with GNU Coding Standards even when
74719         file is NULL.
74720
74721 2006-08-07  Bruno Haible  <bruno@clisp.org>
74722
74723         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
74724         versions of AIX.
74725         Reported by Ralf Wildenhues.
74726
74727 2006-08-07  Bruno Haible  <bruno@clisp.org>
74728
74729         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
74730         in an AC_DEFUN. Needed so that the autoconf snippets can use
74731         AC_REQUIRE.
74732
74733 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74734
74735         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74736         Initialize pkgdata_DATA.
74737         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
74738         overriding it.
74739
74740 2006-08-06  Eric Blake  <ebb9@byu.net>
74741
74742         * lib/error.h: Fold in some upstream changes from glibc.
74743         * lib/error.c: Likewise.
74744
74745 2006-08-04  Bruno Haible  <bruno@clisp.org>
74746
74747         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74748         Make the mostlyclean-local rule depend on mostlyclean-generic.
74749         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
74750
74751 2006-07-31  Bruno Haible  <bruno@clisp.org>
74752
74753         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
74754         <stdlib.h>, <string.h>.
74755
74756 2006-07-30  Bruno Haible  <bruno@clisp.org>
74757
74758         * modules/readlink (License): Change to LGPL.
74759
74760 2006-07-30  Bruno Haible  <bruno@clisp.org>
74761
74762         * modules/javaversion (Makefile.am): Distribute javaversion.java and
74763         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
74764         set PKGDATADIR to point to it.
74765
74766 2006-07-30  Bruno Haible  <bruno@clisp.org>
74767
74768         * modules/csharpexec (configure.ac): Comment out macro invocation.
74769         * modules/javaexec (configure.ac): Likewise.
74770         * modules/javacomp-script (configure.ac): Likewise.
74771
74772         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
74773
74774 2006-07-30  Bruno Haible  <bruno@clisp.org>
74775
74776         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
74777         linked-list.
74778
74779 2006-07-30  Bruno Haible  <bruno@clisp.org>
74780
74781         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
74782
74783 2006-07-30  Bruno Haible  <bruno@clisp.org>
74784
74785         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74786         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
74787         get removed.
74788
74789 2006-07-29  Bruno Haible  <bruno@clisp.org>
74790
74791         Make it possible for gnulib-tool to work with locally modified or
74792         augmented gnulib repositories.
74793         * gnulib-tool (func_usage): Document --local-dir option.
74794         (local_gnulib_dir): New variable.
74795         Handle --local-dir option.
74796         (func_lookup_file): New function.
74797         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
74798         (func_get_description, func_get_filelist, func_get_description,
74799         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
74800         func_get_automake_snippet, func_get_include_directive,
74801         func_get_license, func_get_maintainer): Use func_lookup_file.
74802         (func_import, func_create_testdir): Use func_lookup_file.
74803
74804 2006-07-29  Bruno Haible  <bruno@clisp.org>
74805
74806         * modules/setenv (Depends-on): Add unistd.
74807
74808 2006-07-29  Bruno Haible  <bruno@clisp.org>
74809
74810         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
74811
74812 2006-07-29  Bruno Haible  <bruno@clisp.org>
74813
74814         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
74815
74816 2006-07-29  Bruno Haible  <bruno@clisp.org>
74817
74818         * gnulib-tool (import, update): If there is no Makefile.am, look at
74819         aclocal.m4, instead of bailing out.
74820
74821 2006-07-29  Bruno Haible  <bruno@clisp.org>
74822
74823         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
74824         Categorize the options by when they are useful.
74825
74826 2006-07-29  Bruno Haible  <bruno@clisp.org>
74827
74828         * gnulib-tool (func_usage): Document option --no-libtool.
74829         Handle option --no-libtool.
74830         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
74831         for changed semantics of $libtool variable.
74832         (func_import): Likewise. If libtool is not used, show this through
74833         an option --no-libtool.
74834         (func_create_testdir): Update.
74835
74836 2006-07-29  Bruno Haible  <bruno@clisp.org>
74837
74838         * gnulib-tool (func_import): Extend error message about missing
74839         --doc-base.
74840
74841 2006-07-29  Bruno Haible  <bruno@clisp.org>
74842
74843         * gnulib-tool (func_import): Don't create the $docbase directory if
74844         there is no file to store there.
74845
74846 2006-07-29  Bruno Haible  <bruno@clisp.org>
74847
74848         * gnulib-tool (autoconf_minversion): If a --dir option is given and
74849         relevant, look for configure.ac there, not in the current directory.
74850         Also use a simple search for AC_PREREQ, not "autoconf --trace".
74851
74852 2006-07-29  Bruno Haible  <bruno@clisp.org>
74853
74854         * gnulib-tool (SORT): New variable.
74855         (func_usage): Undocument --assume-autoconf option.
74856         Remove --assume-autoconf option handling.
74857         (autoconf_minversion): Determine from the contents of configure.ac.
74858         (func_import): Remove autoconf_minversion handling.
74859         Suggested by Eric Blake.
74860
74861 2006-07-29  Bruno Haible  <bruno@clisp.org>
74862
74863         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
74864
74865 2006-07-29  Bruno Haible  <bruno@clisp.org>
74866
74867         * config/srclist.txt (*setenv.[ch]): Remove rules.
74868
74869 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74870
74871         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
74872
74873 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74874
74875         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
74876         arpa/inet.h.
74877
74878 2006-07-28  Simon Josefsson  <jas@extundo.com>
74879
74880         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
74881         * modules/inet_pton (Depends-on): Likewise.
74882
74883 2006-07-28  Simon Josefsson  <jas@extundo.com>
74884
74885         * m4/netinet_in_h.m4: New file.
74886
74887 2006-07-28  Simon Josefsson  <jas@extundo.com>
74888
74889         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
74890         #include's.
74891
74892 2006-07-28  Simon Josefsson  <jas@extundo.com>
74893
74894         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
74895         #include's.
74896
74897 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
74898
74899         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
74900         setgid on directories only if they set these bits.
74901         * lib/modechange.h: Remove obsolete comment about masks.
74902
74903 2006-07-28  Eric Blake  <ebb9@byu.net>
74904
74905         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
74906         macro expansion.
74907
74908 2006-07-28  Bruno Haible  <bruno@clisp.org>
74909
74910         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
74911
74912 2006-07-28  Bruno Haible  <bruno@clisp.org>
74913
74914         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
74915
74916 2006-07-28  Bruno Haible  <bruno@clisp.org>
74917
74918         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
74919         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
74920         Define fallbacks.
74921         Avoids link error on FreeBSD 4.x.
74922         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
74923
74924         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
74925         encoding.
74926         * lib/mbswidth.c (iswcntrl): Likewise.
74927
74928 2006-07-27  Bruno Haible  <bruno@clisp.org>
74929
74930         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
74931         test.
74932
74933 2006-07-27  Bruno Haible  <bruno@clisp.org>
74934
74935         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
74936         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
74937         defined.
74938
74939 2006-07-26  Eric Blake  <ebb9@byu.net>
74940
74941         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
74942
74943 2006-07-26  Eric Blake  <ebb9@byu.net>
74944
74945         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
74946         like mingw that lack mkstemp.
74947         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
74948         avoid compilation warning on mingw.
74949
74950 2006-07-26  Bruno Haible  <bruno@clisp.org>
74951
74952         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
74953         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
74954         INT_FAST*_MIN, INTPTR_MIN.
74955
74956 2006-07-25  Bruno Haible  <bruno@clisp.org>
74957
74958         * modules/version-etc (Depends-on): Add stdarg.
74959
74960 2006-07-25  Bruno Haible  <bruno@clisp.org>
74961
74962         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
74963         complex commands.
74964
74965 2006-07-25  Bruno Haible  <bruno@clisp.org>
74966
74967         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
74968         defined in <stdarg.h> or config.h.
74969
74970 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
74971
74972         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
74973         (gl_STDIO_SAFER): Remove.
74974
74975 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
74976
74977         * MODULES.html.sh (File stream based Input/Output):
74978         Add fopen-safer, tmpfile-safer; remove stdio-safer.
74979         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
74980         * modules/fopen-safer, modules/tmpfile-safer: New files.
74981         * modules/stdio-safer: Remove.
74982
74983 2006-07-24  Bruno Haible  <bruno@clisp.org>
74984
74985         * modules/tmpdir: New file.
74986         * MODULES.html.sh (File system functions): Add it.
74987
74988 2006-07-24  Bruno Haible  <bruno@clisp.org>
74989
74990         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
74991         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
74992
74993 2006-07-24  Bruno Haible  <bruno@clisp.org>
74994
74995         * modules/clean-temp: New file.
74996
74997 2006-07-24  Bruno Haible  <bruno@clisp.org>
74998
74999         * m4/tmpdir.m4: New file, from GNU gettext.
75000
75001 2006-07-24  Bruno Haible  <bruno@clisp.org>
75002
75003         * lib/tmpdir.h: New file, from GNU gettext.
75004         * lib/tmpdir.c: New file, from GNU gettext.
75005
75006 2006-07-24  Bruno Haible  <bruno@clisp.org>
75007
75008         * lib/clean-temp.h: New file, from GNU gettext.
75009         * lib/clean-temp.c: New file, from GNU gettext.
75010
75011 2006-07-23  Eric Blake  <ebb9@byu.net>
75012
75013         * modules/stdio-safer (Files): Add tmpfile-safer.c.
75014         (Depends-on): Add binary-io.
75015
75016 2006-07-23  Eric Blake  <ebb9@byu.net>
75017
75018         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
75019
75020 2006-07-23  Eric Blake  <ebb9@byu.net>
75021
75022         * lib/tmpfile-safer.c: New file.
75023         * lib/stdio-safer.h (fopen_safer): Add prototype.
75024         * lib/stdio--.h (tmpfile): Make safer.
75025
75026 2006-07-23  Bruno Haible  <bruno@clisp.org>
75027
75028         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
75029         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
75030         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
75031         gl_linked_remove_at): Use it.
75032
75033 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
75034         and Simon Josefsson <jas@extundo.com>
75035
75036         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
75037
75038         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
75039
75040 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75041
75042         * modules/close-stream: New file.
75043         * modules/closeout (Description): Make it clear that it exits
75044         with a diagnostic on error.
75045         (Depends-on): Add close-stream.  Remove fpending, stdbool.
75046         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
75047
75048 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75049
75050         * m4/close-stream.m4: New file.
75051
75052 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
75053
75054         * lib/close-stream.c, lib/close-stream.h: New files.
75055
75056 2006-07-22  Bruno Haible  <bruno@clisp.org>
75057
75058         Merge from GNU gettext 0.15.
75059
75060         2006-05-01  Bruno Haible  <bruno@clisp.org>
75061
75062                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
75063
75064         2006-07-22  Bruno Haible  <bruno@clisp.org>
75065
75066                 * modules/javaversion: New file.
75067                 * MODULES.html.sh (Java): Add javaversion.
75068
75069         2006-03-12  Bruno Haible  <bruno@clisp.org>
75070
75071                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
75072
75073         2005-12-04  Bruno Haible  <bruno@clisp.org>
75074
75075                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
75076                 (untested).
75077
75078         2006-06-21  Bruno Haible  <bruno@clisp.org>
75079
75080                 Avoid warnings from recent versions of mcs.
75081                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
75082                 -o, -L, -r any more. Use options documented since mcs-1.0
75083                 instead. Similarly for -g.
75084
75085         2005-12-04  Bruno Haible  <bruno@clisp.org>
75086
75087                 * build-aux/csharpcomp.sh.in: Suffix for resources is
75088                 .resources, not .resource.
75089
75090         2005-07-09  Bruno Haible  <bruno@clisp.org>
75091
75092                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
75093                 add a .dll suffix.
75094                 Reported by Mark Junker <mjscod@gmx.de>.
75095
75096         2006-07-22  Bruno Haible  <bruno@clisp.org>
75097
75098                 * modules/gettext: Upgrade to gettext-0.15.
75099                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
75100                 m4/visibility.m4.
75101                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
75102
75103 2006-07-22  Bruno Haible  <bruno@clisp.org>
75104
75105         Merge from GNU gettext 0.15.
75106
75107         2006-03-25  Bruno Haible  <bruno@clisp.org>
75108
75109                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
75110
75111         2006-07-21  Bruno Haible  <bruno@clisp.org>
75112
75113                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
75114                 "1.1".
75115
75116         2006-05-09  Bruno Haible  <bruno@clisp.org>
75117
75118                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
75119                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
75120                 for the conftestver execution.
75121
75122         2006-05-01  Bruno Haible  <bruno@clisp.org>
75123
75124                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
75125                 optional target-version argument. Verify that the compiler
75126                 groks source of the specified source-version, or add -source
75127                 option as necessary. Verify that the compiler produces
75128                 bytecode in the specified target-version, or add -target and
75129                 -source options as necessary. Make the result of the test
75130                 available as variable CONF_JAVAC. Also log error output in
75131                 config.log.
75132
75133         2006-03-11  Bruno Haible  <bruno@clisp.org>
75134
75135                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
75136
75137         2006-05-09  Bruno Haible  <bruno@clisp.org>
75138
75139                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
75140                 CLASSPATH_SEPARATOR to a semicolon.
75141
75142         2006-03-12  Bruno Haible  <bruno@clisp.org>
75143
75144                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
75145                 available as variable CONF_JAVA, for subsequent autoconf
75146                 tests. Also log error output in config.log.
75147
75148         2006-07-19  Bruno Haible  <bruno@clisp.org>
75149
75150                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
75151                 that getline works on glibc2 systems. Needed to avoid trouble
75152                 in relocatable.c.
75153                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
75154
75155         2005-12-04  Bruno Haible  <bruno@clisp.org>
75156
75157                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
75158                 launcher (untested).
75159
75160         2005-12-04  Bruno Haible  <bruno@clisp.org>
75161
75162                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
75163
75164         2006-07-22  Bruno Haible  <bruno@clisp.org>
75165
75166                 * gettext.m4: Update from GNU gettext-0.15.
75167                 * nls.m4: Likewise.
75168                 * po.m4: Likewise.
75169                 * inttypes-pri.m4: Likewise.
75170                 * inttypes-h.m4: Renamed from inttypes.m4.
75171                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
75172
75173 2006-07-22  Bruno Haible  <bruno@clisp.org>
75174
75175         Merge from GNU gettext 0.15.
75176
75177         2005-07-05  Bruno Haible  <bruno@clisp.org>
75178
75179                 * printf-args.c (printf_fetchargs): Work around broken
75180                 definition of wint_t on mingw.
75181
75182         2005-02-12  Bruno Haible  <bruno@clisp.org>
75183
75184                 * xallocsa.h: Add extern "C" for C++.
75185
75186         2006-05-17  Bruno Haible  <bruno@clisp.org>
75187
75188                 Cygwin portability.
75189                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
75190
75191         2006-04-30  Bruno Haible  <bruno@clisp.org>
75192
75193                 * progreloc.c: Include <mach-o/dyld.h> if available.
75194                 (find_executable): Use _NSGetExecutablePath when possible.
75195
75196         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
75197
75198                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
75199                 function.
75200
75201         2005-12-29  Bruno Haible  <bruno@clisp.org>
75202
75203                 * progreloc.c (set_program_name_and_installdir): Fix
75204                 compilation error.
75205
75206         2005-12-04  Bruno Haible  <bruno@clisp.org>
75207
75208                 Cygwin portability.
75209                 * progreloc.c: Include <windows.h> also on Cygwin.
75210                 (find_executable): Add support for Cygwin.
75211                 (set_program_name_and_installdir): Handle also platforms with
75212                 nonempty EXEEXT.
75213
75214         2006-07-11  Bruno Haible  <bruno@clisp.org>
75215
75216                 * javacomp.c: Fix a comment.
75217                 Reported by Jim Meyering.
75218
75219         2006-04-30  Bruno Haible  <bruno@clisp.org>
75220
75221                 * javacomp.h (compile_java_class): Add source_version,
75222                 target_version arguments.
75223                 * javacomp.c: Rewritten to choose only a compiler that
75224                 respects the specified source_version and target_version.
75225
75226         2006-06-27  Bruno Haible  <bruno@clisp.org>
75227
75228                 Assume correct S_ISDIR macro.
75229                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
75230
75231         2006-07-22  Bruno Haible  <bruno@clisp.org>
75232
75233                 * javaversion.h: New file, from GNU gettext.
75234                 * javaversion.c: New file, from GNU gettext.
75235                 * javaversion.java: New file, from GNU gettext.
75236                 * javaversion.class: New file, from GNU gettext.
75237
75238         2006-05-17  Bruno Haible  <bruno@clisp.org>
75239
75240                 Cygwin portability.
75241                 * javaexec.c (execute_java_class): Test for jview program
75242                 also on Cygwin.
75243
75244         2006-04-09  Bruno Haible  <bruno@clisp.org>
75245
75246                 * fatal-signal.c: Don't include string.h.
75247                 (at_fatal_signal): Use a copying loop instead of memcpy.
75248
75249         2005-12-04  Bruno Haible  <bruno@clisp.org>
75250
75251                 * csharpexec.c: Add support for 'clix' launcher (untested).
75252                 (execute_csharp_using_sscli): New function.
75253                 (execute_csharp_program): Call it.
75254
75255         2006-06-21  Bruno Haible  <bruno@clisp.org>
75256
75257                 Avoid warnings from recent versions of mcs.
75258                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
75259                 -o, -L, -r any more. Use options documented since mcs-1.0
75260                 instead. Similarly for -g.
75261
75262         2005-07-09  Bruno Haible  <bruno@clisp.org>
75263
75264                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
75265                 add a .dll suffix.
75266                 Reported by Mark Junker <mjscod@gmx.de>.
75267
75268         2006-06-17  Bruno Haible  <bruno@clisp.org>
75269
75270                 * config.charset: Update for NetBSD 3.0.
75271
75272         2006-05-17  Bruno Haible  <bruno@clisp.org>
75273
75274                 Cygwin portability.
75275                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
75276
75277         2006-05-16  Bruno Haible  <bruno@clisp.org>
75278
75279                 * localcharset.c [CYGWIN]: Include <windows.h>.
75280                 (get_charset_aliases): For Cygwin, return the same CPxxx
75281                 aliases list as under WIN32.
75282                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
75283                 the environment variables. Fall back to GetACP().
75284
75285         2006-04-05  Bruno Haible  <bruno@clisp.org>
75286
75287                 * config.charset: Update Juan Manuel Guerrero's address.
75288
75289         2005-02-12  Bruno Haible  <bruno@clisp.org>
75290
75291                 * allocsa.h: Add extern "C" for C++.
75292
75293         2005-02-10  Bruno Haible  <bruno@clisp.org>
75294
75295                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
75296                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
75297
75298         2006-07-22  Bruno Haible  <bruno@clisp.org>
75299
75300                 * gettext.h: Update to GNU gettext-0.15.
75301
75302 2006-07-22  Bruno Haible  <bruno@clisp.org>
75303
75304         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
75305         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
75306         lib-prefix.m4, longdouble.m4, ssize_t.m4.
75307
75308 2006-07-21  Eric Blake  <ebb9@byu.net>
75309
75310         * modules/stdlib-safer: New file.
75311         * MODULES.html.sh (File stream based Input/Output): Add
75312         stdlib-safer.
75313
75314 2006-07-21  Eric Blake  <ebb9@byu.net>
75315
75316         * lib/stdlib-safer.h: New file from coreutils, required by
75317         stdlib--.h.
75318
75319 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
75320
75321         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
75322
75323 2006-07-20  Bruno Haible  <bruno@clisp.org>
75324
75325         * gnulib-tool: Recognize new option --assume-autoconf.
75326         (autoconf_minversion): New variable.
75327         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
75328
75329 2006-07-20  Bruno Haible  <bruno@clisp.org>
75330
75331         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
75332
75333 2006-07-19  Derek R. Price  <derek@ximbiot.com>
75334
75335         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
75336         Reindent and repaginate.
75337
75338 2006-07-19  Derek Price  <derek@ximbiot.com>
75339
75340         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
75341         Correct grammar.
75342
75343 2006-07-17  Bruno Haible  <bruno@clisp.org>
75344
75345         * modules/list: New file.
75346         * modules/array-list: New file.
75347         * modules/carray-list, modules/carray-list-tests: New files.
75348         * modules/linked-list, modules/linked-list-tests: New files.
75349         * modules/avltree-list, modules/avltree-list-tests: New files.
75350         * modules/rbtree-list, modules/rbtree-list-tests: New files.
75351         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
75352         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
75353         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
75354         * modules/oset: New file.
75355         * modules/array-oset: New file.
75356         * modules/avltree-oset, modules/avltree-oset-tests: New files.
75357         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
75358         * tests/test-carray_list.c: New file.
75359         * tests/test-linked_list.c: New file.
75360         * tests/test-avltree_list.c: New file.
75361         * tests/test-rbtree_list.c: New file.
75362         * tests/test-linkedhash_list.c: New file.
75363         * tests/test-avltreehash_list.c: New file.
75364         * tests/test-rbtreehash_list.c: New file.
75365         * tests/test-avltree_oset.c: New file.
75366         * tests/test-rbtree_oset.c: New file.
75367         * MODULES.html.sh (Container data structures): New section.
75368
75369 2006-07-17  Bruno Haible  <bruno@clisp.org>
75370
75371         * m4/gl_list.m4: New file.
75372
75373 2006-07-17  Bruno Haible  <bruno@clisp.org>
75374
75375         * lib/gl_list.h: New file.
75376         * lib/gl_list.c: New file.
75377         * lib/gl_array_list.h: New file.
75378         * lib/gl_array_list.c: New file.
75379         * lib/gl_carray_list.h: New file.
75380         * lib/gl_carray_list.c: New file.
75381         * lib/gl_linked_list.h: New file.
75382         * lib/gl_linked_list.c: New file.
75383         * lib/gl_anylinked_list1.h: New file.
75384         * lib/gl_anylinked_list2.h: New file.
75385         * lib/gl_avltree_list.h: New file.
75386         * lib/gl_avltree_list.c: New file.
75387         * lib/gl_anyavltree_list1.h: New file.
75388         * lib/gl_anyavltree_list2.h: New file.
75389         * lib/gl_rbtree_list.h: New file.
75390         * lib/gl_rbtree_list.c: New file.
75391         * lib/gl_anyrbtree_list1.h: New file.
75392         * lib/gl_anyrbtree_list2.h: New file.
75393         * lib/gl_anytree_list1.h: New file.
75394         * lib/gl_anytree_list2.h: New file.
75395         * lib/gl_linkedhash_list.h: New file.
75396         * lib/gl_linkedhash_list.c: New file.
75397         * lib/gl_anyhash_list1.h: New file.
75398         * lib/gl_anyhash_list2.h: New file.
75399         * lib/gl_avltreehash_list.h: New file.
75400         * lib/gl_avltreehash_list.c: New file.
75401         * lib/gl_rbtreehash_list.h: New file.
75402         * lib/gl_rbtreehash_list.c: New file.
75403         * lib/gl_anytreehash_list1.h: New file.
75404         * lib/gl_anytreehash_list2.h: New file.
75405
75406         * lib/gl_oset.h: New file.
75407         * lib/gl_oset.c: New file.
75408         * lib/gl_array_oset.h: New file.
75409         * lib/gl_array_oset.c: New file.
75410         * lib/gl_avltree_oset.h: New file.
75411         * lib/gl_avltree_oset.c: New file.
75412         * lib/gl_rbtree_oset.h: New file.
75413         * lib/gl_rbtree_oset.c: New file.
75414         * lib/gl_anytree_oset.h: New file.
75415
75416 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
75417
75418         * m4/mkancesdirs.m4: New file.
75419         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
75420         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
75421         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
75422         it.
75423
75424 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
75425
75426         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
75427         * lib/mkancesdirs.h: New files.
75428         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
75429         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
75430         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
75431         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
75432         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
75433         callers changed.  Revamp internals significantly, by not
75434         attempting to create directories that are temporarily more
75435         permissive than the final results.  Do not attempt to use
75436         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
75437         This removes some race conditions, fixes some bugs, and simplifies
75438         things.  Use new dirchownmod function to do owner and mode changes.
75439         * lib/mkdir-p.h: Likewise.
75440         * lib/modechange.c (octal_to_mode): New function.
75441         (struct mode_change): New member mentioned.
75442         (make_node_op_equals): New arg mentioned.  All callers changed.
75443         (mode_compile): Keep track of which mode bits the user has explicitly
75444         mentioned.
75445         (mode_adjust): New arg DIR, so that we implement the X op correctly.
75446         New arg PMODE_BITS, to keep track of which mode bits the user
75447         mentioned; it treats S_ISUID and S_ISGID speciall.
75448         All callers changed.
75449         * lib/modechange.h: Likewise.
75450
75451 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
75452
75453         * MODULES.html.sh: Add mkancestors.
75454         * modules/mkancesdirs: New module.
75455         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
75456         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
75457         The chdir-safer and afs files are now orphans; I'll remove them
75458         unless someone speaks up.
75459         Add lib/dirchownmod.c, lib/dirchownmod.h.
75460         (Depends-on): Remove alloca, chown, save-cwd, dirname.
75461         Add lchown, mkancesdirs.
75462         (Maintainer): Add self.
75463
75464 2006-07-15  Karl Berry  <karl@gnu.org>
75465
75466         * gnulib-tool: help message wording/arrangement.
75467
75468 2006-07-14  Simon Josefsson  <jas@extundo.com>
75469
75470         * doc/gnulib.texi (Libtool and Windows): New section.
75471
75472 2006-07-12  Simon Josefsson  <jas@extundo.com>
75473
75474         * modules/gendocs (License): Fix license, approved by Karl.
75475
75476 2006-07-12  Eric Blake  <ebb9@byu.net>
75477
75478         * MODULES.html.sh: Add gendocs.
75479
75480 2006-07-11  Eric Blake  <ebb9@byu.net>
75481
75482         * modules/fdl: New module, to install doc/fdl.texi.
75483         * MODULES.html.sh: Add new section for documentation modules.
75484         * gnulib-tool: Avoid space-tab.
75485         (--doc-base): New option, to manage files from doc.
75486
75487 2006-07-11  Eric Blake  <ebb9@byu.net>
75488
75489         * m4/absolute-header.m4: Fix comments to match recent change.
75490
75491 2006-07-11  Eric Blake  <ebb9@byu.net>
75492
75493         * gnulib-tool: List --doc-base before --tests-base.
75494
75495 2006-07-11  Derek R. Price  <derek@ximbiot.com>
75496
75497         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
75498
75499 2006-07-11  Bruno Haible  <bruno@clisp.org>
75500
75501         * README: Mention where to put documentation.
75502
75503 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75504
75505         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
75506
75507 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
75508
75509         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
75510         to stdint.m4.
75511
75512 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
75513
75514         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
75515         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
75516         "no/such/file/stdint.h" when there is no such file, so that
75517         the resulting C code can be parsed by dodgy compilers.
75518         Problems reported by Bob Proulx.
75519
75520 2006-07-10  Derek R. Price  <derek@ximbiot.com>
75521
75522         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
75523         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
75524         macros into the GNU _D_EXACT_NAMLEN.
75525         * lib/savedir.c:  Likewise.
75526         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
75527
75528 2006-07-10  Derek R. Price  <derek@ximbiot.com>
75529         and Paul Eggert  <eggert@cs.ucla.edu>
75530
75531         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
75532         * m4/savedir.m4:
75533         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
75534         macros into the GNU _D_EXACT_NAMLEN.
75535
75536 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75537
75538         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
75539         around the absolute name, to work around a problem with the HP-UX
75540         11.23 native C compiler, reported by Bob Proulx.
75541
75542 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75543
75544         * doc/maintain.texi, make-stds.texi: Sync from
75545         <http://savannah.gnu.org/projects/gnustandards>.
75546
75547 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75548
75549         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
75550
75551 2006-07-09  Jim Meyering  <jim@meyering.net>
75552
75553         * m4/glob.m4: Remove a doubled word in a comment.
75554
75555 2006-07-09  Jim Meyering  <jim@meyering.net>
75556
75557         * lib/argp-pv.c: Remove a doubled word in a comment.
75558         * lib/check-version.c (check_version): Likewise.
75559         * lib/javacomp.c (compile_java_class): Likewise.
75560
75561 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
75562
75563         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
75564         for the benefit of people using Autoconf 2.60.  If you want to
75565         support older Autoconf versions you can copy m4/onceonly_2_57.m4
75566         (or m4/onceonly.m4, if pre-2.57) manually.
75567
75568 2006-07-08  Jim Meyering  <jim@meyering.net>
75569
75570         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
75571         comment.
75572         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
75573         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
75574         comment.
75575
75576 2006-07-08  Jim Meyering  <jim@meyering.net>
75577
75578         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
75579
75580 2006-07-07  Simon Josefsson  <jas@extundo.com>
75581
75582         * tests/test-crc.c: Change expected crc value, the test vector
75583         were probably computed using the old broken crc.c?
75584
75585 2006-07-06  Simon Josefsson  <jas@extundo.com>
75586
75587         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
75588         now the canonical place for the M4 file).
75589
75590         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
75591         from the sys_socket dependency now.
75592
75593         * modules/inet_pton (Files): Ditto.
75594
75595         * modules/inet_ntop (Files): Ditto.
75596
75597 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
75598
75599         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
75600         not gl_PREREQ_GETUSERSHELL.
75601
75602 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75603
75604         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
75605         with only one argument, for Autoconf 2.60.
75606         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
75607         expand to nothing, so add a shell command to avoid syntax error.
75608         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
75609
75610 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75611
75612         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
75613
75614 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75615
75616         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
75617         no longer needed.  Check for isblank decl.
75618         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
75619         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
75620         of existence.
75621
75622 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75623
75624         * lib/getloadavg.c: Use __VMS, not VMS.
75625         * lib/getopt.c: Likewise.
75626         * lib/getpagesize.h: Likewise.
75627         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
75628         and probably does not work.
75629
75630 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
75631
75632         * lib/.cppi-disable: Add wcwidth.
75633         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
75634         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
75635         (ISGRAPH): Remove.  All uses changed to isgraph.
75636         (FOLD) [!defined _LIBC]: Remove special case.
75637         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
75638         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
75639         HAVE_ISBLANK.
75640         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
75641         case.
75642
75643 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
75644
75645         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
75646         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
75647         brackets.  Other minor changes to suppress some compiler
75648         warnings.
75649
75650 2006-07-06  Derek R. Price  <derek@ximbiot.com>
75651         and Paul Eggert  <eggert@cs.ucla.edu>
75652
75653         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
75654         of invoking obsolescent AC_HEADER_DIRENT macro.
75655         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
75656         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
75657         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
75658         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
75659         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
75660         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
75661         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
75662         * m4/readdir.m4: Remove; no longer needed.
75663
75664 2006-07-06  Derek R. Price  <derek@ximbiot.com>
75665         and Paul Eggert  <eggert@cs.ucla.edu>
75666
75667         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
75668         Don't worry about this obsolete case any more.
75669         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
75670         directories.
75671         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
75672         worry about this obsolete case any more.
75673         * lib/fts.c: Likewise.
75674         * lib/getcwd.c: Likewise.
75675         * lib/glob.h: Likewise.
75676         * lib/savedir.c: Likewise.
75677
75678 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
75679
75680         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
75681         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
75682         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
75683         needed.
75684         All uses removed.
75685         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
75686         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
75687         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
75688         needed.
75689         * m4/getdate.m4 (gl_GETDATE): Likewise.
75690         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
75691         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
75692         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
75693         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
75694         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
75695         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
75696         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
75697         needed.
75698
75699 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
75700
75701         * lib/memcasecmp.c: Include <limits.h>.
75702         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
75703         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
75704         Don't assume isdigit succeeds only on '0' through '9'.
75705
75706 2006-07-05  Eric Blake  <ebb9@byu.net>
75707
75708         * modules/getaddrinfo (Depends-on): Add snprintf.
75709
75710 2006-07-05  Eric Blake  <ebb9@byu.net>
75711
75712         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
75713         to avoid 'header present but could not be compiled' on cygwin.
75714
75715 2006-07-05  Eric Blake  <ebb9@byu.net>
75716
75717         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
75718         missing from netdb.h.
75719         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
75720
75721 2006-07-05  Derek R. Price  <derek@ximbiot.com>
75722
75723         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
75724         no longer needed.
75725         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
75726         * m4/getdate.m4 (gl_GETDATE): Likewise.
75727         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
75728         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
75729         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
75730         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
75731         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
75732
75733 2006-07-05  Derek R. Price  <derek@ximbiot.com>
75734
75735         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
75736         All uses of is_space replaced by isspace.
75737         * lib/exit.h: Don't talk about STDC_HEADERS.
75738         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
75739         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
75740         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
75741         replaced by isprint etc.
75742         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
75743         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
75744         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
75745         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
75746         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
75747         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
75748
75749 2006-07-05  Bruno Haible  <bruno@clisp.org>
75750
75751         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
75752         the function exists, before testing against AIX.
75753         Reported by Martin Lambers <marlam@marlam.de>.
75754
75755 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
75756
75757         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
75758         From Mark D. Baushke.
75759
75760 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
75761
75762         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
75763         to the absolute name, not just one, to bypass Sun C 5.8's
75764         "warning: #include of /usr/include/... may be non-portable".
75765
75766 2006-07-04  Eric Blake  <ebb9@byu.net>
75767
75768         * modules/dirname-tests: New test module.
75769         * tests/test-dirname.c: New file, replacing dirname.c
75770         TEST_DIRNAME section that was recently deleted.
75771
75772 2006-07-04  Bruno Haible  <bruno@clisp.org>
75773
75774         Assume ANSI C header files and <ctype.h> functions.
75775         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
75776         (mbsnwidth): Use isprint, iscntrl instead.
75777
75778 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75779
75780         Merge from coreutils.
75781         * MODULES.html.sh: Add xstrtold.
75782         * modules/xstrtold: New file.
75783         * modules/cycle-check (Files): Add lib/same-inode.h.
75784         * modules/dirname (Files): Add m4/double-slash-root.m4.
75785         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
75786         * modules/mkdir-p (Files): Add lib/same-inode.h.
75787         * modules/same (Files): Add lib/same-inode.h.
75788
75789 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75790
75791         * m4/absolute-header.m4: Renamed from full-header-path.m4.
75792         This is to keep the terminology clean; POSIX talks about
75793         "absolute pathnames", not "full pathnames", but the GNU
75794         Coding Standards say to use "path" for something else;
75795         so use "absolute" to keep both sides happy.
75796         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
75797         Set gl_absolute_header, not gl_full_header_path.
75798         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
75799         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
75800         All uses changed.
75801
75802         Merge from coreutils.
75803
75804         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
75805
75806         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
75807         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
75808         want to require the building of c-strtod.o.
75809         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
75810         needs -lm directly.
75811         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
75812
75813         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
75814
75815         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
75816         --as-needed option if available.  Problem reported by Albert Chin in
75817         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
75818         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
75819         cc merely issues a bunch of annoying warnings for --as-needed
75820         (this problem was reported by Bob Proulx).  Also, try linking with
75821         -lm to detect a bug in binutils 2.16 (this problem was reported
75822         by Ralf Wildenhues).
75823
75824         2006-06-18  Jim Meyering  <jim@meyering.net>
75825
75826         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
75827         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
75828         macro.
75829         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
75830         also check for glibc-2.4's abort-inducing bug.
75831
75832         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
75833         Low-probability clean-up should be to use rmdir to get rid of
75834         the just-created directory, not unlink.
75835
75836         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
75837         configure fail, and request a bug report to inform us about it.
75838         Add a comment that, barring reports to the contrary, in 2007 we'll
75839         assume ftruncate is universally available.
75840
75841         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
75842
75843         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
75844
75845         2006-03-12  Jim Meyering  <jim@meyering.net>
75846
75847         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
75848         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
75849         * m4/same.m4 (gl_SAME): Likewise.
75850         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
75851
75852         2006-03-11  Eric Blake  <ebb9@byu.net>
75853
75854         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
75855         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
75856         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
75857         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
75858
75859 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
75860
75861         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
75862         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
75863         reported by Mark D. Baushke, one in
75864         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
75865
75866         Merge from coreutils.
75867
75868         * lib/.cppi-disable: Add stdint_.h.
75869         * lib/.cvsignore: Add stdint.h.
75870
75871         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
75872
75873         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
75874         both double and long double versions.
75875         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
75876         * lib/xstrtold.c: New file.
75877         * lib/xstrtod.h (xstrtold): New decl.
75878
75879         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
75880
75881         * lib/filemode.c (setst): Remove.
75882         (strmode): Rewrite to avoid setst.  This makes the code shorter,
75883         (arguably) clearer, and the generated code is a bit smaller on my
75884         Debian GNU/Linux stable x86 host.
75885
75886         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
75887
75888         * lib/filemode.c: Include "filemode.h" first, to test the interface.
75889         Assume that filemode.h includes sys/types.h and sys/stat.h.
75890         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
75891         (ftypelet): Reorder to put common cases first, for efficiency.
75892         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
75893         to do 'M'.
75894         (strmode): Renamed from mode_string, and now stores 12 bytes instead
75895         of 10, for compatibility with FreeBSD.  All callers changed.
75896         (filemodestring): Now stores 12 bytes instead of 10, and sets file
75897         types that can't be deduced solely from st_mode.  First arg is now a
75898         const pointer.
75899         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
75900         (strmode): Renamed from mode_string.
75901         (filemodestring): New decl.
75902         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
75903         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
75904         needed.
75905         (S_ISPORT, S_ISWHT): New macros, if not already defined.
75906
75907         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
75908
75909         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
75910         fsusage.h now does that.  Include fsusage.h first, to test interface.
75911         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
75912         at most one method (the old code could have generated decls that
75913         didn't conform to C89, not that this was ever exercised).
75914         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
75915
75916         2006-03-19  Jim Meyering  <jim@meyering.net>
75917
75918         Work even in a chroot where d_ino values for entries in "/"
75919         don't match the stat.st_ino values for the same names.
75920         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
75921         number, iterate through all entries again, using lstat instead.
75922         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
75923         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
75924
75925         * lib/getcwd.c (__getcwd): Clarify a comment.
75926         Use memcpy in place of a call to strcpy.
75927
75928         2006-03-12  Jim Meyering  <jim@meyering.net>
75929
75930         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
75931         matches that of the current directory (which we're about to chdir ".."
75932         out of), then save the dev-ino of the parent, instead.
75933
75934         * lib/same-inode.h (SAME_INODE): New file/macro.
75935         * lib/chdir-safer.c (SAME_INODE): Remove definition.
75936         Include "same-inode.h", instead.
75937         * lib/same.c: Likewise.
75938         * lib/cycle-check.h: Include "same-inode.h".
75939         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
75940         * lib/cycle-check.c (SAME_INODE): Remove definition.
75941         * lib/root-dev-ino.h: Include "same-inode.h".
75942
75943         2006-03-11  Eric Blake  <ebb9@byu.net>
75944
75945         * lib/same.c (same_name): s/base_name/last_component/
75946         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
75947         * lib/filenamecat.c (file_name_concat): Likewise.
75948
75949         2006-03-11  Eric Blake  <ebb9@byu.net>,
75950                     Paul Eggert  <eggert@cs.ucla.edu>
75951
75952         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
75953         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
75954         drive prefix.
75955         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
75956         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
75957         (last_component): New method.
75958         * lib/dirname.c (dir_len): Determine when drive letters need a
75959         subsequent slash.  Preserve // when it is special.
75960         (dir_name): Don't append dot when drive letter is absolute.
75961         [TEST_DIRNAME]: Move into a full-blown gnulib test.
75962         * lib/basename.c (base_name): New semantics - malloc the result.
75963         Preserve // when it is special.  Preserve relative files that look
75964         like drive letters.
75965         (base_len): Preserve // when it is special.
75966         (last_component): New method, similar to old base_name semantics.
75967         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
75968         base_name.  Strip redundant slashes from ///.
75969
75970 2006-07-03  Jim Meyering  <jim@meyering.net>
75971
75972         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
75973         macro is used before the first cycle_check call.
75974
75975 2006-07-03  Eric Blake  <ebb9@byu.net>
75976
75977         * modules/dirname (Depends-on): Add xstrndup.
75978
75979 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
75980
75981         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
75982         test cases, so that config.log is a bit easier to follow.
75983
75984 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
75985
75986         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
75987         both are 64 bits, since this seems to be the tradition, and this
75988         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
75989         we ever run into a host that prefers long long to long in this
75990         case, we'll need another configure-time test.  Problem reported by
75991         Jim Meyering.
75992
75993 2006-07-02  Eric Blake  <ebb9@byu.net>
75994
75995         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
75996
75997 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
75998
75999         * modules/inttypes (Depends-on): No longer depends on stdint.
76000         * modules/stdint (Description): Say more about assumptions.
76001         Say that the fast types might differ.  Say macros are used.
76002         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
76003         (Makefile.am): Revise list of substituted symbols to match
76004         new stdint.m4.
76005         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
76006         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
76007         * tests/test-stdint.c (verify_same_types)
76008         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
76009         the code conforms to C99/C89.
76010         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
76011         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
76012
76013 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76014
76015         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
76016         but fix a bug, by requiring at least 64 bits.
76017         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
76018         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
76019         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
76020         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
76021
76022         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
76023         changes.  Make 2.59 a prerequisite.  Check and substitute for
76024         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
76025         inttypes.h.  Do not use special include files; just use the
76026         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
76027         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
76028         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
76029         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
76030         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
76031         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
76032         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
76033         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
76034         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
76035         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
76036         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
76037         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
76038         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
76039         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
76040         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
76041         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
76042         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
76043         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
76044         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
76045         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
76046         WINT_MAX.  Check for C99 conformance more strictly, by detecting
76047         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
76048         not check for things that C99 does not require, e.g., int8_t.  If
76049         a test isn't needed unless <stdint.h> isn't working, and is
76050         unlikely to be needed for any other reason, then don't do it
76051         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
76052         size_t, since we assume C89 freestanding at least.  Do not check
76053         for sig_atomic_t, wchar_t, or wint_t, since the code now does
76054         the right thing even if the types are not defined.  Instead use:
76055         (gl_STDINT_TYPE_PROPERTIES): New macro.
76056         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
76057         testing whether <sys/types.h> clashes, as Autoconf does this for
76058         us now.  All uses removed.
76059         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
76060         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
76061         (gl_CHECK_TYPE_SAME):
76062         Remove; no longer needed.
76063         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
76064         exists, since we'll return 0 anyway in that case.
76065         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
76066
76067 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
76068
76069         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
76070         possible collision with system files.
76071         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
76072         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
76073         WCHAR_MIN and WCHAR_MAX in this case.
76074         (<stddef.h>): Do not include; no longer needed.
76075         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
76076         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
76077         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
76078         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
76079         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
76080         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
76081         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
76082         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
76083         !defined(__c99))]: Include in this case too, since it's harmless
76084         now.
76085         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
76086         dangerous to do so.
76087         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
76088         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
76089         (_STDINT_MIN, _STDINT_MAX): New macros.
76090         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
76091         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
76092         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
76093         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
76094         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
76095         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
76096         macros, not typedefs; this simplifies things quite a bit.
76097         Use long int for all types narrower than int64_t.
76098         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
76099         Define in terms of long long int or int64_t or long int,
76100         not int64_t or int32_t.  This saves some compile-time testing.
76101         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
76102         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
76103         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
76104         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
76105         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
76106         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
76107         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
76108         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
76109         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
76110         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
76111         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
76112         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
76113         undef any previous version and define our own version, for
76114         simplicity and consistency with the new macros for types.
76115         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
76116         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
76117         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
76118         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
76119         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
76120         @WINT_T_SUFFIX@ to keep things simple here.
76121         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
76122         Simplify by assuming typical 8/16/32/64 host, since we're
76123         already doing that elsewhere anyway.
76124         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
76125         and assume long long int is 64 bits if available.  This
76126         speeds up 'configure'.
76127
76128 2006-07-01  Eric Blake  <ebb9@byu.net>
76129
76130         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
76131         Reported by Andreas Buening.
76132
76133 2006-07-01  Eric Blake  <ebb9@byu.net>
76134
76135         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
76136
76137 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
76138
76139         * lib/getaddrinfo.c: fixed typo
76140
76141 2006-06-29  Jim Meyering  <jim@meyering.net>
76142
76143         * modules/strftime (Maintainer): Add my name, since with the
76144         FPRINTFTIME changes strftime.c has forked from glibc.
76145
76146 2006-06-29  Eric Blake  <ebb9@byu.net>
76147
76148         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
76149
76150 2006-06-29  Eric Blake  <ebb9@byu.net>
76151
76152         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
76153
76154 2006-06-29  Eric Blake  <ebb9@byu.net>
76155
76156         * lib/stat_.h: New file.
76157
76158 2006-06-29  Eric Blake  <ebb9@byu.net>
76159
76160         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
76161         unused static function.
76162
76163 2006-06-29  Eric Blake  <ebb9@byu.net>
76164
76165         * doc/functions.texi (Function Portability): Document missing lstat
76166         on mingw.
76167
76168 2006-06-29  Eric Blake  <ebb9@byu.net>
76169
76170         * MODULES.html.sh: Add sys_stat.
76171         * modules/sys_stat: New module.
76172         * modules/mkstemp (Depends-on): Add sys_stat.
76173
76174 2006-06-29  Derek R. Price  <derek@ximbiot.com>
76175
76176         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
76177
76178 2006-06-29  Derek R. Price  <derek@ximbiot.com>
76179
76180         * m4/c-bs-a.m4: Removed.
76181
76182 2006-06-29  Derek R. Price  <derek@ximbiot.com>
76183
76184         * lib/strftime.c: Assume strftime() exists.
76185
76186 2006-06-29  Derek Price  <derek@ximbiot.com>
76187
76188         * modules/c-bs-a: Removed - \a is C89.
76189         * MODULES.html.sh: Remove c-bs-a.
76190
76191 2006-06-29  Bruno Haible  <bruno@clisp.org>
76192
76193         * modules/wcwidth (License): Change to LGPL.
76194
76195 2006-06-28  Simon Josefsson  <jas@extundo.com>
76196
76197         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
76198         on _WIN32.
76199
76200         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
76201         getnameinfo.
76202
76203 2006-06-28  Simon Josefsson  <jas@extundo.com>
76204
76205         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
76206
76207 2006-06-28  Simon Josefsson  <jas@extundo.com>
76208
76209         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
76210         functions there.  It will succeed on Windows XP, but on Windows
76211         2000 and (presumably) earlier, it will fail, and use the internal
76212         re-implementation.
76213         (use_win32_p): New function.
76214         (getaddrinfo): Use strtoul on servname, to support numeric ports.
76215         Support AI_NUMERICSERV to disable getservbyname.
76216         (getnameinfo): New function, only supports
76217         NI_NUMERICHOST|NI_NUMERICSERV for now.
76218
76219         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
76220         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
76221         getnameinfo.
76222
76223 2006-06-28  Eric Blake  <ebb9@byu.net>
76224
76225         * modules/wcwidth: New file.
76226         * modules/mbchar (Depends-on): Add wcwidth.
76227         * modules/mbswidth (Depends-on): Add wcwidth.
76228         * MODULES.html.sh: Add wcwidth.
76229
76230 2006-06-28  Eric Blake  <ebb9@byu.net>
76231
76232         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
76233         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
76234
76235 2006-06-28  Eric Blake  <ebb9@byu.net>
76236
76237         * lib/xvasprintf.h: Fix comments.
76238
76239 2006-06-28  Eric Blake  <ebb9@byu.net>
76240
76241         * lib/mbchar.h (wcwidth): Include wcwidth.h.
76242         * lib/mbswidth.c (wcwidth): Move from here...
76243         * lib/wcwidth.h: ...to this new file.
76244
76245 2006-06-28  Derek R. Price  <derek@ximbiot.com>
76246
76247         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
76248
76249         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
76250         it's obsolete.
76251         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
76252
76253 2006-06-28  Derek R. Price  <derek@ximbiot.com>
76254
76255         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
76256         Autoconf 2.60 says this stuff was obsolete.
76257
76258 2006-06-28  Bruno Haible  <bruno@clisp.org>
76259
76260         * modules/wcwidth (Files): Add m4/wchar_t.m4.
76261
76262 2006-06-28  Bruno Haible  <bruno@clisp.org>
76263
76264         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
76265         gt_TYPE_WCHAR_T.
76266
76267 2006-06-28  Bruno Haible  <bruno@clisp.org>
76268
76269         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
76270         declaration for wcwidth.
76271         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
76272
76273 2006-06-28  Bruno Haible  <bruno@clisp.org>
76274
76275         * lib/mkdtemp.c [MINGW]: Include <io.h>.
76276         (mkdir): Define using _mkdir.
76277
76278 2006-06-28  Bruno Haible  <bruno@clisp.org>
76279
76280         * lib/getaddrinfo.h: Fix POSIX URL.
76281         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
76282         _WIN32.
76283         (use_win32_p): Make static.
76284         (getaddrinfo): Reject service name if it is empty or does not consist
76285         solely of decimal digits, or if its value is > 65535.
76286         (getnameinfo): Remove useless casts.
76287
76288 2006-06-27  Simon Josefsson  <jas@extundo.com>
76289
76290         * modules/sys_select: New file, suggested by Bruno Haible, Paul
76291         Eggert and Martin Lambers.
76292
76293 2006-06-27  Simon Josefsson  <jas@extundo.com>
76294
76295         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
76296         Eggert and Martin Lambers.
76297
76298 2006-06-27  Bruno Haible  <bruno@clisp.org>
76299
76300         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
76301         result to 0, not to empty.
76302         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
76303
76304 2006-06-27  Bruno Haible  <bruno@clisp.org>
76305
76306         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
76307
76308 2006-06-26  Simon Josefsson  <jas@extundo.com>
76309
76310         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
76311         present.
76312
76313 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
76314
76315         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
76316         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
76317         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
76318
76319 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
76320
76321         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
76322
76323 2006-06-26  Bruno Haible  <bruno@clisp.org>
76324
76325         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
76326
76327 2006-06-26  Bruno Haible  <bruno@clisp.org>
76328
76329         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
76330
76331 2006-06-26  Bruno Haible  <bruno@clisp.org>
76332
76333         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
76334         SGI C compiler in pre-C99 mode.
76335         Suggested by Mark D. Baushke and Larry Jones.
76336
76337 2006-06-26  Bruno Haible  <bruno@clisp.org>
76338
76339         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
76340         WCHAR_MAX.
76341         Reported by Mark D. Baushke and Larry Jones.
76342
76343 2006-06-26  Bruno Haible  <bruno@clisp.org>
76344
76345         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
76346         in pre-C99 mode.
76347         Suggested by Mark D. Baushke and Larry Jones.
76348
76349 2006-06-23  Simon Josefsson  <jas@extundo.com>
76350             Bruno Haible  <bruno@clisp.org>
76351
76352         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
76353         Emit mostlyclean-local rule.
76354         (func_emit_tests_Makefile_am): Likewise.
76355         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
76356
76357 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
76358
76359         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
76360
76361 2006-06-23  Bruno Haible  <bruno@clisp.org>
76362
76363         * tests/test-stdint.c: Update to match ISO C 99 Technical
76364         Corrigendum 1.
76365
76366 2006-06-23  Bruno Haible  <bruno@clisp.org>
76367
76368         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
76369
76370 2006-06-23  Bruno Haible  <bruno@clisp.org>
76371
76372         * lib/stdint_.h: Treat IRIX like OpenBSD.
76373
76374 2006-06-23  Bruno Haible  <bruno@clisp.org>
76375
76376         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
76377         ISO C 99 Technical Corrigendum 1.
76378
76379 2006-06-22  Simon Josefsson  <jas@extundo.com>
76380
76381         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
76382         MinGW.
76383
76384 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76385
76386         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
76387         needed.  Some compiler complained about some of them.  Problem reported
76388         by Larry Jones in
76389         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
76390
76391 2006-06-21  Simon Josefsson  <jas@extundo.com>
76392
76393         * tests/test-getaddrinfo.c: New file.
76394
76395         * modules/getaddrinfo-tests: New file.
76396
76397         * MODULES.html.sh: Add inet_pton.
76398
76399         * modules/inet_pton: New file.
76400
76401 2006-06-21  Simon Josefsson  <jas@extundo.com>
76402
76403         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
76404         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
76405         of using the (limited) gnulib implementation on Windows XP.
76406
76407         * m4/inet_pton.m4: New file.
76408
76409 2006-06-21  Simon Josefsson  <jas@extundo.com>
76410
76411         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
76412         variable.
76413
76414         * lib/socket_.h: Don't define WINVER.
76415
76416         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
76417         slightly modified to work in gnulib.
76418
76419 2006-06-21  Simon Josefsson  <jas@extundo.com>
76420
76421         * doc/gnulib.texi (Windows sockets): Add.
76422
76423 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
76424
76425         * lib/read-file.c (fread_file): Start with buffer allocation of
76426         0 bytes rather than 1 byte; this simplifies the code.
76427         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
76428         code to free buffer and save/restore errno.
76429         (internal_read_file): Remove unused local.
76430
76431 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
76432
76433         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
76434         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
76435         Problem reported by Denis Excoffier in
76436         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
76437
76438 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
76439
76440         * modules/sys_socket, modules/socklen: Include sys/types since
76441         FreeBSD 4.x's sys/socket.h needs it.
76442
76443 2006-06-19  Simon Josefsson  <jas@extundo.com>
76444
76445         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
76446
76447 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
76448
76449         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
76450
76451 2006-06-19  Bruno Haible  <bruno@clisp.org>
76452
76453         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
76454         and FULL_PATH_INTTYPES_H in angle brackets.
76455         Reported by Mark D. Baushke <mdb@gnu.org>.
76456
76457 2006-06-17  Eric Blake  <ebb9@byu.net>
76458
76459         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
76460         errno.
76461
76462 2006-06-17  Bruno Haible  <bruno@clisp.org>
76463
76464         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
76465         <sys/inttypes.h>.
76466
76467 2006-06-17  Bruno Haible  <bruno@clisp.org>
76468
76469         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
76470         whether errno is declared. Assume <errno.h> declares errno.
76471
76472 2006-06-17  Bruno Haible  <bruno@clisp.org>
76473
76474         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
76475
76476 2006-06-17  Bruno Haible  <bruno@clisp.org>
76477
76478         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
76479         problem on Solaris 2.5.1.
76480
76481 2006-06-16  Eric Blake  <ebb9@byu.net>
76482
76483         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
76484         * lib/unicodeio.c [!defined errno]: Likewise.
76485         * lib/strtol.c [!defined errno]: Likewise.
76486         * lib/strtod.c [!defined errno]: Likewise.
76487
76488 2006-06-15  Eric Blake  <ebb9@byu.net>
76489
76490         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
76491
76492 2006-06-15  Eric Blake  <ebb9@byu.net>
76493
76494         * config/srclist.txt (ssize_t.m4): Lose sync.
76495
76496 2006-06-15  Bruno Haible  <bruno@clisp.org>
76497
76498         * modules/stdint (Files): Include m4/full-header-path.m4,
76499         m4/size_max.m4, m4/wchar_t.m4.
76500         (Makefile.am): Many more substitutions.
76501         * modules/stdint-tests: New file.
76502         * tests/test-stdint.c: New file.
76503
76504 2006-06-15  Bruno Haible  <bruno@clisp.org>
76505
76506         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
76507         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
76508         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
76509         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
76510         gl_CHECK_TYPE_SAME): New macros.
76511
76512 2006-06-15  Bruno Haible  <bruno@clisp.org>
76513
76514         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
76515
76516 2006-06-15  Bruno Haible  <bruno@clisp.org>
76517
76518         * lib/stdint_.h: Rewritten to be fully auto-configured.
76519         Fixes bug on HP-UX/IA64.
76520
76521 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
76522
76523         * lib/getdate.y (__attribute__): Don't define if already defined.
76524         Problem reported by Larry Jones.
76525         * lib/utimens.c (__attribute__): Likewise.
76526
76527 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
76528
76529         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
76530         reported by Andreas Schwab.
76531
76532 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76533             Bruno Haible  <bruno@clisp.org>
76534
76535         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
76536         check for the declaration of strnlen and a run test that exposes the
76537         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
76538         rpl_strndup.
76539
76540 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76541             Bruno Haible  <bruno@clisp.org>
76542
76543         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
76544
76545 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76546
76547         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
76548         compile test, for Tru64 4.0D.
76549
76550 2006-05-28  Karl Berry  <karl@gnu.org>
76551
76552         * config/srclist.txt (printf-args.c): lose sync.
76553
76554 2006-05-26  Martin Lambers  <marlam@marlam.de>
76555
76556         * lib/getpass.c: Updates the test for the native W32 API, and adds
76557         missing includes, thus fixing compilation warnings.
76558
76559 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
76560
76561         * lib/exclude.c (exclude_fnmatch): New function.
76562         (excluded_file_name): Call exclude_fnmatch.
76563         * lib/exclude.h (excluded_file_name): New prototype
76564
76565 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
76566
76567         * lib/tempname.c (small_open, large_open): New macros.
76568         (__open, __open64) [!_LIBC]: Remove.
76569         (__gen_tempname): Use small_open and large_open instead of __open
76570         and __open64.  This fixes a portability bug on HP-UX 11.11i
76571         reported by Simon Wing-Tang in
76572         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
76573
76574 2006-05-24  Bruno Haible  <bruno@clisp.org>
76575
76576         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
76577         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
76578         Reported by Thorsten Maerz <torte@netztorte.de> via
76579         Aaron Stone <aaron@serendipity.cx>.
76580
76581 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
76582
76583         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
76584         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
76585         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
76586         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
76587         not really conditional on the cache.
76588         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
76589
76590 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
76591
76592         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
76593         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
76594         (my_usleep): Don't mishandle maximum value.
76595
76596 2006-05-19  Jim Meyering  <jim@meyering.net>
76597
76598         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
76599
76600 2006-05-17  Bruno Haible  <bruno@clisp.org>
76601
76602         Cygwin portability.
76603         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
76604
76605 2006-05-17  Bruno Haible  <bruno@clisp.org>
76606
76607         * lib/stdint_.h: Fix recognition of Cygwin.
76608
76609 2006-05-15  Bruno Haible  <bruno@clisp.org>
76610
76611         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
76612         on libtool patch by Ralf Wildenhues.
76613
76614 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
76615
76616         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
76617         test for C99 conformance; (bool) 0.5 is an integer constant
76618         expression, but (bool) -0.5 is not.  Problem reported by Fedor
76619         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
76620
76621 2006-05-11  Simon Josefsson  <jas@extundo.com>
76622
76623         * m4/xvasprintf.m4: Fix obvious typo.
76624
76625 2006-05-11  Jim Meyering  <jim@meyering.net>
76626
76627         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
76628         James Lemley.
76629
76630 2006-05-10  Simon Josefsson  <jas@extundo.com>
76631
76632         * lib/md4.c: Typo fix, update copyright years.
76633         (K1, K2): Don't use L because it turn computations into 64-bit on
76634         64-bit platforms.
76635
76636 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
76637
76638         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
76639         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
76640         unwanted sign propagation, e.g., on hosts with 64-bit int.
76641         There still are some problems with reeelly weird theoretical hosts
76642         (e.g., 33-bit int) but it's not worth worrying about now.
76643         * lib/sha1.c (rol): Likewise.
76644         (K1, K2, K3, K4): Remove unnecessary L suffix.
76645
76646 2006-05-10  Bruno Haible  <bruno@clisp.org>
76647
76648         * lib/des.c: Cast to avoid warnings.
76649
76650 2006-05-09  Bruno Haible  <bruno@clisp.org>
76651
76652         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
76653         (Depends-on): Depend also on xsize, stdarg.
76654         (configure.ac): Add gl_XVASPRINTF.
76655
76656 2006-05-09  Bruno Haible  <bruno@clisp.org>
76657
76658         * m4/xvasprintf.m4: New file.
76659
76660 2006-05-09  Bruno Haible  <bruno@clisp.org>
76661
76662         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
76663         (EOVERFLOW): Define fallback value.
76664         (xstrcat): New function.
76665         (xvasprintf): Recognize the special case of a string concatenation.
76666
76667 2006-05-08  Eric Blake  <ebb9@byu.net>
76668
76669         * gnulib-tool (func_version): Base copyright year on CVS date.
76670         (func_emit_copyright_notice): New function.
76671         (func_emit_lib_Makefile_am): Use it.
76672         (func_emit_tests_Makefile_am): Likewise.
76673         (func_import): Likewise.
76674
76675 2006-05-08  Bruno Haible  <bruno@clisp.org>
76676
76677         * modules/stdarg: New file.
76678         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
76679
76680 2006-05-08  Bruno Haible  <bruno@clisp.org>
76681
76682         * m4/stdarg.m4: New file, from GNU gettext.
76683
76684 2006-05-08  Bruno Haible  <bruno@clisp.org>
76685
76686         * config/srclist.txt (build-aux/config.rpath): different from latest
76687         release.
76688
76689 2006-05-08  Bruno Haible  <bruno@clisp.org>
76690
76691         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
76692
76693 2006-05-05  Jim Meyering  <jim@meyering.net>
76694
76695         * m4/warning.m4: New file, derived from bison's file by the same name.
76696
76697 2006-05-03  Bruno Haible  <bruno@clisp.org>
76698
76699         * lib/stdint_.h: Shorter URL.
76700         * lib/inttypes.h: Likewise.
76701
76702 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
76703
76704         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
76705
76706 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
76707
76708         * lib/verify.h: Document the internals better.  Most of this change
76709         was written by Bruno Haible.
76710
76711 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
76712
76713         * doc/verify.texi: New file, partly based on a proposal by
76714         Bruno Haible.
76715
76716 2006-05-02  Bruno Haible  <bruno@clisp.org>
76717
76718         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
76719         test from here...
76720         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
76721
76722 2006-04-29  Bruno Haible  <bruno@clisp.org>
76723
76724         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
76725         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
76726
76727 2006-04-29  Bruno Haible  <bruno@clisp.org>
76728
76729         * gnulib-tool: Make --update option actually work.
76730
76731 2006-04-29  Bruno Haible  <bruno@clisp.org>
76732
76733         * doc/gcd.texi: New file.
76734         * doc/gnulib.texi: Include it.
76735
76736 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
76737
76738         * lib/getdate.y (get_date): When adding relative date, start with the
76739         initial time, not with the result of the first mktime call.
76740
76741 2006-04-25  Bruno Haible  <bruno@clisp.org>
76742
76743         * gnulib-tool (func_import): Output the include directives in three
76744         blocks, sorted separately.
76745         Reported by Ben Pfaff <blp@cs.stanford.edu>.
76746
76747 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
76748
76749         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
76750         to define main with arguments, for C++.  Reported by Eric Blake.
76751         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
76752         Prefer 'int main ()' to 'int main (void)', for C++.
76753         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
76754         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
76755         for 'main', for C99 and C++.
76756
76757 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
76758
76759         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
76760         Don't assume that exit status -1 is valid.
76761         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
76762         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
76763         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
76764         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
76765         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
76766         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
76767         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
76768         functions can be used without declaring them, or that you can
76769         exit with status -1.
76770         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
76771
76772 2006-04-24  Karl Berry  <karl@gnu.org>
76773
76774         * config/srclist.txt (longdouble.m4): sync lost.
76775
76776 2006-04-24  Eric Blake  <ebb9@byu.net>
76777
76778         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
76779
76780 2006-04-24  Bruno Haible  <bruno@clisp.org>
76781
76782         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
76783         poll() implementation in AIX.
76784         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76785
76786 2006-04-24  Bruno Haible  <bruno@clisp.org>
76787
76788         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
76789         assigned exactly once.
76790
76791 2006-04-23  Claudio Fontana  <claudio@gnu.org>
76792             Bruno Haible  <bruno@clisp.org>
76793
76794         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
76795         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
76796         for AM_CPPFLAGS.
76797
76798 2006-04-23  Bruno Haible  <bruno@clisp.org>
76799
76800         * modules/copy-file: Depend on unistd.
76801         * modules/execute: Likewise.
76802         * modules/fatal-signal: Likewise.
76803         * modules/findprog: Likewise.
76804         * modules/mkdtemp : Likewise.
76805         * modules/pipe: Likewise.
76806         * modules/wait-process: Likewise.
76807
76808 2006-04-23  Bruno Haible  <bruno@clisp.org>
76809
76810         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
76811         condition was already detected.
76812         Reported by Ben Pfaff <blp@cs.stanford.edu>.
76813
76814 2006-04-23  Bruno Haible  <bruno@clisp.org>
76815
76816         * lib/copy-file.c: Include <unistd.h> unconditionally.
76817         * lib/execute.c: Likewise.
76818         * lib/fatal-signal.c: Likewise.
76819         * lib/findprog.c: Likewise.
76820         * lib/mkdtemp.c: Likewise.
76821         * lib/pipe.h: Likewise.
76822         * lib/pipe.c: Likewise.
76823         * lib/wait-process.h: Likewise.
76824
76825 2006-04-23  Bruno Haible  <bruno@clisp.org>
76826
76827         * gnulib-tool (func_usage): Fix --import description. Document
76828         --update.
76829         (func_import): Create temporary file in a temporary directory, if
76830         --dry-run is specified. Silence errors from 'grep' when there are no
76831         m4 files in $m4dir.
76832         (func_create_testdir): Silence errors from 'grep' when there are no
76833         m4 files in $m4dir.
76834         Reported by Karl Berry <karl@freefriends.org>.
76835
76836 2006-04-20  Bruno Haible  <bruno@clisp.org>
76837
76838         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
76839         one argument, so that the code will be portable to Autoconf 2.60.
76840         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
76841         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
76842         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
76843
76844 2006-04-19  Derek Price  <derek@ximbiot.com>
76845             Eric Blake  <ebb9@byu.net>
76846
76847         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
76848         rather than "/full/path.h".  Update comment to match.  Shorten &
76849         generalize m4_translit call via AS_TR_CPP.
76850
76851 2006-04-19  Derek Price  <derek@ximbiot.com>
76852             Eric Blake  <ebb9@byu.net>
76853
76854         * lib/inttypes.h: Correct grammar in comment.
76855
76856 2006-04-18  Derek Price  <derek@ximbiot.com>
76857             Paul Eggert  <eggert@cs.ucla.edu>
76858
76859         * modules/inttypes: New file.
76860         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
76861
76862 2006-04-18  Derek Price  <derek@ximbiot.com>
76863             Paul Eggert  <eggert@cs.ucla.edu>
76864
76865         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
76866         New files.
76867
76868 2006-04-18  Derek Price  <derek@ximbiot.com>
76869             Paul Eggert  <eggert@cs.ucla.edu>
76870
76871         * lib/inttypes.h: New file.
76872         * lib/strtoimax.c: Assume <inttypes.h>.
76873
76874 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
76875
76876         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
76877         isn't mounted.  Problem reported by Kir Kolyshkin.
76878
76879 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
76880
76881         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
76882         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
76883         Derek R. Price.
76884         * lib/regex.h (RE_DUP_MAX): Update comment to match current
76885         implementation.
76886
76887 2006-04-12  Eric Blake  <ebb9@byu.net>
76888
76889         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
76890         is now done automatically by the corresponding Autoconf macro.
76891
76892 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
76893
76894         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
76895         time_r.h.
76896
76897 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
76898
76899         Merge regex changes from libc, removing some of our
76900         POSIX-conformance changes that were rejected and redoing them in a
76901         less-intrusive way.
76902
76903         * lib/regcomp.c (re_compile_internal, init_dfa):
76904         Length arg is now size_t, not Idx.  All uses changed.
76905         (peek_token): Forward decl now says internal_function.
76906         (__re_error_msgid, __re_error_msgid_idx):
76907         Now static rather than extern with attribute_hidden.
76908         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
76909         For some reason libc prefers K&R style defns for external functions.
76910         (regerror) [!defined _LIBC]: Likewise.
76911         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
76912         (seek_collating_symbol_entry, lookup_collation_sequence_value):
76913         (build_range_exp, build_collating_symbol):
76914         Use K&R-style defn.
76915         (re_compile_fastmap): Use '\0' to memset, not 0.
76916         (utf8_sb_map): Make the calculations more obvious.
76917         (init_dfa, parse_bracket_exp, build_charclass_op):
76918         Call calloc and cast result, as glibc does.
76919         (init_word_char, fetch_token, peek_token, peek_token_bracket):
76920         (build_range_exp, build_collating_symbol):
76921         Now internal functions.
76922
76923         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
76924
76925         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
76926         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
76927         Don't depend on VMS; depend on __VMS instead, for POSIX
76928         namespace cleanness.
76929         (regoff_t): Define to ssize_t, not long int.
76930
76931         Remove the REG_ macros named below.  Instead, make the old names
76932         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
76933         __USE_GNU_REGEX.
76934         (REG_BACKSLASH_ESCAPE_IN_LISTS):
76935         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
76936         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
76937         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
76938         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
76939         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
76940         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
76941         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
76942         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
76943         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
76944         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
76945         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
76946         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
76947         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
76948         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
76949         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
76950         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
76951         (REG_NREGS):
76952         Remove.  All uses replaced by the old RE_* names.
76953         (RE_BACKSLASH_ESCAPE_IN_LISTS):
76954         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
76955         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
76956         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
76957         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
76958         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
76959         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
76960         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
76961         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
76962         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
76963         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
76964         Don't bother having these macros be independent of each others'
76965         values, since they no longer exist in the POSIX name space.
76966
76967         Rename the following member names back to their old names,
76968         unless !__USE_GNU_REGEX.  All uses changed back.
76969         (buffer): Renamed from re_buffer.
76970         (allocated): Renamed from re_allocated.
76971         (used): Renamed from re_used.
76972         (syntax): Renamed from re_syntax.
76973         (fastmap): Renamed from re_fastmap.
76974         (translate): Renamed from re_translate.
76975         (can_be_null): Renamed from re_can_be_null.
76976         (regs_allocated): Renamed from re_regs_allocated.
76977         (fastmap_accurate): Renamed from re_fastmap_accurate.
76978         (no_sub): Renamed from re_no_sub.
76979         (not_bol): Renamed from re_not_bol.
76980         (not_eol): Renamed from re_not_eol.
76981         (newline_anchor): Renamed from re_newline_anchor.
76982         (num_regs): Renamed from rm_num_regs.
76983         (start): Renamed from rm_start.
76984         (end): Renamed from rm_end.
76985
76986         (free_state): Move up a bit.
76987
76988         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
76989         #define to be empty.
76990         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
76991         when that is what is intended.
76992         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
76993         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
76994         (MAX): New macro.
76995         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
76996         All uses changed back to re_malloc, etc.  It's now the caller's
76997         responsibility to check for overflow; all callers changed.
76998         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
76999         (re_x2nrealloc): Remove.
77000         (free_state): Remove decl.
77001
77002         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
77003         (re_set_registers, re_exec):
77004         Use K&R-style defn.
77005
77006         2006-01-31  Roland McGrath  <roland@redhat.com>
77007
77008         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
77009         Reported by Mike Frysinger <vapier@gentoo.org>.
77010
77011         2006-01-15  Andreas Jaeger  <aj@suse.de>
77012
77013         [BZ #1950]
77014         * lib/regex_internal.c (re_string_reconstruct): Adjust for
77015         build_wcs_upper_buffer change.
77016         (build_wcs_upper_buffer): Change return type.
77017
77018         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
77019
77020         * lib/regex_internal.h: Include <stdint.h> if available.
77021
77022         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
77023
77024         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
77025
77026         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
77027
77028         * lib/regcomp.c: Adjust for changed secondary hash function.
77029
77030         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
77031
77032         * lib/regex.h: Pretty printing.
77033         Clean up namespace a bit.
77034
77035         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
77036
77037         * lib/regexec.c (update_cur_sifted_state, check_arrival,
77038         check_arrival_add_next_nodes): Avoid using uninitialized variable.
77039
77040         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
77041                     Ulrich Drepper  <drepper@redhat.com>
77042
77043         [BZ #1302]
77044         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
77045         changed.
77046         (bitset_word_t): Renamed from bitset_word.  All uses changed.
77047
77048         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
77049
77050         [BZ #281]
77051         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
77052         * lib/regcomp.c: Remove unnecessary uses of
77053         unsigned RE_TRANSLATE_TYPE.
77054         * lib/regex_internal.h: Likewise.
77055         * lib/regex_internal.c: Likewise.
77056         * lib/regexec.c: Likewise.
77057         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
77058
77059         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
77060
77061         * lib/regexec.c (find_recover_state): Remove unnecessary
77062         initialization.
77063         (transit_state_bkref): Make DFA a const pointer.
77064         (get_subexp): Likewise.
77065         (check_arrival): Likewise.
77066         (update_cur_sifted_state): Likewise.
77067         (re_search_internal): Likewise.
77068         (prune_impossible_nodes): Likewise.
77069         (acquire_init_state_context): Likewise.
77070         (proceed_next_node): Likewise.
77071         (set_regs): Likewise.
77072         (free_fail_stack_return): Likewise.
77073         (check_arrival_expand_ecl): Mark DFA parameter as const.
77074         (check_arrival_expand_ecl_sub): Likewise.
77075         (check_subexp_limits): Likewise.
77076         (sub_epsilon_src_nodes):  Likewise.
77077         (add_epsilon_src_nodes):  Likewise.
77078         (merge_state_array): Likewise.
77079         (update_regs): Likewise.
77080         (build_trtable): Likewise.
77081         (sift_states_backward): Mark MCTX parameter as const.
77082         (build_sifted_states): Likewise.
77083         (update_cur_sifted_state): Likewise.
77084         (sift_states_mkref): Likewise.
77085         (check_arrival_expand_ecl): Mark eclosure as const.
77086         (check_dst_limits_calc_pos_1): Likewise.
77087         * lib/regex_internal.h (re_match_context_t): Make dfa a const
77088         pointer.
77089
77090         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
77091
77092         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
77093         (transit_state_sb): Likewise.
77094         (transit_state_mb): Likewise.
77095         (sift_states_iter_mb): Likewise.
77096         (check_arrival_add_next_nodes): Likewise.
77097         (check_node_accept_bytes): Change first parameter to pointer-to-const.
77098         [_LIBC] (re_search_2_stub): Use mempcpy.
77099
77100         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
77101         mbrtowc for very simple UTF-8 case.
77102
77103         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
77104         a pointer-to-const.
77105         (re_acquire_state_context): Likewise.
77106         * lib/regex_internal.h: Adjust prototypes.
77107
77108         * lib/regex.c: Prevent using C++ compilers.
77109
77110         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
77111         (re_acquire_state_context): Likewise.
77112
77113 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77114
77115         * modules/regex (Depends-on): Add ssize_t.
77116
77117 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77118
77119         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
77120         translation table.
77121
77122 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
77123
77124         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
77125
77126 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
77127             Bruno Haible  <bruno@clisp.org>
77128
77129         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
77130         <sys/types.h> and <inttypes.h>.
77131
77132 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77133
77134         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
77135         `__error_t_defined', so argp.h will not typedef the former.
77136
77137 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
77138
77139         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
77140         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
77141         glibc names.  Even if glibc is changed to conform to POSIX, the
77142         traditional names will be available anyway, since regex depends on
77143         the extensions module.  Also, fix a longstanding typo in the
77144         implementation of Spencer ERE test #75 from grep 2.3.  Problems
77145         reported by Emanuele Giaquinta.  Also, change sense of cached
77146         variable, so that the message makes sense.
77147
77148 2006-03-24  Simon Josefsson  <jas@extundo.com>
77149
77150         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
77151         including some doc fixes.
77152         (base64_encode_alloc): Fix +1 bug on allocation failures.
77153
77154 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77155
77156         * lib/base64.c (base64_encode): Do not read past end of array with
77157         unsanitized input on systems with CHAR_BIT > 8.
77158
77159 2006-03-24  Eric Blake  <ebb9@byu.net>
77160
77161         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
77162
77163 2006-03-22  Karl Berry  <karl@gnu.org>
77164
77165         * config/srclist.txt (*setenv.[ch]): get from coreutils.
77166         * config/srclistvars.sh (COREUTILS): new var.
77167
77168 2006-03-17  Jim Meyering  <jim@meyering.net>
77169
77170         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
77171         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
77172
77173 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
77174
77175         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
77176         no longer needs it.  Instead, check that regoff_t is as least
77177         as wide as ptrdiff_t.
77178
77179         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
77180         so that our regex.h stays compatible with the installed regex.
77181         This is helpful for installers who configure --without-included-regex.
77182         Problem reported by Emanuele Giaquinta.
77183
77184 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
77185
77186         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
77187         Typedef to long int, not to off_, as POSIX will likely change
77188         in that direction.
77189
77190 2006-03-15  Eric Blake  <ebb9@byu.net>
77191
77192         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
77193
77194 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
77195
77196         * lib/argp-help.c (validate_uparams): Fix typo
77197         * lib/argp-parse.c (argp_default_options): Consistently begin help
77198         messages with a lowercase letter.
77199
77200 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
77201
77202         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
77203         overrun buffers and shouldn't be used (much as gets shouldn't be
77204         used).
77205         * lib/time_r.c (asctime_r, ctime_r): Likewise.
77206
77207 2006-03-08  Simon Josefsson  <jas@extundo.com>
77208
77209         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
77210         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77211
77212 2006-03-08  Simon Josefsson  <jas@extundo.com>
77213
77214         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
77215         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77216
77217 2006-03-08  Simon Josefsson  <jas@extundo.com>
77218
77219         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
77220         signal that configure disabled the device.
77221
77222 2006-03-08  Simon Josefsson  <jas@extundo.com>
77223
77224         * build-aux/maint.mk: Fix refresh-po, to handle no translated
77225         languages.
77226
77227 2006-03-07  Simon Josefsson  <jas@extundo.com>
77228
77229         * modules/getopt (Depends-on): Add unistd.
77230
77231         * modules/unistd: New file.
77232
77233 2006-03-07  Simon Josefsson  <jas@extundo.com>
77234
77235         * modules/gc-random: New file.
77236
77237 2006-03-07  Simon Josefsson  <jas@extundo.com>
77238
77239         * m4/unistd_h.m4: New file.
77240
77241 2006-03-07  Simon Josefsson  <jas@extundo.com>
77242
77243         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
77244         test to be side-effect free by storing the result in the cache
77245         variable gl_cv_lib_readline, and moving the assignment of
77246         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
77247         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77248
77249 2006-03-07  Simon Josefsson  <jas@extundo.com>
77250
77251         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
77252         error on missing devices (the functions will return an error).
77253
77254         * m4/gc.m4: Move random stuff to gc-random.m4
77255
77256 2006-03-07  Simon Josefsson  <jas@extundo.com>
77257
77258         * lib/unistd_.h: New file.
77259
77260 2006-03-07  Simon Josefsson  <jas@extundo.com>
77261
77262         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
77263
77264 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
77265
77266         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
77267         Problem reported by Juan Manuel Guerrero.
77268
77269 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
77270
77271         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
77272         the unistd module.
77273         * lib/getlogin_r.c: Likewise.
77274         * lib/getlogin_r.h: Likewise.
77275         * lib/glob.c: Likewise.
77276         * lib/pagealign_alloc.c: Likewise.
77277         * lib/unistd_.h: Remove; no longer needed.
77278
77279 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
77280
77281         * MODULES.html.sh (Support for systems lacking POSIX:2001):
77282         Add unistd.
77283         * modules/c-stack (Depends-on): Add unistd.
77284         * modules/getlogin_r: Likewise.
77285         * modules/glob: Likewise.
77286         * modules/pagealign_alloc: Likewise.
77287         * modules/unistd (Files): Remove lib/unistd_.h.
77288         (EXTRA_DIST): Remove.
77289         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
77290         need unistd_.h.
77291         (MOSTLYCLEANFILES): Remove unistd.h-t.
77292
77293 2006-03-03  Simon Josefsson  <jas@extundo.com>
77294
77295         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
77296
77297 2006-03-03  Simon Josefsson  <jas@extundo.com>
77298
77299         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
77300         libidn and bison.
77301
77302 2006-03-03  Simon Josefsson  <jas@extundo.com>
77303
77304         * build-aux/maint.mk: Add indent target.
77305
77306 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
77307
77308         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
77309         our replacement poll.h in any case, to avoid a differing
77310         declaration from a system header.  Seen on AIX.
77311
77312 2006-03-01  Simon Josefsson  <jas@extundo.com>
77313
77314         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
77315         <kasal@ucw.cz>.
77316
77317 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77318
77319         * modules/gettime (Depends-on): Add extensions module.
77320         * modules/nanosleep (Depends-on): Likewise.
77321         * modules/settime (Depends-on): Likewise.
77322
77323 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
77324
77325         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
77326         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
77327         pedantically.
77328         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
77329         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
77330
77331         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
77332         not "==".  Reported by Ralf Wildenhues.
77333
77334 2006-03-01  Karl Berry  <karl@gnu.org>
77335
77336         * doc/Copyright/request-*: new files, synced from gnuorg.
77337
77338 2006-03-01  Karl Berry  <karl@gnu.org>
77339
77340         * config/srclist.txt (Copyright/*): new entries.
77341
77342 2006-02-28  Simon Josefsson  <jas@extundo.com>
77343
77344         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
77345
77346 2006-02-27  Simon Josefsson  <jas@extundo.com>
77347
77348         * lib/base64.h: Indent #define's.  From Jim Meyering
77349         <jim@meyering.net>.
77350
77351 2006-02-27  Jim Meyering  <jim@meyering.net>
77352
77353         Revert the change of 2006-02-24, so these files can continue
77354         to be sync'd from gettext.
77355         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
77356         of `config.h'.
77357
77358 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
77359
77360         * modules/intprops: New file.
77361         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
77362         Add intprops.
77363         * modules/getloadavg (Files): Remove lib/intprops.h.
77364         (Depends-on): Add intprops.
77365         * modules/human: Likewise.
77366         * modules/inttostr: Likewise.
77367         * modules/openat: Likewise.
77368         * modules/sig2str: Likewise.
77369         * modules/userspec: Likewise.
77370         * modules/utimecmp: Likewise.
77371         * modules/xnanosleep: Likewise.
77372         * modules/xstrtol: Likewise.
77373
77374 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
77375
77376         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
77377         * modules/lock-tests (TESTS): Use $(EXEEXT).
77378         * modules/tls-tests: Likewise.
77379         * modules/argp-tests: Likewise.
77380         (check_PROGRAMS): New var, replacing...
77381         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
77382
77383 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77384
77385         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
77386         `config.h'.
77387
77388 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
77389
77390         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
77391
77392 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77393
77394         Sync from coreutils.
77395         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
77396         gl_CHDIR_SAFER.
77397
77398 2006-02-22  Jim Meyering  <jim@meyering.net>
77399
77400         Sync from coreutils.
77401         * m4/chdir-safer.m4: New file.
77402
77403 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
77404
77405         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
77406         AT_FDCWD exceeds INT_MAX.
77407         * lib/openat.h (AT_FDCWD): Likewise.
77408
77409 2006-02-17  Eric Blake  <address@hidden>
77410
77411         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
77412
77413 2006-02-16  Simon Josefsson  <jas@extundo.com>
77414
77415         * modules/getaddrinfo (Depends-on): Add sys_socket.
77416
77417 2006-02-15  Simon Josefsson  <jas@extundo.com>
77418
77419         * build-aux/maint.mk: Add dsyntax-check rule.
77420
77421 2006-02-15  Eric Blake  <ebb9@byu.net>
77422
77423         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
77424         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
77425         'present but cannot compile' warnings on cygwin.
77426         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
77427         use ws2tcpip.h if sys/socket.h works.
77428         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
77429         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
77430
77431 2006-02-14  Simon Josefsson  <jas@extundo.com>
77432
77433         * modules/maintainer-makefile (Files): Rename.
77434
77435         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
77436         and (the local) Makefile.cfg to maint-cfg.mk.
77437
77438         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
77439         to the latter.
77440
77441         * modules/maintainer-makefile: New module.
77442
77443         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
77444         severaly stripped to make it possible to build it up from scratch
77445         with reliable tests.
77446
77447         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
77448         fixes to permit overriding the default actions when configure and
77449         makefile are not available.
77450
77451 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
77452
77453         Sync from coreutils.
77454         * modules/lstat (Depends-on): Don't depend on xalloc.
77455         (License): Change from GPL to LGPL, since this is now simply a
77456         replacement for a libc function.
77457
77458 2006-02-14  Jim Meyering  <jim@meyering.net>
77459
77460         Sync from coreutils.
77461
77462         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
77463         failure on deficient systems, and simplify gnulib lgpl dependencies.
77464         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
77465         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
77466
77467         * lib/xalloc-die.c: Remove unused definition of N_.
77468
77469 2006-02-14  Jim Meyering  <jim@meyering.net>
77470
77471         Sync from coreutils.
77472         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
77473         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
77474         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
77475         double-quote uses of that variable, to accommodate the rare case in
77476         which getmntent is available in none of the libraries checked.  This
77477         happens at least on FreeBSD 5.0.
77478
77479 2006-02-13  Simon Josefsson  <jas@extundo.com>
77480
77481         * gnulib-tool (Usage): Fix --import, from
77482         karl@freefriends.org (Karl Berry).
77483
77484 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
77485
77486         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
77487
77488 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
77489
77490         * lib/argp-namefrob.h: Restore changes accidentally lost during the
77491         "autoupdate" on 2005-12-12.
77492
77493 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
77494
77495         * modules/closeout (Depends-on): Remove atexit.
77496
77497 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
77498
77499         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
77500         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
77501
77502 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
77503
77504         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
77505         __EXTENSIONS__ if this causes compilation to fail.  Problem
77506         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
77507         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
77508
77509 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
77510
77511         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
77512         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
77513         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
77514         All uses changed.
77515
77516 2006-01-26  Simon Josefsson  <jas@extundo.com>
77517
77518         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
77519         prototype is visible on mingw32.
77520
77521         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
77522         for mingw32.
77523
77524         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
77525         mingw32).
77526
77527 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
77528
77529         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
77530         attempt to open for write; this always fails, at least on POSIX
77531         hosts.  This reinstates the 2006-01-09 change, which was
77532         inadvertently removed.
77533
77534 2006-01-26  Bruno Haible  <bruno@clisp.org>
77535
77536         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
77537         Reported by Paul Eggert.
77538
77539 2006-01-26  Bruno Haible  <bruno@clisp.org>
77540             Paul Eggert  <eggert@cs.ucla.edu>
77541
77542         * lib/stdbool_.h (_Bool)
77543         [(! (defined __cplusplus || defined __BEOS__)
77544           && !defined __GNUC__
77545           && !(defined __HP_cc || defined __xlc__
77546                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
77547                || defined __sgi))]:
77548         #define to signed char in these cases too; this simplifies
77549         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
77550         etc., separately) and makes it more conservative.
77551
77552 2006-01-25  Simon Josefsson  <jas@extundo.com>
77553
77554         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
77555         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
77556         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
77557
77558 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
77559
77560         * lib/argp-namefrob.h: Bugfix. Remove stray #
77561
77562 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
77563
77564         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
77565         so that we test the test.
77566         Check for yet another HP-UX cc bug involving *bool |= bool.
77567
77568 2006-01-25  Karl Berry  <karl@gnu.org>
77569
77570         * config/srclist.txt (vasnprintf.c): sync lost.
77571
77572 2006-01-25  Jim Meyering  <jim@meyering.net>
77573
77574         Sync from the stable (b5) branch of coreutils:
77575
77576         * lib/fts.c (fts_children): Don't let close() clobber errno from
77577         failed fchdir().
77578
77579         * lib/fts.c (fts_stat): When following a symlink-to-directory,
77580         don't necessarily interpret stat-fails+lstat-succeeds as indicating
77581         a dangling symlink.  That can also happen at least for ELOOP.
77582         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
77583         FYI, this bug predates the inclusion of fts.c in coreutils.
77584
77585         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
77586         in their own block, so pre-c99 compilers don't object.
77587
77588         Avoid the double-free (first in fts_read, second in fts_close) that
77589         would occur when an `active' directory is made inaccessible (e.g.,
77590         via chmod a-x) during a traversal.
77591         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
77592         before returning.  Reproduce this failure by
77593         mkdir -p a/b; cd a; chmod a-x . b
77594         Reported by Stavros Passas.
77595
77596 2006-01-25  Jim Meyering  <jim@meyering.net>
77597
77598         * lib/fileblocks.c: Remove more useless parentheses.
77599         * lib/readutmp.h: Likewise.
77600
77601 2006-01-25  Bruno Haible  <bruno@clisp.org>
77602
77603         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
77604         warnings.
77605         Reported by Paul Eggert.
77606
77607 2006-01-25  Bruno Haible  <bruno@clisp.org>
77608
77609         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
77610         rid of a trap command. For Solaris sh.
77611         Reported by Mark D. Baushke <mdb@gnu.org>.
77612
77613 2006-01-24  Simon Josefsson  <jas@extundo.com>
77614
77615         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
77616         Bruno.
77617
77618 2006-01-24  Karl Berry  <karl@gnu.org>
77619
77620         * config/srclist.txt (argp-namefrob.h): sync lost.
77621
77622 2006-01-24  Jim Meyering  <jim@meyering.net>
77623
77624         * modules/openat (Files): Add lib/intprops.h.
77625         From Mark D. Baushke.
77626
77627 2006-01-24  Jim Meyering  <jim@meyering.net>
77628
77629         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
77630         Reported by Mark D. Baushke.
77631
77632 2006-01-24  Jim Meyering  <jim@meyering.net>
77633
77634         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
77635
77636 2006-01-24  Bruno Haible  <bruno@clisp.org>
77637
77638         * modules/strnlen (Maintainer): Change from glibc to all.
77639
77640 2006-01-24  Bruno Haible  <bruno@clisp.org>
77641
77642         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
77643         Patch by Paul Eggert.
77644
77645 2006-01-24  Bruno Haible  <bruno@clisp.org>
77646
77647         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
77648         already has it.
77649         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
77650         2005-11-26.
77651
77652         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
77653         'signed char' to avoid problems with the built-in _Bool type.
77654         Reported by Paul Eggert on 2005-11-26.
77655
77656 2006-01-24  Bruno Haible  <bruno@clisp.org>
77657
77658         * gnulib-tool (func_import): Avoid constructing complicated sed
77659         expressions inside backquote.
77660         Report and solution by Mark D. Baushke <mdb@gnu.org>.
77661
77662 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
77663
77664         These changes imported from libc.
77665         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
77666         test and two separate function calls.
77667         * lib/strndup.c (__strndup): Add libc_hidden_def.
77668
77669 2006-01-23  Simon Josefsson  <jas@extundo.com>
77670
77671         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
77672         Remove the test_*_SOURCES variable: automake infers it by default.
77673         * modules/tls-tests: Likewise.
77674
77675 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
77676
77677         Work around porting bugs reported by Dieter in
77678         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
77679         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
77680         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
77681         Include "getopt.h" first, to check interface.
77682         (getenv): Declare only if defined HAVE_DECL_GETENV &&
77683         !HAVE_DECL_GETENV.
77684         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
77685         (__strndup): Revert to K&R-style function dfns, the glibc style.
77686         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
77687         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
77688         Include strnlen.h first, to get prototype properly.
77689         (strnlen): Renamed from __strnlen.
77690         Remove weak alias.
77691
77692 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
77693
77694         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
77695
77696 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
77697
77698         * config/srclist.txt: Adjust to reflect glibc reorganization.
77699         This affects only comments.
77700
77701 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
77702
77703          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
77704          Reported by Bruce Korb <bkorb@gnu.org>.
77705
77706 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
77707
77708         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
77709         to pacify gcc -Wswitch-default.
77710
77711 2006-01-22  Bruno Haible  <bruno@clisp.org>
77712
77713         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
77714         temporary buffer for sprintf, take into account the precision also
77715         for 'd', 'i', 'u', 'o', 'x', 'X'.
77716
77717 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
77718
77719         * modules/argp-tests: New module
77720         * tests/test-argp.c: New file
77721         * tests/test-argp-2.sh: New file
77722
77723 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
77724
77725         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
77726         (__argp_base_name): Removed
77727         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
77728         typo.
77729         (__argp_base_name): Provide macro definition or extern declaration
77730         depending on the configuration
77731
77732 2006-01-20  Simon Josefsson  <jas@extundo.com>
77733
77734         * modules/inet_ntop (Depends-on): Depend on sys_socket.
77735
77736 2006-01-20  Simon Josefsson  <jas@extundo.com>
77737
77738         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
77739
77740 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
77741
77742         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
77743         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
77744         Suggested by Bruno Haible.
77745
77746 2006-01-20  Karl Berry  <karl@gnu.org>
77747
77748         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
77749         until changes propagate, I guess.
77750
77751 2006-01-19  Simon Josefsson  <jas@extundo.com>
77752
77753         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
77754
77755 2006-01-19  Simon Josefsson  <jas@extundo.com>
77756
77757         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
77758
77759 2006-01-19  Simon Josefsson  <jas@extundo.com>
77760
77761         * gnulib-tool: Set check_PROGRAMS.
77762
77763         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
77764         modules/des-tests, modules/gc-arcfour-tests,
77765         modules/gc-arctwo-tests, modules/gc-des-tests,
77766         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
77767         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
77768         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
77769         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
77770         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
77771         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
77772         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
77773         test_*_SOURCES.
77774
77775 2006-01-18  Simon Josefsson  <jas@extundo.com>
77776
77777         * modules/socklen (Depends-on): Depend on sys_socket.
77778
77779 2006-01-18  Simon Josefsson  <jas@extundo.com>
77780
77781         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
77782         modules/des-tests, modules/gc-arcfour-tests,
77783         modules/gc-arctwo-tests, modules/gc-des-tests,
77784         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
77785         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
77786         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
77787         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
77788         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
77789         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
77790         $(EXEEXT) to automake TESTS variable, for mingw32.
77791
77792 2006-01-17  Simon Josefsson  <jas@extundo.com>
77793
77794         * modules/socklen (Include): Need sys/socket.h.
77795
77796 2006-01-17  Bruno Haible  <bruno@clisp.org>
77797
77798         * modules/ssize_t (Include): Add <sys/types.h>.
77799
77800 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
77801
77802         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
77803         it's not portable and it doesn't work with cross-compiles.
77804         Problem reported by Bruno Haible.  Fix missing-$ typo in
77805         'test "gl_cv_ignore_unused_libraries" ...' that prevented
77806         -zignore from being used with Sun's C compiler.
77807
77808 2006-01-12  Simon Josefsson  <jas@extundo.com>
77809
77810         * lib/base64.c: Fix warning, reported by Bruno Haible
77811         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
77812
77813 2006-01-12  Bruno Haible  <bruno@clisp.org>
77814
77815         * modules/ldd: New file.
77816         * build-aux/ldd.sh.in: New file.
77817         * MODULES.html.sh (Support for building libraries and executables): Add
77818         ldd.
77819
77820 2006-01-12  Bruno Haible  <bruno@clisp.org>
77821
77822         * m4/ldd.m4: New file.
77823
77824 2006-01-12  Bruno Haible  <bruno@clisp.org>
77825
77826         * gnulib-tool (func_import, func_create_testdir): Don't go into an
77827         endless loop while replacing $auxdir with build-aux.
77828
77829 2006-01-11  Simon Josefsson  <jas@extundo.com>
77830
77831         * lib/stdint_.h (SIZE_MAX): Add missing (.
77832
77833 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
77834
77835         Sync from coreutils.
77836         * lib/md5.c: Fix commentary typos.
77837         (alignof, UNALIGNED_P): No need for a GCC-specific version.
77838         * lib/md5.h (__attribute__): Remove; unused.
77839         * lib/sha1.c: Fix commentary to match md5 better.
77840         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
77841         so that we don't need to worry about alignment.  All uses changed.
77842         This merges the 2005-10-28 md5 change into sha1.
77843
77844 2006-01-11  Jim Meyering  <jim@meyering.net>
77845
77846         Sync from coreutils.
77847         * lib/md5.c (OP): Fix spacing.
77848
77849 2006-01-11  Bruno Haible  <bruno@clisp.org>
77850
77851         Ensure automatic ordering between gl_LOCK and gl_ARGP.
77852         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
77853         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
77854
77855 2006-01-11  Bruno Haible  <bruno@clisp.org>
77856
77857         Ensure automatic ordering between gl_LOCK and gl_ARGP.
77858         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
77859         the "early" section as well.
77860
77861 2006-01-11  Bruno Haible  <bruno@clisp.org>
77862
77863         Avoid "ar: no archive members specified" error on MacOS X.
77864         * gnulib-tool (func_modules_add_dummy): New function.
77865         (func_import, func_create_testdir): Invoke it.
77866
77867 2006-01-11  Bruno Haible  <bruno@clisp.org>
77868
77869         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
77870         with $auxdir in AC_CONFIG_FILES statements.
77871
77872 2006-01-11  Bruno Haible  <bruno@clisp.org>
77873
77874         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77875         Initialize also noinst_HEADERS to empty.
77876
77877 2006-01-11  Bruno Haible  <bruno@clisp.org>
77878
77879         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
77880         variables.
77881         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
77882         autoreconf.
77883
77884 2006-01-11  Bruno Haible  <bruno@clisp.org>
77885
77886         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
77887         overridable by the user.
77888         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
77889
77890 2006-01-10  Simon Josefsson  <jas@extundo.com>
77891
77892         * modules/sys_socket: New file.
77893
77894 2006-01-10  Simon Josefsson  <jas@extundo.com>
77895
77896         * m4/sys_socket_h.m4: New file.
77897
77898 2006-01-10  Simon Josefsson  <jas@extundo.com>
77899
77900         * lib/socket_.h: New file.
77901
77902 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
77903
77904         * modules/readutmp (Maintainer): Add myself.
77905
77906 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
77907
77908         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
77909         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
77910         People who are still concerned with buggy memcmp implementations
77911         can invoke gl_FUNC_MEMCMP themselves.
77912
77913 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
77914
77915         * lib/regex_internal.h (BITSET_WORD_BITS):
77916         Work around a bug in 64-bit PGC (before version 6.1-2), where the
77917         preprocessor mishandles large unsigned values as if they were signed.
77918         Problem reported by Claudio Fontana in
77919         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
77920
77921 2006-01-10  Jim Meyering  <jim@meyering.net>
77922
77923         Avoid the double-free (first in fts_read, second in fts_close) that
77924         would occur when an `active' directory is made inaccessible (e.g.,
77925         via chmod a-x) during a traversal.
77926         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
77927         before returning.  Reproduce this failure by
77928         mkdir -p a/b; cd a; chmod a-x . b
77929         Reported by Stavros Passas.
77930
77931         Sync from coreutils.
77932         * lib/sha1.c: Tweak grammar in a comment.
77933
77934 2006-01-10  Jim Meyering  <jim@meyering.net>
77935
77936         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
77937         Patch by Joerg Sonnenberger.
77938
77939 2006-01-10  Bruno Haible  <bruno@clisp.org>
77940
77941         * modules/readutmp: Depend on module free.
77942         * modules/strtok_r: Depend on module restrict.
77943
77944 2006-01-10  Bruno Haible  <bruno@clisp.org>
77945
77946         * modules/gettext (configure.ac): Add an invocation of
77947         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
77948
77949 2006-01-10  Bruno Haible  <bruno@clisp.org>
77950
77951         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
77952         Reported by Werner Lemberg <wl@gnu.org>.
77953
77954 2006-01-10  Bruno Haible  <bruno@clisp.org>
77955
77956         * lib/localcharset.c: Update from GNU gettext.
77957
77958 2006-01-10  Bruno Haible  <bruno@clisp.org>
77959
77960         * lib/argp.h (__const): Remove macro. Use const instead.
77961         * lib/argp-fmtstream.h (__const): Likewise.
77962         * lib/glob_.h (__const): Remove macro.
77963         * lib/glob-libc.h: Use const instead of __const.
77964
77965 2006-01-10  Bruno Haible  <bruno@clisp.org>
77966
77967         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
77968         variable.
77969         Needed to avoid an automake error regarding the 'gettext' module.
77970
77971 2006-01-09  Simon Josefsson  <jas@extundo.com>
77972
77973         * modules/inet_ntop (Depends-on): Add restrict.
77974
77975 2006-01-09  Simon Josefsson  <jas@extundo.com>
77976
77977         * modules/gc-rijndael-tests (License): Put under LGPL.
77978
77979         * modules/gc-des-tests (License): Likewise.
77980
77981         * modules/gc-arcfour-tests (License): Likewise.
77982
77983         * modules/gc-arctwo-tests (License): Likewise.
77984
77985         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
77986
77987         * modules/gc-hmac-sha1-tests (Files): Likewise.
77988
77989         * modules/gc-hmac-md5-tests (License): Likewise.
77990
77991         * modules/gc-sha1-tests (License): Likewise.
77992
77993         * modules/gc-md5-tests (License): Likewise.
77994
77995         * modules/gc-md4-tests (License): Likewise.
77996
77997         * modules/gc-md2-tests (License): Likewise.
77998
77999         * modules/gc-tests (License): Likewise.
78000
78001         * modules/des-tests (License): Likewise.
78002
78003         * modules/md4-tests (License): Likewise.
78004
78005         * modules/md2-tests (License): Likewise.
78006
78007 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78008
78009         Sync from coreutils:
78010
78011         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
78012         * modules/lib-ignore: New file.
78013         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
78014         chdir-safer.m4, lchmod.m4.
78015         * modules/openat: Add mkdirat.c, openat-priv.h.
78016
78017 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78018
78019         Sync from coreutils.
78020         * m4/lib-ignore.m4: New file.
78021         * m4/lchmod.m4: New file.
78022
78023 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78024
78025         Sync from coreutils.
78026         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
78027         for write access: POSIX says that must fail.
78028         * lib/fts.c (diropen): Likewise.
78029         * lib/save-cwd.c (save_cwd): Likewise.
78030         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
78031         well, for minor improvements on hosts that lack O_DIRECTORY.
78032         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
78033         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
78034         Fall back on chown if open failed with EACCES.
78035
78036         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
78037         Report an error at compile-time if only a 1-second nominal clock
78038         resolution is found.
78039
78040         * lib/lchmod.h: New file.
78041         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
78042         (make_dir_parents): Use lchown rather than chown, and
78043         lchmod rather than chmod.
78044
78045         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
78046         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
78047         "proc" reported by n0dalus.
78048
78049         * lib/mountlist.c: Include <limits.h>.
78050         (dev_from_mount_options)
78051         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
78052         New function.  It no longer assumes "dev=" has the System V meaning
78053         on Linux (since it doesn't).  It also parses "dev=" more carefully.
78054         (read_file_system_list)
78055         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
78056         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
78057         dev= in that case.
78058
78059         * lib/posixtm.h (PDS_PRE_2000): New macro.
78060         * lib/posixtm.c (year): Arg is now syntax_bits rather than
78061         allow_century.  All usages changed.  Reject dates outside the range
78062         1969-1999 if PDS_PRE_2000 is used.
78063
78064 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
78065
78066         Sync from coreutils.
78067         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
78068         (Time of day items): Mention the possibility of leap seconds.
78069         Problem reported by Dr. David Alan Gilbert.
78070
78071 2006-01-09  Jim Meyering  <jim@meyering.net>
78072
78073         Sync from coreutils.
78074
78075         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
78076
78077         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
78078
78079         * lib/modechange.c (mode_compile): Reject an invalid mode string
78080         that starts with an octal digit.  From Andreas Gruenbacher.
78081
78082         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
78083         and dup to open_safer and dup_safer, respectively.
78084         (openat_permissive): Fix typo in comment.
78085
78086         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
78087         "gettext.h"; either no longer needed or are guaranteed by openat.h.
78088         (_): Remove; no longer needed.
78089         (openat): Renamed from rpl_openat; no need for rpl_openat
78090         since openat.h renames openat for us.
78091         Replace most of the body with a call to openat_permissive,
78092         to avoid duplicate code.
78093         Port to (probably hypothetical) environments were mode_t is
78094         wider than int.
78095         (openat_permissive): Require mode arg, so that we can check
78096         types better.  Put it just after flags.  Change cwd failure
78097         indicator from pointer-to-bool to pointer-to-errno-value.
78098         All callers changed.
78099         Invoke openat_save_fail and/or openat_restore_fail if
78100         cwd_errno is null, so that openat can call us.
78101         (openat_permissive, fdopendir, fstatat, unlinkat):
78102         Simplify errno handling to avoid some duplicate code,
78103         as it's OK to set errno on success.
78104         * lib/openat.h: Revamp code so that function macros depend on
78105         __OPENAT_PREFIX only, not also on AT_FDCWD.
78106         (openat_ro): Remove.  Caller changed to use openat_permissive.
78107         (openat_permissive): Now a macro, if not a function.
78108         (openat_restore_fail, openat_save_fail): Now always functions,
78109         since mkdirat needs them even if __OPENAT_PREFIX is defined.
78110
78111         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
78112         and openat.c.
78113         * lib/mkdirat.c: Include openat-priv.h.
78114         Remove definitions of macros defined therein.
78115         * lib/openat.c: Likewise.
78116
78117         * lib/mkdirat.c (mkdirat): New file and function.
78118         * lib/openat.h (mkdirat): Declare.
78119
78120         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
78121
78122         * lib/openat.h (openat_permissive): Declare.
78123         (openat_ro): Define.
78124
78125         * lib/openat.c (EXPECTED_ERRNO): New macro.
78126         (openat_permissive): New function -- used in remove.c rewrite.
78127         (all functions): Set errno just before returning, only if there
78128         was an actual failure.
78129         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
78130
78131         Emulate openat-family functions using Linux's procfs, if possible.
78132         Idea and some code based on Ulrich Drepper's glibc changes.
78133
78134         * lib/openat.c: (BUILD_PROC_NAME): New macro.
78135         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
78136         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
78137         before falling back on save_cwd and restore_cwd.
78138         (fdopendir, fstatat, unlinkat): Likewise.
78139
78140         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
78141         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
78142
78143         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
78144         as second argument to va_arg.  Otherwise, some versions of gcc
78145         warn that `if this code is reached, the program will abort'.
78146
78147 2006-01-09  Jim Meyering  <jim@meyering.net>
78148
78149         Sync from coreutils.
78150         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
78151         Require openat-priv.h.
78152
78153 2006-01-09  Bruno Haible  <bruno@clisp.org>
78154
78155         * modules/strnlen (Include): Use strnlen.h.
78156
78157 2006-01-09  Bruno Haible  <bruno@clisp.org>
78158
78159         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
78160
78161 2006-01-09  Bruno Haible  <bruno@clisp.org>
78162
78163         * lib/sysexit_.h (EX_OK): New macro.
78164         Suggested by Martin Lambers <marlam@marlam.de>.
78165
78166 2006-01-09  Bruno Haible  <bruno@clisp.org>
78167
78168         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
78169         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
78170
78171 2006-01-09  Bruno Haible  <bruno@clisp.org>
78172
78173         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
78174         numbers.
78175
78176 2006-01-09  Bruno Haible  <bruno@clisp.org>
78177
78178         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
78179         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
78180         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
78181         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
78182
78183 2006-01-09  Bruno Haible  <bruno@clisp.org>
78184
78185         * build-aux/javacomp.sh.in: New file, moved from lib/.
78186         * modules/javacomp-script (Files): Update.
78187         (configure.ac): Add AC_CONFIG_FILES invocation.
78188         (EXTRA_DIST): Remove variable.
78189
78190         * build-aux/javaexec.sh.in: New file, moved from lib/.
78191         * modules/javaexec (Files): Update.
78192         (configure.ac): Add AC_CONFIG_FILES invocation.
78193         (EXTRA_DIST): Remove javaexec.sh.in.
78194
78195         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
78196         * modules/csharpcomp-script (Files): Update.
78197         (configure.ac): Add AC_CONFIG_FILES invocation.
78198         (EXTRA_DIST): Remove variable.
78199
78200         * build-aux/csharpexec.sh.in: New file, moved from lib/.
78201         * modules/csharpexec (Files): Update.
78202         (configure.ac): Add AC_CONFIG_FILES invocation.
78203         (EXTRA_DIST): Remove csharpexec.sh.in.
78204
78205 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
78206
78207         Sync from coreutils.
78208
78209         Add POSIX ACL support
78210         * lib/acl.h (copy_acl, set_acl): Add declarations.
78211         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
78212         systems other than Linux.
78213         (chmod_or_fchmod): New function: use fchmod when possible,
78214         and chmod otherwise.
78215         (file_has_acl): Add a POSIX ACL implementation, with a
78216         Linux-specific subcase.
78217         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
78218         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
78219         acls are unsupported.
78220         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
78221         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
78222         are unsupported.
78223
78224 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
78225
78226         Sync from coreutils.
78227         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
78228
78229 2006-01-07  Bruno Haible  <bruno@clisp.org>
78230
78231         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
78232         gl_EARLY.
78233
78234 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78235
78236         * lib/strftime.c (tzname): Don't declare if it is already #defined.
78237         Problem reported for Mingw by Mark Junker.
78238
78239 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
78240
78241         * README: Gnulib normally doesn't generate a tarball.
78242
78243 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
78244
78245         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
78246         long int, not int, for nanosecond counts, so that people who are
78247         used to POSIX struct timespec won't be surprised.  Reported by Jim
78248         Meyering.
78249
78250 2005-12-28  Bruno Haible  <bruno@clisp.org>
78251
78252         * build-aux/config.rpath: Update from GNU gettext.
78253
78254 2005-12-16  Jim Meyering  <jim@meyering.net>
78255
78256         * modules/fprintftime: New module.
78257         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
78258
78259 2005-12-16  Jim Meyering  <jim@meyering.net>
78260
78261         * m4/fprintftime.m4: New file.
78262
78263 2005-12-16  Jim Meyering  <jim@meyering.net>
78264
78265         * lib/fprintftime.c, lib/fprintftime.h: New files.
78266
78267 2005-12-15  Simon Josefsson  <jas@extundo.com>
78268
78269         * modules/socklen (configure.ac): Fix M4 macro name, to align with
78270         new m4/socklen.m4.
78271
78272 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
78273
78274         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
78275         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
78276
78277 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
78278
78279         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
78280         * lib/argp-help.c (fill_in_uparams): Check if the constructed
78281         struct uparams is valid. Fall back to the default values if it is
78282         not.
78283
78284 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78285
78286         * modules/argp (Files): Add argp-pin.c
78287         (Depends-on): dirname
78288         (lib_SOURCES): Add argp-pin.c
78289
78290 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78291
78292         * m4/argp.m4:  Check if program_invocation_name and
78293         program_invocation_short_name are declared and define appropriate
78294         macros if they are not.
78295
78296 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78297
78298         * lib/argp-help.c (__argp_base_name): New function
78299         (__argp_short_program_name): Rewrite using __argp_base_name
78300         * lib/argp-namefrob.h: Define program_invocation_name and
78301         program_invocation_short_name if requested
78302         (__argp_base_name): Add prototype
78303         * lib/argp-parse.c (argp_def): Use gettext wrappers
78304         (argp_default_parser): Use __argp_base_name
78305         * lib/argp-pin.c: New file. Defines program_invocation_name and
78306         program_invocation_short_name on systems that lack them.
78307
78308 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78309
78310         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
78311         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
78312         porting problem reported by Georg Schwarz in
78313         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
78314
78315 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
78316
78317         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
78318         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
78319         porting problem reported by Georg Schwarz in
78320         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
78321
78322 2005-12-05  Bruno Haible  <bruno@clisp.org>
78323
78324         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
78325         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
78326         Reported by Mark Junker <mjscod@gmx.de>.
78327
78328 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
78329
78330         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
78331         Use implementation from Albert Chin, with some
78332         comments/corrections by Stepan Kasal and myself.
78333
78334 2005-12-02  Bruno Haible  <bruno@clisp.org>
78335
78336         * gnulib-tool (func_import): Accept GPLed build tool modules when
78337         --lgpl is given.
78338         * modules/csharpcomp-script: New file.
78339         * modules/csharpcomp: Depend on it.
78340         * modules/javacomp-script: New file.
78341         * modules/javacomp: Depend on it.
78342         Suggested by Simon Josefsson.
78343
78344 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
78345
78346         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
78347         statement, to work around an HP-UX 10.20 compiler bug reported by
78348         Peter O'Gorman.
78349
78350 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
78351
78352         * modules/savedir (Depends-on): Add openat.
78353
78354 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
78355
78356         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
78357         (uintmax_t) [defined uintmax_t]: Do not declare.
78358         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
78359         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
78360         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
78361         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
78362         sake of portability to weird hosts that C allows (though we don't
78363         know of any practical examples).
78364
78365         * lib/savedir.h (fdsavedir): New decl.
78366         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
78367         contains most of the former guts of savedir.
78368         (savedir): Use savedirstream.
78369         Include "openat.h".
78370
78371 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
78372
78373         * modules/obstack (Files): Add m4/ulonglong.m4.
78374         Problem reported by Davide Angelocola.
78375
78376 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
78377
78378         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
78379         coreutils no longer futzes with rounding modes.
78380
78381 2005-11-14  Jim Meyering  <jim@meyering.net>
78382
78383         * lib/mkstemp-safer.c: Include <config.h>, required for possible
78384         replacement of mkstemp.
78385
78386 2005-11-10  Simon Josefsson  <jas@extundo.com>
78387
78388         * lib/readline.c: Remove EOL.
78389
78390 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78391
78392         * modules/gethrxtime (Depends-on): Add gettime.
78393
78394 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78395
78396         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
78397         or gettimeofday; no longer needed.
78398
78399 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
78400
78401         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
78402         time business.
78403         (gethrxtime) [! (HAVE_NANOUPTIME
78404         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
78405         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
78406         our own approximation.
78407
78408 2005-11-08  Eric Blake  <ebb9@byu.net>
78409
78410         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
78411
78412 2005-11-08  Eric Blake  <ebb9@byu.net>
78413
78414         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
78415
78416 2005-11-04  Bruno Haible  <bruno@clisp.org>
78417
78418         * gnulib-tool: Implement --update mode.
78419
78420 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
78421
78422         Fix porting problem reported by Theodoros V. Kalamatianos.
78423         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
78424         Don't assume that futimes failing means we must fail.
78425
78426 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
78427
78428         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
78429         variables to suggest the intended function of the PATH_MAX check.
78430
78431 2005-10-30  Kean Johnston  <jkj@sco.com>
78432
78433         Trivial changes to support SCO systems.
78434         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
78435         as PATH_MAX.
78436         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
78437         where __ptr is null when no I/O is pending.
78438
78439 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
78440
78441         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
78442         leave errno alone.  Problem reported by Dmitry V. Levin.
78443
78444 2005-10-28  Simon Josefsson  <jas@extundo.com>
78445
78446         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
78447         Test more.
78448
78449         * tests/test-gc-md2.c, tests/test-md2.c: New files.
78450
78451         * modules/md2, modules/md2-tests: New files.
78452
78453 2005-10-28  Simon Josefsson  <jas@extundo.com>
78454
78455         * m4/inet_ntop.m4: More tests.
78456
78457         * m4/gc-md2.m4, md2.m4: New file.
78458
78459 2005-10-28  Simon Josefsson  <jas@extundo.com>
78460
78461         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
78462         "restrict" keywords, as per POSIX.  Protect the function
78463         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
78464         Don't use K&R prototypes.  Check the sprintf return values.
78465         Re-define EAFNOSUPPORT if not present.  Indent.
78466
78467         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
78468         suggested by Bruno Haible <bruno@clisp.org>.
78469
78470         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
78471
78472         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
78473
78474         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
78475         libgcrypt).
78476
78477         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
78478
78479         * lib/md2.h, lib/md2.c: New files.
78480
78481 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
78482
78483         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
78484         errno alone.  Problem reported by Frederic Jolliton.
78485
78486 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
78487
78488         * modules/verify (License): Change from GPL to LGPL.  This is a
78489         tiny module and there are apparently near-equivalents that are
78490         under the BSD license.
78491
78492 2005-10-24  Simon Josefsson  <jas@extundo.com>
78493
78494         * modules/sha1: Relicense to LGPL.
78495
78496 2005-10-24  Simon Josefsson  <jas@extundo.com>
78497
78498         * lib/md4.h: Shrink buffer size, now that we changed the type.
78499
78500 2005-10-23  Simon Josefsson  <jas@extundo.com>
78501
78502         * gnulib-tool (func_import): Fix --tests-base.
78503
78504 2005-10-22  Simon Josefsson  <jas@extundo.com>
78505
78506         * modules/arcfour (Depends-on): Need stdint.
78507
78508 2005-10-22  Simon Josefsson  <jas@extundo.com>
78509
78510         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
78511         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
78512
78513 2005-10-22  Simon Josefsson  <jas@extundo.com>
78514
78515         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
78516         suggested by Bruno Haible <bruno@clisp.org>.
78517
78518 2005-10-22  Simon Josefsson  <jas@extundo.com>
78519
78520         * lib/crc.h: Include stddef.h, for size_t.
78521
78522 2005-10-22  Simon Josefsson  <jas@extundo.com>
78523
78524         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
78525         arcfour_context struct (simplify test vector testing in GNU
78526         Shishi).
78527
78528 2005-10-21  Simon Josefsson  <jas@extundo.com>
78529
78530         * modules/des, modules/des-tests: New files.
78531
78532         * modules/gc-des, modules/gc-des-tests: New files.
78533
78534         * tests/test-des.c, tests/test-gc-des.c: New file.
78535
78536 2005-10-21  Simon Josefsson  <jas@extundo.com>
78537
78538         * modules/arctwo, modules/arctwo-tests: New files.
78539
78540         * tests/test-arctwo.c: New file.
78541
78542         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
78543
78544         * tests/test-gc-arctwo.c: New file.
78545
78546 2005-10-21  Simon Josefsson  <jas@extundo.com>
78547
78548         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
78549         Bruno Haible <bruno@clisp.org>.
78550
78551         * m4/gc-des.m4: New file.
78552
78553 2005-10-21  Simon Josefsson  <jas@extundo.com>
78554
78555         * m4/arctwo.m4: New file.
78556
78557         * m4/gc-arctwo.m4: New file.
78558
78559 2005-10-21  Simon Josefsson  <jas@extundo.com>
78560
78561         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
78562         block.
78563
78564 2005-10-21  Simon Josefsson  <jas@extundo.com>
78565
78566         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
78567         <bruno@clisp.org>.
78568
78569         * lib/hmac-sha1.c (hmac_sha1): Likewise.
78570
78571         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
78572         Bruno Haible <bruno@clisp.org>.
78573
78574         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
78575         <bruno@clisp.org>.
78576
78577 2005-10-21  Simon Josefsson  <jas@extundo.com>
78578
78579         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
78580
78581 2005-10-21  Simon Josefsson  <jas@extundo.com>
78582
78583         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
78584
78585 2005-10-21  Simon Josefsson  <jas@extundo.com>
78586
78587         * lib/des.h, lib/des.c: New files.
78588
78589         * lib/gc-gnulib.c: Support DES.c
78590
78591 2005-10-21  Simon Josefsson  <jas@extundo.com>
78592
78593         * lib/arctwo.h, lib/arctwo.c: New files.
78594
78595         * lib/gc-gnulib.c: Support ARCTWO.
78596
78597 2005-10-21  Simon Josefsson  <jas@extundo.com>
78598
78599         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
78600         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
78601
78602 2005-10-21  Simon Josefsson  <jas@extundo.com>
78603
78604         * gnulib-tool (func_import, func_create_testdir): Define automake
78605         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
78606         Makefile.am snippet),
78607         suggested by Bruno Haible <bruno@clisp.org>.
78608
78609         * modules/gc (Makefile.am): Use it.
78610
78611 2005-10-21  Bruno Haible  <bruno@clisp.org>
78612
78613         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
78614         patch.
78615
78616 2005-10-19  Simon Josefsson  <jas@extundo.com>
78617
78618         * tests/test-gc-rijndael.c: New file.
78619
78620         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
78621
78622 2005-10-19  Simon Josefsson  <jas@extundo.com>
78623
78624         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
78625         interface too.
78626
78627 2005-10-19  Simon Josefsson  <jas@extundo.com>
78628
78629         * tests/test-gc-arcfour.c: New file.
78630
78631         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
78632
78633 2005-10-19  Simon Josefsson  <jas@extundo.com>
78634
78635         * modules/gc-md4, modules/gc-md4-tests: New file.
78636
78637         * tests/test-gc-md4.c: New file.
78638
78639 2005-10-19  Simon Josefsson  <jas@extundo.com>
78640
78641         * m4/gc-md4.m4: New file.
78642
78643 2005-10-19  Simon Josefsson  <jas@extundo.com>
78644
78645         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
78646         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
78647         <kasal@ucw.cz>.
78648
78649 2005-10-19  Simon Josefsson  <jas@extundo.com>
78650
78651         * m4/gc-arcfour.m4: New file.
78652
78653         * m4/gc-rijndael.m4: New file.
78654
78655 2005-10-19  Simon Josefsson  <jas@extundo.com>
78656
78657         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
78658
78659 2005-10-19  Simon Josefsson  <jas@extundo.com>
78660
78661         * lib/gc-gnulib.c: Support ARCFOUR.
78662
78663 2005-10-19  Simon Josefsson  <jas@extundo.com>
78664
78665         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
78666         support.
78667
78668         * lib/gc.h: Add ECB enum type.
78669
78670         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
78671
78672 2005-10-18  Simon Josefsson  <jas@extundo.com>
78673
78674         * tests/test-md5.c: New file.
78675
78676         * modules/md5-tests: New file.
78677
78678 2005-10-18  Simon Josefsson  <jas@extundo.com>
78679
78680         * tests/test-md4.c: New file.
78681
78682         * modules/md4, modules/md4-tests: New files.
78683
78684 2005-10-18  Simon Josefsson  <jas@extundo.com>
78685
78686         * m4/md4.m4: New file.
78687
78688 2005-10-18  Simon Josefsson  <jas@extundo.com>
78689
78690         * lib/md4.h, lib/md4.c: New files, based on md5.?.
78691
78692 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
78693
78694         * gnulib-tool (func_create_testdir): Omit the second check whether
78695         BUILT_SOURCES in nonempty.
78696
78697 2005-10-17  Simon Josefsson  <jas@extundo.com>
78698
78699         * tests/test-rijndael.c: New file.
78700
78701 2005-10-17  Simon Josefsson  <jas@extundo.com>
78702
78703         * modules/sha1: Depend on stdint instead of md5.
78704
78705         * modules/md5: Depend on stdint, remove uint32_t.
78706
78707 2005-10-17  Simon Josefsson  <jas@extundo.com>
78708
78709         * modules/gc-sha1-tests: New file.
78710
78711         * tests/test-gc-sha1.c: New file.
78712
78713 2005-10-17  Simon Josefsson  <jas@extundo.com>
78714
78715         * m4/md5.m4: Remove call to uint32_t.m4.
78716
78717 2005-10-17  Simon Josefsson  <jas@extundo.com>
78718
78719         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
78720
78721         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
78722         md5.h.
78723
78724         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
78725
78726         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
78727
78728 2005-10-17  Simon Josefsson  <jas@extundo.com>
78729
78730         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
78731
78732 2005-10-17  Simon Josefsson  <jas@extundo.com>
78733
78734         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
78735
78736 2005-10-17  Simon Josefsson  <jas@extundo.com>
78737
78738         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
78739
78740         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
78741
78742 2005-10-17  Bruno Haible  <bruno@clisp.org>
78743
78744         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
78745         that it can also be used in a test.
78746
78747 2005-10-16  Bruno Haible  <bruno@clisp.org>
78748
78749         * gnulib-tool (func_emit_tests_Makefile_am): Also define
78750         TESTS_ENVIRONMENT, so that individual tests can augment it.
78751
78752         * gnulib-tool (func_create_testdir): Use an intermediate target for
78753         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
78754         macros, like $(ALLOCA_H), which cannot be passed through the command
78755         line.
78756
78757 2005-10-15  Simon Josefsson  <jas@extundo.com>
78758
78759         * modules/rijndael-tests: New file.
78760
78761         * modules/rijndael: New file.
78762
78763 2005-10-15  Simon Josefsson  <jas@extundo.com>
78764
78765         * m4/rijndael.m4: New file.
78766
78767 2005-10-15  Simon Josefsson  <jas@extundo.com>
78768
78769         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
78770
78771         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
78772
78773 2005-10-14  Simon Josefsson  <jas@extundo.com>
78774
78775         * tests/test-arcfour.c: New file.
78776
78777         * modules/arcfour, modules/arcfour-tests: New files.
78778
78779 2005-10-14  Simon Josefsson  <jas@extundo.com>
78780
78781         * m4/arcfour.m4: New file.
78782
78783 2005-10-14  Simon Josefsson  <jas@extundo.com>
78784
78785         * lib/arcfour.h, lib/arcfour.c: New files.
78786
78787 2005-10-14  Roland McGrath  <roland@redhat.com>
78788
78789         Import from libc.  [BZ #1331]
78790         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
78791         macro argument.
78792         Reported by Matej Vela <vela@debian.org>.
78793
78794 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
78795
78796         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
78797         include <wchar.h>; no longer needed.
78798
78799 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
78800
78801         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
78802
78803 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
78804         and  Ulrich Drepper  <drepper@redhat.com>
78805
78806         Import from libc.
78807         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
78808         instead of inline stream orientation test and two separate
78809         function calls.  Pay no attention to USE_IN_LIBIO.
78810
78811 2005-10-13  Simon Josefsson  <jas@extundo.com>
78812
78813         * modules/gc-hmac-md5-tests: New file.
78814
78815         * tests/test-gc-hmac-sha1.c: New file.
78816
78817         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
78818
78819         * modules/gc-hmac-md5-tests: New file.
78820
78821         * tests/test-gc-md5.c: New file.
78822
78823         * modules/gc-md5-tests: New file.
78824
78825 2005-10-13  Simon Josefsson  <jas@extundo.com>
78826
78827         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
78828         Move memory allocation outside of loop.
78829
78830 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
78831
78832         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
78833         intermediate directory is in a read-only file system.  Problem
78834         reported by Eric Blake.
78835
78836 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
78837
78838         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
78839
78840 2005-10-12  Simon Josefsson  <jas@extundo.com>
78841
78842         * tests/test-hmac-sha1.c: New file.
78843
78844         * modules/hmac-sha1-tests: New file.
78845
78846         * modules/hmac-sha1: New file.
78847
78848 2005-10-12  Simon Josefsson  <jas@extundo.com>
78849
78850         * modules/gc-sha1: New file.
78851
78852 2005-10-12  Simon Josefsson  <jas@extundo.com>
78853
78854         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
78855
78856         * tests/test-gc-pbkdf2-sha1.c: New file.
78857
78858 2005-10-12  Simon Josefsson  <jas@extundo.com>
78859
78860         * modules/gc-md5, modules/gc-hmac-md5: New files.
78861
78862         * modules/gc (Files): Remove md5, memxor and hmac files.
78863
78864 2005-10-12  Simon Josefsson  <jas@extundo.com>
78865
78866         * m4/gc-pbkdf2-sha1.m4: New file.
78867
78868         * m4/gc-hmac-sha1.m4: New file.
78869
78870         * m4/gc-sha1: New file.
78871
78872         * m4/hmac-sha1.m4: New file.
78873
78874 2005-10-12  Simon Josefsson  <jas@extundo.com>
78875
78876         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
78877
78878         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
78879
78880 2005-10-12  Simon Josefsson  <jas@extundo.com>
78881
78882         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
78883         suggested by Bruno Haible <bruno@clisp.org>.
78884
78885 2005-10-12  Simon Josefsson  <jas@extundo.com>
78886
78887         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
78888
78889 2005-10-12  Simon Josefsson  <jas@extundo.com>
78890
78891         * lib/gc-pbkdf2-sha1.c: New file.
78892
78893         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
78894
78895 2005-10-12  Simon Josefsson  <jas@extundo.com>
78896
78897         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
78898
78899         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
78900
78901 2005-10-12  Simon Josefsson  <jas@extundo.com>
78902
78903         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
78904         GC_USE_HMAC_MD5, respectively.
78905
78906         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
78907         (gc_md5): Fix typo.
78908
78909         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
78910
78911         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
78912
78913         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
78914
78915 2005-10-12  Bruno Haible  <bruno@clisp.org>
78916
78917         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
78918         Reported by Stepan Kasal <kasal@ucw.cz>.
78919
78920 2005-10-11  Simon Josefsson  <jas@extundo.com>
78921
78922         * tests/test-crc.c: New file.
78923
78924         * modules/crc, modules/crc-tests: New files.
78925
78926 2005-10-11  Simon Josefsson  <jas@extundo.com>
78927
78928         * m4/crc.m4: New file.
78929
78930 2005-10-11  Simon Josefsson  <jas@extundo.com>
78931
78932         * lib/gc.h: Add gc_hash and gc_hash_buffer.
78933
78934         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
78935
78936         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
78937
78938 2005-10-11  Simon Josefsson  <jas@extundo.com>
78939
78940         * lib/crc.h, lib/crc.c: New files.
78941
78942         * lib/gc.h (gc_hash_buffer): Add doc.
78943
78944 2005-10-11  Bruno Haible  <bruno@clisp.org>
78945
78946         * modules/c-strcasestr: New file.
78947         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
78948
78949 2005-10-11  Bruno Haible  <bruno@clisp.org>
78950
78951         * modules/c-strcase: New file.
78952         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
78953
78954 2005-10-11  Bruno Haible  <bruno@clisp.org>
78955
78956         * lib/strcasecmp.c: Include limits.h.
78957         (strcasecmp): Avoid integer overflow on exotic platforms.
78958         * lib/strncasecmp.c: Include limits.h.
78959         (strncasecmp): Avoid integer overflow on exotic platforms.
78960         Reported by Paul Eggert.
78961
78962 2005-10-11  Bruno Haible  <bruno@clisp.org>
78963
78964         * lib/c-strcasestr.h: New file, from GNU gettext.
78965         * lib/c-strcasestr.c: New file, from GNU gettext.
78966
78967 2005-10-11  Bruno Haible  <bruno@clisp.org>
78968
78969         * lib/c-strcase.h: New file, from GNU gettext.
78970         * lib/c-strcasecmp.c: New file, from GNU gettext.
78971         * lib/c-strncasecmp.c: New file, from GNU gettext.
78972
78973 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
78974
78975         * modules/mempcpy (License): GPL -> LGPL.
78976         * modules/strchrnul (License): Likewise.
78977         * modules/sysexits (License): Likewise.
78978
78979 2005-10-08  Simon Josefsson  <jas@extundo.com>
78980
78981         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
78982
78983 2005-10-07  Simon Josefsson  <jas@extundo.com>
78984
78985         * m4/memxor.m4: Remove gl_C_RESTRICT call.
78986
78987 2005-10-06  Simon Josefsson  <jas@extundo.com>
78988
78989         * tests/test-hmac-md5.c: New file.
78990
78991         * modules/hmac-md5-tests: New file.
78992
78993         * modules/hmac-md5: New file.
78994
78995 2005-10-06  Simon Josefsson  <jas@extundo.com>
78996
78997         * m4/hmac-md5.m4: New file.
78998
78999         * m4/memxor.m4: Require gl_C_RESTRICT.
79000
79001 2005-10-06  Simon Josefsson  <jas@extundo.com>
79002
79003         * lib/memxor.c (memxor): Avoid casts and warnings.
79004
79005 2005-10-06  Simon Josefsson  <jas@extundo.com>
79006
79007         * lib/hmac-md5.c: New file.
79008
79009         * lib/hmac.h: New file.
79010
79011 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
79012
79013         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
79014         promotes to int, not unsigned int, to catch the AIX 5.3
79015         compiler bug.
79016
79017 2005-10-05  Simon Josefsson  <jas@extundo.com>
79018
79019         * modules/memxor: New file.
79020
79021         * modules/iconv (Files): Move config.rpath to havelib, it is used
79022         there.
79023
79024         * modules/havelib (Files): Add config.rpath.
79025
79026 2005-10-05  Simon Josefsson  <jas@extundo.com>
79027
79028         * m4/memxor.m4: New file.
79029
79030 2005-10-05  Simon Josefsson  <jas@extundo.com>
79031
79032         * lib/memxor.c (memxor): Fix compiler error.
79033
79034         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
79035         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
79036
79037         * lib/memxor.h, lib/memxor.c: New files.
79038
79039         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
79040         we assume all systems have it, suggested by Jim Meyering
79041         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
79042         any systems lack sys/socket.h; mingw32 is known to lack it, but we
79043         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
79044         same reasons.
79045
79046 2005-10-05  Simon Josefsson  <jas@extundo.com>
79047
79048         * config/srclist.txt: Add glibc bug 1423 for md5.h.
79049
79050 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
79051
79052         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
79053         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
79054         needed, since the source code now assumes these .h files.
79055
79056 2005-10-05  Derek Price  <derek@ximbiot.com>
79057
79058         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
79059
79060 2005-10-05  Bruno Haible  <bruno@clisp.org>
79061
79062         * modules/stdint (License): Change to LGPL.
79063
79064 2005-10-04  Simon Josefsson  <jas@extundo.com>
79065
79066         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
79067         D. Baushke" <mdb@gnu.org>.
79068
79069 2005-10-04  Bruno Haible  <bruno@clisp.org>
79070
79071         * lib/verify.h (verify_true): Provide alternative definition for C++.
79072
79073 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
79074
79075         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
79076         (SSIZE_MAX): New macro, if not already defined.
79077         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
79078         than 2 GiB.
79079
79080 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79081
79082         Sync from coreutils.
79083         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
79084         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
79085         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
79086         ULLONG_MAX doesn't work with 2.7.2.1.
79087
79088 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79089
79090         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
79091         From Ben Pfaff.
79092
79093         * modules/exclude (Depends-on): Depend on verify.
79094         * modules/strtoimax (Depends-on): Likewise.
79095         * modules/utimecmp (Depends-on): Likewise.
79096
79097 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
79098
79099         * lib/exclude.c: Include verify.h.
79100         (verify): Remove.  All callers changed to use verify.h's version.
79101         * lib/strtoimax.c: Likewise.
79102         * lib/utimecmp.c: Likewis.e
79103
79104         Sync from coreutils.
79105         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
79106         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
79107         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
79108         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
79109         bother returning ENOSYS if settimeofday or stime fails; just let
79110         them return whatever errno they want to return.
79111         * lib/utimens.c: Include unistd.h, for dup2.
79112         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
79113         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
79114
79115 2005-10-02  Jim Meyering  <jim@meyering.net>
79116
79117         Sync from coreutils.
79118         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
79119         from glibc-2.2.5 that fails for read-only files.
79120
79121 2005-10-02  Jim Meyering  <jim@meyering.net>
79122
79123         Sync from coreutils.
79124         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
79125         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
79126         `#if HAVE_CONFIG_H'.
79127         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
79128         Remove AT_FDCWD test.
79129         Do not consume the fd unless successful.
79130         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
79131         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
79132         block, so that we don't even try to compile it if settimeofday is
79133         available.  This works around a compilation failure on OSF1 V5.1,
79134         due to stime requiring a `long int*' while tv_sec is `int'.
79135
79136 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
79137
79138         Sync from coreutils.
79139         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
79140         against `yes', rather than just testing for nonempty.
79141
79142 2005-10-01  Simon Josefsson  <jas@extundo.com>
79143
79144         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
79145         and Darwin.
79146
79147         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
79148         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
79149         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
79150         freeaddrinfo and gai_strerror are declared by the POSIX headers.
79151         Check if struct addrinfo is declared.
79152
79153 2005-10-01  Simon Josefsson  <jas@extundo.com>
79154
79155         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
79156         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
79157         AI_* and EAI_* definitions.  Protect function declarations.
79158
79159 2005-10-01  Jim Meyering  <jim@meyering.net>
79160
79161         Sync from coreutils.
79162
79163         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
79164         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
79165         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
79166         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
79167         in the inet and nsl libraries.  Required on Solaris 5.7.
79168
79169 2005-10-01  Jim Meyering  <jim@meyering.net>
79170
79171         Sync from coreutils.
79172         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
79173         in the inet and nsl libraries.  Required on Solaris 5.7.
79174
79175 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
79176
79177         * lib/getdelim.c (getdelim): Remove unused variables.
79178
79179 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
79180
79181         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
79182         so that the code works even with ancient cpp.  Portability problem
79183         with GCC 2.7.2.1 reported by Thomas M.Ott.
79184
79185 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
79186
79187         * modules/regex (Depends-on): Add strcase.
79188
79189         * modules/gethostname (Licence): Change from GPL to LGPL, since
79190         gethostname.c is a trivial implementation of a standard library
79191         function.
79192         * modules/poll (License): Change from GPL to LGPL, since it's
79193         derived from LGPL code.
79194
79195 2005-09-27  Jim Meyering  <jim@meyering.net>
79196
79197         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
79198         HAVE_CONFIG_H.
79199
79200         * lib/intprops.h (signed_type_or_expr__): Define.
79201         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
79202         for unsigned types.
79203
79204 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
79205
79206         * lib/verify.h (verify_expr): Remove, replacing with:
79207         (verify_true): New macro that returns true instead of void.
79208         (verify_type__): Remove.
79209         (verify): Use verify_true rather than verify_type__.
79210
79211 2005-09-26  Bruno Haible  <bruno@clisp.org>
79212
79213         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
79214         is necessary.
79215         (lib_SOURCES): Remove mbchar.c.
79216         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
79217         (Files): Add m4/mbrtowc.m4.
79218         * modules/mbiter: Likewise.
79219         * modules/mbuiter: Likewise.
79220
79221 2005-09-26  Bruno Haible  <bruno@clisp.org>
79222
79223         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
79224         compile mbchar.c if they are not both present.
79225         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
79226         * m4/mbiter.m4 (gl_MBITER): Likewise.
79227         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
79228         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
79229         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
79230
79231 2005-09-25  Jim Meyering  <jim@meyering.net>
79232
79233         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
79234         also uses socklen_t.
79235
79236 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
79237
79238         * lib/utimens.c (ENOSYS): Define if not already defined.
79239         (futimens): Support having a null PATH if the file descriptor
79240         is nonnegative.
79241
79242         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
79243         Remove.
79244         (__attribute): Define to empty unless GCC 3.1 or later.
79245         This works around a core dump on OpenBSD 3.4, which has GCC
79246         2.95.3, which dumps core when given __attribute__(()).  It also
79247         simplifies other tests, since we really don't want to bother with
79248         worrying about which ancient version of GCC supported what.
79249         Original problem reported by Yoann Vandoorselaere, with part of
79250         the fix suggested by Derek Price.
79251
79252 2005-09-24  Jim Meyering  <jim@meyering.net>
79253
79254         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
79255         so we can once again use a positive bitfield width of 1 -- now we
79256         don't have to explain why we were using a bitfield width of 2.
79257
79258 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
79259
79260         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
79261         and similarly for the other external symbols.  Problem reported
79262         by James Gallager.
79263
79264         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
79265         bug reported by Jim Meyering.
79266
79267         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
79268         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
79269         not needed, since socklen is a prerequisite module.
79270
79271 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
79272
79273         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
79274         Problem reported by Eric Blake.
79275         (getaddrinfo): Initialize se so that it's not garbage.
79276         Redo internal storage allocation so that it doesn't make unportable
79277         assumptions about alignment.
79278         Fix a memory leak.
79279
79280         * lib/utimens.c (futimens): Use futimesat if available.
79281         Prefer it to futimes since it doesn't have the futimes bug.
79282
79283         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
79284         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
79285         Instead, declare a function that returns a pointer to an array,
79286         and use verify_type__ to declare the size of the array.
79287         Problem and germ of a solution reported by Bruno Haible.
79288         (verify_type__): Use 2, not 1, for bitfield size, to avoid
79289         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
79290
79291 2005-09-23  Jim Meyering  <jim@meyering.net>
79292
79293         Sync from coreutils.
79294         Correct build failure (socklen_t not defined) on at least
79295         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
79296         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
79297
79298 2005-09-23  Jim Meyering  <jim@meyering.net>
79299
79300         * modules/getaddrinfo (Depends-on): Add socklen.
79301
79302 2005-09-23  Bruno Haible  <bruno@clisp.org>
79303
79304         * tests/test-verify.c: New file.
79305
79306 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79307
79308         Sync from coreutils.
79309
79310         * modules/argmatch (Depends-on): Add verify.
79311         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
79312         unistd-safer.
79313         * modules/save-cwd (Depends-on): Likewise.
79314
79315         * modules/openat (Files): Add lib/openat-die.c.
79316         (Depends-on): Remove error, exitfail.
79317         Add dirname.
79318
79319         * modules/verify: New file.
79320         * MODULES.html.sh (Diagnostics <assert.h>): New section,
79321         with "verify" module.
79322
79323 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79324
79325         Sync from coreutils.
79326
79327         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
79328         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
79329         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
79330         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
79331         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
79332         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
79333         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
79334         Don't bother checking for string.h, stdlib.h, unistd.h.
79335         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
79336         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
79337         module's job.
79338         * m4/jm-macros.m4 (gl_MACROS): Likewise.
79339         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
79340
79341         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
79342         (gl_GETDATE): Use it.
79343
79344         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
79345
79346 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79347
79348         Sync from coreutils.
79349
79350         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
79351         stat-time.h.
79352         * lib/argmatch.h: Include verify.h
79353         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
79354         (ARGMATCH_ASSERT): Remove; unused.
79355         * lib/canonicalize.c: Assume STDC_HEADERS.
79356         * lib/exclude.c: Include "strcase.h".
79357         * lib/regex_internal.h [!defined _LIBC]: Likewise.
79358         * lib/getusershell.c: Include stdio--.h rather than stdio.h
79359         and stdio-safer.h.
79360         (getusershell): Call fopen, not fopen_safer.
79361         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
79362         Do not include unistd-safer.h.
79363         (save_cwd): Don't call fd_safer; no longer needed
79364         now that we include fcntl--.h.
79365
79366         * lib/getdate.y (relative_time): New type.
79367         (RELATIVE_TIME_0): New constant.
79368         (parser_control): Use relative_time instead of doing it ourselves.
79369         (%union): Add new relative_time rel member.
79370         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
79371         Now typeless.
79372         (relunit, relunit_snumber): Now of type rel.
79373         (zone, rel, relunit, get_date): Adjust to above changes.
79374
79375         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
79376         Do not include unistd-safer.h.
79377         (getloadavg): Don't call fd_safer; no longer needed
79378         now that we include fcntl--.h.
79379
79380         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
79381         (make_dir_parents): Treat ENOSYS like EEXIST.
79382
79383         Improve quality of diagnostics on restore_cwd failure.
79384         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
79385         (make_dir_parents): Last arg is now int * (for errno), not bool *.
79386         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
79387         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
79388         each time through the loop.  Do not diagnose restore_cwd failure;
79389         that is the caller's job (and perhaps the caller does not care).
79390
79391         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
79392         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
79393         If the file already exists but is not a directory, don't bother
79394         to try to make its parents.
79395         Close potential file descriptor leak if we can't chdir("/") (!).
79396         Don't always return true if chdir($PWD) fails; return true only
79397         if the requested action was done successfully (except for the
79398         chdir($PWD)).
79399         Don't log final directory unless we actually made it.
79400         Refactor to avoid duplicate code to fix up permissions.
79401         Don't attempt to fix up parent permissions if chdir($PWD) fails.
79402
79403         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
79404         to make it a bit faster and (I hope) clearer.
79405         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
79406         Fix bug in formats like %2N.
79407
79408         * lib/verify.h: New file.
79409
79410 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
79411
79412         Sync from coreutils.
79413         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
79414
79415 2005-09-22  Jim Meyering  <jim@meyering.net>
79416
79417         Sync from coreutils.
79418
79419         * m4/lstat.m4 (gl_FUNC_LSTAT):
79420         Use AC_LIBSOURCES to require lstat.c and lstat.h.
79421         Remove obsolete comment.
79422         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
79423         * m4/xstrtod.m4: Likewise.
79424
79425         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
79426
79427 2005-09-22  Jim Meyering  <jim@meyering.net>
79428
79429         Sync from coreutils.
79430
79431         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
79432
79433         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
79434         the .tm_year member, since otherwise gcc-4.0 would now warn about
79435         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
79436
79437         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
79438         order to avoid an unsuppressible warning from gcc on 64-bit systems.
79439
79440         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
79441         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
79442         when run in a time zone for which daylight savings time is in effect
79443         for the starting date.
79444
79445         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
79446         stop us from restricting permissions of just-created absolute-named
79447         directories.
79448         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
79449         to restore initial working directory.
79450         * lib/mkdir-p.c (make_dir_parents): New parameter:
79451         different_working_dir, to tell caller if/when we change the working
79452         directory and are unable to return to the initial one.
79453         * lib/mkdir-p.h (make_dir_parents): Update prototype.
79454         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
79455         `return false'.  This fixes a bug introduced on 2004-07-30.
79456
79457         * lib/openat.c (fdopendir): Be sure to close the supplied
79458         file descriptor before returning.  This makes our replacement
79459         implementation a little closer to Solaris's, where fdopendir
79460         ties the file descriptor to the returned DIR* pointer.
79461         * lib/openat.c (unlinkat): New function.
79462         * lib/openat.h (unlinkat): Add prototype.
79463         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
79464         (openat_restore_fail): Rename from openat_restore_die.
79465         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
79466
79467         Provide an alternative to exiting immediately upon save_cwd or
79468         restore_cwd failure.  Now, an application can arrange e.g.,
79469         to perform a longjump in that case.
79470         * lib/openat.c: Include dirname.h.
79471         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
79472         (rpl_openat, fdopendir, fstatat): Call openat_save_die
79473         and openat_restore_die rather than calling error directly.
79474         Don't include "error.h" or "exitfail.h"; they're no longer needed.
79475
79476         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
79477         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
79478         define.
79479
79480         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
79481         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
79482                             int utc, int nanoseconds);
79483         Background:
79484         date should not have to allocate a megabyte of virtual memory to
79485         handle a format argument like +%1048575T.  When implemented with
79486         strftime, it must allocate such a buffer, use strftime to fill it
79487         in, print it, then free it.
79488         With fprintftime, it simply prints everything and exits.
79489         With no need for memory allocation, that's one fewer way to fail.
79490         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
79491         optional field width, not before, so we accept %9:z, not %:9z.
79492         (my_strftime): Be sure to use L_('x') for literals.
79493
79494         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
79495         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
79496         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
79497         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
79498         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
79499         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
79500         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
79501         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
79502         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
79503         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
79504         * lib/xgethostname.c, lib/xreadlink.c:
79505         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
79506
79507         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
79508         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
79509         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
79510         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
79511         and don't include <sys/file.h>).
79512
79513 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
79514
79515         Sync from coreutils.
79516
79517         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
79518         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
79519         [!LDAV_DONE]: Avoid unused variable warning.
79520
79521 2005-09-21  Bruno Haible  <bruno@clisp.org>
79522
79523         * lib/unicodeio.h (unicode_to_mb): New declaration.
79524
79525 2005-09-20  Derek Price  <derek@ximbiot.com>
79526
79527         * lib/getaddrinfo.c: Don't include <netdb.h> included from
79528         getaddrinfo.h.
79529
79530 2005-09-20  Bruno Haible  <bruno@clisp.org>
79531
79532         * gnulib-tool: Remove trailing slashes from the values specified for
79533         --source-base, --m4-base, --tests-base, --aux-dir.
79534         Suggested by Simon Josefsson <jas@extundo.com>.
79535
79536 2005-09-20  Bruno Haible  <bruno@clisp.org>
79537
79538         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
79539         func_modules_to_filelist, func_import, func_create_testdir): Make all
79540         sorting results locale-independent, so that gnulib-cache.m4 doesn't
79541         change when gnulib-tool is invoked in a different locale.
79542
79543 2005-09-19  Simon Josefsson  <jas@extundo.com>
79544
79545         * m4/socklen.m4: Fix typo.
79546
79547 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79548
79549         Use a consistent style for including <config.h>.
79550         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
79551         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
79552         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
79553         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
79554         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
79555         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
79556         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
79557         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
79558         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
79559         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
79560         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
79561         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
79562         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
79563         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
79564         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
79565         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
79566         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
79567         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
79568         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
79569         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
79570         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
79571         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
79572         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
79573         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
79574         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
79575         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
79576         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
79577         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
79578         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
79579         lib/xstrtoumax.c, lib/yesno.c:
79580         Standardize inclusion of config.h.
79581         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
79582         lib/inttostr.h:  Removed inclusion of config.h from header files.
79583         * lib/inttostr.c:  Adjusted in-tree users.
79584         * lib/timespec.h: Remove superfluous warning to include config.h.
79585         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
79586         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
79587         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
79588         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
79589         config.h with HAVE_CONFIG_H.
79590
79591 2005-09-19  Jim Meyering  <jim@meyering.net>
79592
79593         * modules/pathmax (License): Change to LGPL.
79594
79595 2005-09-19  Derek Price  <derek@ximbiot.com>
79596
79597         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
79598
79599 2005-09-19  Bruno Haible  <bruno@clisp.org>
79600
79601         * gnulib-tool (import): Provide default for --tests-base.
79602
79603 2005-09-19  Bruno Haible  <bruno@clisp.org>
79604
79605         * doc/quote.texi: New file, extracted from gnulib.texi.
79606         * doc/ctime.texi: New file, extracted from gnulib.texi.
79607         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
79608         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
79609         * doc/gnulib.texi: Include them.
79610
79611 2005-09-18  Bruno Haible  <bruno@clisp.org>
79612
79613         Portability fix.
79614         * gnulib-tool (func_readlink): New function.
79615         (func_ln_if_changed): Use it.
79616
79617 2005-09-18  Bruno Haible  <bruno@clisp.org>
79618
79619         * gnulib-tool: Support --with-tests also with --import.
79620         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
79621         (func_import): Use variables $testsbase and $inctests. Emit a
79622         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
79623         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
79624         SUBDIRS += $testsdir.
79625         (func_create_testdir): Update.
79626
79627 2005-09-18  Bruno Haible  <bruno@clisp.org>
79628
79629         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
79630         instead of $dry_run.
79631         (func_cp_if_changed, func_mv_if_changed): Remove functions.
79632         (func_ln_if_changed): Don't handle dry-run here.
79633         (func_import): In dry-run mode, detect more precisely which actions
79634         would be performed, and don't use "...ing" verbs.
79635
79636 2005-09-18  Bruno Haible  <bruno@clisp.org>
79637
79638         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
79639         (func_import): Use join on two temporary files instead of three nested
79640         loops, in order to determine which files are new or old.
79641
79642 2005-09-18  Bruno Haible  <bruno@clisp.org>
79643
79644         * gnulib-tool (func_import): Comment out code that spits out the
79645         new files with --dry-run.
79646
79647 2005-09-18  Bruno Haible  <bruno@clisp.org>
79648
79649         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
79650
79651 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
79652
79653         * lib/stat-time.h: New file.
79654         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
79655         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
79656         in a different way.
79657         (timespec_cmp): New function.
79658         * lib/utimecmp.c: Include stat-time.h.
79659         (SYSCALL_RESOLUTION): Depend on whether various struct stat
79660         members exist, not on the obsolescent ST_MTIM_NSEC.
79661         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
79662
79663 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
79664
79665         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
79666
79667 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
79668
79669         * MODULES.html.sh (File system functions): Add stat-time.
79670         * modules/stat-time: New file.
79671         * modules/timespec (Files): Remove m4/st_mtim.m4; this
79672         is now done in a different way, by the stat-time module.
79673         * modules/utimecmp (Depends-on): Add stat-time.
79674
79675 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
79676
79677         * m4/st_mtim.m4: Remove.  Superseded by...
79678         * m4/stat-time.m4: New file.
79679         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
79680         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
79681
79682 2005-09-15  Derek Price  <derek@ximbiot.com>
79683
79684         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
79685
79686 2005-09-15  Derek Price  <derek@ximbiot.com>
79687
79688         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
79689         * lib/regex_internal.c: Ditto, using this...
79690         (__GNUC_PREREQ): ...new macro.
79691         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
79692         using...
79693         (__GNUC_PREREQ): ...this new macro.
79694
79695         * lib/strstr.h: Include string.h. Define strstr as a macro here.
79696
79697 2005-09-15  Derek Price  <derek@ximbiot.com>
79698             Paul Eggert  <eggert@cs.ucla.edu>
79699
79700         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
79701         changes, consolidating in...
79702         * lib/regex_internal.h: ...this file.
79703
79704 2005-09-13  Jim Meyering  <jim@meyering.net>
79705
79706         * lib/canon-host.c: Filter through gnu indent and reword comments
79707         slightly.
79708         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
79709
79710 2005-09-13  Derek Price  <derek@ximbiot.com>
79711
79712         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
79713         failure.
79714         Reported by Jim Meyering  <jim@meyering.net>.
79715
79716 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
79717
79718         * lib/base64.c: Typo.
79719         (base64_encode): Put b64str in initialized data section.
79720
79721 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
79722
79723         Merge glibc and coreutils changes into gnulib, plus a few
79724         extra fixes.
79725         * lib/md5.c: Use #error rather than a string.
79726         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
79727         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
79728         (__attribute__): Define to empty for non recent-GCC.
79729         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
79730         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
79731         Renamed from their non-__ counterparts, with new macros replacing
79732         them if not _LIBC.  Add __THROW attribute.
79733         (rol): Remove.
79734         (struct md5_ctx): Align buffer if using GCC.
79735         * lib/sha1.h (struct sha1_ctx): Likewise.
79736         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
79737         The old name was backwards.
79738         (NOTSWAP): Remove; not used.
79739         (rol): New macro, moved here from md5.h.
79740         (sha1_process_block): Remove a FIXME that doesn't make sense.
79741
79742 2005-09-12  Derek Price  <derek@ximbiot.com>
79743
79744         Return usable errors from canon-host.
79745         * lib/canon-host.h: New file.
79746         * lib/canon-host.c (canon_host): Wrap...
79747         (canon_host_r): ...this new function, which now relies exclusively on
79748         getaddrinfo.
79749         (ch_strerror): New function.
79750         (last_cherror): New global.
79751         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
79752         interface.
79753         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
79754         void *.
79755         (freeaddrinfo): Free ai->ai_canonname when set.
79756
79757 2005-09-12  Derek Price  <derek@ximbiot.com>
79758
79759         Make canon-host require getaddrinfo.
79760         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
79761         AC_LIBSOURCE canon-host.h.  Call...
79762         (gl_PREREQ_CANON_HOST): ...this new function, which requires
79763         gl_GETADDRINFO.
79764         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
79765
79766 2005-09-12  Derek Price  <derek@ximbiot.com>
79767
79768         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
79769         LGPL.
79770         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
79771
79772 2005-09-12  Derek Price  <derek@ximbiot.com>
79773
79774         * lib/gai_strerror.c: Include config.h when available.  Include
79775         getaddrinfo.h before other headers to test interface.
79776         Reported by Larry Jones <lawrence.jones@ugs.com>.
79777
79778 2005-09-12  Derek Price  <derek@ximbiot.com>
79779             Paul Eggert  <eggert@cs.ucla.edu>
79780
79781         * modules/glob (Files): Add glob-libc.h.
79782
79783 2005-09-12  Derek Price  <derek@ximbiot.com>
79784             Paul Eggert  <eggert@cs.ucla.edu>
79785
79786         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
79787         glob_.h, glob-libc.h.
79788         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
79789
79790 2005-09-12  Derek Price  <derek@ximbiot.com>
79791             Paul Eggert  <eggert@cs.ucla.edu>
79792
79793         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
79794         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
79795         protecting things that should be done only in gnulib contexts.
79796         * lib/glob_.h: New file, containing only the glob things needed for
79797         gnulib.
79798         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
79799         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
79800         (glob, globfree, glob_pattern_p): Now defined simply in terms of
79801         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
79802         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
79803         and to respect the namespace rules better.
79804
79805 2005-09-08  Simon Josefsson  <jas@extundo.com>
79806
79807         * modules/socklen: New file.
79808
79809 2005-09-08  Simon Josefsson  <jas@extundo.com>
79810
79811         * m4/socklen.m4: New file.
79812
79813 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79814
79815         * modules/utimens (Files): Add m4/utimbuf.m4, since
79816         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
79817         Reported by Sergey Poznyakoff.
79818
79819 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79820
79821         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
79822         definitions, since that's the preferred style in glibc.
79823         Fix a minor spacing issue, and update copyright notice to match
79824         glibc's.
79825
79826 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
79827
79828         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
79829
79830 2005-09-06  Simon Josefsson  <jas@extundo.com>
79831
79832         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
79833         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
79834
79835 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
79836
79837         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
79838         warning.
79839
79840 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
79841
79842         * config/srclist.txt: Add glibc bug 1302.
79843
79844 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
79845
79846         Change bitset word type from unsigned int to unsigned long int,
79847         as this has better performance on typical 64-bit hosts.
79848         Port bitset code to hosts with unusual word sizes.
79849         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
79850         (build_collating_symbol):
79851         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
79852         argument is a bitset.  This is merely a style issue, but it makes
79853         it clearer that an entire array is expected.
79854         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
79855         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
79856         Port to the case where bitset_word is not the same as unsigned int.
79857         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
79858         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
79859         Likewise.
79860         * lib/regexec.c (check_dst_limits_calc_pos_1,
79861         check_subexp_matching_top):
79862         (build_trtable, group_nodes_into_DFAstates):
79863         Likewise.
79864         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
79865         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
79866         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
79867         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
79868         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
79869         * lib/regcomp.c (optimize_subexps, lower_subexp):
79870         Work even if bitset_word has holes in its bitwise representation.
79871         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
79872         * lib/regexec.c (check_dst_limits_calc_pos_1,
79873         check_subexp_matching_top):
79874         Likewise.
79875         * lib/regex_internal.c (re_string_reconstruct):
79876         Don't assume UCHAR_MAX == 255.
79877         * lib/regex_internal.h (bitset_set_all): Likewise.
79878         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
79879         All uses changed.
79880         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
79881         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
79882         All uses changed.
79883         (BITSET_WORD_MAX): New macro.
79884         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
79885         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
79886         (bitset_empty, bitset_copy):
79887         Prefer sizeof (bitset) to multiplying it out ourselves.
79888         (bitset_not_merge): Remove; unused.
79889         (bitset_contain): Return bool, not unsigned int with one bit on.
79890         All callers changed.
79891         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
79892         alignment than re_node_set; do this by defining a new internal
79893         type struct dests_alloc and using it to allocate memory.
79894
79895 2005-09-05  Bruno Haible  <bruno@clisp.org>
79896
79897         * gnulib-tool (func_import): Fix comparison in handling of symbolic
79898         links.
79899
79900 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
79901
79902         * modules/size_max (Makefile.am): Add size_max.h
79903
79904 2005-09-04  Derek Price  <derek@ximbiot.com>
79905
79906         * gnulib-tool (func_import): Fix reversed $symbolic logic.
79907
79908 2005-09-03  Simon Josefsson  <jas@extundo.com>
79909
79910         * gnulib-tool: Fix typo.
79911
79912 2005-09-03  Simon Josefsson  <jas@extundo.com>
79913
79914         * config/srclist.txt: Add glibc bug 1293.
79915
79916 2005-09-03  Derek Price  <derek@ximbiot.com>
79917
79918         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
79919         From Larry Jones <lawrence.jones@ugs.com>.
79920
79921 2005-09-02  Simon Josefsson  <jas@extundo.com>
79922
79923         * modules/socklen: New file.
79924
79925 2005-09-02  Simon Josefsson  <jas@extundo.com>
79926
79927         * modules/havelib: New module.
79928
79929         * modules/gettext, modules/iconv, modules/lock, modules/readline:
79930         Use havelib.
79931
79932 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
79933
79934         Check for arithmetic overflow when calculating sizes, to prevent
79935         some buffer-overflow issues.  These patches are conservative, in the
79936         sense that when I couldn't determine whether an overflow was possible,
79937         I inserted a run-time check.
79938         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
79939         macros.
79940         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
79941         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
79942         (re_xnrealloc, re_x2nrealloc): New inline functions.
79943         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
79944         parse_bracket_exp):
79945         (build_equiv_class, build_charclass): Check for arithmetic overflow
79946         in size expression calculations.
79947         * lib/regex_internal.c (re_string_realloc_buffers):
79948         (build_wcs_upper_buffer, re_node_set_add_intersect):
79949         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
79950         (re_dfa_add_node, register_state): Likewise.
79951         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
79952         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
79953         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
79954         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
79955
79956 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
79957
79958         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
79959         m4/ulonglong.m4.  Problem reported by Martin Lambers.
79960
79961 2005-09-02  Bruno Haible  <bruno@clisp.org>
79962
79963         Support for lib vs. lib64 distinction on biarch platforms.
79964         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
79965         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
79966         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
79967
79968 2005-09-02  Bruno Haible  <bruno@clisp.org>
79969
79970         * gnulib-tool (import): In the other first-use case, provide defaults
79971         as well.
79972
79973 2005-09-02  Bruno Haible  <bruno@clisp.org>
79974
79975         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
79976         patches not yet found in the latest gettext release.
79977
79978 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
79979
79980         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
79981         to avoid a collision with bits/local_lim.h in glibc.
79982         All uses changed.  Problem reported by Dmitry V. Levin in
79983         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
79984
79985         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
79986         bugs in int versus size_t comparisons.
79987         (re_string_context_at): Fix bug where the code assumed that
79988         Idx is signed.
79989
79990         Use bool where appropriate.
79991         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
79992         All callers changed.
79993         (calc_eclosure_iter): Likewise, for ROOT arg.
79994         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
79995         (build_charclass_op): Likewise, for NON_MATCH arg.
79996         * lib/regex_internal.c (re_string_allocate, re_string_construct):
79997         (re_string_construct_common): Likewise, for ICASE arg.
79998         * lib/regexec.c (re_search_2_stub, re_search_stub):
79999         Likewise, for RET_LEN arg.
80000         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
80001         (set_regs): Likewise, for FL_BACKTRACK arg.
80002         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
80003         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
80004         (calc_eclosure_iter, parse_bracket_exp):
80005         Use bool for internal variables that are booleans.
80006         * lib/regexec.c (re_search_internal, check_matching,
80007         proceed_next_node):
80008         (set_regs, build_sifted_states, sift_states_bkref):
80009         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
80010         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
80011         (find_collation_sequence_value):
80012         Likewise.
80013         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
80014         (re_node_set_compare):
80015         Return bool, not int. All callers changed.
80016         * lib/regexec.c (check_halt_node_context, check_dst_limits):
80017         (build_trtable, check_node_accept): Likewise.
80018         * lib/regex_internal.h: Include stdbool.h.
80019
80020         Fix bugs uncovered when converting to bool.
80021         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
80022         failure instead of charging ahead blindly.
80023         * lib/regex_internal.c (register_state): Likewise.
80024         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
80025         for freeing internal storage.
80026         (group_nodes_into_DFA_states): Use unsigned int, not int, for
80027         bitset pieces used as boolean, to avoid undefined behavior
80028         on hosts that do int overflow checking.
80029
80030 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
80031
80032         * config/srclist.txt: Add glibc bugs 1285-1287.
80033
80034 2005-09-01  Jim Meyering  <jim@meyering.net>
80035
80036         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
80037         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
80038         Require gl_STAT_MACROS, too.
80039
80040 2005-09-01  Bruno Haible  <bruno@clisp.org>
80041
80042         * gnulib-tool (import): In the first-use case, provide defaults.
80043
80044 2005-09-01  Bruno Haible  <bruno@clisp.org>
80045
80046         * gnulib-tool (func_import): Remove the .tmp files.
80047
80048 2005-09-01  Bruno Haible  <bruno@clisp.org>
80049
80050         * gnulib-tool (func_import): Fix handling of symbolic links.
80051
80052 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80053
80054         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
80055         old glibc regex code mishandles strings longer than 2**31 bytes.
80056         This patch fixes this when the regex code is used in gnulib
80057         (i.e., outside glibc).
80058
80059         This patch should not affect the use of the regex code inside
80060         glibc.  No doubt this problem also needs to be handled for glibc
80061         as well, but the result will be an incompatible change to the
80062         glibc ABI, and the old ABI will have to be supported too.  That
80063         can be the the subject for another patch.
80064
80065         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
80066         governing whether the rest of this patch is active.  By default,
80067         the macro is disabled and the patch has no effect.
80068         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
80069         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
80070         (struct re_pattern_buffer, re_search, re_search_2, re_match):
80071         (re_match_2, re_set_registers): Use the new types.
80072         * lib/regex_internal.h (Idx, re_hashval_t): New types.
80073         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
80074         New macros.
80075         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
80076         (re_string_context_at, bin_tree_t, re_dfastate_t):
80077         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
80078         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
80079         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
80080         (re_string_char_size_at, re_string_wchar_at):
80081         (re_string_elem_size_at):
80082         Use the new types and macros to port to 64-bit hosts.
80083         Use unsigned types for internal values, so that the code
80084         mostly works even for arrays larger than SSIZE_MAX.
80085         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
80086         (search_duplicated_node, calc_eclosure_iter, fetch_number):
80087         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
80088         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
80089         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
80090         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
80091         (calc_inveclosure, parse_dup_op, build_range_exp):
80092         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
80093         (fetch_number, create_token_tree, mark_opt_subexp):
80094         Likewise.
80095         * lib/regex_internal.c (re_string_construct_common,
80096         create_ci_newstate):
80097         (create_cd_newstate, re_string_allocate, re_string_construct):
80098         (re_string_realloc_buffers, build_wcs_upper_buffer):
80099         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
80100         (re_string_reconstruct, re_string_peek_byte_case):
80101         (re_string_fetch_byte_case, re_string_context_at):
80102         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
80103         (re_node_set_init_copy, re_node_set_add_intersect):
80104         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
80105         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
80106         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
80107         (re_acquire_state, re_acquire_state_context, register_state):
80108         Likewise.
80109         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
80110         search_cur_bkref_entry):
80111         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
80112         (re_search_internal, re_search_2_stub, re_search_stub)
80113         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
80114         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
80115         (update_cur_sifted_state, check_dst_limits):
80116         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
80117         (check_subexp_limits, sift_states_bkref, merge_state_array):
80118         (check_subexp_matching_top, get_subexp, get_subexp_sub):
80119         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
80120         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
80121         (expand_bkref_cache, check_node_accept_bytes):
80122         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
80123         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
80124         (acquire_init_state_context, check_halt_node_context):
80125         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
80126         (sift_states_backward, clean_state_log_if_needed):
80127         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
80128         (find_recover_state, transit_state_sb, transit_state_mb):
80129         (transit_state_bkref, build_trtable, match_ctx_clean):
80130         Likewise.
80131         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
80132         to work around an assumption that REG_MISSING is negative.
80133
80134         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
80135         (seek_collating_symbol_entry) [defined _LIBC]:
80136         (lookup_collation_sequence_value) [defined _LIBC]:
80137         (build_range_exp, build_collating_symbol) [defined _LIBC]:
80138         Use prototypes rather than old-style function definitions.
80139         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
80140         (transit_state_sb) [0]:
80141         (find_collation_sequence_value) [defined _LIBC]: Likewise.
80142
80143         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
80144         rm_eo.
80145
80146         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
80147         (optimize_subexps, lower_subexp):
80148         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
80149         since the signed shift might overflow.  Use 1u<<31 instead.
80150         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
80151         Likewise.
80152         * lib/regexec.c (check_dst_limits_calc_pos_1,
80153         check_subexp_matching_top): Likewise.
80154
80155         * lib/regcomp.c (optimize_subexps, lower_subexp):
80156         Use CHAR_BIT rather than 8, for clarity.
80157         * lib/regexec.c (check_dst_limits_calc_pos_1):
80158         (check_subexp_matching_top): Likewise.
80159         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
80160         have to worry about portability issues when shifting it left.
80161         Remove no-longer-needed test for table_size > 0.
80162         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
80163         in a word, as the resulting behavior is undefined.
80164         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
80165         in one case, a <= should have been an <, and in another case the
80166         whole test was missing.
80167         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
80168         the standard name CHAR_BIT.
80169         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
80170         this is not true on one's complement and signed-magnitude hosts.
80171
80172         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
80173         next_last_offset.
80174         (struct re_dfa_t): Remove unused member states_alloc.
80175         * lib/regcomp.c (init_dfa): Don't initialize unused members.
80176
80177 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80178
80179         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
80180         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
80181         and large-file glibc and in 32-bit large-file Solaris.
80182
80183 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80184
80185         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
80186         lengths fit in regoff_t; this isn't true if regoff_t is the same
80187         width as size_t.
80188         * lib/regex.c (re_search_internal): 5th arg is LAST_START
80189         (= START + RANGE) instead of RANGE.  This avoids overflow
80190         problems when regoff_t is the same width as size_t.
80191         All callers changed.
80192         (re_search_2_stub): Check for overflow when adding the
80193         sizes of the two strings.
80194         (re_search_stub): Check for overflow when adding START
80195         to RANGE; if it occurs, substitute the extreme value.
80196
80197 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
80198
80199         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
80200
80201 2005-08-31  Jim Meyering  <jim@meyering.net>
80202
80203         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
80204         a pointer-to-const.
80205         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
80206         (register_state): Likewise.
80207         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
80208         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
80209         (group_nodes_into_DFAstates): Likewise.
80210
80211 2005-08-31  Jim Meyering  <jim@meyering.net>
80212
80213         * check-module: Add a FIXME comment.
80214
80215 2005-08-31  Eric Blake  <ebb9@byu.net>
80216
80217         * modules/unistd-safer (Files): Add unistd--.h.
80218         * modules/stdio-safer (Files): Add stdio--.h.
80219
80220 2005-08-31  Derek Price  <derek@ximbiot.com>
80221
80222         * lib/getdelim.c (getdelim): Return EOF on EOF.
80223         Reported by Larry Jones <lawrence.jones@ugs.com>.
80224
80225 2005-08-31  Bruno Haible  <bruno@clisp.org>
80226
80227         Avoid unnecessary diffs in the generated lib/Makefile.am.
80228         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
80229         the generated files.
80230         (func_import): Don't set cmd.
80231
80232 2005-08-31  Bruno Haible  <bruno@clisp.org>
80233
80234         * lib/strstr.c: Include <stddef.h>, for NULL.
80235         * lib/strcasestr.c: Likewise.
80236         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
80237
80238 2005-08-31  Bruno Haible  <bruno@clisp.org>
80239
80240         * gnulib-tool: New option --macro-prefix.
80241         (func_import): Use macro_prefix.
80242         (import): Handle option --macro-prefix.
80243
80244 2005-08-31  Bruno Haible  <bruno@clisp.org>
80245
80246         * gnulib-tool (import): Rename most ac_* variables to cached_*.
80247         Also use new variables cached_lgpl, cached_libtool.
80248
80249 2005-08-31  Bruno Haible  <bruno@clisp.org>
80250
80251         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
80252         always instantiating them.
80253
80254 2005-08-31  Bruno Haible  <bruno@clisp.org>
80255
80256         * gnulib-tool (func_import): Read the previous cached settings
80257         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
80258         earlier added by gnulib but are now dropped. Warn when a gnulib file
80259         overwrites a non-gnulib file.
80260
80261 2005-08-31  Bruno Haible  <bruno@clisp.org>
80262
80263         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
80264         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
80265         projects that don't keep autogenerated files in CVS. Put into
80266         actioncmd only the specified modules, not the transitive closure.
80267
80268 2005-08-31  Bruno Haible  <bruno@clisp.org>
80269
80270         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
80271         Create directories that shall be filled.
80272         (import): Don't look for gl_* macros in configure.ac. Recurse across
80273         all directories containing a gnulib-cache.m4 files, if meaningful.
80274
80275 2005-08-31  Bruno Haible  <bruno@clisp.org>
80276
80277         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
80278         (import): Set seen_libtool when we see gl_LIBTOOL.
80279
80280 2005-08-31  Bruno Haible  <bruno@clisp.org>
80281
80282         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
80283         declaration macro definitions from generated gnulib.m4.
80284
80285 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
80286
80287         * lib/iconvme.h: Add prototype for iconv_alloc.
80288
80289 2005-08-29  Simon Josefsson  <jas@extundo.com>
80290
80291         * lib/iconvme.c: Fix errno.
80292
80293 2005-08-29  Bruno Haible  <bruno@clisp.org>
80294
80295         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
80296         that it works when the directory contains spaces.
80297
80298 2005-08-29  Bruno Haible  <bruno@clisp.org>
80299
80300         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
80301
80302 2005-08-29  Bruno Haible  <bruno@clisp.org>
80303
80304         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
80305         Emit more advice.
80306
80307 2005-08-29  Bruno Haible  <bruno@clisp.org>
80308         and Stepan Kasal  <kasal@ucw.cz>
80309
80310         * check-module: If more parameters are given, check each of them
80311         separately; add more exceptions, as noted by Jim Meyering.
80312         (check_module): New procedure.
80313         (%exempt_header): Now contains all exceptions.
80314
80315 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
80316
80317         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
80318
80319 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
80320
80321         * lib/iconvme.c: Split iconv_string into iconv_alloc.
80322
80323 2005-08-28  Bruno Haible  <bruno@clisp.org>
80324
80325         * m4/gnulib-tool.m4: New file.
80326
80327 2005-08-27  Jim Meyering  <jim@meyering.net>
80328
80329         * modules/unistd-safer (Files): Add pipe-safer.c.
80330         * modules/fcntl-safer (Files): Add creat-safer.c.
80331
80332 2005-08-27  Jim Meyering  <jim@meyering.net>
80333
80334         * m4/stdlib-safer.m4: New file.  From coreutils.
80335         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
80336         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
80337         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
80338         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
80339         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
80340
80341 2005-08-27  Jim Meyering  <jim@meyering.net>
80342
80343         * lib/fopen-safer.c: Merge minor changes from coreutils.
80344         * lib/dup-safer.c: Likewise.
80345         * lib/fd-safer.c: Likewise.
80346
80347         Merge from coreutils.
80348         * lib/stdio--.h: New file.
80349         * lib/stdlib--.h: New file.
80350         * lib/mkstemp-safer.c: New file.
80351
80352         GNU tar needs these.
80353         * lib/pipe-safer.c: New file.
80354         * lib/creat-safer.c: New file.
80355         * lib/fcntl--.h (creat): Define to creat_safer.
80356         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
80357         * lib/unistd--.h (pipe): Define to pipe_safer.
80358         * lib/unistd-safer.h: Declare pipe_safer.
80359
80360 2005-08-26  Simon Josefsson  <jas@extundo.com>
80361
80362         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
80363         Haible <bruno@clisp.org>.
80364
80365 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
80366
80367         * lib/regex_internal.h: Remove all references to
80368         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
80369         or better.
80370         (bitset_not, bitset_merge, bitset_not_merge):
80371         (bitset_mask, re_string_allocate, re_string_construct):
80372         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
80373         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
80374         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
80375         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
80376         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
80377         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
80378         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
80379         (re_acquire_state_context):
80380         Remove unnecessary forward decls.
80381         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
80382         Put __attribute at function definition,
80383         now that the function decl has been removed.
80384         * lib/regex_internal.c (re_string_peek_byte_case):
80385         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
80386         Likewise.
80387
80388 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
80389
80390         * m4/regex.m4: Add AC_PREREQ(2.50).
80391         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
80392
80393 2005-08-25  Simon Josefsson  <jas@extundo.com>
80394
80395         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
80396         __fsetlocking.
80397
80398 2005-08-25  Simon Josefsson  <jas@extundo.com>
80399
80400         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
80401         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
80402         GLIBC specific code.
80403
80404 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80405
80406         Make regex safe for g++.  This fixes one real bug (an "err"
80407         that should have been "*err").  g++ problem reported by
80408         Sam Steingold.
80409         * lib/regex_internal.h (re_calloc): New macro, consistent with
80410         re_malloc etc.  All callers of calloc changed to use re_calloc.
80411         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
80412         not int.  All callers changed.
80413         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
80414         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
80415         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
80416         (find_recover_state): Change "err" to "*err"; this fixes what
80417         appears to be a real bug.
80418         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
80419         versus int.
80420
80421 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80422
80423         * modules/regex (Depends-on): Add malloc, since the code
80424         assumes that !malloc(0) means failure.
80425
80426 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80427
80428         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
80429
80430         alloca modernization/simplification for regex.
80431         * lib/regex.c: Remove portability cruft for alloca.  This no longer
80432         needs to be at the start of the file, and can be moved into
80433         regex_internal.h and simplified.
80434         * lib/regex_internal.h: Include <alloca.h>.
80435         (__libc_use_alloca) [!defined _LIBC]: New macro.
80436         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
80437         now works outside glibc.
80438
80439 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
80440
80441         * config/srclist.txt: Add glibc bugs 1241, 1245.
80442
80443 2005-08-25  Jim Meyering  <jim@meyering.net>
80444
80445         * lib/open-safer.c: Include <config.h>.
80446         Otherwise, we'd lose LARGEFILE support in any file using
80447         e.g. "fcntl--.h"
80448
80449 2005-08-25  Bruno Haible  <bruno@clisp.org>
80450
80451         * m4/minmax.m4: Require autoconf 2.52.
80452         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
80453         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
80454         alternatives of translit over the alphabet.
80455         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
80456
80457 2005-08-24  Simon Josefsson  <jas@extundo.com>
80458
80459         * tests/test-getpass.c: New file.
80460
80461 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80462
80463         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
80464         for GNU regex features.
80465
80466 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80467
80468         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
80469         * lib/regex.h (regerror): Likewise.
80470
80471         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
80472         requires this.  (The code never needed it.)
80473
80474         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
80475         All uses of recently-renamed identifiers changed to use the new,
80476         POSIX-compliant names.  The code will build and run just fine
80477         without these changes, but it's better to eat our own dog food
80478         and use the standard-conforming names.
80479
80480         * lib/regex.h: Fix a multitude of POSIX name space violations.
80481         These changes have an effect only for programs that define
80482         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
80483         do not change anything for programs compiled in the normal way.
80484         Also, there is no effect on the ABI.
80485
80486         (_REGEX_SOURCE): New macro.
80487         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
80488         defined and _GNU_SOURCE is not; this fixes a name space violation.
80489
80490         Rename the following macros to obey POSIX requirements.
80491         The old names are still visible as macros if _REGEX_SOURCE is defined.
80492         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
80493         RE_BACKSLASH_ESCAPE_IN_LISTS.
80494         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
80495         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
80496         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
80497         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
80498         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
80499         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
80500         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
80501         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
80502         (REG_INTERVALS): renamed from RE_INTERVALS.
80503         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
80504         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
80505         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
80506         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
80507         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
80508         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
80509         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
80510         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
80511         RE_UNMATCHED_RIGHT_PAREN_ORD.
80512         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
80513         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
80514         (REG_DEBUG): renamed from RE_DEBUG.
80515         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
80516         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
80517         unusual, since we can't clash with the POSIX REG_ICASE.
80518         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
80519         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
80520         (REG_NO_SUB): renamed from RE_NO_SUB.
80521         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
80522         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
80523         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
80524         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
80525         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
80526         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
80527         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
80528         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
80529         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
80530         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
80531         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
80532         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
80533         RE_SYNTAX_POSIX_MINIMAL_BASIC.
80534         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
80535         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
80536         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
80537         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
80538         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
80539         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
80540         (REG_FIXED): Renamed from REGS_FIXED.
80541         (REG_NREGS): Renamed from RE_NREGS.
80542
80543         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
80544         of other REG_* macros, since POSIX says the user is allowed to
80545         #undef these macros selectively.
80546
80547         (reg_errcode_t): Update comment stating what other tables need
80548         to be consistent.
80549
80550         Rename the following enum values to obey POSIX requirements.
80551         The old names are still visible as macros.
80552         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
80553         is not defined, since GNU is supposed to be a superset of POSIX as
80554         much as possible, and since we want reg_errcode_t to be a signed
80555         type for implementation consistency.
80556         (_REG_NOERROR): Renamed from REG_NOERROR.
80557         (_REG_NOMATCH): Renamed from REG_NOMATCH.
80558         (_REG_BADPAT): Renamed from REG_BADPAT.
80559         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
80560         (_REG_ECTYPE): Renamed from REG_ECTYPE.
80561         (_REG_EESCAPE): Renamed from REG_EESCAPE.
80562         (_REG_ESUBREG): Renamed from REG_ESUBREG.
80563         (_REG_EBRACK): Renamed from REG_EBRACK.
80564         (_REG_EPAREN): Renamed from REG_EPAREN.
80565         (_REG_EBRACE): Renamed from REG_EBRACE.
80566         (_REG_BADBR): Renamed from REG_BADBR.
80567         (_REG_ERANGE): Renamed from REG_ERANGE.
80568         (_REG_ESPACE): Renamed from REG_ESPACE.
80569         (_REG_BADRPT): Renamed from REG_BADRPT.
80570         (_REG_EEND): Renamed from REG_EEND.
80571         (_REG_ESIZE): Renamed from REG_ESIZE.
80572         (_REG_ERPAREN): Renamed from REG_ERPAREN.
80573         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
80574         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
80575         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
80576         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
80577
80578         (_REG_RE_NAME, _REG_RM_NAME): New macros.
80579         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
80580         changed.  But support the old name if the new one is not defined
80581         and if _REGEX_SOURCE.
80582
80583         Change the following member names in struct re_pattern_buffer.
80584         The old names are still supported if !_REGEX_SOURCE.
80585         The new names are always supported, regardless of _REGEX_SOURCE.
80586         (re_buffer): Renamed from buffer.
80587         (re_allocated): Renamed from allocated.
80588         (re_used): Renamed from used.
80589         (re_syntax): Renamed from syntax.
80590         (re_fastmap): Renamed from fastmap.
80591         (re_translate): Renamed from translate.
80592         (re_can_be_null): Renamed from can_be_null.
80593         (re_regs_allocated): Renamed from regs_allocated.
80594         (re_fastmap_accurate): Renamed from fastmap_accurate.
80595         (re_no_sub): Renamed from no_sub.
80596         (re_not_bol): Renamed from not_bol.
80597         (re_not_eol): Renamed from not_eol.
80598         (re_newline_anchor): Renamed from newline_anchor.
80599
80600         Change the following member names in struct re_registers.
80601         The old names are still supported if !_REGEX_SOURCE.
80602         The new names are always supported, regardless of _REGEX_SOURCE.
80603         (rm_num_regs): Renamed from num_regs.
80604         (rm_start): Renamed from start.
80605         (rm_end): Renamed from end.
80606
80607         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
80608         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
80609         Prepend __ to parameter names.
80610
80611         Undo yesterday's changes.
80612
80613 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
80614
80615         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
80616         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
80617         lib/regex.c.
80618
80619 2005-08-24  Jim Meyering  <jim@meyering.net>
80620
80621         Sync from coreutils.
80622         * m4/fcntl-safer.m4: New file.
80623
80624         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
80625         and object files for this module.
80626
80627 2005-08-24  Jim Meyering  <jim@meyering.net>
80628
80629         Sync from coreutils.
80630         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
80631
80632 2005-08-24  Jim Meyering  <jim@meyering.net>
80633
80634         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
80635         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
80636
80637 2005-08-24  Jim Meyering  <jim@meyering.net>
80638
80639         * modules/fcntl-safer: New module.
80640         * modules/fts (Depends-on): Add fcntl-safer.
80641         * MODULES.html.sh (File descriptor based Input/Output):
80642         Add fcntl-safer.
80643
80644 2005-08-24  Bruno Haible  <bruno@clisp.org>
80645
80646         Support for unit test modules.
80647         * modules/README: Mention tests modules.
80648         * modules/TEMPLATE-TESTS: New file.
80649         * gnulib-tool: New options --extract-tests-module, --with-tests and
80650         --tests-base (unused for the moment).
80651         (testsbase, inctests): New variables.
80652         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
80653         (func_verify_module): Exclude TEMPLATE-TESTS.
80654         (func_verify_nontests_module, func_verify_tests_module): New functions.
80655         (func_get_dependencies): Add implicit dependency for tests modules.
80656         (func_get_tests_module): New function.
80657         (func_modules_transitive_closure): When --with-tests was specified,
80658         include the unit tests as well, unless explicitly avoided.
80659         (func_emit_lib_Makefile_am): Ignore the tests modules here.
80660         (func_emit_tests_Makefile_am): New function.
80661         (func_create_testdir): When --with-tests was specified, emit a
80662         tests/ directory.
80663         * MODULES.html.sh (Future developments): Update.
80664
80665 2005-08-24  Bruno Haible  <bruno@clisp.org>
80666
80667         * modules/tls-tests: New file.
80668         * tests/test-tls.c: New file, from GNU gettext.
80669
80670 2005-08-24  Bruno Haible  <bruno@clisp.org>
80671
80672         * modules/lock-tests: New file.
80673         * tests/test-lock.c: New file, from GNU gettext.
80674
80675 2005-08-24  Bruno Haible  <bruno@clisp.org>
80676
80677         * lib/lock.h: Add multiple inclusion guard.
80678         * lib/tls.h: Add multiple inclusion guard.
80679
80680 2005-08-24  Bruno Haible  <bruno@clisp.org>
80681
80682         * gnulib-tool: Add support for the --aux-dir option to
80683         --create-testdir, --create-megatestdir, --test, --megatest.
80684         (func_create_testdir, func_create_megatestdir): Optionally emit a
80685         AC_CONFIG_AUX_DIR directive.
80686         (create-testdir, create-megatestdir, test, megatest): Provide a
80687         default value for $auxdir.
80688
80689 2005-08-24  Bruno Haible  <bruno@clisp.org>
80690
80691         * gnulib-tool (import): Use compound statement instead of subshell
80692         where possible.
80693
80694 2005-08-24  Bruno Haible  <bruno@clisp.org>
80695
80696         * gnulib-tool (import): Change --aux-dir default to "build-aux".
80697
80698 2005-08-24  Bruno Haible  <bruno@clisp.org>
80699
80700         * gnulib-tool (func_version): Update.
80701
80702 2005-08-24  Bruno Haible  <bruno@clisp.org>
80703
80704         * gnulib-tool (func_import, func_create_testdir,
80705         func_create_megatestdir): Quote all autoconf macro arguments.
80706
80707 2005-08-24  Bruno Haible  <bruno@clisp.org>
80708
80709         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
80710         option --force, because --force causes the aclocal.m4 of each
80711         subdirectory to be newer than the corresponding config.h.in.
80712
80713 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
80714
80715         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
80716         All contents moved to gl_REGEX.
80717         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
80718         assume that it does.
80719
80720 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
80721
80722         * lib/regex.h (REG_NOSYS)
80723         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
80724         Define, since POSIX requires it as of 2001.
80725         (_REG_ENOSYS)
80726         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
80727         New private symbol, used to keep the enum signed in all cases.
80728         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
80729         Youngman in
80730         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
80731
80732         * lib/regex_internal.c (re_string_skip_chars, register_state):
80733         (calc_state_hash):
80734         Remove forward decls; no longer needed now that we use prototypes.
80735         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
80736         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
80737         (clean_state_log_if_needed): Likewise.
80738
80739 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
80740
80741         * config/srclist.txt: Add glibc bugs 1231-1233.
80742
80743 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80744
80745         Fix problems reported by Sam Steingold in
80746         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
80747         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
80748         assumed that reg_errcode_t is a signed type, which is not
80749         necessarily true if _XOPEN_SOURCE is not defined.
80750         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
80751         since some compilers warn about it otherwise.
80752
80753 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80754
80755         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
80756         (init_word_char, create_initial_state, duplicate_node_closure):
80757         (fetch_token, peek_token_bracket, build_range_exp):
80758         (build_collating_symbol): Remove forward decls; no longer needed
80759         now that we use prototypes.
80760
80761         * lib/regcomp.c:
80762         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
80763         (re_compile_fastmap_iter, regcomp, regerror, regfree):
80764         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
80765         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
80766         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
80767         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
80768         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
80769         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
80770         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
80771         (build_range_exp, build_collating_symbol, parse_bracket_exp):
80772         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
80773         (build_charclass, build_charclass_op, fetch_number, create_tree):
80774         (create_token_tree, mark_opt_subexp, duplicate_tree):
80775         Use prototypes rather than old-style definitions.
80776
80777         * lib/regex_internal.c:
80778         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
80779         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
80780         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
80781         (re_string_reconstruct, re_string_peek_byte_case):
80782         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
80783         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
80784         (re_node_set_init_copy, re_node_set_add_intersect):
80785         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
80786         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
80787         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
80788         (re_acquire_state, re_acquire_state_context, register_state):
80789         (create_ci_newstate, create_cd_newstate, free_state):
80790         Likewise.
80791         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
80792         re_search_2):
80793         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
80794         (re_search_internal, prune_impossible_nodes):
80795         (acquire_init_state_context, check_matching, static):
80796         (check_halt_node_context, check_halt_state_context, proceed_next_node):
80797         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
80798         (update_regs, sift_states_backward, build_sifted_states):
80799         (clean_state_log_if_needed, merge_state_array):
80800         (update_cur_sifted_state, add_epsilon_src_nodes):
80801         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
80802         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
80803         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
80804         (find_recover_state, check_subexp_matching_top, transit_state_mb):
80805         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
80806         (check_arrival, check_arrival_add_next_nodes):
80807         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
80808         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
80809         (check_node_accept_bytes, check_node_accept, extend_buffers):
80810         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
80811         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
80812         (sift_ctx_init):
80813         Likewise.
80814
80815         * lib/regex_internal.h:
80816         (re_string_allocate, re_string_construct, re_string_reconstruct):
80817         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
80818         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
80819         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
80820         (re_string_context_at, re_string_peek_byte_case):
80821         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
80822         is defined, since we now use prototypes always.
80823
80824         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
80825         C89 or better.  All uses removed.
80826
80827 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
80828
80829         * config/srclist.txt: Add glibc bugs 1220-1227.
80830
80831 2005-08-20  Jim Meyering  <jim@meyering.net>
80832
80833         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
80834         of unused local, dfa.
80835
80836 2005-08-20  Bruno Haible  <bruno@clisp.org>
80837
80838         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
80839
80840 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80841
80842         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
80843         (re_node_set_insert_last, re_dfa_add_node):
80844         Rename local variables to avoid GCC shadowing warnings.
80845
80846 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80847
80848         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
80849         [defined lint]: Suppress bogus uninitialized-variable warnings.
80850
80851         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
80852         and let the caller return REG_ESPACE if out of space.  This
80853         removes an uninitialied-variable warning with GCC 4.0.1, and also
80854         avoids taking the address of a local variable.  All callers
80855         changed.
80856
80857 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
80858
80859         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
80860         $LIBCSRC/posix/regexec.c.
80861         Add glibc bug 1217 for regcomp.c.
80862
80863 2005-08-19  Jim Meyering  <jim@meyering.net>
80864
80865         * lib/regexec.c (proceed_next_node): Redo local variables to
80866         avoid GCC shadowing warnings.
80867
80868 2005-08-18  Bruno Haible  <bruno@clisp.org>
80869
80870         * lib/strstr.c (strstr): Fix return value in multibyte case.
80871         * lib/strcasestr.c (strcasestr): Likewise.
80872
80873 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
80874
80875         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
80876
80877 2005-08-17  Jim Meyering  <jim@meyering.net>
80878
80879         Make the %s format (seconds since the epoch) work for a negative
80880         number and when used with a zero-padded field width, e.g. %015s.
80881
80882         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
80883         label so that it precedes the code to set `digits'.  Otherwise,
80884         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
80885         print `00-22'.  Now, it prints `-0022', as it should.
80886
80887 2005-08-17  Bruno Haible  <bruno@clisp.org>
80888
80889         * modules/strstr (Files): Add m4/mbrtowc.m4.
80890         (Depends-on): Add mbuiter.
80891
80892 2005-08-17  Bruno Haible  <bruno@clisp.org>
80893
80894         * modules/strcasestr: New file.
80895         * MODULES.html.sh (String handling, based on ANSI C 89): Add
80896         strcasestr.
80897
80898 2005-08-17  Bruno Haible  <bruno@clisp.org>
80899
80900         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
80901
80902 2005-08-17  Bruno Haible  <bruno@clisp.org>
80903
80904         * modules/mbuiter: New file.
80905         * MODULES.html.sh (Extended multibyte and wide character utilities):
80906         Add mbuiter.
80907
80908 2005-08-17  Bruno Haible  <bruno@clisp.org>
80909
80910         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
80911         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
80912
80913 2005-08-17  Bruno Haible  <bruno@clisp.org>
80914
80915         * m4/strcasestr.m4: New file.
80916
80917 2005-08-17  Bruno Haible  <bruno@clisp.org>
80918
80919         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
80920         * lib/strstr.c: Completely rewritten, with multibyte locale support.
80921
80922 2005-08-17  Bruno Haible  <bruno@clisp.org>
80923
80924         * lib/strcasestr.h: New file.
80925         * lib/strcasestr.c: New file.
80926
80927 2005-08-17  Bruno Haible  <bruno@clisp.org>
80928
80929         * lib/strcasecmp.c: Use mbuiter.h.
80930
80931 2005-08-17  Bruno Haible  <bruno@clisp.org>
80932
80933         * lib/mbuiter.h: New file.
80934
80935 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
80936
80937         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
80938         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
80939         and gl_GETOPT are both invoked via different paths (as happens
80940         with GNU tar CVS because it uses both argp and getopt), the former
80941         wins.
80942
80943 2005-08-16  Bruno Haible  <bruno@clisp.org>
80944
80945         * modules/tls: New file.
80946         * MODULES.html.sh (Multithreading): Add tls.
80947
80948 2005-08-16  Bruno Haible  <bruno@clisp.org>
80949
80950         * modules/strnlen1: New file.
80951         * MODULES.html.sh (String handling): Add strnlen1.
80952
80953 2005-08-16  Bruno Haible  <bruno@clisp.org>
80954
80955         * modules/strcase (Files): Add m4/mbrtowc.m4.
80956         (Depends-on): Add strnlen1, mbchar.
80957
80958 2005-08-16  Bruno Haible  <bruno@clisp.org>
80959
80960         * modules/mbiter: New file.
80961         * MODULES.html.sh (Extended multibyte and wide character utilities):
80962         Add mbiter.
80963
80964 2005-08-16  Bruno Haible  <bruno@clisp.org>
80965
80966         * modules/mbfile: New file.
80967         * MODULES.html.sh (Extended multibyte and wide character utilities):
80968         Add mbfile.
80969
80970 2005-08-16  Bruno Haible  <bruno@clisp.org>
80971
80972         * modules/mbchar: New file.
80973         * MODULES.html.sh (Extended multibyte and wide character utilities):
80974         New section.
80975
80976 2005-08-16  Bruno Haible  <bruno@clisp.org>
80977
80978         * m4/tls.m4: New file, from GNU gettext.
80979
80980 2005-08-16  Bruno Haible  <bruno@clisp.org>
80981
80982         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
80983         always.
80984         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
80985
80986 2005-08-16  Bruno Haible  <bruno@clisp.org>
80987
80988         * m4/mbiter.m4: New file.
80989
80990 2005-08-16  Bruno Haible  <bruno@clisp.org>
80991
80992         * m4/mbfile.m4: New file.
80993
80994 2005-08-16  Bruno Haible  <bruno@clisp.org>
80995
80996         * m4/mbchar.m4: New file.
80997
80998 2005-08-16  Bruno Haible  <bruno@clisp.org>
80999
81000         * lib/tls.h: New file, from GNU gettext.
81001         * lib/tls.c: New file, from GNU gettext.
81002
81003 2005-08-16  Bruno Haible  <bruno@clisp.org>
81004
81005         * lib/strnlen1.h: New file.
81006         * lib/strnlen1.c: New file.
81007
81008 2005-08-16  Bruno Haible  <bruno@clisp.org>
81009
81010         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
81011         (mbi_init): Update.
81012         (mbi_avail, mbi_advance): Let the iteration end before the terminating
81013         NUL byte, not after it.
81014
81015 2005-08-16  Bruno Haible  <bruno@clisp.org>
81016
81017         * lib/strcase.h (strcasecmp): Add note in comments.
81018         * lib/strncasecmp.c: Use code from strcasecmp.c.
81019         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
81020         (strcasecmp): Work correctly in multibyte locales.
81021
81022 2005-08-16  Bruno Haible  <bruno@clisp.org>
81023
81024         * lib/mbiter.h: New file.
81025
81026 2005-08-16  Bruno Haible  <bruno@clisp.org>
81027
81028         * lib/mbfile.h: New file.
81029
81030 2005-08-16  Bruno Haible  <bruno@clisp.org>
81031
81032         * lib/mbchar.h: New file.
81033         * lib/mbchar.c: New file.
81034
81035 2005-08-16  Bruno Haible  <bruno@clisp.org>
81036
81037         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
81038         the valid ones. Makes the comparison operations transitive:
81039         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
81040         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
81041
81042 2005-08-15  Simon Josefsson  <jas@extundo.com>
81043
81044         * modules/ssize_t (License): Change to 'unlimited'.
81045
81046         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
81047
81048 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
81049
81050         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
81051         Add comments for each pending glibc patch.
81052
81053 2005-08-15  Bruno Haible  <bruno@clisp.org>
81054
81055         * lib/regex.h (__restrict_arr): Don't define to __restrict if
81056         __cplusplus is defined.
81057
81058 2005-08-14  Jim Meyering  <jim@meyering.net>
81059
81060         Sync from coreutils.
81061
81062         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
81063         Use the hash-table-based cycle-detection code not just when
81064         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
81065         Reported by James Youngman in
81066         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
81067         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
81068         FTS_TIGHT_CYCLE_CHECK.
81069         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
81070         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
81071         once again.
81072         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
81073         * lib/fts.c (fd_safer): Remove decl.
81074         Include fcntl--.h rather than unistd-safer.h
81075         (fts_safe_changedir): Don't call fd_safer; no longer needed
81076         now that we include fcntl--.h.
81077
81078 2005-08-12  Simon Josefsson  <jas@extundo.com>
81079
81080         * modules/getndelim2: Use ssize_t module.
81081         * modules/getnline: Likewise.
81082         * modules/safe-read: Likewise.
81083         * modules/xreadlink: Likewise.
81084
81085         * modules/ssize_t: New file.
81086
81087 2005-08-12  Simon Josefsson  <jas@extundo.com>
81088
81089         * m4/readline.m4: Look for termcap, curses or ncurses if required.
81090
81091 2005-08-12  Simon Josefsson  <jas@extundo.com>
81092
81093         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81094         ssize_t.
81095
81096 2005-08-12  Simon Josefsson  <jas@extundo.com>
81097
81098         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
81099         readline, getdelim and check_version.
81100         (Support for systems lacking ISO C 99: Sizes of integer types):
81101         Add size_max.
81102
81103 2005-08-12  Bruno Haible  <bruno@clisp.org>
81104
81105         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
81106
81107 2005-08-11  Simon Josefsson  <jas@extundo.com>
81108
81109         * modules/readline: New file.
81110
81111         * modules/strnlen (Files): Add strnlen.h.
81112
81113 2005-08-11  Simon Josefsson  <jas@extundo.com>
81114
81115         * m4/readline.m4: New file.
81116
81117 2005-08-11  Simon Josefsson  <jas@extundo.com>
81118
81119         * lib/readline.h, readline.c: New file.
81120
81121 2005-08-11  Simon Josefsson  <jas@extundo.com>
81122
81123         * doc/gnulib.texi (Initial import, Finishing touches): Mention
81124         gl_AVOID.
81125
81126 2005-08-11  Bruno Haible  <bruno@clisp.org>
81127
81128         * lib/strnlen.h (strnlen): Change parameter name to match comment.
81129
81130 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
81131
81132         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
81133
81134 2005-08-10  Simon Josefsson  <jas@extundo.com>
81135
81136         * tests/test-iconvme.c: New file.
81137
81138 2005-08-10  Simon Josefsson  <jas@extundo.com>
81139
81140         * m4/strnlen.m4: New file.
81141
81142         * m4/strndup.m4: Don't check for strnlen declaration, done in
81143         strnlen.m4.
81144
81145 2005-08-10  Simon Josefsson  <jas@extundo.com>
81146
81147         * lib/strndup.c: Use strnlen.h.
81148
81149         * lib/strnlen.h: New file.
81150
81151 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81152
81153         * README: Typos.
81154
81155 2005-08-02  Simon Josefsson  <jas@extundo.com>
81156
81157         * modules/readline: New file.
81158
81159 2005-08-02  Simon Josefsson  <jas@extundo.com>
81160
81161         * modules/getdelim: New file.
81162
81163         * modules/getline: Rewrite, don't use getndelim2.
81164
81165 2005-08-02  Simon Josefsson  <jas@extundo.com>
81166
81167         * m4/getline.m4: Separate out getdelim stuff into separate module.
81168
81169         * m4/getdelim.m4: New file.
81170
81171 2005-08-02  Simon Josefsson  <jas@extundo.com>
81172
81173         * lib/getline.h, getline.c: Rewrite.
81174
81175         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
81176
81177 2005-07-31  Bruno Haible  <bruno@clisp.org>
81178
81179         * lib/lock.h (gl_lock_initializer): New macro.
81180         (gl_lock_define_initialized): Use it.
81181         (gl_rwlock_initializer): New macro.
81182         (gl_rwlock_define_initialized): Use it.
81183         (gl_recursive_lock_initializer): New macro.
81184         (gl_recursive_lock_define_initialized): Use it.
81185
81186 2005-07-30  Karl Berry  <karl@gnu.org>
81187
81188         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
81189         Report from Ben Pfaff, regarding getopt.
81190
81191 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
81192
81193         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
81194         normal way.
81195         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
81196         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
81197         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
81198         (gl_GETOPT): Use the new macros.  Most of the implementation
81199         is moved to the new macros.  This is for programs like Emacs
81200         that don't want all the functionality of gl_GETOPT.
81201
81202 2005-07-26  Bruno Haible  <bruno@clisp.org>
81203
81204         * m4/lock.m4: Update from GNU gettext.
81205
81206 2005-07-26  Bruno Haible  <bruno@clisp.org>
81207
81208         * lib/lock.h: Update from GNU gettext.
81209         * lib/lock.c: Update from GNU gettext.
81210
81211 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
81212
81213         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
81214         obsolescent AC_TRY_RUN.  Include the default includes files, for
81215         'exit'.
81216
81217 2005-07-24  Bruno Haible  <bruno@clisp.org>
81218
81219         * modules/visibility: New file.
81220         * MODULES.html.sh (Misc): Add visibility.
81221
81222 2005-07-24  Bruno Haible  <bruno@clisp.org>
81223
81224         * m4/visibility.m4: New file.
81225
81226 2005-07-24  Bruno Haible  <bruno@clisp.org>
81227
81228         * doc/visibility.texi: New file.
81229
81230 2005-07-22  Bruno Haible  <bruno@clisp.org>
81231
81232         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
81233         $(ALLOCA_H), redundant through BUILT_SOURCES.
81234         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
81235         redundant through BUILT_SOURCES.
81236         * modules/byteswap (Makefile.am): Remove explicit dependency on
81237         $(BYTESWAP_H), redundant through BUILT_SOURCES.
81238         * modules/fnmatch (Makefile.am): Remove explicit dependency on
81239         $(FNMATCH_H), redundant through BUILT_SOURCES.
81240         * modules/getopt (Makefile.am): Remove explicit dependency on
81241         $(GETOPT_H), redundant through BUILT_SOURCES.
81242         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
81243         redundant through BUILT_SOURCES.
81244         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
81245         redundant through BUILT_SOURCES.
81246         * modules/stdbool (Makefile.am): Remove explicit dependency on
81247         $(STDBOOL_H), redundant through BUILT_SOURCES.
81248         * modules/stdint (Makefile.am): Remove explicit dependency on
81249         $(STDINT_H), redundant through BUILT_SOURCES.
81250         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
81251         Remove explicit dependency on $(SYSEXITS_H).
81252         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
81253
81254 2005-07-18  Simon Josefsson  <jas@extundo.com>
81255
81256         * lib/check-version.c (check_version): Accept identical versions too.
81257
81258 2005-07-18  Bruno Haible  <bruno@clisp.org>
81259
81260         * modules/lock: New file.
81261         * MODULES.html.sh (Multithreading): New section.
81262
81263 2005-07-18  Bruno Haible  <bruno@clisp.org>
81264
81265         * m4/lock.m4: New file, from GNU gettext.
81266
81267 2005-07-18  Bruno Haible  <bruno@clisp.org>
81268
81269         * lib/lock.h: New file, from GNU gettext.
81270         * lib/lock.c: New file, from GNU gettext.
81271
81272 2005-07-18  Bruno Haible  <bruno@clisp.org>
81273
81274         * lib/lock.h (gl_once_t): New type.
81275         (gl_once_define, gl_once): New macros.
81276         * lib/lock.c (fresh_once): New variable.
81277         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
81278         functions.
81279
81280 2005-07-16  Simon Josefsson  <jas@extundo.com>
81281
81282         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
81283         workaround, suggested by Bruno.
81284
81285 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
81286
81287         * modules/xalloc (Depends-on): Add xalloc-die.
81288         * modules/xvasprintf (Depends-on): Add xalloc-die.
81289
81290 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
81291
81292         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
81293         with a minor change.
81294
81295 2005-07-15  Bruno Haible  <bruno@clisp.org>
81296
81297         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
81298         When using lib/poll.c, define poll as rpl_poll.
81299
81300 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
81301
81302         * modules/argp (Depends-on): Remove unlocked-io.
81303
81304 2005-07-14  Derek Price  <derek@ximbiot.com>
81305
81306         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
81307         for glob symlink bug.
81308
81309 2005-07-14  Bruno Haible  <bruno@clisp.org>
81310
81311         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
81312         Instead, test for *_unlocked function declarations directly.
81313
81314 2005-07-11  Simon Josefsson  <jas@extundo.com>
81315
81316         * modules/size_max: New file.
81317
81318         * modules/xsize: Depend on size_max module for size_max.m4.
81319
81320 2005-07-11  Simon Josefsson  <jas@extundo.com>
81321
81322         * lib/size_max.h: New file.
81323
81324 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
81325
81326         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
81327         copyright symbol and the year.
81328         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
81329         (version_etc_va): Use parameterized copyright notice.
81330         Reword to conform to the current GNU coding standards.
81331
81332 2005-07-11  Karl Berry  <karl@gnu.org>
81333
81334         * doc/gnulib.texi (Quoting): new node.
81335         (Initial import): more info, from Patrice.
81336
81337 2005-07-11  Bruno Haible  <bruno@clisp.org>
81338
81339         * gnulib-tool (func_usage): Document option --avoid.
81340         (Command line options): Handle --avoid.
81341         (func_acceptable): New function.
81342         (func_modules_transitive_closure): Use it.
81343
81344 2005-07-11  Bruno Haible  <bruno@clisp.org>
81345
81346         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
81347         Reported by Jim Meyering.
81348
81349 2005-07-10  Bruno Haible  <bruno@clisp.org>
81350
81351         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
81352         Needed when size_t is smaller than 'unsigned int'.
81353         Reported by Paul Eggert.
81354
81355 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81356
81357         * modules/argp (Depends-on): Add unlocked-io
81358
81359 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81360
81361         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
81362         block of defines.
81363
81364 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
81365
81366         * config/srclist.txt: Comment out regcomp.c, since we have a porting
81367         fix now.
81368
81369 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
81370         and Paul Eggert  <eggert@cs.ucla.edu>
81371
81372         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
81373         in wint_t, not wchar_t.  Remove now-unnecessary cast.
81374
81375 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81376
81377         * modules/regex (Files): Add lib/regex_internal.c,
81378         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
81379         (Depends-on): Add extensions.
81380         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
81381
81382 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81383
81384         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
81385         pathconf.
81386         * m4/same.m4 (gl_SAME): Likewise.
81387         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
81388
81389         * m4/regex.m4: Adjust to new libc regex implementation.
81390         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
81391         all the .c and .h parts of (the new) regex.
81392         Quote the m4 stuff better.
81393         Check for RE_ICASE bug of old gnulib.
81394         Check for REG_STARTEND of recent libc.
81395         Rename local variables from jm_* to gl_*.
81396         Quote operand of "test -f".
81397         Say "recent enough" version of libc, not "version 2".
81398         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
81399         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
81400         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
81401         Remove check for btowc, isascii.
81402         Require AM_LANGINFO_CODESET.
81403
81404 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81405
81406         * lib/regex.c, regex.h: Sync from libc.
81407         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
81408         * lib/regexec.c:
81409         New files, synced from libc, except that regex_internal.h
81410         currently has a small porting fix.
81411
81412 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
81413
81414         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
81415         regex_internal.c, regexec.c.
81416         Add regex_internal.h too, but as a comment, since the libc version
81417         is currently broken in gnulib mode.
81418
81419 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
81420
81421         Support programs like Emacs that use gnulib but not gettext.
81422         * MODULES.html.sh (Internationalization functions): Add gettext-h.
81423         * modules/gettext-h: New file.
81424         * modules/gettext (Files): Remove lib/gettext.h.
81425         (Depends-on): Add gettext-h.
81426         (Makefile.am): Remove lib_SOURCES.
81427         * modules/argmatch, modules/c-stack, modules/closeout:
81428         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
81429         * modules/execute, modules/file-type, modules/getaddrinfo:
81430         * modules/getopt, modules/human, modules/javacomp:
81431         * modules/javaexec, modules/mkdir-p, modules/obstack:
81432         * modules/openat, modules/pagealign_alloc, modules/pipe:
81433         * modules/quotearg, modules/regex, modules/rpmatch:
81434         * modules/unicodeio, modules/userspec, modules/version-etc:
81435         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
81436         * modules/xsetenv:
81437         Depend on gettext-h, not gettext.
81438
81439 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
81440
81441         * gnulib-tool (func_import): Add support for 'public domain' license.
81442         * modules/alloca, modules/atexit, modules/memmove:
81443         Now public domain, not GPL.
81444         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
81445         * modules/realloc, modules/strerror, modules/strtod:
81446         Now LGPL, not GPL.
81447
81448 2005-07-05  Bruno Haible  <bruno@clisp.org>
81449
81450         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
81451         autoconf CVS. Needed for mingw.
81452
81453 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81454
81455         Remove the dependency of the strftime module on the tzset module.
81456         * modules/strftime (Depends-on): Remove dependency on tzset.
81457
81458 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81459
81460         Remove the dependency of the strftime module on the tzset module.
81461         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
81462         gl_FUNC_TZSET_CLOBBER.
81463
81464 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
81465
81466         Remove the dependency of the strftime module on the tzset module.
81467         * lib/strftime.c (my_strftime)
81468         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
81469         Copy the input structure, to work around some of the bug with
81470         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
81471         Solaris releases, you should also use the tzset module, but we won't
81472         require it as a dependency any more since we don't want LGPLed code
81473         to depend on GPLed code.
81474
81475 2005-07-02  Jim Meyering  <jim@meyering.net>
81476
81477         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
81478         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
81479         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
81480         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
81481
81482 2005-07-02  Jim Meyering  <jim@meyering.net>
81483
81484         * lib/backupfile.c (backup_args): Change a `0' to NULL.
81485
81486 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
81487
81488         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
81489         declares only 'struct timespec;' (!).
81490
81491 2005-07-01  Jim Meyering  <jim@meyering.net>
81492
81493         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
81494         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
81495         * lib/save-cwd.c, tempname.c:
81496         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
81497         and don't include <sys/file.h>).
81498
81499 2005-06-29  Jim Meyering  <jim@meyering.net>
81500
81501         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
81502         type name.  Use the variable name instead.
81503         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
81504         Likewise.
81505
81506 2005-06-28  Simon Josefsson  <jas@extundo.com>
81507
81508         * modules/check-version (Files): Add check-version.m4.
81509
81510 2005-06-28  Simon Josefsson  <jas@extundo.com>
81511
81512         * m4/check-version.m4: New file, suggested by Jim Meyering
81513         <jim@meyering.net>.
81514
81515 2005-06-28  Simon Josefsson  <jas@extundo.com>
81516
81517         * lib/check-version.h, lib/check-version.c: New files.
81518
81519 2005-06-28  Simon Josefsson  <jas@extundo.com>
81520
81521         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
81522         collision with global variable.  Better indentation.  Don't
81523         increment buffer pointer beyond buffer end.  Based on comments
81524         from Paul Eggert <eggert@cs.ucla.edu>.
81525
81526         * lib/base64.h: Indent.
81527
81528 2005-06-28  Simon Josefsson  <jas@extundo.com>
81529
81530         * doc/gnulib.texi (Library version handling): New section.
81531
81532 2005-06-28  Jim Meyering  <jim@meyering.net>
81533
81534         * check-module (find_included_lib_files): Hard-code another
81535         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
81536         but modules/fts-lgpl (correctly) does not list those files.
81537
81538         * modules/canonicalize (Files): Add lib/pathmax.h.
81539
81540 2005-06-25  Simon Josefsson  <jas@extundo.com>
81541
81542         * modules/check-version: New file.
81543
81544 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
81545
81546         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
81547         initializer of struct addrinfo, as an indication that we don't
81548         care how many members the structure has.
81549
81550 2005-06-24  Derek Price  <derek@ximbiot.com>
81551         and Bruno Haible  <bruno@clisp.org>
81552
81553         Remove stat module & update lstat.
81554         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
81555         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
81556         * m4/stat.m4: Remove this file.
81557
81558 2005-06-24  Derek Price  <derek@ximbiot.com>
81559         and Bruno Haible  <bruno@clisp.org>
81560
81561         Remove stat module & update lstat.
81562         * lib/stat.c: Remove this file...
81563         (slash_aware_lstat): ...moving this content and its support...
81564         * lib/lstat.c (rpl_lstat): ...into here.
81565         * lib/lstat.h: New file.
81566
81567 2005-06-24  Derek Price  <derek@ximbiot.com>
81568         and Bruno Haible  <bruno@clisp.org>
81569
81570         Remove stat module & update lstat.
81571         * config/srclist.txt (libc sources): Remove stat.
81572
81573 2005-06-24  Derek Price  <derek@ximbiot.com>
81574         and Bruno Haible  <bruno@clisp.org>
81575
81576         Remove stat module & update lstat.
81577         * MODULES.html.sh (stat): Remove.
81578         * MODULES.html: Regenerated.
81579         * modules/lstat (Description): Correct function name.
81580         (Files): Add "lstat.h".
81581         (Depends-on): Remove stat, add xalloc, stat-macros.
81582         * modules/stat: Remove this file.
81583         (Include): Add "lstat.h", remove <sys/stat.h>.
81584
81585 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
81586
81587         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
81588         (ranged_convert): Don't save conversion in a temporary struct.
81589         This causes a warning with GCC 4.0.0, and anyway in the typical
81590         case it's not worth the extra 100 bytes or so of code.
81591         (ranged_convert, __mktime_internal): When calling a function via a
81592         pointer P, use P () rather than (*P) (), as we now assume C89 or
81593         better.
81594
81595 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
81596
81597         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
81598         "who -r" failed to give output.  Problem reported by Tim Waugh.
81599
81600         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
81601         (xcalloc): Use it to avoid needless tests.
81602         Problem reported by Jim Meyering.
81603
81604 2005-06-20  Derek Price  <derek@ximbiot.com>
81605
81606         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
81607         unnecessary for Autoconfs > 2.59c.
81608
81609 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81610
81611         * lib/argp.h (__option_is_short): Check upper limit of
81612         __key. Isprint() requires its argument to have the value
81613         of an unsigned char or EOF.
81614
81615 2005-06-16  Jim Meyering  <jim@meyering.net>
81616
81617         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
81618         when either N or S is zero.
81619
81620 2005-06-16  Derek Price  <derek@ximbiot.com>
81621
81622         * m4/bison.m4: Declare YACC & YFLAGS precious.
81623
81624 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
81625
81626         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
81627         multibyte string or pattern, fall back on unibyte matching.
81628         Problem reported by James Youngman.
81629
81630 2005-06-08  Bruno Haible  <bruno@clisp.org>
81631
81632         * modules/csharpcomp: New file.
81633         * MODULES.html.sh (C#): Add csharpcomp.
81634
81635 2005-06-08  Bruno Haible  <bruno@clisp.org>
81636
81637         * m4/csharpcomp.m4: New file, from GNU gettext.
81638
81639 2005-06-08  Bruno Haible  <bruno@clisp.org>
81640
81641         * lib/csharpcomp.h: New file, from GNU gettext.
81642         * lib/csharpcomp.c: New file, from GNU gettext.
81643         * lib/csharpcomp.sh.in: New file, from GNU gettext.
81644
81645 2005-06-08  Bruno Haible  <bruno@clisp.org>
81646
81647         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
81648         warning on mingw.
81649
81650 2005-06-07  Derek Price  <derek@ximbiot.com>
81651
81652         Sync from CVS.
81653         * lib/glob_.h: Indent nested #ifdef.
81654
81655 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
81656
81657         Sync from coreutils.
81658         Use "file name" when talking about file names, instead of "filename"
81659         or "path", as per the GNU coding standards.
81660         * lib/mkdir-p.c: Renamed from makepath.c.
81661         (make_dir_parents): Renamed from make_path.  All callers changed.
81662         * lib/mkdir-p.h: Likewise.  All includers changed.
81663         * lib/filenamecat.c: Renamed from path-concat.c.
81664         (file_name_concat): Renamed from path_concat.  All callers changed.
81665         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
81666         * lib/filenamecat.h: Likewise.  All includers changed.
81667         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
81668         in comments or local variable names.
81669         * lib/basename.c: Likewise.
81670         * lib/canonicalize.c, canonicalize.h: Likewise.
81671         * lib/dirname.c, dirname.h: Likewise.
81672         * lib/euidaccess.c: Likewise.
81673         * lib/exclude.c: Likewise
81674         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
81675         * lib/fsusage.c, fsuage.h: Likewise.
81676         * lib/fts.c, fts_.h: Likewise.
81677         * lib/getcwd.c: Likewise.
81678         * lib/getloadavg.c: Likewise.
81679         * lib/mkstemp.c: Likewise.
81680         * lib/mountlist.c, mountlist.h: Likewise.
81681         * lib/openat.c, openat.h: Likewise.
81682         * lib/readlink-stub.c: Likewise.
81683         * lib/readutmp.c, readutmp.h: Likewise.
81684         * lib/rename.c: Likewise.
81685         * lib/rmdir.c: Likewise.
81686         * lib/same.c: Likewise.
81687         * lib/savedir.c: Likewise.
81688         * lib/stripslash.c: Likewise.
81689         * lib/tempname.c: Likewise.
81690         * lib/xreadlink.c: Likewise.
81691         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
81692         All uses changed.
81693         * lib/exclude.h: Likewise.
81694
81695         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
81696         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
81697         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
81698         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
81699         * lib/pathmax.h: Include <limits.h> unconditionally, since other
81700         files have been getting away with it for years (MORE/BSD 4.3
81701         is extinct now).
81702         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
81703         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
81704
81705         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
81706         Define to 256, not 255, as per modern POSIX.
81707
81708 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
81709
81710         Sync from coreutils.
81711         Use "file name" when talking about file names, instead of "filename"
81712         or "path", as per the GNU coding standards.
81713         * MODULES.html.sh: mkdir-p renamed from makepath.
81714         filenamecat renamed from path-concat.
81715         * modules/filenamecat: Renamed from modules/path-concat.
81716         (Files): filenamecat.h and filenamecat.c renamed from
81717         path-concat.h and path-concat.c.
81718         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
81719         (Include): filenamecat.h, not path-concat.h.
81720         * modules/mkdir-p: Renamed from modules/makepath.
81721         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
81722         makepath.c.
81723         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
81724         (Include): mkdir-p.h, not makepath.h.
81725
81726 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
81727
81728         Sync from coreutils.
81729         * m4/mkdir-p.m4: Renamed from makepath.m4.
81730         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
81731         Rename files from makepath.c to mkdir-p.c, and from
81732         makepath.h to mkdir-p.h.
81733         * m4/filenamecat.m4: Renamed from path-concat.m4.
81734         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
81735         Rename files from path-concat.c to filenamecat.c,
81736         and from path-concat.h to filenamecat.h.
81737         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
81738         "file name" in local variables or comments.
81739         * m4/rename.m4: Likewise.
81740
81741 2005-06-01  Bruno Haible  <bruno@clisp.org>
81742
81743         * modules/csharpexec: New file.
81744         * MODULES.html.sh (C#): New section.
81745
81746 2005-06-01  Bruno Haible  <bruno@clisp.org>
81747
81748         * m4/csharp.m4: New file, from GNU gettext.
81749         * m4/csharpexec.m4: New file, from GNU gettext.
81750
81751 2005-06-01  Bruno Haible  <bruno@clisp.org>
81752
81753         * lib/csharpexec.h: New file, from GNU gettext.
81754         * lib/csharpexec.c: New file, from GNU gettext.
81755         * lib/csharpexec.sh.in: New file, from GNU gettext.
81756
81757 2005-05-31  Derek Price  <derek@ximbiot.com>
81758             Paul Eggert  <eggert@cs.ucla.edu>
81759
81760         Sync from cvs.
81761         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
81762
81763 2005-05-31  Derek Price  <derek@ximbiot.com>
81764             Paul Eggert  <eggert@cs.ucla.edu>
81765
81766         Sync from cvs.
81767         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
81768
81769 2005-05-29  Derek Price  <derek@ximbiot.com>
81770
81771         * config/srclist.txt (glob_.h, glob.c): Add these files.
81772
81773 2005-05-29  Derek Price  <derek@ximbiot.com>
81774
81775         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
81776         * modules/glob: New file.
81777         * modules/getlogin_r: Add link to POSIX spec in description.
81778
81779 2005-05-29  Derek Price  <derek@ximbiot.com>
81780             Paul Eggert  <eggert@cs.ucla.edu>
81781
81782         * m4/glob.m4: New file.
81783
81784 2005-05-29  Derek Price  <derek@ximbiot.com>
81785             Paul Eggert  <eggert@cs.ucla.edu>
81786
81787         * lib/glob_.h, lib/glob.c: New files.
81788
81789 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
81790
81791         * modules/fts (Files): Remove m4/inttypes-pri.m4.
81792         * modules/fts-lgpl (Depends-on): Remove gettext.
81793
81794 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
81795
81796         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
81797         and don't require gt_INTTYPES_PRI.
81798
81799 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
81800
81801         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
81802
81803         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
81804         the configuration hassle isn't worth it.
81805         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
81806         (LONGEST_MODIFIER, PRIuMAX): Remove.
81807
81808 2005-05-27  Bruno Haible  <bruno@clisp.org>
81809
81810         * lib/getlogin_r.h: Remove second include of <stddef.h>.
81811
81812 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
81813
81814         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
81815         _POSIX_PTHREAD_SEMANTICS for Solaris.
81816
81817 2005-05-25  Derek Price  <derek@ximbiot.com>
81818
81819         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
81820
81821 2005-05-25  Derek Price  <derek@ximbiot.com>
81822             Paul Eggert  <eggert@cs.ucla.edu>
81823
81824         * modules/getlogin_r, m4/getlogin_r.m4: New files.
81825         * lib/getlogin_r.c, getlogin_r.h: New files.
81826
81827 2005-05-25  Bruno Haible  <bruno@clisp.org>
81828             Derek Price  <derek@ximbiot.com>
81829
81830         * lib/getlogin_r.h: Simplify API documentation.
81831
81832 2005-05-23  Derek Price  <derek@ximbiot.com>
81833
81834         * modules/minmax (Files): Add m4/minmax.m4.
81835         (configure.ac): Add gl_MINMAX.
81836
81837 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
81838
81839         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
81840         so that unistd-safer.h (GPL'ed code) need not be included.
81841
81842 2005-05-22  Bruno Haible  <bruno@clisp.org>
81843
81844         * m4/minmax.m4: New file.
81845         Based on a patch by Derek Price <derek@ximbiot.com>.
81846
81847 2005-05-22  Bruno Haible  <bruno@clisp.org>
81848
81849         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
81850         (INT64_MIN): Fix definition.
81851         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
81852
81853         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
81854         NEED_SIGNED_INT_TYPES.
81855
81856         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
81857         HAVE_SYSTEM_INTTYPES.
81858
81859 2005-05-22  Bruno Haible  <bruno@clisp.org>
81860
81861         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
81862         Also include <sys/param.h> if it defines MIN, MAX.
81863         Based on a patch by Derek Price <derek@ximbiot.com>.
81864
81865 2005-05-21  Jim Meyering  <jim@meyering.net>
81866
81867         * modules/fts (Files): Add m4/inttypes-pri.m4.
81868         (Depends-on): Add lstat and remove gettext.  Alphabetize.
81869
81870 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
81871
81872         New fts module.
81873         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
81874         (setup_dir, free_dir): New functions.
81875         (enter_dir, leave_dir): Define trivial
81876         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
81877         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
81878         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
81879         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
81880         Move to fts-cycle.c.
81881         (fts_open): Use setup_dir.
81882         (fts_close): Use free_dir.
81883         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
81884         This adds a label and some gotos, but the alternatives were messier.
81885         Check for memory allocation failure when entering a dir.
81886         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
81887         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
81888         (FTS): New member fts_cycle, that is a union that contains the
81889         old active_dir_ht and cycle_state.  All uses changed to mention
81890         fts_cycle.ht and fts_cycle.state.
81891         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
81892         fts.c, with the following changes:
81893         (setup_dir, free_dir): New functions.
81894         (enter_dir): Now returns bool.  Return true if successful, false
81895         if memory exhausted.  All callers changed.
81896         Do not bother partly cleaning up on
81897         memory allocation failure; that is free_dir's job.
81898         However, free ad if hash_insert fails, to avoid memory leak.
81899         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
81900         fts->fts_options to see which union member to use.
81901
81902 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
81903
81904         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
81905         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
81906
81907 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
81908
81909         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
81910
81911 2005-05-20  Jim Meyering  <jim@meyering.net>
81912
81913         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
81914         Now a macro, to pacify GCC.
81915
81916 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
81917
81918         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
81919         of -1.
81920
81921 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
81922
81923         * lib/chown.c (rpl_chown): Return -1 on failure.
81924
81925 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
81926
81927         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
81928         Don't check for stddef.h.
81929         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
81930         don't use its results.
81931         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
81932         since we include them unconditionally.  Don't require
81933         AM_STDBOOL_H, since stdbool is a prerequisite.
81934         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
81935         since we assume C89 or better.
81936         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
81937         as we don't use their results.
81938         Don't check for fchdir, memmove, memset, strrchr, as we use
81939         them unconditionally.
81940         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
81941         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
81942
81943 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
81944
81945         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
81946         Include <stddef.h> unconditionally, since we assume C89 now.
81947         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
81948         * lib/fts.c: Include fts_.h first, to check interface.
81949         Do not include intprops.h; no longer needed.
81950         Include cycle-check.h and hash.h, since fts_.h no longer does.
81951         Remove unnecessary casts of closedir to void.
81952         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
81953         decide whether to decrement nlinks.
81954         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
81955         (FTS): Use struct hash_table * instead of Hash_table, so that
81956         we no longer need to include hash.h here.
81957
81958 2005-05-18  Jim Meyering  <jim@meyering.net>
81959
81960         * modules/dirfd (License): Change to LGPL.  Most of the code
81961         is already in the public domain.
81962
81963 2005-05-18  Jim Meyering  <jim@meyering.net>
81964
81965         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
81966         Reported by Yoann Vandoorselaere.
81967
81968 2005-05-17  Jim Meyering  <jim@meyering.net>
81969
81970         * m4/fts.m4: New file, from coreutils.
81971
81972 2005-05-17  Jim Meyering  <jim@meyering.net>
81973
81974         * lib/fts.c, lib/fts_.h: New files, from coreutils.
81975
81976 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
81977
81978         Sync from coreutils.
81979         * m4/unlinkdir.m4: New file.
81980
81981 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
81982
81983         Sync from coreutils.
81984         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
81985         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
81986         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
81987         White space changes only.
81988         * lib/makepath.c (make_path): Port to hosts where leading "//" is
81989         special.
81990         * lib/yesno.c: Include getline.h, not ctype.h.
81991         (yesno): Don't remove leading white space; POSIX doesn't allow it.
81992         Use getline to remove arbitrary restriction on response length.
81993
81994 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
81995
81996         * config/srclist-update: Spell out "Street" in FSF postal
81997         mail address; this is the style the FSF seems to prefer.
81998
81999         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
82000         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
82001         this updates FSF postal mail address.
82002
82003         Sync from coreutils.
82004         * modules/unlinkdir: New file.
82005         * modules/yesno (Depends-on): Add getline.
82006         * MODULES.html.sh (File system functions): Add unlinkdir.
82007
82008 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82009
82010         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
82011         lib/strsep.h:
82012         Change the initial comment to refer to GPL, not LGPL.
82013         gnulib-tool will change it to LGPL as needed.
82014
82015         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
82016         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
82017         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
82018         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
82019         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
82020         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
82021         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
82022         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
82023         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
82024         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
82025         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
82026         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
82027         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
82028         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
82029         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
82030         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
82031         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
82032         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
82033         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
82034         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
82035         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
82036         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
82037         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
82038         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
82039         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
82040         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
82041         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
82042         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
82043         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
82044         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
82045         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
82046         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
82047         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
82048         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
82049         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
82050         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
82051         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
82052         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
82053         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
82054         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
82055         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
82056         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
82057         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
82058         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
82059         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
82060         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
82061         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
82062         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
82063         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
82064         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
82065         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
82066         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
82067         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
82068         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
82069         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
82070         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
82071         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
82072         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
82073         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
82074         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
82075         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
82076         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
82077         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
82078         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
82079         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
82080         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
82081         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
82082         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
82083         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
82084         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
82085         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
82086         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
82087         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
82088         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
82089         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
82090         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
82091         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
82092         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
82093         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
82094         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
82095         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
82096         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
82097         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
82098         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
82099         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
82100         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
82101         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
82102         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
82103         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
82104         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
82105         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
82106         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
82107         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
82108         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
82109         lib/yesno.c, lib/yesno.h:
82110         Update FSF postal mail address.
82111
82112 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82113
82114         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
82115         tests/test-memmem.c, tests/test-stpncpy.c:
82116         Update FSF postal mail address.
82117
82118 2005-05-13  Bruno Haible  <bruno@clisp.org>
82119
82120         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
82121         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
82122         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
82123         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
82124         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
82125         Add support for 64-bit integers in the MSVC compiler.
82126
82127 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82128
82129         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
82130
82131 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
82132
82133         * gnulib-tool (func_import): Sort and uniquify recommended includes.
82134
82135 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
82136
82137         * doc/getdate.texi (General date syntax): Don't say that date
82138         date --iso-8601=ns generates acceptable dates; it doesn't yet.
82139         Problem reported by Nic Ferrier.
82140
82141 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82142
82143         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
82144         specified in ai_socktype. Fix invalid ai_protocol
82145         check. ai_protocol is usually set to 0 or depending on
82146         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
82147         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
82148         ai_socktype / ai_protocol in the returned addrinfo structure.
82149
82150 2005-05-10  Simon Josefsson  <jas@extundo.com>
82151
82152         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
82153         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
82154
82155 2005-05-10  Karl Berry  <karl@gnu.org>
82156
82157         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
82158         (from http://www.gnu.org/licenses).
82159         * doc/COPYING.LIB: also rename to COPYING.LESSER.
82160         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
82161         fdl.texi suffices.
82162
82163 2005-05-10  Karl Berry  <karl@gnu.org>
82164
82165         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
82166         (COPYING.DOC): remove.
82167
82168         * config/srclist-update: new FSF address.
82169
82170 2005-05-10  Derek Price  <derek@ximbiot.com>
82171
82172         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
82173         possible.
82174
82175 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82176             Bruno Haible  <bruno@clisp.org>
82177
82178         * modules/inet_ntop: New file.
82179         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
82180         inet_ntop.
82181
82182 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82183             Bruno Haible  <bruno@clisp.org>
82184
82185         * m4/inet_ntop.m4: New file.
82186
82187 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
82188             Bruno Haible  <bruno@clisp.org>
82189
82190         * lib/inet_ntop.h: New file.
82191         * lib/inet_ntop.c: New file, from glibc with modifications.
82192
82193 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
82194
82195         * modules/time_r (License): Change to LGPL.
82196         * modules/extensions (License): Change to LGPL.  Actually,
82197         the license is more permissive than that, but currently gnulib-tool
82198         doesn't know how to handle more-permissive licenses.
82199
82200         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
82201         Problem reported by Dave Love.
82202
82203 2005-05-08  Jim Meyering  <jim@meyering.net>
82204
82205         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
82206         blank.
82207
82208 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
82209
82210         * modules/argmatch (Depends-on): Add stdbool.
82211         * modules/backupfile (Depends-on): Likewise.
82212         * modules/chdir-long (Depends-on): Likewise.
82213         * modules/closeout (Depends-on): Likewise.
82214         * modules/cycle-check (Depends-on): Likewise.
82215         * modules/dirname (Depends-on): Likewise.
82216         * modules/fnmatch (Depends-on): Likewise.
82217         * modules/fsusage (Depends-on): Likewise.
82218         * modules/fwriteerror (Depends-on): Likewise.
82219         * modules/getcwd (Depends-on): Likewise.
82220         * modules/getloadavg (Depends-on): Likewise.
82221         * modules/hard-locale (Depends-on): Likewise.
82222         * modules/makepath (Depends-on): Likewise.
82223         * modules/mountlist (Depends-on): Likewise.
82224         * modules/nanosleep (Depends-on): Likewise.
82225         * modules/posixtm (Depends-on): Likewise.
82226         * modules/quotearg (Depends-on): Likewise.
82227         * modules/readtokens (Depends-on): Likewise.
82228         * modules/readtokens0 (Depends-on): Likewise.
82229         * modules/readutmp (Depends-on): Likewise.
82230         * modules/save-cwd (Depends-on): Likewise.
82231         * modules/strftime (Depends-on): Likewise.
82232         * modules/userspec (Depends-on): Likewise.
82233         * modules/utimecmp (Depends-on): Likewise.
82234         * modules/xgetcwd (Depends-on): Likewise.
82235         * modules/xnanosleep (Depends-on): Likewise.
82236         * modules/xstrtod (Depends-on): Likewise.
82237         * modules/yesno (Depends-on): Likewise.
82238
82239 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
82240
82241         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
82242         needless checks.
82243
82244 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82245
82246         Merge from coreutils.  Among other things,
82247         add bulletproofing for cases where stdin, stdout, or stderr are closed.
82248         * lib/fd-safer.c: New file.
82249         * lib/fcntl-safer.h, open-safer.c: Remove.
82250         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
82251         * lib/dup-safer.c: Include unistd-safer.h first.
82252         Don't include errno.h.
82253         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
82254         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
82255         * lib/file-type.c: Rely on file-type.h change.
82256         * lib/getloadavg.c: Include unistd-safer.h.
82257         (getloadavg): Use safer open.
82258         * lib/getusershell.c: Include "stdio-safer.h".
82259         (getusershell): Use safer fopen.
82260         * lib/long-options.c (long_options): Use NULL rather than 0.
82261         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
82262         'free'.
82263         * lib/modechange.c: Likewise.
82264         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
82265         (MODE_DONE): New constant.
82266         (struct mode_change): Remove 'next' member.
82267         (make_node_op_equals): New function; like the old one of the
82268         same name, except it allocates an array.
82269         (mode_compile, mode_create_from_ref): Use it.
82270         (mode_compile): Allocate result as an array, not a linked list.
82271         Parse octal string ourself, so that we catch mistakes like "+0".
82272         (mode_adjust): Arg is an array, not a linked list.
82273         * lib/modechange.c: Include stat-macros.h, xalloc.h.
82274         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
82275         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
82276         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
82277         Remove.  This is now stat-macros.h's job.
82278         (talloc): Remove.  All callers replaced by xalloc, so that
82279         our invokers don't have to worry about reporting memory failures.
82280         (make_node_op_equals): Remove.
82281         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
82282         New constants.
82283         (struct mode_change): Moved here from modechange.h.
82284         (mode_append_entry): Remove.
82285         (mode_compile): Remove MASKED_OPS arg, since it encouraged
82286         apps to have incorrect behavior.  Use simpler algorithm for head
82287         and tail.  Don't futz with umask; that's now the job of mode_adjust.
82288         Detect more invalid usages rather than having somewhat-random behavior.
82289         Don't insert an "a=" action, as that leads to incorrect behavior.
82290         (mode_compile, mode_create_from_ref): Return NULL on error instead
82291         of an enum, since now there's only one way to have an error.  All
82292         callers changed.
82293         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
82294         at the correct time.  Simplify calculation of "+u" and its ilk.
82295         Don't mishandle "+X".
82296         (mode_free): Remove "register" and localize decls.
82297         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
82298         (struct mode_change): Move to modechange.c; callers don't
82299         need to see this stuff.
82300         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
82301         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
82302         (mode_change, mode_adjust): Reflect the new signatures noted above.
82303         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
82304         that might redefine system include files.
82305         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
82306         (my_usleep): Use NULL rather than (void *) 0.
82307         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
82308         Use siginterrupt to specify that system calls should be interrupted.
82309         (rpl_nanosleep): Move initialization of suspended closer to call of
82310         my_usleep.
82311         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
82312         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
82313         (desirable_utmp_entry): New function.
82314         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
82315         using x2nrealloc, to simplify logic.
82316         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
82317         size calculation.  Do not assume utmp file is a regular file.
82318         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
82319         (READ_UTMP_CHECK_PIDS): New constant.
82320         * lib/save-cwd.c: Include unistd-safer.h.
82321         (save_cwd): Use fd_safer.
82322         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
82323         [!_LIBC] Include "stat-macros.h" instead.
82324         * lib/unistd-safer.h (fd_safer): New decl.
82325
82326 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82327
82328         * modules/getloadavg (Depends-on): Add unistd-safer.
82329         * modules/getusershell (Depends-on): Add stdio-safer.
82330         * modules/lstat (Depends-on): Remove xalloc.
82331         * modules/mkstemp (Depends-on): Add stat-macros.
82332         * modules/modechange (Depends-on): Remove xstrtol.
82333         Add stat-macros, xalloc.
82334         * modules/save-cwd (Depends-on): Add unistd-safer.
82335         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
82336         * modules/unistd-safer (Files): Add lib/fd-safer.c
82337         (Makefile.am): Remove lib_SOURCES.
82338
82339         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
82340         Remove fcntl-safer; unistd-safer supersedes it.
82341
82342 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82343
82344         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
82345         AC_HEADER_STAT.
82346         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
82347         (gl_PREREQ_CHOWN): Remove.
82348         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
82349         it.  Don't require AC_HEADER_STAT.
82350         (gl_PREREQ_LSTAT): Remove.
82351         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
82352         Don't require AC_HEADER_STAT.
82353         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
82354         (gl_PREREQ_RMDIR): Remove.
82355         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
82356         mention stat-macros.h or AC_HEADER_STAT, since we'll make
82357         the stat-macros module a prerequisite.
82358         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
82359         * m4/filemode.m4 (gl_FILEMODE): Likewise.
82360         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
82361         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
82362         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
82363         variable names.
82364         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
82365         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
82366         variable prefixes.
82367         * m4/fcntl-safer.m4: Remove.
82368         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
82369         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
82370         Invoke gl_PREREQ_FD_SAFER.
82371         (gl_PREREQ_FD_SAFER): New macro.
82372         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
82373         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
82374         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
82375         Remove duplicate call to AC_LIBOBJ(readutmp).
82376         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
82377
82378         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
82379         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
82380
82381 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
82382
82383         * MODULES.html.sh (Misc): Add byteswap.
82384
82385 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82386
82387         * modules/getcwd (Depends-on): Add extensions.
82388         * modules/openat (Depends-on): Likewise.
82389
82390 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82391
82392         * modules/byteswap: New file.
82393
82394 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82395
82396         * m4/byteswap.m4: New file.
82397
82398 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
82399
82400         * lib/byteswap_.h: New file.
82401
82402 2005-04-25  Karl Berry  <karl@gnu.org>
82403
82404         * m4/gettext.m4: Update from GNU gettext 0.14.4.
82405
82406 2005-04-25  Albert Chin  <china@thewrittenword.com>
82407
82408         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
82409         Toolkit C bug.
82410
82411 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
82412
82413         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
82414         (func_ln_if_changed): Remove forcibly for no error message
82415         in case file does not exist.
82416
82417 2005-04-19  Simon Josefsson  <jas@extundo.com>
82418
82419         * gnulib-tool (Options): Make --symlink mean --symbolic.
82420
82421 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
82422
82423         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
82424
82425 2005-04-16  Simon Josefsson  <jas@extundo.com>
82426
82427         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
82428
82429 2005-04-15  Simon Josefsson  <jas@extundo.com>
82430
82431         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
82432
82433 2005-04-15  Simon Josefsson  <jas@extundo.com>
82434
82435         * gnulib-tool: Rename --symlink to --symbolic.
82436
82437 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
82438
82439         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
82440         symbolic links to files instead of copying/moving.  Add --aux-dir,
82441         specifying directory relative --dir where auxiliary build tools
82442         are placed.
82443
82444 2005-04-14  Bruno Haible  <bruno@clisp.org>
82445
82446         * modules/allocsa (License): Change to LGPL.
82447         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
82448
82449 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
82450
82451         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
82452         that "UTC +1 second" continues to work.  Problem reported
82453         by Dmitry V. Levin.
82454         (relunit_snumber): New rule.
82455         (relunit): Use it.
82456
82457 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
82458
82459         * lib/getdate.y (universal_time_zone_table): New constant.
82460         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
82461         universal_time_zone_table.
82462         (lookup_zone): Prefer universal_time_zone_table to
82463         local_time_zone_table, so that "GMT" time stamps are allowed in
82464         London during the summer.  Problem reported by Ian Abbott.
82465
82466 2005-04-12  Jim Meyering  <jim@meyering.net>
82467
82468         * lib/human.c (humblock): Set *options even when returning due to
82469         xstrtoumax conversion failure.  Thanks to a used-uninitialized
82470         warning from gcc-4.
82471
82472 2005-04-09  Jim Meyering  <jim@meyering.net>
82473
82474         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
82475         -Wuninitialized: initialize tm0.tm_year.
82476
82477 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
82478
82479         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
82480         count, since there's no maximum.  All uses changed.
82481         Add member dsts_seen.
82482         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
82483         not being INT_MAX.
82484         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
82485         Use pc_rels_seen to decide whther a date is absolute.
82486
82487         * lib/getdate.y (number): Don't overwrite year.
82488         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
82489         check.
82490
82491 2005-04-02  Simon Josefsson  <jas@extundo.com>
82492
82493         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
82494         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
82495
82496 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
82497
82498         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
82499         where no absolute path name can be longer than PATH_MAX.
82500
82501 2005-03-27  Jim Meyering  <jim@meyering.net>
82502
82503         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
82504
82505 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
82506
82507         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
82508         "one's complement" -> "ones' complement" in comment, as per Knuth.
82509         "value of type" -> "type or expression" in comment.
82510         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
82511
82512 2005-03-26  Jim Meyering  <jim@meyering.net>
82513
82514         Comment nits.
82515         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
82516         Correct typos: s/or/of/.
82517
82518 2005-03-26  Jim Meyering  <jim@meyering.net>
82519
82520         * modules/check-include-files: Move to ../ and rename to...
82521         * check-module: ...this.
82522
82523 2005-03-25  Jim Meyering  <jim@meyering.net>
82524
82525         * modules/xvasprintf (Files): Add xalloc.h.
82526
82527 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
82528
82529         * modules/gettext (Files): config/config.rpath ->
82530         build-aux/config.rpath
82531         * modules/iconv (Files): Likewise.
82532         Problem reported by Oskar Liljeblad.
82533
82534 2005-03-23  Jim Meyering  <jim@meyering.net>
82535
82536         * modules/check-include-files: New script to check for
82537         missing dependencies, multiple includes, etc.
82538
82539         * modules/c-strtold (Depends-on): Add xalloc.
82540         * modules/c-strtod (Depends-on): Add xalloc.
82541         * modules/hash (Depends-on): Add xalloc.
82542         (Files): Remove lib/xalloc.h.
82543
82544         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
82545         * modules/userspec (Files): Add lib/inttostr.h.
82546
82547 2005-03-23  Jim Meyering  <jim@meyering.net>
82548
82549         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
82550
82551 2005-03-22  Jim Meyering  <jim@meyering.net>
82552
82553         * modules/stat-macros: New module.
82554         * modules/canonicalize, modules/euidaccess, modules/file-type,
82555         * modules/filemode, modules/lchown, modules/makepath,
82556         * modules/rmdir, modules/stat: Depend on new stat-macros module
82557         rather than listing lib/stat-macros.h manually.
82558         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
82559
82560 2005-03-22  Jim Meyering  <jim@meyering.net>
82561
82562         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
82563
82564 2005-03-22  Bruno Haible  <bruno@clisp.org>
82565
82566         * config/srclist.txt: Replace target directory 'config' with
82567         'build-aux'.
82568         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
82569         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
82570         ../build-aux/.
82571
82572 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
82573
82574         * modules/chdir-long (Depends-on): Add mempcpy.
82575
82576         * modules/acl, modules/backupfile, modules/c-strtod,
82577         modules/c-strtold, modules/canon-host, modules/canonicalize,
82578         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
82579         modules/exclude, modules/exitfail, modules/file-type,
82580         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
82581         modules/getdate, modules/getline, modules/getpagesize,
82582         modules/getpass, modules/getugroups, modules/group-member,
82583         modules/hard-locale, modules/hash, modules/human, modules/idcache,
82584         modules/inttostr, modules/long-options, modules/makepath,
82585         modules/md5, modules/memcasecmp, modules/memcoll,
82586         modules/modechange, modules/mountlist, modules/path-concat,
82587         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
82588         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
82589         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
82590         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
82591         modules/strftime, modules/strndup, modules/strverscmp,
82592         modules/timespec, modules/unlocked-io, modules/userspec,
82593         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
82594         modules/yesno:
82595         Remove lib_SOURCES line from Makefile.am section, as this is now
82596         done automatically by the corresponding Autoconf macro.
82597
82598 2005-03-21  Jim Meyering  <jim@meyering.net>
82599
82600         Changes imported from coreutils.
82601
82602         * lib/cycle-check.c: Don't include xalloc.h.
82603
82604         * lib/path-concat.c: Don't include assert.h.
82605         (path_concat): Remove assertion that would have triggered
82606         for ABASE starting with more than one slash.
82607         Reported by Andreas Schwab.
82608
82609         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
82610         properly when ABASE is an absolute file name.
82611         Correct the description of this function.
82612         Include <assert.h>.
82613         Add an assertion and a test driver.
82614         This fixes a bug introduced on 2004-07-02.
82615         Andreas Schwab reported the resulting failure of cp --parents:
82616         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
82617
82618 2005-03-21  Jim Meyering  <jim@meyering.net>
82619
82620         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
82621         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
82622
82623 2005-03-21  Jim Meyering  <jim@meyering.net>
82624         and  Paul Eggert  <eggert@cs.ucla.edu>
82625
82626         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
82627         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
82628         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
82629         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
82630         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
82631         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
82632         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
82633         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
82634         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
82635         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
82636         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
82637         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
82638         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
82639         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
82640         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
82641         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
82642         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
82643         for these modules.
82644
82645 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
82646
82647         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
82648         (which shouldn't happen), generate nothing instead of returning 0
82649         immediately, so that nstrftime (NULL, ...) doesn't return 0.
82650
82651 2005-03-16  Bruno Haible  <bruno@clisp.org>
82652
82653         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
82654         HAVE_LONGLONG_64BIT.
82655
82656 2005-03-16  Bruno Haible  <bruno@clisp.org>
82657
82658         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
82659         HAVE_LONGLONG_64BIT.
82660
82661 2005-03-16  Bruno Haible  <bruno@clisp.org>
82662
82663         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
82664         HAVE_LONGLONG_64BIT.
82665
82666 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
82667
82668         * lib/strftime.c (my_strftime): Prepend space to format so that we can
82669         reliably distinguish strftime failure from empty output on POSIX
82670         hosts.
82671
82672 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
82673
82674         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
82675         (iconv_string): Don't guess a size-zero buffer, as that might cause
82676         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
82677         result would be 'too large', where 'too large' is (heuristically)
82678         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
82679         overflow concerns.  This will prevent some unwanted malloc failures
82680         when the inputs are very large.
82681
82682 2005-03-15  Karl Berry  <karl@gnu.org>
82683
82684         * config/srclist.txt (config.rpath): from gettext.
82685         * config/config.rpath: update.
82686
82687 2005-03-15  Bruno Haible  <bruno@clisp.org>
82688
82689         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
82690         to 'negate'.
82691
82692         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
82693         variable.
82694
82695         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
82696         results.
82697
82698 2005-03-14  Simon Josefsson  <jas@extundo.com>
82699
82700         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
82701         <fx@gnu.org>.
82702
82703 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
82704
82705         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
82706         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
82707         intprops.h.
82708         * lib/strtol.c: Likewise.
82709
82710 2005-03-14  Jim Meyering  <jim@meyering.net>
82711
82712         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
82713         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
82714         to be nonzero so that we (and caller) can detect the difference
82715         between a valid zero-length expansion and an error return, even
82716         when the underlying strftime fails before writing anything into
82717         that location.
82718
82719 2005-03-14  Bruno Haible  <bruno@clisp.org>
82720
82721         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
82722         Update from GNU gettext 0.14.3.
82723
82724 2005-03-10  Jim Meyering  <jim@meyering.net>
82725
82726         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
82727
82728 2005-03-10  Jim Meyering  <jim@meyering.net>
82729
82730         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
82731         so that this module works on systems without fchdir.
82732
82733 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
82734
82735         Factor int-properties macros into a single file, except for
82736         glibc-related files.
82737         * lib/intprops.h: New file.
82738         * lib/getloadavg.c: Include it instead of limits.h.
82739         (INT_STRLEN_BOUND): Remove.
82740         * lib/human.c: Include intprops.h.
82741         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
82742         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
82743         302/1000.
82744         * lib/inttostr.h: Include intprops.h instead of limits.h.
82745         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
82746         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
82747         for consistency with intprops.h.
82748         (time_t_is_integer, twos_complement_arithmetic): Use them.
82749         * lib/sig2str.h: Include <signal.h>, intprops.h.
82750         (INT_STRLEN_BOUND): Remove.
82751         * lib/strftime.c (TYPE_SIGNED): Remove.
82752         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
82753         * lib/strtol.c: Adjust comments to match intprops.h.
82754         * lib/userspec.c: Include intprops.h.
82755         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
82756         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
82757         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
82758         instead of rolling our own expressions.
82759         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
82760
82761         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
82762         instead of int.
82763         (my_strftime): Do not mishandle years close to INT_MAX, by doing
82764         the right thing even if adding 1900 would overflow.  Similarly
82765         for tm_mon + 1 and tm_yday + 1.
82766         Make %Y always equivalent to %C%y, and similarly for %G and %g.
82767         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
82768         (DO_SIGNED_NUMBER): New macro.
82769         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
82770
82771 2005-03-07  Bruno Haible  <bruno@clisp.org>
82772
82773         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
82774
82775 2005-03-07  Bruno Haible  <bruno@clisp.org>
82776
82777         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
82778
82779 2005-03-04  Derek R. Price  <derek@ximbiot.com>
82780
82781         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
82782         (func_import): Only replace files via --import when they have actually
82783         changed.
82784
82785 2005-03-03  Derek R. Price  <derek@ximbiot.com>
82786
82787         * m4/mmap-anon.m4: New file.
82788         * m4/pagealign_alloc.m4: New file.
82789
82790 2005-03-03  Derek R. Price  <derek@ximbiot.com>
82791             Bruno Haible  <bruno@clisp.org>
82792
82793         * modules/pagealign_alloc: New file.
82794         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
82795
82796 2005-03-03  Derek R. Price  <derek@ximbiot.com>
82797             Bruno Haible  <bruno@clisp.org>
82798
82799         * lib/pagealign_alloc.h: New file.
82800         * lib/pagealign_alloc.c: New file.
82801
82802 2005-03-03  Bruno Haible  <bruno@clisp.org>
82803
82804         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
82805         Use an all-permissive copyright notice, recommended by RMS.
82806
82807 2005-03-02  Bruno Haible  <bruno@clisp.org>
82808
82809         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
82810         of AIX, the replacement has to be done only after <string.h> is
82811         included, therefore not in config.h. stpncpy.h does the replacement,
82812         and stpncpy.c uses it.
82813
82814 2005-03-02  Bruno Haible  <bruno@clisp.org>
82815
82816         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
82817         stpncpy.c uses it.
82818
82819 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
82820
82821         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
82822         The workaround isn't strictly needed for POSIX conformance, and
82823         it's too much of a pain to configure and maintain.  We'll ask
82824         people to fix their kernels instead.
82825         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
82826         (NANOSLEEP_BUG_WORKAROUND): Remove.
82827         (xnanosleep): Remove the workaround.
82828
82829 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
82830
82831         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
82832         Reported by Derek Price.
82833         (Include): Add "timespec.h".
82834
82835         * modules/xnanosleep (Depends-on): Remove gethrxtime.
82836
82837 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
82838
82839         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
82840         to detect nanosleep bug.
82841
82842 2005-03-01  Bruno Haible  <bruno@clisp.org>
82843
82844         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
82845
82846 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
82847
82848         * modules/gethrxtime: New file.
82849         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
82850         (Depends-on): Add gethrxtime.
82851         (configure.ac): Add gl_XNANOSLEEP.
82852         (Makefile.am): Remove lib_SOURCES line.
82853
82854 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
82855
82856         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
82857         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
82858
82859 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
82860
82861         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
82862         * lib/timespec.h (gettime): Return void, since it always
82863         succeeds now.  All uses changed.
82864         * lib/gettime.c (gettime): Likewise.
82865         [HAVE_NANOTIME]: Prefer nanotime.
82866         Assume gettimeofday succeeds, as POSIX requires.
82867         Assime time () succeeds, since other code already does.
82868         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
82869         (timespec_subtract): Remove.
82870         (NANOSLEEP_BUG_WORKAROUND): New constant.
82871         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
82872         things considerably.  Use it only on GNU/Linux hosts, since the
82873         workaround shouldn't be needed elsewhere.
82874
82875 2005-02-24  Bruno Haible  <bruno@clisp.org>
82876
82877         * modules/gettext (Files): Add m4/glibc2.m4.
82878
82879 2005-02-24  Bruno Haible  <bruno@clisp.org>
82880
82881         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
82882         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
82883         * m4/progtest.m4:
82884         Update from GNU gettext 0.14.2.
82885         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
82886
82887 2005-02-24  Bruno Haible  <bruno@clisp.org>
82888
82889         * lib/localcharset.c: Update from GNU gettext 0.14.2.
82890         * lib/config.charset: Update from GNU gettext 0.14.2.
82891
82892 2005-02-24  Bruno Haible  <bruno@clisp.org>
82893
82894         * lib/gettext.h: Update from GNU gettext 0.14.2.
82895
82896 2005-02-23  Simon Josefsson  <jas@extundo.com>
82897
82898         * m4/iconvme.m4: New file.
82899
82900 2005-02-23  Jim Meyering  <jim@meyering.net>
82901
82902         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
82903         change.
82904         Thanks to Bruno Haible for catching it.
82905
82906 2005-02-22  Simon Josefsson  <jas@extundo.com>
82907
82908         * modules/iconvme: New file.
82909
82910         * MODULES.html.sh: Add iconvme.
82911
82912 2005-02-22  Simon Josefsson  <jas@extundo.com>
82913
82914         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
82915
82916 2005-02-22  Simon Josefsson  <jas@extundo.com>
82917
82918         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
82919
82920 2005-02-22  Jim Meyering  <jim@meyering.net>
82921
82922         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
82923         s/ifndef/ifdef/.
82924
82925 2005-02-20  Neil Conway  <neilc@samurai.com>
82926
82927         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
82928         returned by OSX/Darwin if the specified buffer is not large
82929         enough for the hostname.
82930
82931 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
82932
82933         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
82934         pass it to _help, otherwise the latter coredumps trying to
82935         dereference state.root_argp.
82936
82937 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
82938
82939         * modules/chdir-long (Depends-on): Add memrchr.
82940         * modules/memrchr (Files): Add lib/memrchr.h.
82941         (Include): "memrchr.h".
82942
82943 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
82944
82945         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
82946
82947 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
82948
82949         * lib/memrchr.h: New file.
82950         * lib/chdir-long.c: Include it.
82951         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
82952         Don't bother including stddef.h.
82953
82954 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
82955
82956         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
82957         inclusion.
82958         Include <sys/types.h>, for dev_t.
82959         (ME_DUMMY, ME_REMOTE): Move from here....
82960         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
82961         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
82962         Dmitry V. Levin.
82963         Include mountlist.h first, to test the interface.
82964
82965 2005-01-29  Bruno Haible  <bruno@clisp.org>
82966
82967         * lib/progname.c (program_name): Initialize.
82968         Needed when linking statically on MacOS X.
82969
82970 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
82971
82972         Sync from coreutils.
82973         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
82974         (Depends-on): Add c-strtod.
82975         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
82976
82977 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
82978
82979         Sync from coreutils.
82980         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
82981
82982         Remove files that are specific to coreutils.
82983         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
82984
82985 2005-01-28  Bruno Haible  <bruno@clisp.org>
82986
82987         * modules/javacomp: New file.
82988         * MODULES.html.sh (Java): Add javacomp.
82989
82990 2005-01-28  Bruno Haible  <bruno@clisp.org>
82991
82992         * m4/javacomp.m4: New file, from GNU gettext.
82993
82994 2005-01-28  Bruno Haible  <bruno@clisp.org>
82995
82996         * lib/javacomp.sh.in: New file, from GNU gettext.
82997         * lib/javacomp.h: New file, from GNU gettext.
82998         * lib/javacomp.c: New file, from GNU gettext.
82999
83000 2005-01-26  Simon Josefsson  <jas@extundo.com>
83001
83002         * lib/gai_strerror.c: Use GPL in header.
83003
83004 2005-01-26  Bruno Haible  <bruno@clisp.org>
83005
83006         * modules/javaexec: New file.
83007         * MODULES.html.sh (Java): Add javaexec.
83008
83009 2005-01-26  Bruno Haible  <bruno@clisp.org>
83010
83011         * m4/javaexec.m4: New file, from GNU gettext.
83012
83013 2005-01-26  Bruno Haible  <bruno@clisp.org>
83014
83015         * lib/javaexec.sh.in: New file, from GNU gettext.
83016         * lib/javaexec.h: New file, from GNU gettext.
83017         * lib/javaexec.c: New file, from GNU gettext.
83018
83019 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83020
83021         * modules/lchown (Depends-on): Remove lchown.h
83022
83023 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83024
83025         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
83026         must be defined if the header file was not found, in order
83027         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
83028
83029 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83030
83031         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
83032         initializers for struct pentry_state.
83033         (__argp_error): Check return value of __asprintf
83034         (__argp_failure): Translate error message
83035
83036         * lib/argp-parse.c: Removed braces around the expansion of N_()
83037
83038 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
83039
83040         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
83041         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
83042         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
83043         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
83044         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
83045         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
83046         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
83047         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
83048         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
83049         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
83050         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
83051         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
83052         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
83053         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
83054         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
83055         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
83056         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
83057         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
83058         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
83059         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
83060         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
83061         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
83062         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
83063         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
83064         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
83065         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
83066         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
83067         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
83068         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
83069         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
83070         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
83071         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
83072         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
83073         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
83074         xstrtol.m4, xstrtoumax.m4, yesno.m4:
83075         Use an all-permissive copyright notice, recommended by RMS.
83076
83077 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
83078
83079         * modules/chdir-long (Depends-on): Remove mempcpy.
83080
83081 2005-01-21  Jim Meyering  <jim@meyering.net>
83082
83083         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
83084         same value as for Solaris 9.
83085
83086         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
83087         component length.  This included changing the parameter to be
83088         of type `char *' rather than `char const *'.
83089         * lib/chdir-long.h (chdir_long): Update prototype.
83090
83091         * lib/openat.c (fdopendir, fstatat): New functions.
83092         * lib/openat.h: Include headers required for use of DIR and struct
83093         stat.
83094         [AT_SYMLINK_NOFOLLOW]: Define.
83095         (fdopendir, fstatat): Add prototypes.
83096
83097 2005-01-21  Bruno Haible  <bruno@clisp.org>
83098
83099         * modules/classpath: New file.
83100         * MODULES.html.sh (Java): Add classpath.
83101
83102 2005-01-21  Bruno Haible  <bruno@clisp.org>
83103
83104         * lib/classpath.h: New file, from GNU gettext.
83105         * lib/classpath.c: New file, from GNU gettext.
83106
83107 2005-01-20  Simon Josefsson  <jas@extundo.com>
83108
83109         * modules/version-etc-fsf: New file.
83110
83111 2005-01-20  Simon Josefsson  <jas@extundo.com>
83112
83113         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
83114         * lib/version-etc.c: Remove version_etc_copyright.
83115         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
83116         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
83117
83118 2005-01-20  Simon Josefsson  <jas@extundo.com>
83119
83120         * lib/base64.h (isbase64): Add.
83121
83122         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
83123         using a unsigned prototype, don't inline.
83124         (base64_decode): Use it.
83125
83126 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83127
83128         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
83129         it.
83130
83131 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83132
83133         * lib/save-cwd.c (save_cwd): Remove code to support the case
83134         where fchdir is missing or flaky.
83135
83136 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
83137
83138         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
83139
83140 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
83141
83142         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
83143         AC_LIBSOURCES now does this.
83144         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
83145         with new ullong_max module.
83146
83147 2005-01-19  Bruno Haible  <bruno@clisp.org>
83148
83149         * modules/sh-quote: New file.
83150         * MODULES.html.sh (Executing programs): Add sh-quote.
83151
83152 2005-01-19  Bruno Haible  <bruno@clisp.org>
83153
83154         * lib/sh-quote.h: New file, from GNU gettext.
83155         * lib/sh-quote.c: New file, from GNU gettext.
83156
83157 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
83158
83159         Merge from coreutils.
83160         * m4/ullong_max.m4: New file.
83161         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
83162         (gl_MACROS): Assume localeconv exists.
83163
83164 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
83165
83166         Merge changes from coreutils, as described below in several
83167         changelogs dated today.
83168
83169         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
83170         (O_DIRECTORY): Remove; not needed here, since "." must be
83171         a directory.  All uses removed.
83172         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
83173         universal on Suns, and we also need to test for IRIX.
83174         Revamp code to use 'if' rather than '#if'.
83175         Avoid unnecessary comparison of cwd->desc to 0.
83176
83177         * lib/utimens.c (futimens): Robustify the previous patch, by checking
83178         for known valid error numbers rather than observed invalid ones.
83179
83180 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
83181
83182         * modules/ullong_max: New file.
83183
83184         * modules/chdir-long, modules/openat: New files.
83185         * modules/save-cwd (Depends-on): Depend on chdir-long.
83186         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
83187
83188 2005-01-18  Jim Meyering  <jim@meyering.net>
83189
83190         Merge from coreutils.
83191         * m4/chdir-long.m4, m4/openat.m4: New files.
83192         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
83193         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
83194         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
83195         is sane and DOES follow symlinks.  Besides, testing 20 different
83196         systems found no broken chown implementations.
83197         Prompted by a change in rsync's copy of this macro.
83198         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
83199
83200         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
83201
83202         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
83203         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
83204         NULL-means-set-to-current-time semantics.
83205         Remove temporary file immediately, rather than waiting
83206         for configure's at-exit trap code to do it.
83207
83208 2005-01-18  Jim Meyering  <jim@meyering.net>
83209
83210         * lib/version-etc.c (version_etc_copyright): Update copyright date.
83211
83212         * lib/utimens.c (futimens): Account for the fact that futimes
83213         can also fail with errno == ENOSYS or errno == ENOENT.
83214         Patch from Dmitry V. Levin.
83215
83216         Change the name of the robust chdir function from chdir to chdir_long.
83217         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
83218         (restore_cwd): Use chdir_long, not chdir.
83219         * lib/chdir-long.c: Renamed from chdir.c.
83220         * lib/chdir-long.h: Renamed from chdir.h.
83221         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
83222         Hurd.
83223
83224 2005-01-18  Bruno Haible  <bruno@clisp.org>
83225
83226         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
83227         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
83228         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
83229         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
83230         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
83231         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
83232         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
83233         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
83234         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
83235         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
83236         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
83237         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
83238         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
83239         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
83240         Use an all-permissive copyright notice, recommended by RMS.
83241
83242 2005-01-18  Bob Proulx  <bob@proulx.com>
83243
83244         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
83245         simplify offsetof() macro construct to avoid compile failure with
83246         native HP-UX 11.0 ANSI C compiler.
83247
83248 2005-01-17  Bruno Haible  <bruno@clisp.org>
83249
83250         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
83251         redundant because stpncpy.m4 takes care of it.
83252
83253 2005-01-17  Bruno Haible  <bruno@clisp.org>
83254
83255         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
83256
83257 2005-01-17  Bruno Haible  <bruno@clisp.org>
83258
83259         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
83260         used.
83261
83262 2005-01-17  Bruno Haible  <bruno@clisp.org>
83263
83264         * lib/fwriteerror.h (fwriteerror): Change specification to include
83265         fclose.
83266         * lib/fwriteerror.c: Include <stdbool.h>.
83267         (fwriteerror): At the end, close the file stream. Record whether
83268         stdout was already closed.
83269
83270 2005-01-17  Bruno Haible  <bruno@clisp.org>
83271
83272         * lib/execute.c (environ): Declare if needed.
83273         * lib/pipe.c (environ): Likewise.
83274         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
83275
83276 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83277
83278         * modules/argp: Depend on vsnprintf
83279
83280 2005-01-10  Jim Meyering  <jim@meyering.net>
83281
83282         * modules/closeout (Depends-on): Add atexit.
83283
83284 2005-01-06  Bruno Haible  <bruno@clisp.org>
83285
83286         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
83287
83288 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
83289
83290         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
83291         definitions to be after all include files, to avoid collisions.
83292         Problem reported by Bob Proulx.
83293
83294 2005-01-04  Jim Meyering  <jim@meyering.net>
83295
83296         Changes imported from coreutils.
83297         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
83298         as the mkstemp template, use a temporary directory and an
83299         8.3-friendly template to avoid trouble on systems like DJGPP.
83300         Reported by Juan M. Guerrero via Stepan Kasal.
83301         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
83302         close. Remove the temporary directory right away, rather than waiting
83303         for configure's at-exit trap code to do it.
83304         Suggestion from Stepan Kasal.
83305
83306 2005-01-01  Simon Josefsson  <jas@extundo.com>
83307
83308         * gnulib-tool: Print #include directives when --import'ing.
83309
83310 2004-12-28  Simon Josefsson  <jas@extundo.com>
83311
83312         * tests/test-base64.c: Include required header files.  Remove
83313         unused variables.
83314
83315 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
83316
83317         * modules/error (Depends-on): Remove gettext.
83318
83319 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
83320
83321         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
83322         not needed.  This removes a dependency on the gettext module.
83323         [defined _LIBC]: Do not include <libintl.h>; not needed.
83324
83325 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
83326
83327         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
83328         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
83329
83330 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
83331
83332         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
83333         HAVE_DECL_STRTOLD.
83334
83335 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
83336
83337         * modules/getdate (Depends-on): Remove alloca-opt.
83338
83339 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
83340
83341         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
83342
83343 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
83344
83345         * lib/argp-parse.c: Include <stddef.h>.
83346         (alignof, alignto): New macros.
83347         (parser_init): Don't assume that void * is aligned sufficiently
83348         for struct option.
83349
83350         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
83351         need to extend the stack.
83352         (YYINITDEPTH): New macro, so that the initial stack isn't overly
83353         large.
83354
83355 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83356
83357         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
83358
83359 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
83360
83361         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
83362         (2004-10-24) change.  Apparently this was a false alarm.
83363
83364         * modules/getdate: Depend on alloca-opt, not alloca.
83365
83366 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
83367
83368         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
83369         Remove now-obsolete comment about AIX.
83370         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
83371         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
83372         (YYMAXDEPTH): New macro.
83373
83374 2004-12-18  Simon Josefsson  <jas@extundo.com>
83375
83376         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
83377
83378 2004-12-18  Bruno Haible  <bruno@clisp.org>
83379
83380         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
83381
83382 2004-12-18  Bruno Haible  <bruno@clisp.org>
83383
83384         * lib/fatal-signal.c (fatal_signals): Make non-const.
83385         (init_fatal_signals): New function.
83386         (uninstall_handlers, install_handlers): Ignore signals that were set to
83387         SIG_IGN.
83388         (at_fatal_signal): Call init_fatal_signals.
83389         (init_fatal_signal_set): Likewise. Ignore signals that were set to
83390         SIG_IGN.
83391         Reported by Paul Eggert.
83392
83393 2004-12-18  Bruno Haible  <bruno@clisp.org>
83394
83395         * doc/alloca.texi: New file.
83396         * doc/alloca-opt.texi: New file.
83397
83398 2004-12-17  Jim Meyering  <jim@meyering.net>
83399
83400         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
83401         Otherwise, install-sh could exit with improper exit status when
83402         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
83403
83404 2004-12-16  Simon Josefsson  <jas@extundo.com>
83405
83406         * tests/test-base64.c: Add license.
83407
83408 2004-12-15  Stepan Kasal  <address@hidden>
83409
83410         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
83411
83412 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
83413
83414         * modules/getcwd (Files): Add m4/d-ino.m4.
83415         Suggested by Mark D. Baushke.
83416
83417 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
83418
83419         * lib/getdate.y (textint): New member "negative".
83420         (time_zone_hhmm): New function.
83421         Expect 14 shift-reduce conflicts, not 13.
83422         (o_colon_minutes): New rule.
83423         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
83424         (yylex): Set the "negative" member of signed numbers.
83425
83426 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
83427
83428         * doc/getdate.texi (Time of day items, Time zone items):
83429         Describe new formats +00:00, UTC+00:00.
83430
83431 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
83432
83433         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
83434         spurious "-l"s.  Problem reported by Stepan Kasal.
83435
83436 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
83437
83438         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
83439         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
83440
83441 2004-12-04  Simon Josefsson  <jas@extundo.com>
83442
83443         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
83444         Vandoorselaere <yoann@prelude-ids.org>.
83445
83446 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
83447
83448         Changes imported from coreutils.
83449         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
83450         exist.
83451         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
83452
83453 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
83454
83455         Changes imported from coreutils.
83456         * lib/hard-locale.c: Assume <locale.h> exists.
83457         Include "strdup.h".
83458         (GLIBC_VERSION): New macro.
83459         (hard_locale): Assume setlocale exists.
83460         Rewrite to avoid #ifdef.
83461         Use strdup rather than malloc + strcpy.
83462         * lib/human.c: Assume <locale.h> exists.
83463         (human_readable): Assume localeconv exists.
83464
83465 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
83466
83467         * modules/hard-locale (Depends-on): Add strdup.
83468
83469 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
83470
83471         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
83472         convert T2, not T.  (Imported from libc.)
83473
83474 2004-11-30  Simon Josefsson  <jas@extundo.com>
83475
83476         * modules/restrict (License): Change to LGPL.
83477
83478 2004-11-30  Simon Josefsson  <jas@extundo.com>
83479
83480         * m4/restrict.m4: Add copyright and copying conditions.
83481
83482 2004-11-30  Simon Josefsson  <jas@extundo.com>
83483
83484         * m4/base64.m4: New file.
83485
83486 2004-11-30  Simon Josefsson  <jas@extundo.com>
83487
83488         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
83489         base64.
83490
83491         * tests/test-base64.c: New file.
83492
83493         * modules/base64: New file.
83494
83495 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
83496
83497         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
83498         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
83499
83500         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
83501
83502 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
83503
83504         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
83505         (__getcwd.c): Don't restore errno; glibc doesn't.
83506         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
83507         first, falling back to our code only if its results look suspicious.
83508         Ensure that the resulting buffer is only as large as necessary.
83509
83510         * lib/readutmp.c: Include readutmp.h first.
83511         Include <errno.h>, since readutmp.h no longer does that.
83512         * lib/readutmp.h: Don't include <errno.h>,
83513         <sys/param.h>, <time.h>; not needed to establish interface.
83514         (errno): Remove decl.
83515         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
83516         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
83517         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
83518
83519 2004-11-28  Simon Josefsson  <jas@extundo.com>
83520
83521         * lib/base64.h, base64.c: New file.
83522
83523 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
83524
83525         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
83526
83527 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
83528
83529         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
83530         (Depends-on): Remove pathmax, same.  Add mempcpy.
83531         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
83532         (Makefile.am): Append getcwd.h to lib_SOURCES.
83533         (Include): Add getcwd.h.
83534         (Maintainer): Change from Jim Meyering to "all, glibc",
83535         since getdate now uses intended-for-glibc code.
83536         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
83537         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
83538
83539 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
83540
83541         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
83542         HP's ANSI C compiler.
83543         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
83544         Declaring int functions causes warnings on some modern systems and
83545         shouldn't be needed to compile on ancient ones.
83546         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
83547         defined.
83548
83549         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
83550         with the following changes.
83551         (__set_errno): Parenthesize properly.
83552         Include <stdbool.h>.
83553         (MIN, MAX, MATCHING_INO): New macros.
83554         (__getcwd): Define with prototype, not K&R form.
83555         Use heuristics to allocate default buffer on stack if possible.
83556         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
83557         behavior, and to avoid the PATH_MAX limit when computing
83558         ../../../../...
83559         Use MATCHING_INO to compare inode number to file.
83560         Check for arithmetic overflow in size calculations.
83561         Fix bug in reallocation of dot array that caused getcwd to fail
83562         on directories nested deeper than 75.
83563         Be more careful about saving errno on error.
83564         Do not use realloc; use only free+malloc, as this is a bit
83565         more flexible and avoids a needless copy operation.
83566         Do not inspect st_dev and st_ino for symbolic links; POSIX
83567         doesn't specify the latter.
83568         Check for closedir errors.
83569         Avoid needless casts.
83570         Use "#ifdef weak_alias" around weak_alias, to be like other
83571         glibc code.
83572         The following changes to getcwd.c have effect only when used in
83573         gnulib; they have no effect inside glibc proper.
83574         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
83575         as alloca isn't used.
83576         (alloca, __alloca): Likewise.
83577         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
83578         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
83579         unconditionally, as gnulib assumes C89 or better.
83580         Do not include <sys/param.h>.
83581         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
83582         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
83583         better.
83584         (NULL) [!defined NULL]: Remove; we assume C89 or better.
83585         Include <dirent.h> in a way that is compatible with modern Autoconf.
83586         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
83587         New macros, if not already defined.
83588         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
83589         Use "_LIBC", not "defined _LIBC", for consistency.
83590         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
83591         a mempcpy module.
83592         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
83593         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
83594         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
83595         credit only to Jim Meyering and adjust the copyright dates.
83596         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
83597         <stdlib.h>, <unistd.h>, "pathmax.h".
83598         Instead, include "xgetcwd.h" (first) and "getcwd.h".
83599         (INITIAL_BUFFER_SIZE): Remove.
83600         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
83601
83602 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
83603
83604         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
83605         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
83606         Use the _ONCE methods, for efficiency.
83607         Check for fcntl.h.  In test program, include <errno.h>
83608         and <fcntl.h> if available.  Remove old K&R cruft from
83609         test program.  Check for common errors in GNU/Linux,
83610         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
83611         don't do AC_LIBOBJ, as that's getcwd.m4's job.
83612         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
83613         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
83614         name accordingly.
83615         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
83616         accommodate new getcwd.c.
83617         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
83618         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
83619         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
83620         that's all we need now.
83621
83622 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83623
83624         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
83625         argp-parse.c depends on getopt internals, that means we should
83626         always use our getopt, to be on the safe side.
83627         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
83628         order not to spoil the result of an eventual previous invocation
83629         of gl_GETOPT_SUBSTITUTE.
83630
83631 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
83632
83633         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
83634         redefinition warnings. To avoid them, include the defines
83635         in `#if !defined __need_getopt ... #endif'. The only place
83636         where __getopt_argv_const is used is in definitions
83637         of getopt_long and getopt_long_only below, which are as well
83638         protected by `#ifndef __need_getopt'.
83639         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
83640         __need_getopt after including <stdio.h> and <unistd.h> These
83641         headers might have defined it.
83642
83643 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
83644
83645         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
83646
83647 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
83648
83649         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
83650         (futimens): New function, which uses futimes if available.
83651         (futimens, utimens): Support timespec==NULL, with same semantics
83652         as utime and utimens.
83653         * lib/utimens.h (futimens): New decl.
83654
83655 2004-11-23  Jim Meyering  <jim@meyering.net>
83656
83657         * lib/getopt_.h: Remove trailing blanks.
83658
83659 2004-11-23  Jim Meyering  <jim@meyering.net>
83660
83661         * lib/__fpending.c: Add comment.
83662
83663 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
83664
83665         * modules/canonicalize (Depends-on): Add xreadlink.
83666         Problem reported by James Youngman.
83667
83668 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
83669
83670         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
83671         New macros.
83672         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
83673         optopt): Use them instead of invoking ## directly; otherwise, the
83674         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
83675
83676 2004-11-19  Bruno Haible  <bruno@clisp.org>
83677
83678         * lib/strtok_r.c: Move comments from here...
83679         * lib/strtok_r.h: ... to here.
83680
83681 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
83682
83683         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
83684         implementations that mishandle size_t overflow.
83685
83686 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
83687
83688         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
83689         might fail.  Problem reported by Yoann Vandoorselaere.
83690         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
83691         implementations that mishandle size_t overflow.
83692
83693 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
83694
83695         * modules/canon-host (Depends-on): Add strdup.
83696
83697 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
83698
83699         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
83700
83701 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
83702
83703         * lib/canon-host.c: Include "strdup.h".
83704         (canon_host): Use getaddrinfo if available, so that IPv6 works.
83705         Use strdup instead of malloc/strcpy to duplicate strings.
83706
83707         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
83708         (human_space_before_unit): New constant.
83709         * lib/human.c (human_readable): Support it.
83710
83711         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
83712         (xgetcwd): Set errno correctly when failing.
83713         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
83714         the failure is actually due to a PATH_MAX problem.
83715
83716         Further getopt changes to make it more likely that glibc will
83717         buy the changes back.
83718         * lib/getopt.c (POSIXLY_CORRECT): New constant.
83719         (getopt): Use it, so to preserve glibc semantic
83720         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
83721         when compiling for libc.
83722         * lib/getopt_.h (__getopt_argv_const): Bring it back.
83723         (getopt_long, getopt_long_only): Use it.
83724
83725         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
83726         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
83727         (getopt): Argv is now char * const *, as per standard.
83728         (_getopt_internal_r, _getopt_internal): Argv is now char **,
83729         not char *__getopt_argv_const *.
83730         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
83731         _getopt_long_only_r): Likewise.
83732         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
83733         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
83734         _getopt_long_r, _getopt_long_only_r): Likewise.
83735         * lib/getopt_.h (__getopt_argv_const): Remove.
83736         (getopt): Argv is now char * const *, as per standard.
83737
83738         * lib/getdate.y (tORDINAL): New token.
83739         (day, relunit): Allow it for relative times.
83740         (relative_time_table): Use tORDINAL for ordinals.
83741
83742 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
83743
83744         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
83745         Document that "second" isn't allowed as an ordinal number.
83746
83747 2004-11-16  Jim Meyering  <jim@meyering.net>
83748
83749         * modules/closeout (Depends-on): Add fpending.
83750
83751 2004-11-15  Jim Meyering  <jim@meyering.net>
83752
83753         * lib/closeout.c: Include "__fpending.h" once again.
83754         Include <stdbool.h>.
83755         (close_stdout): Don't fail just because stdout was closed initially,
83756         since some programs don't write to stdout in the normal course of
83757         operation (other than --version and --help), and we don't want this
83758         function to make e.g. `touch file >&-' fail.
83759         But do fail if it was closed and someone has tried to write to it.
83760         E.g., `printf foo >&-' must fail.
83761
83762 2004-11-13  Jim Meyering  <jim@meyering.net>
83763
83764         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
83765
83766 2004-11-12  Simon Josefsson  <jas@extundo.com>
83767
83768         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
83769         small doc fix is still pending.
83770
83771 2004-11-11  Simon Josefsson  <jas@extundo.com>
83772
83773         * modules/strtok_r: New file.
83774
83775         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83776         strtok_r.
83777
83778 2004-11-11  Simon Josefsson  <jas@extundo.com>
83779
83780         * m4/strtok_r.m4: New file.
83781
83782         * m4/getopt.m4: Replace opterr.
83783
83784 2004-11-11  Simon Josefsson  <jas@extundo.com>
83785
83786         * lib/strtok_r.h, strtok_r.c: New file.
83787
83788 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
83789
83790         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
83791         of replacing opterr, getopt, etc.  This should handle the
83792         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
83793
83794 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
83795
83796         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
83797         we can stop lying to compilers about the constness of argv when we
83798         are compiled outside glibc.
83799         (getopt, getopt_long, getopt_long_only): Use it.
83800         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
83801         _getopt_internal, getopt): Likewise.
83802         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
83803         _getopt_long_only_r): Likewise.
83804         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
83805         _getopt_long_r, _getopt_long_only_r): Likewise.
83806
83807         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
83808         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
83809         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
83810         the other external symbols.
83811         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
83812         declaration, since the above renaming now works around collisions.
83813
83814 2004-11-11  Jim Meyering  <jim@meyering.net>
83815
83816         * lib/linebreak.c: Remove trailing blanks.
83817         * lib/alloca_.h: Likewise.
83818         * lib/acosl.c: Likewise.
83819         * lib/euidaccess.c: Likewise.
83820         * lib/allocsa.h: Likewise.
83821
83822 2004-11-10  Simon Josefsson  <jas@extundo.com>
83823
83824         * m4/getaddrinfo.m4: New file.
83825
83826 2004-11-10  Simon Josefsson  <jas@extundo.com>
83827
83828         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
83829
83830 2004-11-10  Simon Josefsson  <jas@extundo.com>
83831
83832         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83833         getaddrinfo.
83834
83835         * modules/getaddrinfo: New file.
83836
83837 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83838
83839         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
83840
83841 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
83842
83843         * lib/mktime.c (SHR): New macro, which is a portable
83844         substitute for >> that should work even on Crays.
83845         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
83846         Problem reported by Mark D. Baushke in
83847         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
83848         * lib/getdate.y (SHR): Likewise.
83849         (tm_diff): Use it.
83850         * lib/strftime.c (SHR): Likewise.
83851         (tm_diff): Use it.
83852         * lib/quotearg.c (struct quoting_options): Use unsigned int for
83853         quote_these_too, so that right shifts are well defined.  All uses
83854         changed.
83855
83856 2004-11-10  Jim Meyering  <jim@meyering.net>
83857
83858         Ensure that no close failure goes unreported.
83859         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
83860         return early when it seems there's nothing to flush.
83861         Don't include __fpending.h.
83862
83863 2004-11-10  Jim Meyering  <jim@meyering.net>
83864
83865         * modules/closeout (Depends-on): Remove fpending.
83866
83867 2004-11-10  Jim Meyering  <jim@meyering.net>
83868
83869         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
83870
83871 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
83872
83873         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
83874         gl_FUNC_STRFTIME.
83875         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
83876         and AC_REQUIRE when possible, to avoid duplicate checks.
83877         Check for <wchar.h>.
83878
83879 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
83880
83881         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
83882
83883 2004-11-09  Bruno Haible  <bruno@clisp.org>
83884
83885         * m4/sockpfaf.m4: New file.
83886
83887 2004-11-05  Bruno Haible  <bruno@clisp.org>
83888
83889         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
83890         Reported by Mark D. Baushke <mdb@cvshome.org>.
83891
83892 2004-11-04  Bruno Haible  <bruno@clisp.org>
83893
83894         2004-09-11  Bruno Haible  <bruno@clisp.org>
83895                 * allocsa.valgrind: New file.
83896         2004-02-06  Bruno Haible  <bruno@clisp.org>
83897                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
83898                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
83899                 Reported by Christopher Seip <chris.seip@hp.com>.
83900
83901 2004-11-04  Bruno Haible  <bruno@clisp.org>
83902
83903         * modules/allocsa (Files): Add lib/allocsa.valgrind.
83904         (Makefile.am): Distribute it.
83905
83906 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
83907
83908         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
83909         with errno == ERANGE if the buffer is too small.
83910         Problem reported by Mark D. Baushke.
83911
83912 2004-11-03  Albert Chin  <china@thewrittenword.com>
83913             Paul Eggert  <eggert@cs.ucla.edu>
83914
83915         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
83916         equivalent, substitute $ac_type for equivalent type rather than
83917         blindly using uint32_t *always* which won't work if uint32_t is not
83918         available.  Define _UINT32_T to work around typedef of uint32_t if
83919         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
83920         2.5.1.
83921
83922 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
83923
83924         * m4/jm-macros.m4: Sync from coreutils.
83925         (gl_MACROS): Check for mbrlen, for pathchk.
83926         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
83927
83928 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
83929
83930         * lib/xreadlink.c (MAXSIZE): New macro.
83931         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
83932         size does not exceed MAXSIZE.  Avoid cast.
83933         As suggested by Mark D. Baushke in
83934         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
83935         if readlink fails with buffer size just under MAXSIZE, try again
83936         with MAXSIZE.
83937
83938 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
83939
83940         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
83941
83942 2004-11-02  Derek R. Price  <derek@ximbiot.com>
83943         and  Paul Eggert  <eggert@cs.ucla.edu>
83944
83945         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
83946         (get_date): Overparenthesize to avoid GCC warning.
83947
83948 2004-11-02  Bruno Haible  <bruno@clisp.org>
83949
83950         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
83951         returns void.
83952
83953 2004-11-02  Bruno Haible  <bruno@clisp.org>
83954
83955         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
83956         function returns void.
83957
83958 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
83959
83960         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
83961         fflush_unlocked, flockfile, funlockfile, funlockfile,
83962         fputs_unlocked, putc_unlocked.
83963
83964 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
83965
83966         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
83967         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
83968         already declared.
83969
83970 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
83971
83972         * modules/getdate (Files): Add doc/getdate.texi.
83973         (Depends-on): Add setenv, xalloc.
83974
83975 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
83976
83977         * lib/getdate.y: Add support for TZ="foo" within a date string.
83978         Fix some bugs near time_t boundaries.  Reject dates with
83979         out-of-range components, e.g., "Sept 31".
83980         Include <stdlib.h>, "setenv.h", "xalloc.h".
83981         (ISDIGIT_LOCALE): Remove; unused.
83982         Note that the TZ and time functions used here are not reentrant.
83983         (mktime_ok, get_tz): New functions.
83984         (TZBUFSIZE): New constant.
83985         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
83986         This requires that we sometimes generate our own TZ="XXX..." setting.
83987
83988 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
83989
83990         * doc/getdate.texi: New file, from coreutils with modifications for
83991         the new TZ parsing.
83992
83993 2004-10-27  Derek R. Price  <derek@ximbiot.com>
83994
83995         * lib/mktime.c (not_equal_tm): Remove redundant check.
83996
83997 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
83998
83999         * modules/regex (lib_SOURCES): Add regex.c.
84000         Reported by James Youngman in
84001         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
84002
84003 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
84004
84005         * lib/getdate.y: Use Bison 1.875 features, and some minor
84006         code cleanups.  This change does not affect semantics.
84007         Don't include <stdlib.h>; no longer needed.
84008         Don't include unlocked-io.h; only the "#if TEST" code uses
84009         stdio, and performance isn't crucial there.
84010         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
84011         Bison 1.875 features as described below.
84012         All uses of "PC." replaced by "pc->".
84013         (YYSTYPE): Add a forward declaration.
84014         (yylex, yyerror): Use full prototypes in forward decls.
84015         Use "%pure-parser" rather than obsolescent "%pure_parser".
84016         Use %parse-param and %lex-param instead of obsolescent
84017         YYPARSE_PARAM and YYLEX_PARAM.
84018         (meridian_table, month_and_day_table, time_units_table,
84019         relative_time_table, time_zone_table, military_table,
84020         lookup_zone, lookup_word, get_date):
84021         Use NULL instead of 0 where appropriate.
84022         (to_hour): Avoid abort (), to avoid a dependency on
84023         stdlib.h.
84024         (yyerror, yylex): Now accepts parser_control * arg.
84025         (main) [TEST]: Use '\0' rather than 0 for char.
84026
84027 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
84028
84029         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
84030
84031 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
84032
84033         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
84034         It's now the caller's responsibility to handle the case where
84035         !HAVE_GETPAGESIZE && !defined getpagesize.
84036
84037         * lib/mktime.c (leapyear): Arg is long int, not int.
84038
84039 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
84040
84041         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
84042
84043 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
84044
84045         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
84046         missing.  Problem reported by James Youngman.
84047
84048 2004-10-16  Simon Josefsson  <jas@extundo.com>
84049
84050         * gnulib-tool: Fix comments.  Fix parse problem.
84051         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
84052
84053 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
84054
84055         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
84056         implementation of getopt_long.  Problem reported by Alexander Taler in:
84057         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
84058
84059 2004-10-15  Bruno Haible  <bruno@clisp.org>
84060
84061         * gnulib-tool: Untabify. Initialize supplied_libname.
84062         (func_usage): More homogenous output.
84063         (func_modules_transitive_closure, func_modules_to_filelist,
84064         func_emit_lib_Makefile_am): New functions.
84065         (func_import): New function, extracted from big case statement. Use
84066         func_get_license, func_modules_transitive_closure,
84067         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
84068         opt_lgpl. Don't use test -a, as it's not portable.
84069         (func_create_testdir): Use func_modules_transitive_closure,
84070         func_modules_to_filelist, func_emit_lib_Makefile_am.
84071
84072 2004-10-15  Bruno Haible  <bruno@clisp.org>
84073
84074         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
84075
84076 2004-10-15  Bruno Haible  <bruno@clisp.org>
84077
84078         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
84079         the portions belonging to each module.
84080         Suggested by Derek Robert Price <derek@ximbiot.com>.
84081
84082 2004-10-12  Simon Josefsson  <jas@extundo.com>
84083
84084         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
84085         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
84086         to real functions.
84087
84088 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84089
84090         * modules/vsnprintf: New file.
84091
84092 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84093
84094         * m4/vsnprintf.m4: New file.
84095
84096 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84097
84098         * lib/vsnprintf.h: New file.
84099         * lib/vsnprintf.c: New file.
84100
84101 2004-10-11  Bruno Haible  <bruno@clisp.org>
84102
84103         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
84104         vsnprintf.
84105
84106 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
84107
84108         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
84109
84110 2004-10-07  Bruno Haible  <bruno@clisp.org>
84111
84112         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
84113         fits into the provided buffer.
84114
84115 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
84116
84117         * lib/diacrit.c, diacrit.h: Add GPL notice.
84118
84119         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
84120         notice.
84121         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
84122         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
84123         This avoids a potential constant-folding bug.
84124
84125 2004-10-05  Bruno Haible  <bruno@clisp.org>
84126
84127         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
84128         for the declaration of strsep.
84129
84130 2004-10-05  Bruno Haible  <bruno@clisp.org>
84131
84132         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
84133
84134 2004-10-04  Simon Josefsson  <jas@extundo.com>
84135
84136         * modules/memmem: New file.
84137         * tests/test-memmem.c: New file.
84138         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
84139
84140 2004-10-04  Simon Josefsson  <jas@extundo.com>
84141
84142         * m4/memmem.m4: New file.
84143
84144 2004-10-04  Simon Josefsson  <jas@extundo.com>
84145
84146         * lib/memmem.h: New file.
84147         * lib/memmem.c: New file, taken from glibc.
84148
84149 2004-10-04  Simon Josefsson  <jas@extundo.com>
84150
84151         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
84152         '#ifdef USE_UNLOCKED_IO'.
84153
84154 2004-10-04  Simon Josefsson  <jas@extundo.com>
84155
84156         * config/srclist.txt: Add memmem from glibc.
84157
84158 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84159
84160         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
84161
84162         * modules/argmatch, modules/argp, modules/closeout, modules/error,
84163         modules/exclude, modules/getdate, modules/getline,
84164         modules/getndelim2, modules/getpass, modules/getpass-gnu,
84165         modules/getusershell, modules/linebuffer, modules/md5,
84166         modules/mountlist, modules/posixtm, modules/readtokens,
84167         modules/readutmp, modules/regex, modules/sha1,
84168         modules/version-etc, modules/yesno:
84169         Remove dependency on unlocked-io.
84170
84171 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84172
84173         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
84174
84175         * m4/unlocked-io.m4: Add copyright notice.
84176         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
84177
84178 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84179
84180         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
84181         * lib/xmalloc.c (xmemdup): Likewise.
84182         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
84183         XFREE): Remove these long-obsolescent macros.
84184         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
84185         * lib/xstrdup.c: Remove.
84186
84187         * lib/regex.c (re_comp): Cast gettext return value to char *,
84188         Problem reported by Martin Neitzel via Mark D. Baushke.
84189
84190 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
84191
84192         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
84193         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
84194         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
84195         regex.c, sha1.c, version-etc.c, yesno.c:
84196         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
84197         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
84198         the includer's responsibility.
84199
84200         Sync from coreutils.
84201
84202         * lib/modechange.c (mode_compile): Don't decrement a pointer that
84203         points to the start of a string, as the C Standard says the
84204         resulting behavior is undefined.
84205
84206         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
84207         simple -> simple_backups, numbered_existing ->
84208         numbered_existing_backups, numbered -> numbered_backups
84209         to avoid shadowing problems.  All uses changed.
84210         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
84211         * lib/backupfile.c (check_extension, numbered_backup):
84212         Rename locals to avoid shadowing 'basename'.
84213         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
84214         once.
84215
84216         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
84217         * lib/.cvsignore: Add getopt.h.
84218
84219 2004-10-04  Bruno Haible  <bruno@clisp.org>
84220
84221         * modules/README: New file.
84222         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
84223         not a module.
84224
84225 2004-10-02  Jim Meyering  <jim@meyering.net>
84226
84227         * lib/dirfd.h, getpagesize.h: Add copyright notice.
84228
84229 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84230
84231         * modules/strsep: New file.
84232
84233 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84234
84235         * m4/strsep.m4: New file.
84236
84237 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
84238
84239         * lib/strsep.h: New file.
84240         * lib/strsep.c: New file.
84241
84242 2004-10-01  Simon Josefsson  <jas@extundo.com>
84243
84244         * lib/snprintf.c (snprintf): Handle size==0.
84245
84246 2004-10-01  Simon Josefsson  <jas@extundo.com>
84247             Bruno Haible  <bruno@clisp.org>
84248
84249         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
84250         (snprintf): Declare 'args'.
84251
84252 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
84253
84254         * lib/snprintf.c: Remove comments as to why each header is needed.
84255
84256 2004-10-01  Bruno Haible  <bruno@clisp.org>
84257
84258         * MODULES.html.sh: Add strsep.
84259
84260 2004-09-30  Simon Josefsson  <jas@extundo.com>
84261
84262         * modules/snprintf: New file.
84263
84264 2004-09-30  Simon Josefsson  <jas@extundo.com>
84265
84266         * m4/snprintf.m4: New file.
84267
84268 2004-09-30  Simon Josefsson  <jas@extundo.com>
84269
84270         * lib/snprintf.h, lib/snprintf.c: New files.
84271
84272 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84273
84274         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
84275         (hol_entry_help): Never translate an empty string.
84276         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
84277         * lib/argp.h (OPTION_NO_TRANS): New option.
84278
84279 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
84280
84281         * modules/argp (Maintainer): Replace Simon Josefsson
84282         by Sergey Poznyakoff.
84283
84284 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
84285
84286         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
84287         changes merged back into glibc.
84288
84289 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
84290
84291         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
84292
84293 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
84294
84295         * lib/xvasprintf.c: Include xalloc.h.
84296         (xvasprintf): Use xalloc_die, not xmalloc_die.
84297
84298 2004-09-29  Bruno Haible  <bruno@clisp.org>
84299
84300         * modules/alloca-opt: New file, derived from modules/alloca.
84301         * modules/allocsa: Depend on alloca-opt instead of alloca.
84302         * modules/setenv: Likewise.
84303         * modules/vasnprintf: Likewise.
84304         * MODULES.html.sh: Add alloca-opt.
84305
84306 2004-09-28  Simon Josefsson  <jas@extundo.com>
84307
84308         * gnulib-tool: New parameter --lgpl, to asseert that modules are
84309         LGPL, and to replace license template from GPL to LGPL.
84310
84311 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
84312
84313         * modules/dummy: Change license to LGPL.
84314
84315 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
84316
84317         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
84318
84319 2004-09-24  Simon Josefsson  <jas@extundo.com>
84320
84321         * modules/minmax (License): Change from GPL to LGPL.
84322
84323 2004-09-23  Simon Josefsson  <jas@extundo.com>
84324
84325         * gnulib-tool (--import): Typo.
84326
84327 2004-09-23  Simon Josefsson  <jas@extundo.com>
84328
84329         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
84330
84331 2004-09-22  Bruno Haible  <bruno@clisp.org>
84332
84333         * modules/*: Add 'License' field.
84334         * gnulib-tool: Accept --extract-license option.
84335         (func_get_license): New function.
84336
84337 2004-09-21  Bruno Haible  <bruno@clisp.org>
84338
84339         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
84340         Reported by Simon Josefsson.
84341
84342 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
84343
84344         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
84345         gl_AC_TYPE_LONG_LONG.
84346
84347 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
84348
84349         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
84350
84351 2004-09-18  Simon Josefsson  <jas@extundo.com>
84352         and  Paul Eggert  <eggert@cs.ucla.edu>
84353
84354         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
84355         calls with autoreconf.  Define GL_LIB.
84356
84357 2004-09-14  Karl Berry  <karl@gnu.org>
84358
84359         * config/srclist.txt: unsync setenv.c, sigh.
84360
84361 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
84362
84363         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
84364         Problem reported by Bruno Haible in:
84365         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
84366
84367 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
84368
84369         * config/srclist.txt: Comment out argp-pvh.c.
84370
84371 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
84372
84373         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
84374         in case some system header has #define'd it.  Problem reported by
84375         Soeren D. Schulze in
84376         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
84377
84378 2004-09-09  Karl Berry  <karl@gnu.org>
84379
84380         * regex.[ch]: delete from the root.  These were supposed to be
84381                 synced with emacs cvs, but this has not happened for about
84382                 a year, and anyway nothing else uses emacs regex.[ch].
84383                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
84384                 lib/regex[.ch] is untouched.
84385
84386 2004-09-09  Bruno Haible  <bruno@clisp.org>
84387
84388         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
84389
84390 2004-09-09  Bruno Haible  <bruno@clisp.org>
84391
84392         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
84393         modifications.
84394         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
84395
84396 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
84397
84398         * modules/xvasprintf: New file.
84399         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
84400
84401 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
84402
84403         * lib/xvasprintf.h: New file.
84404         * lib/xvasprintf.c: New file.
84405         * lib/xasprintf.c: New file.
84406
84407 2004-09-08  Bruno Haible  <bruno@clisp.org>
84408
84409         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
84410
84411 2004-09-08  Bruno Haible  <bruno@clisp.org>
84412
84413         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
84414         length is > INT_MAX.
84415         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
84416         more.
84417
84418 2004-09-08  Bruno Haible  <bruno@clisp.org>
84419
84420         * lib/stdint_.h: New file, taken from GNU clisp.
84421
84422 2004-09-08  Bruno Haible  <bruno@clisp.org>
84423             Oskar Liljeblad  <oskar@osk.mine.nu>
84424
84425         * modules/stdint: New file.
84426         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
84427
84428 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84429
84430         Import from coreutils.
84431         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
84432         strings on unbounded length.  alloca's performance benefits aren't
84433         that important here.
84434         (V_STRDUP): Remove.
84435         (parse_with_separator): New function, with most of the internals
84436         of the old parse_user_spec.  Allow user to omit both user and group,
84437         for compatibility with FreeBSD.
84438         Clone only the user name, not the entire spec.
84439         Do not set *uid, *gid unless entirely successful.
84440         Avoid memory leak in some failing cases.
84441         Fix regression for USER.GROUP reported by Dmitry V. Levin in
84442         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
84443         (parse_user_spec): Rewrite to use parse_with_separator.
84444
84445 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84446
84447         * modules/userspec: Don't depend on alloca.
84448
84449 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84450
84451         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
84452
84453 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
84454
84455         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
84456         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
84457         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
84458
84459 2004-08-16  Simon Josefsson  <jas@extundo.com>
84460
84461         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
84462         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
84463         Add --dry-run for --import.
84464         Let user provided command line parameters override configure.ac
84465         settings.
84466
84467 2004-08-12  Simon Josefsson  <jas@extundo.com>
84468
84469         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
84470         as discussed with Paul Eggert in threads rooted at
84471         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
84472         and
84473         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
84474         Before, the test was empty, and relied on ELIDE_CODE in source
84475         code.)
84476         (gl_PREREQ_GETOPT): New macro.
84477         (gl_GETOPT): Use them.
84478
84479 2004-08-12  Simon Josefsson  <jas@extundo.com>
84480
84481         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
84482         * lib/getopt_.h: Renamed from getopt.h.
84483
84484 2004-08-12  Simon Josefsson  <jas@extundo.com>
84485
84486         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
84487         Change default library name from libfoo to libgnu.
84488         Now, if you have a configure.ac that says:
84489                 gl_SOURCE_BASE(gl)
84490                 gl_M4_BASE(gl/m4)
84491                 gl_MODULES(error getopt etcetera)
84492                 gl_INIT
84493         you can import all you need by running:
84494                 ../gnulib/gnulib-tool --import
84495
84496         * modules/getopt (Files): Rename getopt.h to getopt_.h.
84497         (Makefile.am): Rewrite, use logic from argz.
84498         (Include): Use <getopt.h> instead of "getopt.h".
84499
84500 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84501
84502         * modules/argp (Files): Add m4/unlocked-io.m4.
84503         (Depends-on): Add extensions.
84504
84505 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84506
84507         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
84508         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
84509         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
84510         Check for program_invocation_name, program_invocation_short_name,
84511         flockfile, funlockfile, features.h, _getopt_long_only_r.
84512
84513 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84514
84515         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
84516         its complicated substitute.
84517         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
84518         and program_invocation_name.
84519         (__argp_basename) [!_LIBC]: Remove; the only use was
84520         replaced by its body.
84521         (__argp_short_program_name): Change condition from
84522         !defined __argp_short_program_name to
84523         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
84524         to match argp-namefrob.h.
84525         (__argp_failure): Don't assume strerror_r returns char *.
84526         * lib/argp-parse.c (N_): Define unconditionally.
84527         (argp_default_options): Fill out initializers with 0 to avoid
84528         gcc warnings.
84529
84530 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
84531
84532         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
84533         getopt1.c.
84534
84535 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
84536
84537         Merge from coreutils.
84538
84539         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
84540
84541         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
84542         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
84543
84544 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
84545
84546         Merge from coreutils.
84547
84548         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
84549         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
84550         for Reliant Unix 5.43.
84551
84552         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
84553         (union fooround): Use uintmax_t, not long int.
84554         The rest is a merge from libc:
84555         [defined _LIBC]: Include <shlib-compat.h>.
84556         (_obstack) [defined _LIBC]: Remove after 2.3.4.
84557
84558         * lib/settime.c (settime): Recode to avoid warning with
84559         Sun Forte C 6U2.
84560
84561         * lib/strverscmp.c: Convert to UTF-8.
84562
84563 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
84564
84565         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
84566         m4/uintmax_t.m4.
84567
84568 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
84569
84570         * modules/xalloc-die: New file.
84571         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
84572
84573         * modules/md5 (Files): Add m4/uint32_t.m4.
84574         * modules/sha1: Renamed from modules/sha.
84575         (Files):
84576         Rename lib/sha.h to lib/sha1.h.
84577         Rename lib/sha.c to lib/sha1.c.
84578         Rename m4/sha.m4 to m4/sha1.m4.
84579         (lib_SOURCES): Likewise.
84580         (configure.ac): Rename gl_SHA to gl_SHA1.
84581         (Include): sha.h -> sha1.h.
84582
84583 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
84584
84585         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
84586         * m4/sha1.m4: Renamed from sha.m4.
84587         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
84588
84589 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
84590
84591         * lib/obstack.h (obstack_empty_p):
84592         Don't assume that chunk->contents is suitably aligned.
84593         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
84594         Likewise. Problem reported by Benno in
84595         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
84596
84597         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
84598         readable.  This could be improved further but it'd take some work.
84599
84600 2004-08-08  Simon Josefsson  <jas@extundo.com>
84601
84602         * modules/xgethostname (Depends-on): Remove exit and error (not
84603         used).
84604
84605         * modules/getpass-gnu: Add getpass.h.
84606         (Depends-on): Add stdbool.
84607         * modules/getpass: Add getpass.h.
84608
84609 2004-08-08  Simon Josefsson  <jas@extundo.com>
84610
84611         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
84612         Check getpass declaration.
84613
84614 2004-08-08  Simon Josefsson  <jas@extundo.com>
84615
84616         * lib/xgethostname.c: Don't include error.h (not used).
84617
84618         * lib/getpass.h: Add.
84619         * lib/getpass.c: Include getpass.h first.
84620
84621 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
84622
84623         * lib/xalloc-die.c: New file.
84624         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
84625         All uses removed.
84626         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
84627         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
84628         xalloc-die.c.
84629         (_, N_, xalloc_die): Move to xalloc-die.c.
84630         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
84631         so that we needn't mess with xalloc_msg_memory_exhausted.
84632
84633         * lib/sha1.h: Renamed from sha.h.
84634         (SHA1_H): Renamed from _SHA_H.
84635         (sha1_ctx): Renamed from sha_ctx.
84636         (sha1_init_ctx): Renamed from sha_init_ctx.
84637         (sha1_process_block): Renamed from sha_process_block.
84638         (sha1_process_bytes): Renamed from sha_process_bytes.
84639         (sha1_finish_ctx): Renamed from sha_finish_ctx.
84640         (sha1_read_ctx): Renamed from sha_read_ctx.
84641         (sha1_stream): Renamed from sha_stream.
84642         (sha1_buffer): Renamed from sha_buffer.
84643         * lib/sha1.c: Likewise; renamed from sha.c.
84644         Do not include <sys/types.h>.
84645         Include <stddef.h> rather than <stdlib.h>.
84646
84647 2004-08-08  Bruno Haible  <bruno@clisp.org>
84648
84649         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
84650         FILESYSTEM_PREFIX_LEN.
84651         * lib/progreloc.c: Likewise.
84652         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
84653
84654 2004-08-06  Simon Josefsson  <jas@extundo.com>
84655
84656         * modules/progname (Depends-on): Don't depend on stdbool.
84657
84658 2004-08-06  Simon Josefsson  <jas@extundo.com>
84659
84660         * modules/getsubopt: New file.
84661         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84662         getsubopt.
84663
84664 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
84665
84666         More merge from coreutils.
84667
84668         * m4/utimens.m4, m4/utimecmp.m4: New files.
84669         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
84670         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
84671         prereq.m4, sha.m4: Import changes from coreutils.
84672
84673 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
84674
84675         More merge from coreutils.
84676         * modules/raise, modules/readtokens0, modules/utimens:
84677         * modules/utimecmp, module/xnanosleep: New files.
84678         * modules/strftime: Add lib/strftime.h.
84679         Change include from <time.h> to "strftime.h".
84680         * modules/yesno: Add lib/yesno.h.
84681         * modules/backupfile: Remove lib/addext.c.
84682         * modules/euidaccess: Add stat-macros.h.
84683         * modules/canonicalize, modules/euidaccess,
84684         modules/filemode, modules/lchown, modules/makepath,
84685         modules/rmdir, modules/stat: Likewise.
84686
84687 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
84688
84689         Merge from tar.
84690         * lib/argp-help.c (make_hol, hol_append): Don't assume that
84691         SIZE_MAX is a valid preprocessor constant.
84692         (__argp_basename): Change from "#ifndef _LIBC"
84693         to "#ifndef __argp_short_program_name", so that
84694         we don't compile these functions for tar.
84695
84696         More merges from coreutils.
84697         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
84698         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
84699         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
84700         * lib/addext.c: Remove; no longer needed.
84701         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
84702         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
84703         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
84704         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
84705         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
84706         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
84707         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
84708         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
84709         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
84710         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
84711         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
84712         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
84713         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
84714         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
84715         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
84716         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
84717         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
84718         Import changes from coreutils.
84719
84720 2004-08-05  Simon Josefsson  <jas@extundo.com>
84721
84722         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
84723
84724 2004-08-05  Simon Josefsson  <jas@extundo.com>
84725
84726         * m4/getsubopt.m4: New file.
84727
84728 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
84729
84730         Merge from coreutils.
84731
84732         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
84733         * m4/getcwd-path-max.m4: New files.
84734
84735         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
84736         FILESYSTEM_PREFIX_LEN ->
84737         FILE_SYSTEM_PREFIX_LEN.
84738         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
84739         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
84740         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
84741         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
84742
84743         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
84744         prerequisite modules now handle the DOS stuff.
84745         Don't check for unistd.h.
84746
84747 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
84748
84749         Merge from coreutils.
84750
84751         * lib/.gdb-history: Remove; this doesn't belong here.
84752
84753         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
84754         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
84755         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
84756         * lib/getcwd.c: New files.
84757
84758         * lib/dirname.h: Include <stdbool.h>.
84759         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
84760         for consistency with POSIX terminology.  All uses changed.
84761         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
84762         (strip_trailing_slashes): Use bool for booleans.
84763         * lib/stripslash.c (strip_trailing_slashes): Likewise.
84764
84765         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
84766         sometimes returns a positive errno value even when it succeeds.
84767         (print_errno_message) [!LIBC]: Fall back on strerror if
84768         __strerror_r fails.
84769
84770         * lib/path-concat.c (mempcpy): Don't define if a system header defines
84771         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
84772         (longest_relative_suffix): New function.
84773         (path_concat): Use it.  Assume first argument is not NULL.
84774         Port to DOS.  Omit redundant separators.
84775         Report an error instead of returning NULL.
84776         Use mempcpy instead of memcpy.
84777         (xpath_concat): Remove: not declared or used.
84778
84779         * lib/same.h: Include <stdbool.h>
84780         (same_name): Return bool, not int.
84781         * lib/same.c (same_name): Likewise.
84782         (errno): Don't declare; we assume C89 or better now.
84783
84784         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
84785         if not already defined.
84786
84787         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
84788         * lib/dup-safer.c (errno): Likewise.
84789
84790 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
84791
84792         Merge from coreutils.
84793         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
84794         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
84795         * modules/path-concat: Don't depend on strdup.
84796
84797 2004-08-03  Simon Josefsson  <jas@extundo.com>
84798
84799         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
84800         * lib/progname.h: Don't include stdbool.h.
84801
84802 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
84803
84804         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
84805         * MODULES.html.sh (func_all_modules): Remove fatal.
84806
84807 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
84808
84809         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
84810
84811 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
84812
84813         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
84814         working.
84815
84816 2004-08-02  Simon Josefsson  <jas@extundo.com>
84817
84818         * lib/getsubopt.h: New file, with comments from Bruno Haible.
84819         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
84820         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
84821
84822 2004-08-01  Simon Josefsson  <jas@extundo.com>
84823
84824         * lib/xgetdomainname.c: Include stdlib.h, for free().
84825
84826 2004-07-19  Bruno Haible  <bruno@clisp.org>
84827
84828         * MODULES.html.sh (func_all_modules): Add dummy.
84829
84830 2004-07-16  Simon Josefsson  <jas@extundo.com>
84831
84832         * modules/dummy: New file.
84833
84834 2004-07-16  Simon Josefsson  <jas@extundo.com>
84835
84836         * lib/dummy.c: New file.
84837
84838 2004-07-16  Bruno Haible  <bruno@clisp.org>
84839
84840         * lib/backupfile.h: Add extern "C" for C++.
84841         * lib/closeout.h: Likewise.
84842         * lib/copy-file.h: Likewise.
84843         * lib/findprog.h: Likewise.
84844         * lib/full-write.h: Likewise.
84845         * lib/pathname.h: Likewise.
84846         * lib/progname.h: Likewise.
84847         * lib/stpcpy.h: Likewise.
84848         * lib/stpncpy.h: Likewise.
84849         * lib/strcase.h: Likewise.
84850         * lib/strstr.h: Likewise.
84851         * lib/xalloc.h: Likewise.
84852
84853         * lib/mbswidth.h: Add extern "C" for C++.
84854         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
84855
84856 2004-07-13  Robert Millan  <robertmh@gnu.org>
84857
84858         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
84859
84860 2004-07-09  Simon Josefsson  <jas@extundo.com>
84861
84862         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
84863         failed without this.)
84864
84865 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
84866
84867         * modules/chown (Files): Add lib/fchown-stub.c, since
84868         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
84869
84870 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
84871
84872         * lib/fchown-stub.c: New file.
84873
84874 2004-06-24  Jim Meyering  <jim@meyering.net>
84875
84876         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
84877
84878 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
84879
84880         * modules/argz: Omit "#include".
84881
84882         * MODULES.html.sh (func_all_modules): Add calloc, to match
84883         2004-06-01 addition of calloc module.
84884
84885 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
84886
84887         * m4/argz.m4: New file, which is autoupdated from libtool.
84888
84889 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
84890
84891         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
84892         libtool.
84893
84894 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
84895
84896         * config/srclist-update: Don't insist on "USA." before the
84897         close-comment, as libtool omits the period and puts the */ on a
84898         separate line.
84899         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
84900         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
84901
84902 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
84903
84904         * modules/argz: New file.
84905         * MODULES.html.sh (func_all_modules): Add argz.
84906
84907 2004-06-12  Jim Meyering  <jim@meyering.net>
84908         and  Paul Eggert  <eggert@cs.ucla.edu>
84909
84910         * modules/hash (Files): Add lib/xalloc.h.
84911         * modules/pipe (Depends-on): Add wait-process.
84912         * modules/stat (Depends-on): Add xalloc.
84913         * modules/userspec (Files): Add lib/userspec.h.
84914         * modules/xstrto
84915
84916         Upgrade from gettext-0.13.
84917         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
84918         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
84919         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
84920
84921 2004-06-10  Jim Meyering  <jim@meyering.net>
84922
84923         * lib/calloc.c: New file.
84924
84925 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
84926
84927         * lib/getdate.y (yylex): Allow space between sign and number.
84928         Problem reported by Dan Jacobson.
84929
84930 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
84931
84932         Merge from coreutils CVS.
84933
84934         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
84935         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
84936         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
84937         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
84938         xstrtol.m4: Fix copyright date and/or serial number.
84939
84940         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
84941         See if we need an fchown replacement.
84942         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
84943         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
84944         and use the replacement function if we detect either defect.
84945
84946         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
84947         gl_UTIMECMP.
84948
84949 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
84950         and  Jim Meyering  <jim@meyering.net>
84951
84952         Merge from coreutils CVS.
84953
84954         * lib/stat-macros.h: New file, with contents from file-type.h
84955         and coreutils' system.h.
84956         * lib/file-type.c: Include "stat-macros.h".
84957         * lib/file-type.h (file_type): Move all macro definitions to new file,
84958         stat-macros.h.
84959
84960         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
84961         Wrap old code with this conditional.
84962         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
84963         function that does not dereference symlinks.
84964         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
84965
84966         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
84967         dependency problems.
84968         (xreadlink): Accept new arg SIZE, for efficiency.
84969         All decls and uses changed.
84970         * lib/xreadlink.h: Include <stddef.h>, for size_t.
84971
84972         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
84973         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
84974
84975         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
84976         sysexits.h.
84977
84978 2004-06-01  Jim Meyering  <jim@meyering.net>
84979
84980         * m4/calloc.m4: New file.
84981
84982 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
84983
84984         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
84985         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
84986         Also, fix a typo in a diagnostic.
84987
84988 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
84989
84990         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
84991         or AC_FUNC_REALLOC.
84992
84993 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
84994
84995         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
84996         macros to be defined.
84997         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
84998         the allocator returns NULL because the requested size is zero.
84999
85000 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85001
85002         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
85003         var.  Add comment explaining why libc still defines it.  This
85004         merges the following patch from glibc:
85005         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
85006
85007 2004-05-20  Andreas Schwab  <schwab@suse.de>
85008
85009         * m4/free.m4: Replace free if it not known to work, not the other
85010         way round.
85011
85012 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
85013
85014         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
85015         present in glibc since revision 1.1 of this file.
85016         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
85017         obstack_alignment_mask, obstack_alloc, obstack_base,
85018         obstack_blank, obstack_blank_fast, obstack_chunk_size,
85019         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
85020         obstack_grow0, obstack_init, obstack_int_grow,
85021         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
85022         obstack_next_free, obstack_object_size, obstack_ptr_grow,
85023         obstack_ptr_grow_fast, obstack_room): Remove declarations of
85024         nonexistent functions.
85025
85026 2004-05-18  Karl Berry  <karl@gnu.org>
85027
85028         * config/srclist.txt: break link for vasnprintf.c.
85029
85030 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
85031
85032         Port obstack to the AS/400, where pointers are 16 bytes wide and
85033         you cannot cast an integer to a valid pointer.  This patch is
85034         currently waiting to be integrated into glibc; see
85035         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
85036
85037         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
85038         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
85039         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
85040         (struct obstack): temp member is now a union of a pointer and
85041         an integer, instead of an integer.  All integer uses changed.
85042         This does not affect the physical layout of struct obstack,
85043         except on hosts (like the AS/400) where the size or alignment of
85044         void * is greater than that of ptrdiff_t.
85045         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
85046         __STDC__)]: Store temporary in pointer member of union, not
85047         integer member.
85048         * lib/obstack.c: Include <stddef.h>, for offsetof.
85049         (struct fooalign): Remove; it doesn't need a name.
85050         (union fooround): Change double to long double, and add void *.
85051         (DEFAULT_ALIGNMENT): Use offsetof to compute.
85052         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
85053         not a macro.  Hence the values are always int; so remove all
85054         casts-to-int in uses.
85055
85056 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
85057
85058         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
85059         we can get this patch merged into glibc.
85060
85061 2004-05-17  Derek R. Price  <derek@ximbiot.com>
85062             Paul Eggert  <eggert@cs.ucla.edu>
85063
85064         * m4/argp: Depend on alloca.
85065
85066 2004-05-17  Derek R. Price  <derek@ximbiot.com>
85067             Paul Eggert  <eggert@cs.ucla.edu>
85068
85069         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
85070         freecoding.
85071
85072 2004-05-17  Bruno Haible  <bruno@clisp.org>
85073
85074         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
85075         precision that consists of a '.' followed by an empty digit string.
85076         Patch by Tor Lillqvist <tml@iki.fi>.
85077
85078 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
85079
85080         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
85081         for backward compatibility with older code.  We need our own
85082         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
85083         it under some other name, and our alloca.h will define it.
85084
85085 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
85086             Derek Price  <derek@ximbiot.com>
85087
85088         * lib/alloca.c: Include <alloca.h>, to get our interface.
85089         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
85090         include <alloca.h> first.  Use C89 prototype for alloca; this
85091         requires including <stddef.h> for size_t.  Use extern "C" if C++.
85092         Use #elif for simplicity, since we can assume C89 now.
85093         Don't try to source the system alloca.h since it will not be found
85094         and to prevent recursively including its replacement.
85095         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
85096         * lib/regex.c: Likewise.
85097
85098 2004-05-16  Derek Price  <derek@ximbiot.com>
85099             Paul Eggert  <eggert@cs.ucla.edu>
85100
85101         getline cleanup.  This changes the getndelim2 API: both order of
85102         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
85103         no delimiter).
85104
85105         * lib/getline.c: Don't include stddef.h or stdio.h, since our
85106         interface does that.
85107         (getline): Always use getdelim, so that we don't have two
85108         copies of this code.
85109         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
85110         if available.
85111         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
85112         (GETNDELIM2_MAXIMUM): New macro.
85113         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
85114         instead of the old practice of delim2==0.  All callers changed.
85115         Return -1 on overflow, instead of returning junk.
85116         Do not set *linesize unless allocation succeeds.
85117         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
85118         that we include sys/types.h.
85119         * lib/getnline.h: Likewise.
85120         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
85121         (getndelim2): Reorder arguments.
85122         * lib/getnline.c (getnline, getndelim):
85123         Don't discard the NMAX argument.
85124         (getnline): Invoke getndelim, to avoid code duplication.
85125         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
85126         of (size_t) -1 by callers of the getnline family.
85127
85128 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85129
85130         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
85131         Check for gettimeofday.
85132         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
85133         Check for settimeofday, stime.
85134
85135 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85136
85137         * lib/nanosleep.c (suspended): Change its type from int to
85138         sig_atomic_t volatile.
85139         (first_call): Make it private to rpl_nanosleep, and have it
85140         be zero initially as that's a bit faster.
85141         (my_usleep): Round up fractional times instead of truncating them,
85142         as this is the usual meaning for 'sleep'.
85143
85144         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
85145         doesn't work.
85146         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
85147         (ENOSYS): Define if not defined.
85148         (settime): Fall back on stime if it exists and settimeofday fails.
85149         But don't bother with fallbacks if a method fails with errno == EPERM.
85150
85151 2004-05-11  Jim Meyering  <jim@meyering.net>
85152
85153         Prior to this change, the save_cwd caller required read access to the
85154         current directory on most systems (ones with the fchdir function).
85155
85156         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
85157         fails, try write-only, and finally, resort to using xgetcwd.
85158
85159 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
85160
85161         * lib/obstack.c, obstack.h: Import changes from libc.
85162
85163 2004-04-28  Bruno Haible  <bruno@clisp.org>
85164
85165         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
85166         also implicitly appends .exe to executables.
85167         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
85168         accepts Windows pathnames.
85169         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
85170         Treat Cygwin like Windows, since it now accepts Windows pathnames.
85171         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
85172         Treat Cygwin like Windows, since it now accepts Windows pathnames.
85173         Reported by Derek Robert Price <derek@ximbiot.com>.
85174
85175 2004-04-21  Karl Berry  <karl@gnu.org>
85176
85177         * config/srclist.txt (localcharset.c): break sync.
85178
85179 2004-04-20  Paul Eggert  <eggert@twinsun.com>
85180
85181         * m4/host-os.m4: Add a copyright notice.
85182
85183 2004-04-20  Jim Meyering  <jim@meyering.net>
85184
85185         Change UTILS_ to gl_ in AC_DEFINE'd names.
85186         Change utils_- and jm_-prefixed variables, too.
85187         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
85188         UTILS_FUNC_MKDIR_TRAILING_SLASH.
85189         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
85190
85191         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
85192         Don't emit trailing blanks.
85193         Also rename jm_-prefixed variables to have gl_ prefix.
85194
85195         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
85196         Also rename jm_-prefixed variables to have gl_ prefix.
85197
85198         * m4/jm-macros.m4: Reflect the renamings.
85199         * m4/prereq.m4: Likewise.
85200
85201 2004-04-20  Jim Meyering  <jim@meyering.net>
85202
85203         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
85204         memory.
85205
85206 2004-04-20  Jim Meyering  <jim@meyering.net>
85207             Bruno Haible  <bruno@clisp.org>
85208
85209         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
85210         memory when realloc fails.
85211
85212 2004-04-19  Jim Meyering  <jim@meyering.net>
85213
85214         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
85215         now that readutmp.c may call `free (0)'.
85216
85217 2004-04-19  Bruno Haible  <bruno@clisp.org>
85218
85219         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
85220         * m4/inttypes_h.m4: Likewise.
85221         * m4/stdint_h.m4: Likewise.
85222         * m4/intmax_t.m4: Likewise.
85223         * m4/uintmax_t.m4: Likewise.
85224
85225 2004-04-18  Jim Meyering  <jim@meyering.net>
85226
85227         * m4/prereq.m4: Don't forbid jm_ prefix.
85228
85229         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
85230         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
85231         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
85232         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
85233         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
85234         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
85235         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
85236         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
85237         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
85238         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
85239         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
85240         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
85241         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
85242         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
85243         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
85244         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
85245         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
85246         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
85247         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
85248
85249 2004-04-18  Jim Meyering  <jim@meyering.net>
85250
85251         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
85252         failure, don't leak memory and do call END_UTMP_ENT.
85253
85254 2004-04-16  Jim Meyering  <jim@meyering.net>
85255
85256         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
85257         coreutils' stat program.
85258         (gl_PREREQ): Don't require jm_PREREQ_STAT.
85259
85260 2004-04-11  Paul Eggert  <eggert@twinsun.com>
85261
85262         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
85263         C89.
85264         (CHAR_BIT): Remove, since we assume C89.
85265         Include <stdint.h> if available, as per current Autoconf CVS advice.
85266
85267 2004-03-31  Jim Meyering  <jim@meyering.net>
85268
85269         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
85270         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
85271         * m4/xalloc.m4: Likewise.
85272
85273 2004-03-30  Paul Eggert  <eggert@twinsun.com>
85274
85275         Merge from coreutils.
85276
85277         * m4/inttostr.m4: New file.
85278         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
85279         Require AM_STDBOOL_H and gl_TIMESPEC instead.
85280         Require gl_CLOCK_TIME.
85281         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
85282
85283 2004-03-30  Paul Eggert  <eggert@twinsun.com>
85284
85285         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
85286         not bool, to be more consistent with Unix conventions.
85287         Suggested by Bruno Haible.
85288
85289         Merge from coreutils.
85290
85291         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
85292         * lib/umaxtostr.c: New files.
85293
85294         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
85295         the usual <time.h> dance.
85296         (get_date): Change signature to support fractional time stamps.
85297         All callers changed.
85298         * lib/getdate.y: Include "getdate.h" first, as we can now
85299         assume C89 and don't need to worry about 'const'.
85300         Similarly, include "unlocked-io.h" near start, not in middle.
85301         Include <limits.h>.
85302         (textint.value): Use long int rather than int.
85303         (textint.digits): Use size_t rather than int.
85304         (BILLION, LOG10_BILLION): New constants.
85305         (parser_control): New member rel_ns.  Members day_ordinal,
85306         time_zone, month, day, hour, minutes, rel_year, rel_month,
85307         rel_day, rel_hour, rel_minutes, rel_seconds
85308         are now long int, not int.  Member seconds is now struct timespec,
85309         not int.  New member timespec_seen.  Members dates_seen, days_seen,
85310         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
85311         not int.
85312         (%union.intval): Now long int, not int.
85313         New member timespec.
85314         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
85315         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
85316         (spec): Now is a timespec or an item list.
85317         (timespec, items): New nonterminals.
85318         (time, rel, relunit, number, get_date):
85319         Add support for fractional seconds.
85320         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
85321         (gmtime, localtime, mktime): Remove decls; not needed with C89.
85322         (to_hour): First arg is now long int, not int.
85323         (to_year): Returns long int, not int.
85324         Don't treat year -70 like 70.
85325         (tm_diff): Returns long int, not int.
85326         (lookup_word): Use bool instead of int when appropriate.
85327         (yylex): Use size_t for count, not int.
85328         Detect overflow when parsing large integer constants.
85329         Add support for fractions.
85330         (get_date): Make pointers 'const' if possible.
85331         Use more-portable code to detect integer overflow.
85332         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
85333         Don't use ctime; it's not reliable if the year has >4 digits.
85334
85335         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
85336         This is for compatibility with BSD.
85337
85338         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
85339         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
85340         From coreutils' system.h.
85341
85342         * lib/userspec.c: Don't include "posixver.h".
85343         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
85344         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
85345         compatible extension.  Simplify code by removing a boolean int
85346         that was always nonzero if a string was nonnull.
85347
85348 2004-03-30  Jim Meyering  <jim@meyering.net>
85349
85350         Merge from coreutils.
85351
85352         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
85353         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
85354         on some systems one must include <grp.h> before it.
85355         Reported by Christian Krackowizer.
85356
85357 2004-03-30  Jim Meyering  <jim@meyering.net>
85358
85359         Merge from coreutils.
85360
85361         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
85362
85363         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
85364         an empty input stream.
85365
85366         * lib/readtokens.c: Include <stdbool.h>.
85367         (readtoken): Use `size_t' rather than int/long.
85368         All callers adjusted.
85369         Use `bool' rather than `int' where appropriate.
85370         Use memset rather than an explicit loop.
85371         Use x2nrealloc rather than xrealloc.
85372         Allow the use of `\0' as a delimiter.
85373         (readtokens): Likewise.
85374         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
85375
85376 2004-03-30  Jim Meyering  <jim@meyering.net>
85377
85378         * m4/realloc.m4: Remove file, since now it does no more than
85379         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
85380         the `configure.ac' section of module/realloc.
85381         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
85382
85383 2004-03-30  Bruno Haible  <bruno@clisp.org>
85384
85385         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
85386         nonnull.
85387
85388 2004-03-29  Paul Eggert  <eggert@twinsun.com>
85389
85390         Merge changes to getloadavg.c from coreutils and Emacs.
85391
85392         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
85393         Define to an expression, not to the empty string.
85394         Include cloexec.h and xalloc.h.
85395         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
85396         Use set_cloexec_flag rather than rolling our own.
85397         * lib/cloexec.c, lib/cloexec.h: New files.
85398
85399 2004-03-29  Paul Eggert  <eggert@twinsun.com>
85400
85401         * m4/cloexec.m4: New file.
85402
85403 2004-03-18  Paul Eggert  <eggert@twinsun.com>
85404
85405         * lib/getopt.h: Sync with libc CVS.
85406
85407 2004-03-18  Paul Eggert  <eggert@twinsun.com>
85408             Bruno Haible  <bruno@clisp.org>
85409
85410         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
85411         mbswidth.
85412
85413 2004-03-18  Paul Eggert  <eggert@twinsun.com>
85414             Bruno Haible  <bruno@clisp.org>
85415
85416         * lib/mbswidth.h: Include <wchar.h> only if
85417         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
85418         <wchar.h>.
85419         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
85420
85421 2004-03-09  Paul Eggert  <eggert@twinsun.com>
85422
85423         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
85424         Sync with libc CVS.
85425         * lib/getopt_int.h: New file, also synced from libc.
85426
85427 2004-03-09  Paul Eggert  <eggert@twinsun.com>
85428
85429         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
85430         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
85431         Bring back getopt.c, getopt.h, getopt1.c.
85432
85433 2004-03-07  Paul Eggert  <eggert@twinsun.com>
85434
85435         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
85436         All uses changed.  Check for sa_sigaction member; this fixes
85437         a bug first reported by Jason Andrade in
85438         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
85439
85440 2004-03-07  Paul Eggert  <eggert@twinsun.com>
85441
85442         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
85443         '#if' expressions.  Unlike the code it replaces, it does not
85444         depend on (defined _SC_PAGESIZE).  However, it does depend on
85445         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
85446         first reported by Jason Andrade in
85447         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
85448
85449 2004-02-25  Simon Josefsson  <jas@extundo.com>
85450
85451         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
85452
85453 2004-02-25  Simon Josefsson  <jas@extundo.com>
85454
85455         * lib/strdup.h: New file.
85456         * lib/strdup.c: Include it.
85457         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
85458         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
85459
85460 2004-02-23  Karl Berry  <karl@gnu.org>
85461
85462         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
85463         (from fencepost.gnu.org:/gd/gnuorg).
85464
85465 2004-02-23  Karl Berry  <karl@gnu.org>
85466
85467         * config/srclistvars.sh (GNUORG) [karl]: redefine.
85468         * config/srclist.txt: add maintain/standards documents.
85469
85470 2004-02-18  Bruno Haible  <bruno@clisp.org>
85471
85472         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
85473         Reported by Derek Robert Price <derek@ximbiot.com>.
85474
85475 2004-02-16  Karl Berry  <karl@gnu.org>
85476
85477         * config/mkinstalldirs, install-sh: update from automake.
85478
85479 2004-02-06  Karl Berry  <karl@gnu.org>
85480
85481         * m4/po.m4: update from gettext 0.14.1.
85482
85483 2004-02-06  Karl Berry  <karl@gnu.org>
85484
85485         * lib/config.charset: update from gettext 0.14.1.
85486
85487 2004-02-05  Paul Eggert  <eggert@twinsun.com>
85488
85489         Add comments and code, prompted by suggestions from Bruno Haible
85490         for sh-quote.
85491         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
85492         describing the enum quoting_style values.
85493         * lib/quotearg.c (quotearg_alloc): New function.
85494         (quotearg_buffer_restyled): Treat lone { and } as special.
85495         Treat = as special.  Work around bug with older shells
85496         that "see" a '\' that is really the 2nd byte of a multibyte char.
85497         Quote empty string with shell_quoting_style.
85498
85499 2004-02-03  Bruno Haible  <bruno@clisp.org>
85500
85501         * m4/pipe.m4: New file, from GNU gettext.
85502
85503 2004-02-03  Bruno Haible  <bruno@clisp.org>
85504
85505         * lib/pipe.h: New file, from GNU gettext.
85506         * lib/pipe.c: New file, from GNU gettext.
85507
85508 2004-01-27  Bruno Haible  <bruno@clisp.org>
85509
85510         * m4/execute.m4: New file, from GNU gettext.
85511
85512 2004-01-27  Bruno Haible  <bruno@clisp.org>
85513
85514         * lib/execute.h: New file, from GNU gettext.
85515         * lib/execute.c: New file, from GNU gettext.
85516         * lib/w32spawn.h: New file, from GNU gettext.
85517
85518 2004-01-24  Paul Eggert  <eggert@twinsun.com>
85519
85520         Merge from diffutils.
85521
85522         * lib/file-type.c (file_type): Add typed memory objects.
85523         * lib/file-type.h (S_TYPEISTMO): New macro.
85524
85525         * lib/c-stack.h (c_stack_action): Remove argv argument.
85526         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
85527         (die): Don't calculate message unless segv_action returns.
85528         (get_stack_location, min_address_from_argv, max_address_from_argv,
85529         volatile stack_base, volatile_stack_size): Remove.
85530         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
85531         that every segmentation violation is a stack overflow.  (Ouch!)
85532         See Debian bug 136249 (still outstanding) for more info about why
85533         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
85534
85535 2004-01-24  Paul Eggert  <eggert@twinsun.com>
85536
85537         Exit-status fix from coreutils.
85538
85539         Use exit_failure consistently in place of EXIT_FAILURE,
85540         so that program exit statuses are consistent on failure.
85541
85542         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
85543         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
85544         * lib/argmatch.h: Comment fix to match the above.
85545         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
85546         Now a macro referring to exit_failure, instead of a separate
85547         variable.  Include "exitfail.h" to get it.
85548         * lib/xstrtol.h: Include "exitfail.h".
85549         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
85550
85551         * lib/long-options.c (parse_long_options): Use prototype
85552         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
85553         for clarity.
85554
85555 2004-01-21  Jim Meyering  <jim@meyering.net>
85556
85557         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
85558         so as not to conflict with a different-sized __mktime_internal
85559         function in GNU libc.
85560         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
85561         Problem building statically-linked `ls' reported by Michael Brunnbauer.
85562
85563 2004-01-20  Karl Berry  <karl@gnu.org>
85564
85565         * config/config.guess: update from config.
85566
85567         * config/srclistvars.sh: GNUWWWLICENSES for karl.
85568
85569 2004-01-20  Bruno Haible  <bruno@clisp.org>
85570
85571         Safer stack allocation.
85572         * lib/setenv.c: Include allocsa.h.
85573         (alloca): Remove fallback definition.
85574         (freea): Remove macro.
85575         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
85576         instead of freea.
85577
85578 2004-01-20  Bruno Haible  <bruno@clisp.org>
85579
85580         * m4/eealloc.m4: New file, from GNU gettext.
85581
85582 2004-01-20  Bruno Haible  <bruno@clisp.org>
85583
85584         * m4/allocsa.m4: New file, from GNU gettext.
85585
85586 2004-01-20  Bruno Haible  <bruno@clisp.org>
85587
85588         * lib/xallocsa.h: New file, from GNU gettext.
85589         * lib/xallocsa.c: New file, from GNU gettext.
85590
85591 2004-01-20  Bruno Haible  <bruno@clisp.org>
85592
85593         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
85594
85595 2004-01-20  Bruno Haible  <bruno@clisp.org>
85596
85597         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
85598         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
85599         specially.
85600
85601 2004-01-20  Bruno Haible  <bruno@clisp.org>
85602
85603         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
85604         patch.
85605
85606 2004-01-20  Bruno Haible  <bruno@clisp.org>
85607
85608         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
85609
85610 2004-01-20  Bruno Haible  <bruno@clisp.org>
85611
85612         * lib/eealloc.h: New file.
85613
85614 2004-01-20  Bruno Haible  <bruno@clisp.org>
85615
85616         * lib/binary-io.h: Avoid warnings on Cygwin.
85617
85618 2004-01-20  Bruno Haible  <bruno@clisp.org>
85619
85620         * lib/allocsa.h: New file, from GNU gettext.
85621         * lib/allocsa.c: New file, from GNU gettext.
85622
85623 2004-01-18  Karl Berry  <karl@gnu.org>
85624
85625         * doc/gpl.texi, doc/lgpl.texi: new files.
85626
85627 2004-01-18  Karl Berry  <karl@gnu.org>
85628
85629         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
85630         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
85631
85632 2004-01-15  Paul Eggert  <eggert@twinsun.com>
85633
85634         Merge from coreutils.
85635
85636         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
85637         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
85638         (gl_DEFAULT_POSIX2_VERSION): Move
85639         the documentation from 'configure' into 'config.hin',
85640         so that 'configure --help' isn't burdened by it and
85641         we don't have to worry about its formatting there.
85642         Reword the documentation so that it's more succinct
85643         and can be run together into a single paragraph.
85644         * m4/same.m4 (gl_SAME): Check for pathconf.
85645
85646 2004-01-15  Paul Eggert  <eggert@twinsun.com>
85647
85648         Merge from coreutils.
85649
85650         * lib/posixver.c: Include posixver.h.
85651
85652         * lib/same.c: Include <stdbool.h>, <limits.h>.
85653         (_POSIX_NAME_MAX): Define if not defined.
85654         (MIN): New macro.
85655         (same_name): If file names are silently truncated, report
85656         that the file names are the same if they are the same after
85657         the silent truncation.
85658
85659         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
85660         conversion function.
85661         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
85662         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
85663         longer needed.
85664
85665 2004-01-15  Jim Meyering  <jim@meyering.net>
85666
85667         Merge from coreutils.
85668
85669         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
85670         if no library is required.
85671         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
85672         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
85673         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
85674         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
85675         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
85676         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
85677         value, $ac_cv_search_crypt, if it's "none required".
85678         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
85679         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
85680         not gl_FUNC_GETLOADAVG.
85681         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
85682         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
85683
85684 2004-01-15  Jim Meyering  <jim@meyering.net>
85685
85686         Merge from coreutils.
85687
85688         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
85689         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
85690         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
85691
85692         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
85693         optional configure-time default.
85694
85695         * lib/version-etc.c (version_etc_copyright): Update copyright date.
85696
85697         * lib/xreadlink.c (xreadlink): Correct outdated comment.
85698
85699 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
85700
85701         Merge from coreutils.
85702
85703         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
85704         value, $ac_cv_search_nanosleep, if it's "none required".
85705
85706 2004-01-14  Paul Eggert  <eggert@twinsun.com>
85707
85708         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
85709         with like-named macro in fnmatch.c.
85710         (EXT): Use an internal constant instead.
85711
85712         Merge fnmatch patches from glibc.
85713         * lib/fnmatch.c (mbsinit): Remove define.
85714         Add libc_hidden_ver (__fnmatch, fnmatch).
85715         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
85716         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
85717
85718 2004-01-14  Karl Berry  <karl@gnu.org>
85719
85720         * config/install-sh: update from automake.
85721
85722 2004-01-13  Karl Berry  <karl@gnu.org>
85723
85724         * config/install-sh: update from automake.
85725
85726 2004-01-09  Karl Berry  <karl@gnu.org>
85727
85728         * config/install-sh: update from automake.
85729
85730 2004-01-05  Karl Berry  <karl@gnu.org>
85731
85732         * config/config.{sub,guess}: update from config.
85733
85734 2003-12-31  Karl Berry  <karl@gnu.org>
85735
85736         * config/depcomp: update from automake.
85737
85738 2003-12-14  Karl Berry  <karl@gnu.org>
85739
85740         * lib/config.charset: update from gettext-runtime.
85741
85742 2003-12-03  Paul Eggert  <eggert@twinsun.com>
85743
85744         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
85745         Bug reported by Alfred M. Szmidt.
85746
85747 2003-12-03  Bruno Haible  <bruno@clisp.org>
85748
85749         * m4/gettext.m4: Upgrade from gettext-0.13.
85750         * m4/po.m4: Upgrade from gettext-0.13.
85751         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
85752         * m4/intmax.m4: New file, from gettext-0.13.
85753         * m4/printf-posix.m4: New file, from gettext-0.13.
85754
85755 2003-11-29  Karl Berry  <karl@gnu.org>
85756
85757         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
85758
85759 2003-11-25  Paul Eggert  <eggert@twinsun.com>
85760             Bruno Haible  <bruno@clisp.org>
85761
85762         * lib/printf-parse.h: Don't include sys/types.h.
85763         (ARG_NONE): New macro.
85764         (char_directive): Change type of *arg_index fields to size_t.
85765         * lib/printf-parse.c: Don't include sys/types.h.
85766         (SSIZE_MAX): Remove macro.
85767         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
85768         Remove unnecessary overflow check.
85769         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
85770         fields.
85771
85772 2003-11-25  Bruno Haible  <bruno@clisp.org>
85773
85774         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
85775
85776 2003-11-25  Bruno Haible  <bruno@clisp.org>
85777
85778         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
85779         gt_TYPE_SSIZE_T.
85780
85781 2003-11-24  Paul Eggert  <eggert@twinsun.com>
85782
85783         * modules/alloca: Remove dependency on xalloc.
85784
85785 2003-11-24  Paul Eggert  <eggert@twinsun.com>
85786
85787         * lib/alloca.c: Remove dependency on xalloc module.
85788         (xalloc_die): Remove.
85789         (memory_full) [!defined emacs]: New macro.
85790         [!defined emacs]: Don't include xalloc.h.
85791         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
85792         address arithmetic overflows.  Change datatypes a bit to avoid
85793         unnecessary casts.
85794
85795 2003-11-22  Jim Meyering  <jim@meyering.net>
85796
85797         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
85798         s/size/size_t/.
85799
85800 2003-11-21  Karl Berry  <karl@gnu.org>
85801
85802         * config/config.{sub,guess}: update from config.
85803
85804 2003-11-18  Karl Berry  <karl@gnu.org>
85805
85806         * config/config.{sub,guess}: update from config.
85807
85808         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
85809
85810 2003-11-17  Paul Eggert  <eggert@twinsun.com>
85811
85812         * README: Mention that S+T cannot overflow if S is the size of
85813         an existing object and T is sufficiently small.
85814
85815 2003-11-17  Jim Meyering  <jim@meyering.net>
85816
85817         On systems without utime and without a utimes function capable of
85818         dealing with a NULL struct utimbuf* argument, this utime replacement
85819         could -- in unusual circumstances -- leak a file descriptor.
85820         * lib/utime.c: Include <unistd.h> and <errno.h>.
85821         (utime_null): Be sure to close `fd' and to preserve errno.
85822         Reported by Geoff Collyer via Arnold Robbins.
85823
85824 2003-11-17  Bruno Haible  <bruno@clisp.org>
85825
85826         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
85827         (Depends-on): Add xsize.
85828
85829 2003-11-17  Bruno Haible  <bruno@clisp.org>
85830
85831         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
85832
85833 2003-11-17  Bruno Haible  <bruno@clisp.org>
85834
85835         * lib/vasnprintf.c (alloca): Remove fallback definition.
85836         (freea): Remove definition.
85837         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
85838         Reported by Paul Eggert.
85839
85840 2003-11-16  Paul Eggert  <eggert@twinsun.com>
85841             Bruno Haible  <bruno@clisp.org>
85842
85843         Protect against address arithmetic overflow.
85844         * lib/printf-args.h: Include stddef.h.
85845         (arguments): Change type of field 'count' to size_t.
85846         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
85847         'unsigned int' where appropriate.
85848         * lib/printf-parse.h: Include sys/types.h.
85849         (char_directive): Change type of *arg_index fields to ssize_t.
85850         (char_directives): Change type of fields 'count', max_*_length to
85851         size_t.
85852         * lib/printf-parse.c: Include sys/types.h and xsize.h.
85853         (SSIZE_MAX): Define fallback value.
85854         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
85855         instead of 'int' where appropriate. Check a_allocated, d_allocated
85856         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
85857         * lib/vasnprintf.c: Include xsize.h.
85858         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
85859         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
85860         overflow. Avoid wraparound when converting a width or precision from
85861         decimal to binary.
85862
85863 2003-11-16  Bruno Haible  <bruno@clisp.org>
85864
85865         Update from GNU gettext.
85866         * lib/printf-parse.c: Generalize to it can be compiled for wide
85867         strings.
85868         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
85869         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
85870         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
85871         SNPRINTF): New macros.
85872         Don't include <alloca.h> if the file is used inside libintl.
85873         (local_wcslen): New function, for Solaris 2.5.1.
85874         (VASNPRINTF): Use it instead of wcslen.
85875
85876 2003-11-16  Bruno Haible  <bruno@clisp.org>
85877
85878         * lib/xsize.h (xmax): New function.
85879         (xsum, xsum3, xsum4): Declare as "pure" functions.
85880
85881 2003-11-12  Paul Eggert  <eggert@twinsun.com>
85882
85883         * modules/xalloc (Files): Undo latest change, since xalloc.h
85884         no longer needs SIZE_MAX or PTRDIFF_MAX.
85885
85886 2003-11-12  Paul Eggert  <eggert@twinsun.com>
85887
85888         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
85889         gl_PTRDIFF_MAX.
85890
85891 2003-11-12  Paul Eggert  <eggert@twinsun.com>
85892
85893         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
85894         "return", to pacify some unknown compiler.  Problem reported
85895         by Joerg Schilling.
85896
85897 2003-11-12  Paul Eggert  <eggert@twinsun.com>
85898
85899         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
85900         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
85901         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
85902         heuristic is just as accurate as far as we know, and it removes a
85903         dependency on size_max.m4 and ptrdiff_max.m4.
85904
85905 2003-11-11  Bruno Haible  <bruno@clisp.org>
85906
85907         * modules/xsize (Files): Add m4/size_max.m4.
85908         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
85909
85910 2003-11-11  Bruno Haible  <bruno@clisp.org>
85911
85912         * m4/size_max.m4: New file.
85913         * m4/ptrdiff_max.m4: New file.
85914         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
85915         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
85916         (gl_XALLOC): Invoke it.
85917
85918 2003-11-11  Bruno Haible  <bruno@clisp.org>
85919
85920         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
85921         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
85922         defined.
85923
85924 2003-11-10  Paul Eggert  <eggert@twinsun.com>
85925
85926         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
85927         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
85928         rejected some allocations of exactly SIZE_MAX - 2 bytes.
85929         From Bruno Haible.
85930         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
85931         not (size_t) -1, since it's defined here.
85932
85933 2003-11-09  Karl Berry  <karl@gnu.org>
85934
85935         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
85936
85937 2003-11-06  Paul Eggert  <eggert@twinsun.com>
85938
85939         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
85940         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
85941         Reject sizes of exactly SIZE_MAX bytes.
85942         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
85943         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
85944
85945 2003-11-05  Bruno Haible  <bruno@clisp.org>
85946
85947         * lib/xsize.h: Include limits.h, to avoid a possible collision with
85948         SIZE_MAX defined in <limits.h> on Solaris.
85949
85950 2003-11-04  Jim Meyering  <jim@meyering.net>
85951
85952         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
85953         variable names, rather than @VAR@.
85954         * modules/poll: Likewise.
85955
85956 2003-11-04  Bruno Haible  <bruno@clisp.org>
85957
85958         * modules/xsize: New file.
85959         * modules/linebreak: Depend on xsize.
85960         * MODULES.html.sh (func_all_modules): Add xsize.
85961
85962 2003-11-04  Bruno Haible  <bruno@clisp.org>
85963
85964         * m4/xsize.m4: New file.
85965
85966 2003-11-04  Bruno Haible  <bruno@clisp.org>
85967
85968         * lib/xsize.h: New file.
85969         * lib/linebreak.c: Include xsize.h.
85970         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
85971         argument for overflow.
85972         Suggested by Paul Eggert.
85973
85974 2003-11-03  Karl Berry  <karl@gnu.org>
85975
85976         * config/config.{guess,sub}: update from config.
85977
85978 2003-11-03  Jim Meyering  <jim@meyering.net>
85979
85980         * modules/userspec (lib_SOURCES): Add userspec.h.
85981         (Include): Add "userspec.h".
85982         Improve description.
85983
85984 2003-11-03  Jim Meyering  <jim@meyering.net>
85985
85986         * lib/userspec.c: Include "userspec.h".
85987         * lib/userspec.h: New file.
85988
85989 2003-11-03  Bruno Haible  <bruno@clisp.org>
85990
85991         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
85992
85993 2003-11-03  Bruno Haible  <bruno@clisp.org>
85994
85995         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
85996         available, to avoid (extremely rare) race condition.
85997         Suggested by Paul Eggert.
85998
85999 2003-11-02  Karl Berry  <karl@gnu.org>
86000
86001         * config/srclist.txt (vasprintf.c): sync broken, sigh.
86002
86003 2003-10-31  Paul Eggert  <eggert@twinsun.com>
86004
86005         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
86006         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
86007         (read_filesystem_list): Set and use me_type_malloced.
86008         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
86009         whatever the type happens to be), for brevity and consistency.
86010         Check for size calculation overflow on Alphas running OSF/1.
86011
86012 2003-10-31  Jim Meyering  <jim@meyering.net>
86013
86014         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
86015
86016         * lib/linebuffer.c: Include <string.h> for declaration of memset.
86017
86018 2003-10-30  Paul Eggert  <eggert@twinsun.com>
86019             Bruno Haible  <bruno@clisp.org>
86020
86021         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
86022         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
86023
86024 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
86025
86026         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
86027         netbsd*-gnu*.  Suggested by Robert Millan.
86028
86029 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86030
86031         * modules/group-member: Depend on stdbool.
86032
86033 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86034
86035         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
86036
86037 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86038
86039         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
86040         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
86041         after the 'gnu' in these cases.  This fixes some bugs in the
86042         previous change, and is based on suggestions by Robert Millan.
86043
86044 2003-10-29  Paul Eggert  <eggert@twinsun.com>
86045
86046         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
86047         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
86048         no longer needed.
86049         * lib/quotearg.c (quotearg_n_options): Use it.
86050         * lib/group-member.c: Include <stdbool.h>.
86051         (free_group_info): Arg is now const *; don't free arg.
86052         (get_group_info): Now returns bool and accepts struct group_info *,
86053         rather than returning a malloc'ed struct group_info *.
86054         All uses changed.  Check for overflow in internal size calculation.
86055
86056         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
86057         rather than xmalloc/xrealloc.
86058         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
86059         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
86060         conformance bug: the old code used a pointer after freeing the
86061         storage that it addressed.
86062         * lib/hash.c (hash_initialize): Simplify the code by using
86063         xalloc_oversized rather than doing it by hand.
86064         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
86065         the buffer preserved.  Use free and xmalloc instead.
86066         * lib/quotearg.c (quotearg_n_options): Likewise.
86067         Use a simpler test for size overflow.  Don't use xalloc_oversized
86068         because unsigned int might be wider than size_t (!); this suggests
86069         that we should switch from unsigned int to size_t for slot numbers.
86070
86071 2003-10-28  Paul Eggert  <eggert@twinsun.com>
86072
86073         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
86074         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
86075         NetBSD kernels.  Requested by Richard Stallman.
86076
86077 2003-10-27  Paul Eggert  <eggert@twinsun.com>
86078
86079         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
86080         to allocate the returned structure.  Do not allocate a subarray,
86081         as x2nrealloc will do that.
86082         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
86083         instead of xnrealloc.
86084         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
86085
86086 2003-10-27  Bruno Haible  <bruno@clisp.org>
86087
86088         * lib/stdbool_.h: Better support for BeOS.
86089
86090 2003-10-26  Paul Eggert  <eggert@twinsun.com>
86091
86092         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
86093         now uses inline.
86094
86095 2003-10-26  Paul Eggert  <eggert@twinsun.com>
86096
86097         * lib/xalloc.h (xalloc_oversized): New static inline function, for
86098         callers that want to do their own size-overflow checking.  Include
86099         <stdbool.h>, since xalloc_oversized returns bool.
86100         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
86101         to use xalloc_oversized.
86102
86103         Add two functions x2realloc, x2nrealloc, for programs that grow
86104         arrays dynamically by doubling their sizes.
86105         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
86106         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
86107         New functions.
86108
86109         Port to C99 semantics for 'inline' of external functions.
86110         Bug reported by Bruno Haible.
86111         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
86112         with the old contents of xnmalloc.
86113         (xnmalloc, xmalloc): Use it.
86114         (xnrealloc_inline): New static inline function,
86115         with the old contents of xnrealloc.
86116         (xnrealloc, xrealloc): Use it.
86117
86118         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
86119         that.
86120
86121 2003-10-26  Karl Berry  <karl@gnu.org>
86122
86123         * config/srclist.txt (COPYING.DOC): no longer available from
86124         /gd/gnuorg; don't know where the ultimate source is.
86125
86126 2003-10-25  Paul Eggert  <eggert@twinsun.com>
86127
86128         Fix several address-calculation bugs in the hash modules,
86129         plus some minor code cleanup.
86130
86131         * lib/hash.h: Include <stdbool.h>, for bool.
86132         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
86133         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
86134         hash_get_n_entries, hash_get_max_bucket_length,
86135         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
86136         hash_rehash): Use size_t rather than unsigned.
86137         * lib/hash.c (struct hash_table, hash_get_n_buckets,
86138         hash_get_n_buckets_used, hash_get_n_entries,
86139         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
86140         hash_get_entries, hash_do_for_each, hash_string, is_prime,
86141         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
86142         Likewise.
86143         (SIZE_MAX): Define if not defined.
86144         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
86145         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
86146         hash_print):
86147         Use const * when possible.
86148         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
86149         (check_tuning): Fix bug: if tuning parameters were very close to
86150         0 or 1, rounding errors could have caused subscript violations.
86151         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
86152         (hash_initialize): Add 'fail:' label
86153         to free table and return NULL, and use it to simplify code.
86154         Use calloc rather than clearing the storage ourself.
86155         (hash_initialize, hash_rehash): Check for arithmetic overflow in
86156         buffer size calculations.
86157         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
86158         Include <stddef.h>, for size_t.
86159         * lib/hash-pjw.c (hash_pjw): Likewise.
86160         Switch to method described by Bruno Haible.
86161         Include <limits.h>, for CHAR_BIT.
86162         (SIZE_BITS): New macro.
86163
86164 2003-10-23  Paul Eggert  <eggert@twinsun.com>
86165
86166         * m4/getline.m4 (AM_FUNC_GETLINE):
86167         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
86168         hosts.  Problem reported by Derek Robert Price in
86169         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
86170         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
86171         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
86172
86173 2003-10-21  Paul Eggert  <eggert@twinsun.com>
86174
86175         * lib/getndelim2.c (getndelim2): When size calculation overflows,
86176         ceiling the allocation at NMAX bytes rather than silently
86177         discarding input bytes before NMAX is reached.  This makes
86178         a difference only if NMAX exceeds SIZE_MAX / 2.
86179
86180         * lib/obstack.c: Merge from glibc.
86181         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
86182         Add libc_hidden_def (_obstack_newchunk).
86183         (_obstack_free) [! defined _LIBC]: Remove.
86184         [defined _LIBC]: Make a strong alias from obstack_free, rather than
86185         a clone of the function body.
86186         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
86187         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
86188
86189         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
86190         glibc.
86191         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
86192         arg to memcpy.
86193
86194         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
86195         (obstack_ptr_grow_fast, obstack_int_grow_fast):
86196         Don't use lvalue casts, as GCC plans to remove support for them
86197         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
86198         was also present in the non-GCC version, indicating that this
86199         code had always been buggy and had never been widely used.
86200         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
86201         Use the fast variant of each macro, rather than copying the
86202         definiens of the fast variant; that way, we'll be more likely to
86203         catch future bugs in the fast variants.
86204
86205 2003-10-20  Bruno Haible  <bruno@clisp.org>
86206
86207         * modules/wait-process: New file.
86208         * MODULES.html.sh (func_all_modules): Add wait-process.
86209
86210 2003-10-20  Bruno Haible  <bruno@clisp.org>
86211
86212         * m4/wait-process.m4: New file.
86213
86214 2003-10-20  Bruno Haible  <bruno@clisp.org>
86215
86216         * lib/wait-process.h: New file, from GNU gettext.
86217         * lib/wait-process.c: New file, from GNU gettext.
86218
86219 2003-10-19  Jim Meyering  <jim@meyering.net>
86220
86221         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
86222         HPUX 10.20.
86223
86224 2003-10-18  Karl Berry  <karl@gnu.org>
86225
86226         * config/config.guess: update from config.
86227
86228 2003-10-16  Paul Eggert  <eggert@twinsun.com>
86229
86230         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
86231         (getgroups): First arg is int, not size_t.
86232         Don't let 'free' mangle errno.
86233
86234 2003-10-16  Paul Eggert  <eggert@twinsun.com>
86235
86236         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
86237
86238 2003-10-16  Karl Berry  <karl@gnu.org>
86239
86240         * config/config.{guess,sub}: update from config.
86241
86242 2003-10-16  Jim Meyering  <jim@meyering.net>
86243
86244         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
86245         memcpy.
86246
86247 2003-10-15  Paul Eggert  <eggert@twinsun.com>
86248
86249         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
86250         (SIZE_MAX): Remove.
86251         (new_exclude, add_exclude_file): Initial size no longer needs to
86252         be a power of 2.
86253         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
86254         our own address arithmetic overflow checking.
86255
86256         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
86257         (fnmatch): Do not alloca more than 2000 wide characters;
86258         instead, use malloc for large buffers.
86259         Check for address arithmetic overflow, and return -1
86260         with errno set to ENOMEM in that case.
86261         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
86262         (NEW_PATTERN): Do not alloca more than 8000 bytes;
86263         instead, return -1.  Check for address arithmetic overflow.
86264
86265 2003-10-14  Paul Eggert  <eggert@twinsun.com>
86266
86267         Handle invalid suffixes and overflow independently, so that
86268         callers can treat them independently as needed.  Fix some bugs in
86269         suffix handling, e.g., "100k@" was not diagnosed as an invalid
86270         suffix for a human-readable blocksize.  The major caller-visible
86271         change is the addition of a new
86272         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
86273         that both overflow and suffix chars were found.
86274
86275         * lib/human.c (humblock): Don't check separately for invalid suffix
86276         char; that is xstrtoumax's job (now that its bug is fixed).
86277         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
86278         INTMAX_MAX]: New macros.
86279         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
86280         TYPE_MAXIMUM): New macros.
86281         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
86282         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
86283         if overflow occurs, as it's what __strtol does and it's more useful
86284         in practice.
86285         (__xstrtol): If __strtol reports some error other than ERANGE,
86286         reflect it to the caller as LONGINT_INVALID.  If it reports
86287         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
86288         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
86289         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
86290         value.
86291         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
86292         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
86293         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
86294         [defined UINTMAX_MAX]: New macros.
86295
86296 2003-10-14  Bruno Haible  <bruno@clisp.org>
86297
86298         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
86299
86300 2003-10-14  Bruno Haible  <bruno@clisp.org>
86301
86302         * m4/sig_atomic_t: New file, from GNU gettext.
86303         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
86304
86305 2003-10-14  Bruno Haible  <bruno@clisp.org>
86306
86307         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
86308         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
86309         Also use volatile where needed.
86310
86311 2003-10-12  Paul Eggert  <eggert@twinsun.com>
86312
86313         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
86314         Change maintainer from Bruno Haible to 'all'.
86315
86316 2003-10-12  Paul Eggert  <eggert@twinsun.com>
86317
86318         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
86319
86320 2003-10-12  Paul Eggert  <eggert@twinsun.com>
86321
86322         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
86323         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
86324         and define in terms of the other primitives.
86325         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
86326         (SIZE_MAX): Define if not already defined.
86327         (array_size_overflow): New function.
86328         (xalloc_die): Abort instead of exiting if 'error' returns.
86329         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
86330         (xmalloc, xrealloc): Use them.
86331         (xcalloc): Check for address arithmetic overflow.
86332         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
86333         a bit faster than strcpy.
86334
86335 2003-10-10  Simon Josefsson  <jas@extundo.com>
86336
86337         * modules/argp (Depends-on): Add restrict and strcase.
86338
86339 2003-10-10  Simon Josefsson  <jas@extundo.com>
86340
86341         * m4/argp.m4: Add AC_C_INLINE.
86342
86343 2003-10-08  Paul Eggert  <eggert@twinsun.com>
86344
86345         Merge getpass from libc, plus a few fixes.
86346
86347         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
86348         Include <stdbool.h>.
86349         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
86350         __fsetlocking to empty.
86351         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
86352         do include <bits/libc-lock.h>.
86353         Do not include <fcntl.h>; not needed.
86354         [_LIBC]: Include <wchar.h>.
86355         (NOTCANCEL_MODE): New macro.
86356         (flockfile, funlockfile) [_LIBC]: New macros.
86357         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
86358         [!_LIBC]: New macros.
86359         (call_fclose): New function.
86360         (getpass): Use it.  Save tty stream separately; this simplifies the
86361         code and makes it more reliable if stdin happens to equal stdout.
86362         Invoke __fsetlocking on tty.
86363         Handle thread cancellation if needed.
86364         Namespace cleanup (use __tcgetattr, __getline).
86365         Use bool for Booleans.
86366         [USE_IN_LIBIO]: Handle wide streams.
86367         [!_LIBC]: Unconditionally do the fseek, since we don't know what
86368         stream might go where.
86369
86370         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
86371         doesn't have to include <stdio.h> before us.
86372         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
86373         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
86374         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
86375         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
86376         if not declared, so that we can use getpass.c code from libc without
86377         rewriting it.
86378         (flockfile, ftrylockfile, funlockfile): New macros.
86379
86380 2003-10-08  Paul Eggert  <eggert@twinsun.com>
86381
86382         * modules/getpass: Depend on stdbool.
86383
86384 2003-10-08  Paul Eggert  <eggert@twinsun.com>
86385
86386         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
86387
86388 2003-10-07  Karl Berry  <karl@gnu.org>
86389
86390         * config/config.{guess,sub}: update from config.
86391
86392 2003-10-06  Jim Meyering  <jim@meyering.net>
86393             Bruno Haible  <bruno@clisp.org>
86394
86395         This lets translators provide better translations for the
86396         "Written by ..." part of --version output.
86397         * lib/version-etc.h: Include stdarg.h.
86398         (version_etc_copyright): Declare as readonly.
86399         (version_etc): Make this function variadic with a NULL-terminated list
86400         of author name strings.
86401         (version_etc_va): New declaration.
86402         * lib/version-etc.c: Include stdarg.h, stdlib.h.
86403         (version_etc_copyright): Declare as readonly.
86404         (version_etc_va): New function. Provide a different translatable string
86405         for each possible number of authors < 10. Abbreviate when there are 10
86406         authors or more.
86407         (version_etc): Make this function variadic. Call version_etc_va.
86408         Suggestion from Gary V. Vaughan.
86409
86410         * lib/long-options.h (parse_long_options): Change prototype: the
86411         authors string is moved to the end and becomes variadic.
86412         * lib/long-options.c: Include stdarg.h.
86413         (parse_long_options): Make this function variadic, too.
86414         Call version_etc_va, not version_etc.
86415
86416 2003-10-06  Bruno Haible  <bruno@clisp.org>
86417
86418         * modules/version-etc-2: Remove file.
86419         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
86420
86421 2003-10-06  Bruno Haible  <bruno@clisp.org>
86422
86423         * modules/fatal-signal: New file.
86424         * MODULES.html.sh (func_all_modules): Add fatal-signal.
86425
86426 2003-10-06  Bruno Haible  <bruno@clisp.org>
86427
86428         * m4/fatal-signal.m4: New file.
86429         * m4/signalblocking.m4: New file, from GNU gettext.
86430
86431 2003-10-06  Bruno Haible  <bruno@clisp.org>
86432
86433         * lib/version-etc-2.h: Remove file.
86434         * lib/version-etc-2.c: Remove file.
86435
86436 2003-10-06  Bruno Haible  <bruno@clisp.org>
86437
86438         * lib/fatal-signal.h: New file, from GNU gettext.
86439         * lib/fatal-signal.c: New file, from GNU gettext.
86440
86441 2003-10-05  Paul Eggert  <eggert@twinsun.com>
86442
86443         * README: Rework advice for preventing empty .o files.
86444         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
86445         not <sys/types.h>.
86446
86447 2003-10-04  Karl Berry  <karl@gnu.org>
86448
86449         * lib/argp*: update from libc.
86450
86451 2003-10-04  Karl Berry  <karl@gnu.org>
86452
86453         * config/config.{guess,sub}: update from config.
86454
86455 2003-10-02  Bruno Haible  <bruno@clisp.org>
86456
86457         * modules/lchown (Include): Add lchown.h.
86458         * modules/time_r (Include): Use "..." syntax.
86459         * modules/xgetdomainname (Include): Add xgetdomainname.h.
86460
86461 2003-10-01  Simon Josefsson  <jas@extundo.com>
86462
86463         * MODULES.html.sh (func_all_modules): Move gethostname from section
86464         'based on' to section 'lacking' POSIX:2001.
86465
86466 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
86467
86468         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
86469         to output mode on the same stream.
86470
86471 2003-09-29  Paul Eggert  <eggert@twinsun.com>
86472
86473         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
86474         Fix arg typo in previous patch.
86475
86476 2003-09-28  Jim Meyering  <jim@meyering.net>
86477
86478         * lib/error.c: Correct cpp indentation.
86479
86480 2003-09-27  Paul Eggert  <eggert@twinsun.com>
86481
86482         * modules/free: New file.
86483
86484 2003-09-27  Paul Eggert  <eggert@twinsun.com>
86485
86486         * m4/free.m4: New file.
86487
86488 2003-09-27  Paul Eggert  <eggert@twinsun.com>
86489
86490         * lib/minmax.h (MIN, MAX)
86491         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
86492         Omit the special code that used __typeof__, since we worry that
86493         it could be more trouble than it's worth.  See:
86494         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
86495         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
86496
86497         * lib/free.c: New file.
86498
86499 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
86500
86501         Trivial fixes to Makefile.am parts of module listings.
86502         * modules/strstr: Append strstr.h to lib_SOURCES.
86503         * modules/strcase: Likewise, for strcase.h.
86504
86505 2003-09-27  Karl Berry  <karl@gnu.org>
86506
86507         * config/mkinstalldirs: update from automake.
86508
86509 2003-09-26  Paul Eggert  <eggert@twinsun.com>
86510
86511         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
86512         (error_tail): Do not loop, reallocating temporary buffer, since
86513         the output cannot contain more wide characters than the input
86514         contains bytes, the size must be big enough already.  This avoids
86515         one potential size overflow calculation.  Check for size overflow
86516         when calculating temporary buffer size.  Free temporary buffer
86517         when done, if it was allocated with malloc; this plugs a memory
86518         leak.  Remove casts from void * to pointers, that are no longer
86519         needed now that we're assuming C89 or better.
86520
86521         Merge error changes from glibc.
86522
86523         * lib/error.c, error.h: Update copyright notice header to match glibc.
86524         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
86525         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
86526         Disable cancellation while printing error.
86527         * lib/error.h: Prepend __ to parameter names.
86528
86529 2003-09-26  Jim Meyering  <jim@meyering.net>
86530
86531         * lib/error.c (error_tail): Move some declarations
86532         into inner scope where the local variables are used.
86533
86534 2003-09-26  Bruno Haible  <bruno@clisp.org>
86535
86536         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
86537         stpncpy().
86538         Don't define stpncpy through config.h; it's now done through stpncpy.h.
86539
86540 2003-09-26  Bruno Haible  <bruno@clisp.org>
86541
86542         * lib/stpncpy.h (gnu_stpncpy): New declaration.
86543         (stpncpy): Define as alias for gnu_stpncpy.
86544         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
86545
86546 2003-09-25  Simon Josefsson  <jas@extundo.com>
86547
86548         * lib/xgetdomainname.h: New file.
86549         * lib/xgetdomainname.c: New file.
86550
86551 2003-09-25  Simon Josefsson  <jas@extundo.com>
86552             Bruno Haible  <bruno@clisp.org>
86553
86554         * modules/getdomainname: New file.
86555         * modules/xgetdomainname: New file.
86556         * MODULES.html.sh (func_all_modules): Add getdomainname,
86557         xgetdomainname.
86558
86559 2003-09-25  Simon Josefsson  <jas@extundo.com>
86560             Bruno Haible  <bruno@clisp.org>
86561
86562         * m4/getdomainname.m4: New file.
86563
86564 2003-09-25  Simon Josefsson  <jas@extundo.com>
86565             Bruno Haible  <bruno@clisp.org>
86566
86567         * lib/getdomainname.h: New file.
86568         * lib/getdomainname.c: New file.
86569
86570 2003-09-25  Karl Berry  <karl@gnu.org>
86571
86572         * lib/argp-fmtstream.c, argp-help.c: update from libc.
86573
86574 2003-09-25  Karl Berry  <karl@gnu.org>
86575
86576         * config/install-sh: update from automake.
86577
86578 2003-09-25  Bruno Haible  <bruno@clisp.org>
86579
86580         * modules/version-etc-2: New file, from modules/version-etc with
86581         modifications.
86582         * MODULES.html.sh (func_all_modules): Add version-etc-2.
86583
86584 2003-09-25  Bruno Haible  <bruno@clisp.org>
86585
86586         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
86587         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
86588
86589 2003-09-24  Simon Josefsson  <jas@extundo.com>
86590
86591         * modules/xgethostname: Add xgethostname.h.
86592
86593 2003-09-24  Paul Eggert  <eggert@twinsun.com>
86594
86595         * lib/linebuffer.c (freebuffer): Don't free the argument, just
86596         the buffer associated with the argument.  Bug reported by
86597         Simon Josefsson.
86598
86599 2003-09-24  Paul Eggert  <eggert@twinsun.com>
86600
86601         * README: Document assumptions that 'int' is at least 32 bits
86602         wide, that integer arithmetic is 2's complement without overflow,
86603         that there are no holes in integer values, that adding sizes of
86604         two nonoverlapping objects can't overflow, and that all-bits-zero
86605         yields scalar zero.  Fix spelling and capitalization typos.
86606
86607 2003-09-19  Karl Berry  <karl@gnu.org>
86608
86609         * lib/argp.h: update from libc.
86610
86611 2003-09-17  Paul Eggert  <eggert@twinsun.com>
86612
86613         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
86614         to avoid spurious warnings like "AC_RUN_IFELSE was called before
86615         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
86616
86617 2003-09-17  Paul Eggert  <eggert@twinsun.com>
86618
86619         * gnulib-tool: Use "test -h", not "test -L", for portability
86620         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
86621         (tags_regexp): Remove, since \| doesn't conform to POSIX.
86622         (sed_extract_prog): Issue s commands one-by-one, rather than
86623         using \| in one s command.
86624
86625 2003-09-16  Paul Eggert  <eggert@twinsun.com>
86626
86627         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
86628         input error, instead of returning NULL the next time we are called
86629         (and therefore losing track of errno).
86630
86631 2003-09-16  Bruno Haible  <bruno@clisp.org>
86632
86633         * gnulib-tool (func_create_testdir): Warn about duplicated
86634         dependencies.
86635
86636 2003-09-15  Paul Eggert  <eggert@twinsun.com>
86637
86638         * modules/argmatch, modules/fatal, modules/obstack,
86639         modules/xalloc, modules/xgethostname: Sort dependencies by
86640         importance, not alphabetically.
86641
86642 2003-09-15  Paul Eggert  <eggert@twinsun.com>
86643
86644         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
86645         fails, so that the caller gets the proper errno.
86646
86647         * lib/readutmp.c (read_utmp): Likewise.
86648         Check for fstat error.  Close stream and free storage
86649         when failing.
86650
86651 2003-09-14  Karl Berry  <karl@gnu.org>
86652
86653         * config/srclist.txt (strdup.c): disable for c89 changes.
86654
86655 2003-09-14  Jim Meyering  <jim@meyering.net>
86656
86657         * lib/getloadavg.c: Correct cpp indentation.
86658         * lib/strdup.c: Likewise.
86659         * lib/vasnprintf.c: Likewise.
86660
86661 2003-09-14  Bruno Haible  <bruno@clisp.org>
86662
86663         * modules/fwriteerror: New file.
86664         * MODULES.html.sh (func_all_modules): Add fwriteerror.
86665
86666 2003-09-14  Bruno Haible  <bruno@clisp.org>
86667
86668         * lib/fwriteerror.h: New file.
86669         * lib/fwriteerror.c: New file.
86670
86671 2003-09-12  Paul Eggert  <eggert@twinsun.com>
86672
86673         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
86674         modules/xgethostname, modules/xalloc: Depend on exit.
86675
86676 2003-09-12  Paul Eggert  <eggert@twinsun.com>
86677
86678         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
86679
86680         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
86681         and AC_MINIX, too, so that their extensions are available.
86682
86683         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
86684         This macro has been superseded by gl_BACKUPFILE.
86685
86686         More patches to assume C89 or better.
86687
86688         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
86689
86690         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
86691         unconditionally.
86692         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
86693         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
86694         Include <string.h>, <stdlib.h> unconditionally.
86695         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
86696         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
86697         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
86698         headers or for string.h.
86699         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
86700         or strtoul.
86701
86702         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
86703         headers.
86704         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
86705         * m4/userspec.m4 (gl_USERSPEC): Likewise.
86706         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
86707         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
86708         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
86709         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
86710         memcpy, memset.
86711         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
86712         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
86713         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
86714         strtol.
86715         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
86716         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
86717         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
86718         strtoul.
86719
86720 2003-09-12  Paul Eggert  <eggert@twinsun.com>
86721
86722         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
86723         * lib/obstack.c [!defined _LIBC]: Likewise.
86724         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
86725         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
86726         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
86727
86728         More changes to assume C89 or better.
86729
86730         * lib/error.c (error_tail): Assume vprintf.
86731
86732         * lib/argmatch.c (getenv): Remove decl.
86733         * lib/progreloc.c (get_full_program_name): Define via prototype.
86734         * lib/setenv.c (clearenv): Likewise.
86735         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
86736         needed.
86737         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
86738         (malloc, memcpy): Remove decls.
86739         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
86740         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
86741         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
86742         (memcpy): Remove macro.
86743         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
86744         (__P): Remove.  All uses removed.
86745         (PTR): Remove.  All uses changed to void *.
86746         (CHAR_BIT, NULL): Remove.
86747         (spaces, zeros, memset_space, memset_zero)
86748         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
86749         Remove.
86750         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
86751         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
86752         Define with prototype.
86753         Remove now-unnecessary prototype decl.
86754         (extra_args_spec): Assume ANSI C.  All uses changed.
86755         (extra_args_spec_iso): Remove.
86756         (my_strftime, emacs_strftimeu): Define via prototype.
86757         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
86758         unconditionally.
86759         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
86760         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
86761         (strtoul, strtol): Remove decls.
86762         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
86763         LONG_MAX): Remove.
86764         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
86765         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
86766         (LOCALE_PARAM_PROTO): New macro.
86767         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
86768         (INTERNAL (strtol), strtol): Define with a prototype.
86769         (PARAMS): Remove.  All uses removed.
86770         * lib/tempname.c: Include <string.h> unconditionally.
86771         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
86772         * lib/xgethostname.c (main): Define with a prototype.
86773         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
86774         Include <stdlib.h> unconditionally.
86775         (calloc, malloc, realloc, free): Remove decls.
86776         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
86777         Include <stdlib.h> unconditionally.  Sort include file names.
86778         (strtod): Remove.
86779         (xstrtod): Define with a prototype.
86780         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
86781         (strtol, strtoul): Remove decls.
86782
86783 2003-09-11  Paul Eggert  <eggert@twinsun.com>
86784
86785         More patches to assume C89 or better.
86786         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
86787         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
86788         string.h, memchr, STDC_HEADERS.
86789
86790 2003-09-11  Paul Eggert  <eggert@twinsun.com>
86791
86792         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
86793         Include <stdlib.h>, <string.h> unconditionally.
86794         Remove now-unnecessary cast to char *.
86795         * lib/strnlen.c: Include <string.h> unconditionally.
86796         * lib/yesno.c (yesno): Define with a prototype.
86797
86798 2003-09-11  Bruno Haible  <bruno@clisp.org>
86799
86800         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
86801
86802 2003-09-10  Jim Meyering  <jim@meyering.net>
86803
86804         * lib/error.c: Correct indentation of cpp directives.
86805
86806 2003-09-10  Bruno Haible  <bruno@clisp.org>
86807
86808         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
86809         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
86810         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
86811         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
86812         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
86813         <stdlib.h> and <string.h> checks.
86814         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
86815         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
86816
86817 2003-09-10  Bruno Haible  <bruno@clisp.org>
86818
86819         * lib/strcspn.c: Include <string.h> unconditionally.
86820         * lib/strpbrk.c: Include <string.h> unconditionally.
86821         * lib/strstr.c: Include <string.h> unconditionally.
86822         * lib/unicodeio.c: Include <string.h> unconditionally.
86823         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
86824         * lib/unsetenv.c: Likewise.
86825         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
86826         * lib/yesno.c: Include <stdlib.h> unconditionally.
86827         (rpmatch): Add prototype.
86828
86829 2003-09-09  Paul Eggert  <eggert@twinsun.com>
86830
86831         More patches to assume C89 or better.
86832         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
86833         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
86834         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
86835         or for string.h.
86836         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
86837         stdlib.h.
86838         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
86839         C headers.
86840         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
86841         string.h.
86842         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
86843         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
86844         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
86845         or for string.h.
86846         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
86847         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
86848         C headers.
86849         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
86850         memcpy.
86851         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
86852         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
86853         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
86854         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
86855         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
86856         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
86857         string.h, free.
86858         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
86859         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
86860         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
86861         C headers, or for string.h.
86862         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
86863         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
86864         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
86865         headers, memory.h, stdlib.h, string.h, strings.h.
86866         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
86867         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
86868         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
86869         strchr.
86870         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
86871         headers, memory.h, string.h.
86872         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
86873         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
86874         free.
86875         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
86876         headers.
86877         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
86878         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
86879         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
86880         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
86881         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
86882
86883 2003-09-09  Paul Eggert  <eggert@twinsun.com>
86884
86885         More K&R removal.
86886
86887         * lib/acosl.c (main): Use a prototype.
86888         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
86889         tanl.c: Likewise.
86890
86891         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
86892
86893         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
86894         (getopt, etopt_long, getopt_long_only, _getopt_internal)
86895         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
86896         with a prototype.
86897         * lib/getopt.c (const): Remove macro.
86898         Include <string.h> unconditionally.
86899         (my_index): Remove; all uses changed to strchr.
86900         (strlen): Remove decl.
86901         (exchange): Remove forward decl; no longer needed.
86902         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
86903         Define with prototype.
86904         * lib/getopt1.c (const): Remove macro.
86905         (getopt_long, getopt_long_only, main): Define with prototype.
86906
86907         * lib/getugroups.c: Include <string.h> unconditionally.
86908
86909         * lib/getusershell.c: Include <stdlib.h> unconditionally.
86910         (getusershell, setusershell, endusershell, readname, main):
86911         Define with prototypes.
86912
86913         * lib/group-member.c: Include group-member.h first.
86914         Include <stdlib.h> unconditionally.
86915
86916         * lib/hard-locale.c: Include hard-locale.h first.
86917         Include <stdlib.h>, <string.h> unconditionally.
86918
86919         * lib/hash.c (free, malloc): Remove decls.
86920         Include <stdlib.h> unconditionally.
86921
86922         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
86923         (getenv): Do not declare.
86924
86925         * lib/idcache.c: Include <string.h> unconditionally.
86926
86927         * lib/long-options.c: Include long-options.h first, to test interface.
86928         Include <stdlib.h> unconditionally.
86929
86930         * lib/makepath.c: Include makepath.h first, to test interface.
86931         Include <stdlib.h> and <string.h> unconditionally.
86932
86933         * lib/linebuffer.c: Include <stdlib.h>.
86934         (free): Remove decl.
86935
86936         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
86937         stddef.h. rpl_malloc returns void *, not char *.
86938         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
86939         prototype.
86940
86941         * lib/md5.h: Include <limits.h> unconditionally.
86942         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
86943         (__P): Remove; all uses removed.
86944         * lib/md5.c: Include "md5.h" first.
86945         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
86946         md5_buffer, md5_process_bytes, md5_process_block):
86947         Define with prototypes.
86948         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
86949         * lib/sha.c: Include "sha.h" first.
86950         Include <stdlib.h>, <string.h> unconditionally.
86951
86952         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
86953         * lib/memcmp.c (__ptr_t): Likewise.
86954         * lib/memrchr.c (__ptr_t): Likewise.
86955         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
86956         Include <string.h> unconditionally.
86957         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
86958         * lib/memchr.c: Include <stdlib.h> unconditionally.
86959         * lib/memchr.c (LONG_MAX): Remove.
86960         * lib/memrchr.c (LONG_MAX): Likewise.
86961         * lib/memchr.c (__memchr): Define via a prototype.
86962         * lib/memrchr.c (__memrchr): Likewise.
86963         * lib/memcmp.c (__P): Remove, and remove all uses.
86964         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
86965         Remove forward decls; no longer needed.
86966         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
86967         Use types required by C89 in prototype.
86968
86969         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
86970         * lib/savedir.c: Likewise.
86971         * lib/mkdir.c (free): Remove decl.
86972         * lib/rmdir.c (rmdir): Define with a prototype.
86973         * lib/savedir.c: Include savedir.h first, to test interface.
86974
86975         * lib/mktime.c (STDC_HEADERS): Remove.
86976         Include <stdlib.h>, <string.h> unconditionally.
86977
86978         * lib/modechange.c: Include <stdlib.h> unconditionally.
86979         (malloc): Remove decl.
86980
86981         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
86982         (free): Remove decl.
86983
86984         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
86985         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
86986         (This type really should be intptr_t, but that's a C99ism.)
86987         (_obstack_memcpy): Remove: all uses changed to memcpy.
86988         Include <string.h> unconditionally.
86989         (struct obstack): Assume __STDC__ for types of members
86990         chunkfun, freefun, extra_arg.
86991         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
86992         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
86993         obstack_begin, obstack_specify_allocation,
86994         obstack_specify_allocation_with_arg, obstack_chunkfun,
86995         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
86996         Remove unprototyped decls and the macros that use them.
86997         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
86998         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
86999         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
87000         (defined __STDC__ && __STDC__)]:
87001         Remove nonprototyped code.
87002         Include <stdlib.h> unconditionally.
87003         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
87004         _obstack_allocated_p, _obstack_free, obstack_free,
87005         _obstack_memory_used, print_and_abort):
87006         Define using prototypes.
87007         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
87008         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
87009         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
87010         obstack_next_free, obstack_object_size, obstack_room) [0]:
87011         Remove unused, unprototyped code.
87012
87013         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
87014
87015         * lib/physmem.c (physmem_total, physmem_available, main): Define
87016         with prototypes.
87017
87018         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
87019         (main): Define with a prototype.
87020
87021         * lib/posixver.c (getenv): Remove decl.
87022
87023         * lib/putenv.c (malloc): Returns void *, not char *.
87024         Include <string.h> unconditionally.
87025         (strchr, memcpy, NULL): Do not define.
87026
87027         * lib/readtokens.c: Include readtokens.h first, to test interface.
87028         Include <stdlib.h>, <string.h> unconditionally.
87029         (init_tokenbuffer): Define with a prototype.
87030
87031         * lib/regex.c (PARAMS): Remove.  All uses removed.
87032         All uses of _RE_ARGS removed, too.
87033         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
87034         unconditionally.
87035         (bzero): Assume memset exists.
87036         (memcmp, memcpy, NULL): Remove.
87037         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
87038         char, or assignments to local vars of type signed char.
87039         (init_syntax_once, PREFIX(extract_number_and_incr),
87040         PREFIX(print_partial_compiled_pattern),
87041         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
87042         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
87043         PREFIX(regex_grow_registers), PREFIX(regex_compile),
87044         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
87045         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
87046         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
87047         wcs_compile_range, byte_compile_range, truncate_wchar,
87048         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
87049         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
87050         count_mbs_length, wcs_re_match_2_internal,
87051         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
87052         PREFIX(alt_match_null_string_p),
87053         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
87054         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
87055         regfree, PREFIX(extract_number)): Define with prototype.  Remove
87056         now-unnecessary declaration, if any.
87057         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
87058         regcomp, regexec):
87059         Remove now-unnecessary casts among pointer types.
87060         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
87061
87062         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
87063         (free): Remove decl.
87064
87065         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
87066
87067         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
87068         (free): Remove decl.
87069
87070         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
87071         * lib/xgetcwd.c: Likewise.
87072
87073         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
87074         (free): Remove decl.
87075
87076         * lib/strchrnul.c (strchrnul): Define with a prototype.
87077         Fix bug: c_in was not converted to char before searching.
87078
87079         The following changes are not K&R related:
87080
87081         * lib/group-member.h: Include <sys/types.h>, so that this file is
87082         self-contained.
87083         * lib/makepath.h: Likewise.
87084
87085         * lib/getusershell.c (readname, default_index, line_size, readname):
87086         Use size_t, not int, for sizes.
87087         (readname): If the size overflows, report an error instead of
87088         looping forever.
87089
87090 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87091
87092         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
87093         libc.
87094
87095 2003-09-09  Paul Eggert  <eggert@twinsun.com>
87096
87097         * README: New section: portability guidelines.
87098
87099 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
87100
87101         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
87102         C89 spec.
87103
87104 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
87105
87106         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
87107
87108 2003-09-08  Paul Eggert  <eggert@twinsun.com>
87109
87110         Assume C89 or better; remove K&R cruft.
87111         A few of these changes were first proposed by Derek Robert Price
87112         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
87113
87114         * lib/addext.c: Include <string.h> unconditionally.
87115         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
87116         Don't declare getenv or malloc.
87117
87118         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
87119         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
87120         (NULL): Remove.
87121         (find_stack_direction, alloca): Use prototypes.
87122
87123         * lib/atexit.c (atexit): Define using a prototype.
87124
87125         * lib/basename.c, dirname.c, stripslash.c:
87126         Include <string.h> unconditionally.
87127
87128         * lib/bcopy.c: Include <stddef.h>.
87129         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
87130
87131         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
87132
87133         * lib/error.h (error, error_at_line, error_print_progname)
87134         [! (defined (__STDC__) && __STDC__)]: Remove decls.
87135         * lib/error.c: Include error.h first, to check interface.
87136         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
87137         (VA_START): Remove; all uses changeed to va_start.
87138         (exit, strerror): Remove decls.
87139         (error_print_progname): Prototype uncondionally.
87140         Don't include <errno.h>; no longer needed.
87141         (private_strerror): Remove.
87142         (error_tail): Always define.
87143         (error, error_at_line): Assume C89 or better; always use prototypes.
87144         * lib/fatal.c: Include "fatal.h" first, to test interface.
87145         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
87146         (VA_START): Remove; all uses changed to va_start.
87147         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
87148         this case.
87149         (exit): Remove decl.
87150         (fatal): Prototype unconditionally.  Assume va_start works.
87151         Abort at end, to pacify gcc.
87152
87153         * lib/euidaccess.c (main): Define with a prototype.
87154
87155         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
87156
87157         * lib/exitfail.c: Include <stdlib.h> unconditionally.
87158
87159         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
87160         prototypes.
87161         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
87162         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
87163         (getenv): Remove decl.
87164         (fnmatch): Define using a prototype.
87165         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
87166         (FCT): Define using a prototype.
87167
87168         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
87169
87170         * lib/gethostname.c: Include <stddef.h>.
87171         (gethostname): Define with prototype.  Length is size_t, not int.
87172
87173 2003-09-08  Paul Eggert  <eggert@twinsun.com>
87174
87175         Assume C89 or better; remove K&R cruft.
87176         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
87177         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
87178         string.h, getenv, malloc.
87179         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
87180         headers.
87181         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
87182         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
87183         do not check for strerror.
87184         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
87185         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
87186         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
87187         do not check for doprnt or vprintf.
87188         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
87189         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
87190
87191 2003-09-08  Paul Eggert  <eggert@twinsun.com>
87192
87193         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
87194         getversion.c should have been removed then, but was accidentally
87195         preserved.
87196
87197         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
87198         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
87199
87200 2003-09-08  Karl Berry  <karl@gnu.org>
87201
87202         * config/config.sub, config.guess, srclistvars.sh: update from savannah
87203                 config, forget about prep.
87204
87205         * config/depcomp, missing: update from automake.
87206
87207 2003-09-07  Paul Eggert  <eggert@twinsun.com>
87208
87209         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
87210         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
87211
87212 2003-09-07  Paul Eggert  <eggert@twinsun.com>
87213
87214         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
87215         copy_tm_result.  Bug reported by Simon Josefsson in
87216         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
87217
87218 2003-09-06  Paul Eggert  <eggert@twinsun.com>
87219
87220         * m4/time_r.m4: New file.
87221         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
87222         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
87223         is. Check for timegm declaration.
87224         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
87225         Do not check for gmtime_r.
87226         Replace mktime if __mktime_internal does not exist and if mktime
87227         hasn't been replaced already.
87228
87229 2003-09-06  Paul Eggert  <eggert@twinsun.com>
87230
87231         * lib/time_r.c, lib/time_r.h: New files.
87232
87233         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
87234         __localtime_r.
87235         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
87236         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
87237
87238         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
87239         __gmtime_r.
87240         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
87241         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
87242         Include <time_r.h>.
87243
87244         * lib/timegm.c: Switch to glibc implementation, with the following
87245         changes:
87246         [defined HAVE_CONFIG_H]: Include <config.h>.
87247         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
87248         (__mktime_internal) [!defined _LIBC]: New decl.
87249         (__gmtime_r) [!defined _LIBC]: New macro and function.
87250         (timegm): Use a prototype, since gnulib assumes C89.
87251         Do not bother declaring tmp to be const, as it's not really usefu.
87252         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
87253         (timegm): Declare only if HAVE_DECL_TIMEGM.
87254
87255 2003-09-06  Paul Eggert  <eggert@twinsun.com>
87256
87257         * MODULES.html.sh (func_all_modules): Add time_r.
87258         * modules/time_r: New file.
87259         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
87260         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
87261
87262 2003-09-03  Paul Eggert  <eggert@twinsun.com>
87263
87264         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
87265         Bug reported by Lute Kamstra in
87266         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
87267
87268         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
87269         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
87270         course with correspondingly smaller numbers for tomorrow and
87271         yesterday.  From Tadayoshi Funaba.  Originally installed into
87272         sh-utils on 1999-08-07, but the patch got lost (I guess during the
87273         coreutils merge?).
87274
87275 2003-08-31  Simon Josefsson  <jas@extundo.com>
87276
87277         * modules/timegm: New file.
87278         * MODULES.html.sh (func_all_modules): Add timegm.
87279
87280 2003-08-31  Simon Josefsson  <jas@extundo.com>
87281
87282         * m4/timegm.m4: New file.
87283
87284 2003-08-31  Simon Josefsson  <jas@extundo.com>
87285
87286         * lib/timegm.h: New file.
87287         * lib/timegm.c: New file.  Based on
87288         wget-1.8.2/src/http.c:mktime_from_utc.
87289
87290 2003-08-31  Karl Berry  <karl@gnu.org>
87291
87292         * lib/argp.h: update from libc.
87293
87294 2003-08-28  Bruno Haible  <bruno@clisp.org>
87295
87296         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
87297         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
87298         followed by '#define fnmatch fnmatch_posix' gives an error.
87299
87300 2003-08-28  Bruno Haible  <bruno@clisp.org>
87301
87302         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
87303         warning on QNX, which defines O_BINARY to 000000.
87304
87305 2003-08-27  Jim Meyering  <jim@meyering.net>
87306
87307         * m4/mkstemp.m4: Require that the system mkstemp be able to create
87308         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
87309         would fail after 32.  Reported by Danny Levinson.  Details here:
87310         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
87311
87312 2003-08-24  Bruno Haible  <bruno@clisp.org>
87313
87314         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
87315         MSVC7 <stdio.h> is included later.
87316
87317 2003-08-22  Simon Josefsson  <jas@extundo.com>
87318
87319         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
87320
87321 2003-08-20  Karl Berry  <karl@gnu.org>
87322
87323         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
87324
87325 2003-08-20  Bruno Haible  <bruno@clisp.org>
87326
87327         * modules/progname: New file.
87328         * MODULES.html.sh (func_all_modules): Add progname.
87329
87330 2003-08-20  Bruno Haible  <bruno@clisp.org>
87331
87332         * lib/progname.h: New file, from GNU gettext.
87333         * lib/progname.c: New file, from GNU gettext.
87334         * lib/progreloc.c: New file, from GNU gettext.
87335
87336 2003-08-19  Jim Meyering  <jim@meyering.net>
87337
87338         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
87339         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
87340
87341 2003-08-19  Bruno Haible  <bruno@clisp.org>
87342
87343         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
87344         more.
87345
87346 2003-08-19  Bruno Haible  <bruno@clisp.org>
87347
87348         * lib/xstrdup.c: Assume <string.h> exists.
87349
87350 2003-08-18  Paul Eggert  <eggert@twinsun.com>
87351
87352         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
87353         in makefile rules.
87354
87355 2003-08-18  Jim Meyering  <jim@meyering.net>
87356
87357         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
87358         * m4/lib-ld.m4: Likewise.
87359
87360 2003-08-18  Jim Meyering  <jim@meyering.net>
87361
87362         * lib/setenv.h: Indent nested cpp directive.
87363         * lib/vasnprintf.c: Remove trailing blanks.
87364
87365 2003-08-17  Simon Josefsson  <jas@extundo.com>
87366
87367         * modules/xstrndup: New file.
87368         * MODULES.html.sh (func_all_modules): Add xstrndup.
87369
87370 2003-08-17  Simon Josefsson  <jas@extundo.com>
87371
87372         * modules/argp: Fix autoconf macro name. Add more dependencies.
87373
87374 2003-08-17  Simon Josefsson  <jas@extundo.com>
87375
87376         * m4/xstrndup.m4: New file.
87377
87378 2003-08-17  Simon Josefsson  <jas@extundo.com>
87379
87380         * m4/argp.m4: New file.
87381
87382 2003-08-17  Simon Josefsson  <jas@extundo.com>
87383             Bruno Haible  <bruno@clisp.org>
87384
87385         * lib/xstrndup.h: New file.
87386         * lib/xstrndup.c: New file.
87387
87388 2003-08-17  Bruno Haible  <bruno@clisp.org>
87389
87390         * modules/strndup (Files, Include): Add lib/strndup.h.
87391
87392 2003-08-17  Bruno Haible  <bruno@clisp.org>
87393
87394         * modules/euidaccess (Files): Add lib/euidaccess.h.
87395
87396 2003-08-17  Bruno Haible  <bruno@clisp.org>
87397
87398         * lib/strndup.h: New file.
87399
87400 2003-08-17  Bruno Haible  <bruno@clisp.org>
87401
87402         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
87403         like AC_GNU_SOURCE.
87404         * modules/extensions (configure.ac): Comment out the invocation of
87405         gl_USE_SYSTEM_EXTENSIONS.
87406
87407 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87408
87409         Merges from coreutils, etc.
87410         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
87411         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
87412         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
87413         fixing a typo.
87414         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
87415         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
87416
87417 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87418
87419         Document merge from coreutils.
87420         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
87421         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
87422         * modules/utime: Add m4/utimes-null.m4.
87423
87424 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87425
87426         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
87427         space, undoing this 2003-08-12 change:
87428         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
87429
87430 2003-08-16  Paul Eggert  <eggert@twinsun.com>
87431
87432         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
87433         strtoul.c from libc, undoing this 2003-08-12 change:
87434         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
87435
87436 2003-08-16  Jim Meyering  <jim@meyering.net>
87437
87438         Merges from coreutils.
87439         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
87440         prefix.  Adjust cache variables similarly.  Create 500 rather than
87441         just 300 files, to exercise bug on Darwin6.5, too.
87442         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
87443         $missing_dir.
87444         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
87445         AM_SYS_POSIX_TERMIOS.
87446         Reported by mkc@mathdogs.com.
87447         Also change use of $am_cv_sys_posix_termios
87448         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
87449         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
87450         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
87451         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
87452         in /proc/mounts until it finds one with matching device number.  This
87453         is unnecessary when the FILE argument *is* a mount point.  No stat call
87454         is necessary in that case.  So, disable the statvfs-testing code on
87455         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
87456         as RedHat bug# 84846.
87457         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
87458         to 1MB, so as not to render systems with no stack size limit (e.g.,
87459         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
87460         Include <unistd.h>.  On some systems,
87461         it is required for the definition of _SC_PAGESIZE.
87462
87463 2003-08-16  Jim Meyering  <jim@meyering.net>
87464
87465         Merge from coreutils.
87466         * lib/xstrtoimax.c: #else #if -> #elif.
87467         * lib/xstrtoumax.c: Likewise.
87468
87469 2003-08-16  Jim Meyering  <jim@meyering.net>
87470
87471         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
87472         * m4/utimes.m4: Removed.
87473         * m4/utimes-null.m4: Renamed from utimes.m4.
87474
87475         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
87476         to 1MB, so as not to render systems with no stack size limit (e.g.,
87477         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
87478         Include <unistd.h>.  On some systems,
87479         it is required for the definition of _SC_PAGESIZE.
87480
87481 2003-08-16  Jim Meyering  <jim@meyering.net>
87482         and Paul Eggert  <eggert@cs.ucla.edu>
87483
87484         Merges from coreutils, etc.
87485
87486         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
87487         using the latest version from cvs.  This avoids problems with #line
87488         directives using a vendor (Sun) compiler.
87489         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
87490         Don't set GETGROUPS_LIB here; now it's
87491         done via getgroups.m4's wrapper function.
87492         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
87493         rather than just in sh-util/configure.in, so that the
87494         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
87495         same.
87496         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
87497         AC_FUNC_GETLOADAVG where to find getloadavg.c.
87498         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
87499         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
87500         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
87501         Remove code that is now done by the newly-required macros.
87502         Append $(EXEEXT) to DF_PROG.
87503         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
87504         Do not invoke or require the following here,
87505         since prereq.m4 or some gnulib .m4 now does this for us:
87506         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
87507         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
87508         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
87509         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
87510         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
87511         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
87512         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
87513         AC_FUNC_OBSTACK.
87514         Do not replace the following functions, as this is now the job
87515         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
87516         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
87517         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
87518         atexit getpass, strdup, getpagesize.
87519         Replace 'raise'.
87520         Do not check for the following functions, as this is now the job
87521         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
87522         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
87523         setregid.
87524         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
87525         Check for sys/sysctl.h.
87526         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
87527         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
87528         of checking for ssize_t ourselves.
87529
87530         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
87531         Require every macro that gnulib/modules/* suggests for us.
87532         (jm_PREREQ_ADDEXT): New macro.
87533         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
87534         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
87535
87536         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
87537         (gl_PHYSMEM): Use it.
87538         Also check for `table' function.
87539         Check for new headers and functions.
87540         Add check for sys/sysmp.h.
87541         With suggestions from Kaveh Ghazi.
87542         Ignore headers that are present but cannot be compiled.  This
87543         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
87544         C 5.4.
87545
87546 2003-08-15  Paul Eggert  <eggert@twinsun.com>
87547
87548         Document merge from coreutils.
87549         * modules/userspec: Depend on posixver.
87550         * modules/strftime: Depend on tzset.
87551
87552 2003-08-15  Paul Eggert  <eggert@twinsun.com>
87553
87554         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
87555         rather than tab, after '#' in shell-script copyright notices.
87556         Suggested by Bruno Haible.
87557
87558 2003-08-15  Paul Eggert  <eggert@twinsun.com>
87559
87560         * config/srclist-update: Use three spaces, rather than tab, after '#'
87561         in shell-script copyright notices.  Suggested by Bruno Haible.
87562         Remove unnecessary parenthesization in regular expression.
87563
87564 2003-08-15  Jim Meyering  <jim@meyering.net>
87565
87566         Merge from coreutils.
87567         * lib/xgethostname.c: Include <stdlib.h>.
87568         (xghostname): Don't exit for anything other than memory-related
87569         failure; just return NULL.
87570         * lib/userspec.c: Include "posixver.h".
87571         (parse_user_spec): Accept `.' as a separator only
87572         in pre-POSIX-200112 mode.
87573         * lib/strtoimax.c: Use #elif rather than #else #if.
87574         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
87575         Remove function, now that we can rely on a working tzset function.
87576         [!_LIBC]: Ensure that the required autoconf test has been run.
87577         [!defined _NL_CURRENT && HAVE_STRFTIME]:
87578         Use underlying_strftime for %r.
87579         * lib/sha.c: Merge in some clean-up and optimization changes from
87580         glibc.
87581         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
87582         Ensure that it is a multiple of 64.
87583         Rearrange loop exit tests so as to avoid performing an
87584         additional fread after encountering an error or EOF.
87585         * lib/realloc.c: Update copyright date.
87586
87587 2003-08-15  Jim Meyering  <jim@meyering.net>
87588         and Paul Eggert  <eggert@twinsun.com>
87589
87590         Merge from coreutils.
87591         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
87592         member but strut utmpx does not.  Needed for AIX 4.3.3.
87593         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
87594
87595 2003-08-15  Jim Meyering  <jim@meyering.net>
87596         and Paul Eggert  <eggert@cs.ucla.edu>
87597
87598         Merges from coreutils, etc.
87599         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
87600         Require gl_FUNC_TZSET_CLOBBER.
87601         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
87602         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
87603         members.
87604
87605 2003-08-14  Paul Eggert  <eggert@twinsun.com>
87606
87607         Help the merge from coreutils.
87608         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
87609         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
87610         * m4/tzset.m4: Use it too.
87611
87612 2003-08-14  Paul Eggert  <eggert@twinsun.com>
87613
87614         * modules/tzset: New file.
87615
87616 2003-08-14  Jim Meyering  <jim@meyering.net>
87617
87618         Merges from coreutils.
87619         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
87620         variable names, rather than @FNMATCH_H@.
87621         * modules/alloca: Likewise for $(ALLOCA_H).
87622
87623         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
87624         the three copies of the literal target, `fnmatch.h'.
87625         * modules/alloca (alloca.h): Likewise.
87626
87627 2003-08-14  Jim Meyering  <jim@meyering.net>
87628
87629         Merge from coreutils.
87630         * m4/tzset.m4: New file.
87631         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
87632         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
87633         otherwise, AIX 5.1 systems would end up using the latter.
87634         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
87635         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
87636         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
87637         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
87638
87639 2003-08-14  Jim Meyering  <jim@meyering.net>
87640
87641         Merge from coreutils.
87642         * lib/obstack.h: Whitespace changes.
87643         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
87644         and xcalloc return values.
87645         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
87646         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
87647         hang on OSF/1 5.1 for DIR on both local and remote file systems.
87648         Reported by (and fix confirmed by) Nelson H. F. Beebe.
87649         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
87650         error from mntctl.
87651         Use mntctl's return value to drive the entry-processing loop, since
87652         we can't rely on the value of the vmt_length member in the last
87653         entry.  On some systems doing so could result in exhausting
87654         virtual memory.  Based in part on a patch from Mike Jetzer.
87655
87656 2003-08-14  Jim Meyering  <jim@meyering.net>
87657         and Paul Eggert  <eggert@twinsun.com>
87658
87659         Merges from coreutils, plus other fixes.
87660         * lib/physmem.c: Merge in portability changes from gcc/libiberty
87661         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
87662         for credits and details.  Thanks to Kaveh Ghazi for helping
87663         to keep these files in sync.
87664         (ARRAY_SIZE): Define it.
87665         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
87666         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
87667         (memcasecmp): Don't assume size_t fits in unsigned int.
87668         Remove casts and duplicate code.
87669         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
87670         (memcpy): Remove definition.
87671         Merge in some clean-up and optimization changes from glibc.
87672         [BLOCKSIZE]: Move definition to top of file.
87673         Ensure that it is a multiple of 64.
87674         Rearrange loop exit tests so as to avoid performing an
87675         additional fread after encountering an error or EOF.
87676         * lib/md5.h (md5_uintptr): Define.
87677         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
87678         return to the initial working directory.  Preserve errno
87679         for caller.
87680         * lib/idcache.c: Include "xalloc.h".
87681         (xmalloc, xrealloc): Remove decls.
87682         (getuser): Remove casts no longer required in C89.
87683         * lib/human.c: Include stdio.h, for sprintf.
87684         * lib/group-member.c: Include "xalloc.h".
87685         (xmalloc, xrealloc): Remove decls.
87686         (get_group_info): Remove casts no longer required in C89.
87687         * lib/getusershell.c (readname): Remove casts no longer required in
87688         C89.
87689         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
87690         * lib/getline.c: Whitespace fix, from coreutils.
87691
87692 2003-08-13  Paul Eggert  <eggert@twinsun.com>
87693
87694         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
87695         Check for isascii.
87696
87697         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
87698         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
87699         Undo previous (whitespace-only) change.
87700
87701 2003-08-13  Paul Eggert  <eggert@twinsun.com>
87702
87703         * lib/exclude.c: Include <ctype.h>
87704         (IN_CTYPE_DOMAIN): New macro.
87705         (is_space): New fn.
87706         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
87707         and empty lines.
87708
87709         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
87710         Undo previous (whitespace-only) change.
87711
87712 2003-08-13  Paul Eggert  <eggert@twinsun.com>
87713
87714         * config/srclist-update: Change update back to the old behavior,
87715         leaving whitespace alone.  Use one 'sed' command rather than a
87716         pipeline.
87717         (fixlicense): Now a variable, not a function.
87718         (remove_trailing_blanks): Remove.
87719         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
87720         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
87721         Undo previous (whitespace-only) change.
87722
87723 2003-08-12  Paul Eggert  <eggert@twinsun.com>
87724
87725         Merge from coreutils.
87726         * modules/euidaccess: Add lib_SOURCES, include for new
87727         file euidaccess.h
87728
87729 2003-08-12  Paul Eggert  <eggert@twinsun.com>
87730
87731         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
87732         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
87733         Normalize leading white space and remove trailing white space.
87734
87735         Merge from coreutils
87736         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
87737
87738         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
87739         0.12.1.  These files are now being upgraded automatically by
87740         ../config/srclist-update.
87741
87742 2003-08-12  Paul Eggert  <eggert@twinsun.com>
87743
87744         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
87745         Normalize leading white space and remove trailing white space.
87746         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
87747         notice, as per ../config/srclist-update.
87748
87749         Merge from coreutils.
87750         * lib/euidaccess.h: New file.
87751         * lib/euidaccess.c: Include it.
87752         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
87753         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
87754         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
87755
87756 2003-08-12  Paul Eggert  <eggert@twinsun.com>
87757
87758         * config/srclist-update: Add copyright notice.
87759         (remove_id_lines, remove_trailing_blanks): New constants.
87760         (fixfile): Use them to normalize spacing a bit in copied files.
87761         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
87762         Normalize leading white space and remove trailing white space.
87763
87764         * config/texinfo.tex: Sync with texinfo.
87765
87766         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
87767         strtoul.c from libc, to merge coreutils whitespace changes.
87768
87769         * config/srclist.txt: Get the following m4 files from gettext:
87770         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
87771         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
87772         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
87773         wint_t.m4.
87774
87775 2003-08-12  Karl Berry  <karl@gnu.org>
87776
87777         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
87778         been made.
87779
87780 2003-08-11  Paul Eggert  <eggert@twinsun.com>
87781
87782         * modules/gnu-source, m4/gnu-source.m4:
87783         Remove; we're assuming Autoconf 2.54 or later now.
87784         Suggested by Bruno Haible.
87785         * MODULES.html.sh (func_all_modules): Remove gnu-source.
87786
87787 2003-08-11  Bruno Haible  <bruno@clisp.org>
87788
87789         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
87790
87791 2003-08-11  Bruno Haible  <bruno@clisp.org>
87792
87793         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
87794         (vasnprintf): Use it instead of wcslen.
87795
87796 2003-08-11  Bruno Haible  <bruno@clisp.org>
87797
87798         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
87799         value to ensure that _Bool promotes to int. Use #define for _Bool when
87800         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
87801
87802 2003-08-10  Karl Berry  <karl@gnu.org>
87803
87804         * lib/regex.h: update from libc (whitespace fix).
87805
87806 2003-08-09  Paul Eggert  <eggert@twinsun.com>
87807
87808         Merge some files from coreutils.  These changes were
87809         originally made by Jim Meyering.
87810         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
87811         many older Unixes require this.
87812         * lib/alloca.c (alloca): Remove cast to argument of free;
87813         no longer needed in C89.
87814         * lib/alloca_.h, regex.h: Fix white space to match
87815         what GNU indent does.
87816
87817 2003-08-09  Paul Eggert  <eggert@twinsun.com>
87818
87819         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
87820         apparently Emacs's Unicode mode got confused before my 2003-08-05
87821         checkin.
87822
87823 2003-08-08  Paul Eggert  <eggert@twinsun.com>
87824
87825         * m4/extensions.m4: New file.
87826         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
87827         Require gl_USE_SYSTEM_EXTENSIONS.
87828         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
87829         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
87830
87831 2003-08-08  Paul Eggert  <eggert@twinsun.com>
87832
87833         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
87834         * modules/extensions, modules/gnu-source: New files.
87835         * modules/timespec, modules/unlocked-io: Depend on extensions.
87836
87837 2003-08-07  Paul Eggert  <eggert@twinsun.com>
87838
87839         * modules/restrict: New file.
87840         * MODULES.html.sh (func_all_modules): Add restrict.
87841         * modules/regex: Depend on restrict.
87842
87843 2003-08-07  Paul Eggert  <eggert@twinsun.com>
87844
87845         * m4/restrict.m4: New file.
87846         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
87847
87848 2003-08-07  Bruno Haible  <bruno@clisp.org>
87849
87850         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
87851         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
87852
87853 2003-08-07  Bruno Haible  <bruno@clisp.org>
87854
87855         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
87856         makes the module 'getndelim2' compatible with the module 'getline'.
87857
87858 2003-08-05  Paul Eggert  <eggert@twinsun.com>
87859
87860         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
87861         byte with "\201" to avoid glitches when editing that source file
87862         with multi-gnome-terminal.
87863
87864 2003-08-05  Paul Eggert  <eggert@twinsun.com>
87865
87866         * lib/bumpalloc.h: Remove.
87867
87868 2003-08-05  Paul Eggert  <eggert@twinsun.com>
87869
87870         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
87871         * modules/bumpalloc: Remove.
87872
87873 2003-08-04  Paul Eggert  <eggert@twinsun.com>
87874
87875         * lib/getloadavg.c: Change copyright notice and spacing to conform to
87876         GNU coding style.
87877
87878         Merge from coreutils.
87879         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
87880         1. From glibc.
87881         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
87882         from Karl Berry, implemented by Jim Meyering.
87883         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
87884         from Dmitry V. Levin.
87885         Remove anachronistic cast of xrealloc.
87886         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
87887         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
87888         type. Otherwise, it wouldn't compile with at least /bin/cc on
87889         ymp-cray-unicos9.0.2.X.
87890         Combine two mostly-identical uses of alloca into one.
87891         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
87892
87893 2003-08-04  Dave Love  <d.love@dl.ac.uk>
87894
87895         [From Emacs.]
87896
87897         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
87898         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
87899         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
87900         obsolete NLIST_NAME_UNION.
87901         [__GNU__]: Undef BSD and FSCALE.
87902         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
87903
87904 2003-08-03  Paul Eggert  <eggert@twinsun.com>
87905
87906         * lib/stdbool_.h (_Bool): Make it signed char, instead of
87907         an enum type, so that it's guaranteed to promote to int.  See:
87908         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
87909
87910 2003-08-03  Karl Berry  <karl@gnu.org>
87911
87912         * config/depcomp: update from automake.
87913
87914 2003-07-31  Paul Eggert  <eggert@twinsun.com>
87915
87916         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
87917         (strerror): Don't assume that a printable int fits in 14 bytes.
87918
87919 2003-07-31  Bruno Haible  <bruno@clisp.org>
87920
87921         * modules/getpass-gnu: New file.
87922         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
87923
87924 2003-07-31  Bruno Haible  <bruno@clisp.org>
87925
87926         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
87927
87928 2003-07-24  Karl Berry  <karl@gnu.org>
87929
87930         * config/missing: update from automake.
87931
87932 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
87933             Bruno Haible  <bruno@clisp.org>
87934
87935         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
87936         * lib/getline.c (getline, getdelim): Likewise.
87937         Remove _GNU_SOURCE define; now it's defined in config.h through
87938         m4/getline.m4.
87939
87940 2003-07-23  Karl Berry  <karl@gnu.org>
87941
87942         * config/config.sub: update from prep.
87943
87944 2003-07-22  Paul Eggert  <eggert@twinsun.com>
87945
87946         * modules/xalloc (Depends-on): Add exitfail.
87947         * modules/xmemcoll: Likewise.
87948
87949 2003-07-22  Paul Eggert  <eggert@twinsun.com>
87950
87951         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
87952         over-parenthesization in macros.
87953
87954         Sync with coreutils.
87955
87956         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
87957         required by C99.
87958
87959         Use `exit_failure' for xalloc and xmemcoll instead of their own
87960         private exit-failure variables.
87961         * lib/xalloc.h (xalloc_exit_failure): Remove.
87962         * lib/xmalloc.c: Likewise.  Include exitfail.h.
87963         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
87964         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
87965         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
87966         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
87967
87968 2003-07-20  Jim Meyering  <jim@meyering.net>
87969
87970         * modules/closeout (Depends-on): Add exitfail.
87971         Suggestion from Bruno Haible.
87972
87973 2003-07-19  Karl Berry  <karl@gnu.org>
87974
87975         * config/config.sub: update from prep.
87976
87977 2003-07-18  Paul Eggert  <eggert@twinsun.com>
87978
87979         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
87980         Remove.
87981         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
87982         to test that it can stand by itself.  Include "exitfail.h".
87983         Clients should set exit_failure instead.
87984         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
87985
87986 2003-07-18  Bruno Haible  <bruno@clisp.org>
87987
87988         * modules/getndelim2: New file.
87989         * modules/getline: Share files with module getndelim2.
87990         * modules/getnline: Depend on getndelim2 instead of sharing files with
87991         it. Add getnline.c to lib_SOURCES.
87992         * MODULES.html.sh (func_all_modules): Add getndelim2.
87993
87994 2003-07-18  Bruno Haible  <bruno@clisp.org>
87995
87996         * m4/getndelim2.m4: New file.
87997         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
87998         invoke gl_PREREQ_GETNDELIM2.
87999         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
88000         gl_PREREQ_GETNDELIM2.
88001         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
88002         gl_GETNDELIM2.
88003
88004 2003-07-18  Bruno Haible  <bruno@clisp.org>
88005
88006         * lib/getndelim2.h: New file.
88007         * lib/getndelim2.c: Make into a module of its own. Include config.h,
88008         getndelim2.h.
88009         (getndelim2): Make non-static. Change return type to ssize_t.
88010         * lib/getline.h: Change argument names.
88011         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
88012         * lib/getnline.c: Include getndelim2.h.
88013
88014 2003-07-18  Andreas Schwab  <schwab@suse.de>
88015
88016         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
88017
88018 2003-07-17  Karl Berry  <karl@gnu.org>
88019
88020         * config/config.sub: update from prep.
88021
88022 2003-07-17  Bruno Haible  <bruno@clisp.org>
88023
88024         * modules/getnline: New file.
88025         * modules/getline: Add lib/getndelim2.c to source file list.
88026         * MODULES.html.sh (func_all_modules): Add getnline.
88027
88028 2003-07-17  Bruno Haible  <bruno@clisp.org>
88029
88030         * m4/getnline.m4: New file.
88031
88032 2003-07-17  Bruno Haible  <bruno@clisp.org>
88033
88034         * m4/Makefile.am.in: Remove file.
88035         * m4/Makefile.am: Remove file.
88036         * m4/Makefile.in: Remove file.
88037
88038 2003-07-17  Bruno Haible  <bruno@clisp.org>
88039
88040         * lib/getnline.h: New file.
88041         * lib/getnline.c: New file.
88042         * lib/getndelim2.c: New file, extracted from getline.c.
88043         (getndelim2): Renamed from getdelim2, with added nmax argument.
88044         * lib/getline.c: Include getndelim2.c.
88045         (getdelim2): Moved out to getndelim2.c.
88046         (getline, getdelim): Update.
88047
88048 2003-07-17  Bruno Haible  <bruno@clisp.org>
88049
88050         * lib/Makefile.am: Remove file.
88051         * lib/Makefile.in: Remove file.
88052
88053 2003-07-17  Bruno Haible  <bruno@clisp.org>
88054
88055         * configure.in: Remove file.
88056         * Makefile.in: Remove file.
88057
88058 2003-07-17  Bruno Haible  <bruno@clisp.org>
88059
88060         * MODULES.html.sh: Put the </BODY> right before </HTML>.
88061
88062 2003-07-16  Karl Berry  <karl@gnu.org>
88063
88064         * config/srclist-update: was running fixlicense twice, which caused
88065                 texinfo.tex to be nullified for some reason.  Simplify,
88066                 $gplsrc is no longer needed as far as I can see?
88067
88068 2003-07-16  Jim Meyering  <jim@meyering.net>
88069
88070         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
88071
88072 2003-07-15  Paul Eggert  <eggert@twinsun.com>
88073
88074         * config/srclist.txt: Get the following files from gettext-runtime/intl
88075         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
88076         ref-del.sin.  From Bruno Haible.
88077         * config/srclist-update (fixfile): Change grep pattern again, since the
88078         previous fix didn't work (there was another trailing $).  Use
88079         '[$]' to escape the $s.
88080
88081 2003-07-15  Karl Berry  <karl@gnu.org>
88082
88083         * lib/vasnprintf.c: update from gettext.
88084
88085 2003-07-15  Karl Berry  <karl@gnu.org>
88086
88087         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
88088         gets expanded when surrounded by '$'.
88089
88090 2003-07-15  Jim Meyering  <jim@meyering.net>
88091
88092         * modules/save-cwd: Don't depend on error.  From Derek Price.
88093
88094 2003-07-15  Jim Meyering  <jim@meyering.net>
88095
88096         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
88097
88098 2003-07-14  Simon Josefsson  <jas@extundo.com>
88099
88100         * modules/mempcpy: New file.
88101         * MODULES.html.sh (func_all_modules): Add mempcpy.
88102
88103 2003-07-14  Simon Josefsson  <jas@extundo.com>
88104
88105         * m4/mempcpy.m4: New file.
88106
88107 2003-07-14  Simon Josefsson  <jas@extundo.com>
88108
88109         * lib/mempcpy.h: New file.
88110         * lib/mempcpy.c: New file.
88111
88112 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88113
88114         * modules/getdate, modules/posixtm: Depend on mktime.
88115
88116 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88117
88118         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
88119         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
88120         unicodeio.c, unicodeio.h, unlocked-io.h:
88121         Switch from LGPL to GPL.
88122
88123 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88124
88125         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
88126         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
88127         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
88128         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
88129         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
88130         updated automatically by ../config/srclist-update.  This changes
88131         their license from LPGL to GPL.
88132
88133 2003-07-14  Paul Eggert  <eggert@twinsun.com>
88134
88135         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
88136         assumed to refer to the root of the most recent stable gettext version.
88137         * config/srclistvars.sh: Add defaults for eggert.
88138         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
88139         Match "This program" as well as "The program".  This is needed
88140         for gettext.
88141
88142 2003-07-14  Jim Meyering  <jim@meyering.net>
88143
88144         Don't emit diagnostics.  Let callers do that.
88145         * lib/save-cwd.c: Don't include "error.h".
88146         (save_cwd): Don't call error.  Ensure that errno is valid
88147         when returning nonzero.
88148
88149         * lib/save-cwd.h (restore_cwd): Update prototype.
88150         * lib/save-cwd.c (restore_cwd): Remove two parameters.
88151         Simplify.  Don't call error upon failure.  Let callers do that.
88152         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
88153         when auditing is enabled.  But don't bother updating the #if.
88154
88155 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
88156
88157         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
88158         it breaks C++ compilation.
88159         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
88160
88161 2003-07-10  Simon Josefsson  <jas@extundo.com>
88162
88163         * modules/strchrnul (Makefile.am): Add strchrnul.h.
88164
88165 2003-07-10  Jim Meyering  <jim@meyering.net>
88166
88167         * m4/clock_time.m4: Remove trailing blank.
88168         * m4/intmax_t.m4: Likewise.
88169
88170 2003-07-10  Jim Meyering  <jim@meyering.net>
88171
88172         * lib/vasnprintf.c: Remove trailing blanks.
88173         Make cpp indentation consistent.
88174
88175 2003-07-09  Paul Eggert  <eggert@twinsun.com>
88176
88177         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
88178         posixver.c, strftime.c, strnlen.c, strverscmp.c:
88179         Switch from LGPL to GPL.
88180
88181 2003-07-09  Paul Eggert  <eggert@twinsun.com>
88182
88183         * config/srclist.txt: Sort sublists.  Add
88184         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
88185         that differ from gnulib for one reason or another; we'd like this list
88186         to be smaller but for now let's document what we have.
88187
88188 2003-07-08  Paul Eggert  <eggert@twinsun.com>
88189
88190         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
88191         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
88192         and sweeter "eval x=$x".
88193         * config/srclist.txt: Get lib/argp* from glibc.
88194
88195 2003-07-07  Paul Eggert  <eggert@twinsun.com>
88196
88197         * lib/mktime.c: Fix some boundary cases and remove need for floating
88198         point.
88199
88200         Issue a compile-time diagnostic if time_t is floating point, or if
88201         two's complement arithmetic is not in effect, or if arithmetic
88202         right shift does not propagate the sign.  These assumptions were
88203         all in the original code but they weren't checked.
88204
88205         (TIME_T_MIDPOINT, verify): New macros.
88206         (__isleap): Remove; it has integer overflow problems.
88207         (leapyear): New function, without those problems.
88208         (ydhms_tm_diff): Remove; splitting into two parts.
88209         (ydhms_diff): New function, containing the arithmetic part of
88210         the old ydhms_tm_diff function.  Issue a compile-time
88211         diagnostic if we are not using C99 integer division.
88212         Avoid casts when possible.
88213         (guess_time_tm): New function, containing the checking part of
88214         the old ydhms_tm_diff function.  Return the new value, rather than
88215         the difference between it and the old.  Accept a new argument T
88216         so that *T specifies the old value.  Check for overflow in the result.
88217
88218         (__mktime_internal): Use a time_t offset, not a long int offset.
88219         This undoes the 2003-06-04 change, which is no longer needed now
88220         that we have better overflow checking.
88221         (localtime_offset): Likewise.
88222
88223         (__mktime_internal): Avoid harmful overflow on hosts where time_t
88224         and long are 64-bit but int is only 32-bit.
88225         (ydhms_diff): Use long int to store year1 and yday1.
88226         Issue a compile-time diagnostic if long int is not wide enough.
88227
88228         (__mktime_internal): Use long int to store adjusted year and yday.
88229         Use plain C rather than preprocessor commands, if that doesn't
88230         affect efficiency.
88231         Check for overflow (and try to repair) after each probe
88232         rather than checking only at the very end.  This avoids some bugs
88233         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
88234         does not equal GMT offset at maximum time).
88235         Use integer to check for overflow rather than floating point; this
88236         is more portable to non-IEEE hosts, and is a tad faster.
88237         When we detect that we are oscillating between two values,
88238         don't check whether tm_isdst has the requested value, since
88239         we already know the answer.  When tm_isdst has the wrong value,
88240         use a different heuristic to find the right one, based on the
88241         extreme values actually observed in practice in tz2003a,
88242         rather than the (overly optimistic) "previous 3 calendar quarters".
88243
88244         (not_equal_tm, print_tm, check_result): Use "const T" rather than
88245         "T const" to accommodate glibc style.
88246         (check_result): Use less-confusing report format.  "long" -> "long int.
88247         (main): Likewise.
88248         Don't loop if the iteration overflows time_t.
88249         Allow a negative step in the iteration.
88250
88251 2003-07-06  Karl Berry  <karl@gnu.org>
88252
88253         * config/depcomp: update from automake.
88254         * config/config.sub: update from prep.
88255
88256 2003-07-03  Karl Berry  <karl@gnu.org>
88257
88258         * config/config.guess: update from prep.
88259
88260 2003-07-01  Paul Eggert  <eggert@twinsun.com>
88261
88262         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
88263         xreadlink.c now includes it unconditionally.
88264
88265 2003-07-01  Paul Eggert  <eggert@twinsun.com>
88266
88267         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
88268         having it depend on HAVE_SYS_TYPES_H.
88269
88270 2003-07-01  Bruno Haible  <bruno@clisp.org>
88271
88272         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
88273         <sys/types.h> should be sufficient.
88274         Reported by Paul Eggert.
88275
88276 2003-06-26  Karl Berry  <karl@gnu.org>
88277
88278         * config/depcomp: update from automake.
88279
88280 2003-06-26  Bruno Haible  <bruno@clisp.org>
88281
88282         * modules/human: Depend on module stdbool.
88283
88284 2003-06-25  Bruno Haible  <bruno@clisp.org>
88285
88286         * modules/readlink: New file.
88287         * modules/xreadlink: Depend on it.
88288         * MODULES.html.sh (func_all_modules): Add readlink.
88289
88290 2003-06-25  Bruno Haible  <bruno@clisp.org>
88291
88292         * m4/readlink.m4: New file.
88293
88294 2003-06-25  Bruno Haible  <bruno@clisp.org>
88295
88296         * lib/readlink.c: New file.
88297
88298 2003-06-22  Karl Berry  <karl@gnu.org>
88299
88300         * config/srclist.txt: update mkinstalldirs from automake.
88301         * config/mkinstalldirs: update.
88302
88303 2003-06-22  Bruno Haible  <bruno@clisp.org>
88304
88305         Portability to mingw32.
88306         * m4/ssize_t.m4: New file, from GNU gettext.
88307         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
88308         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
88309
88310 2003-06-22  Bruno Haible  <bruno@clisp.org>
88311
88312         * modules/safe-read: Add m4/ssize_t.m4.
88313         * modules/xreadlink: Add m4/ssize_t.m4.
88314
88315 2003-06-20  Bruno Haible  <bruno@clisp.org>
88316
88317         Assume C89, so PARAMS isn't needed.
88318         * lib/unicodeio.h (PARAMS): Remove.
88319         * lib/unicodeio.c: Don't use PARAMS.
88320
88321 2003-06-18  Karl Berry  <karl@gnu.org>
88322
88323         * config/config.{guess,sub}: update from prep.
88324
88325 2003-06-18  Jim Meyering  <jim@meyering.net>
88326
88327         Merge changes from coreutils.
88328         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
88329         Remove explicit declarations of xmalloc and realloc.
88330         Include xalloc.h.
88331         (read_utmp): Remove anachronistic cast of xmalloc.
88332
88333 2003-06-17  Paul Eggert  <eggert@twinsun.com>
88334
88335         Assume C89, so PARAMS isn't needed.
88336         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
88337         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
88338         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
88339         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
88340         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
88341         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
88342         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
88343         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
88344         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
88345         lib/xstrtod.h, lib/xstrtol.h: Likewise.
88346         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
88347         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
88348         no longer needed. Anyway, config.h should always be included before any
88349         other file.
88350
88351 2003-06-11  Simon Josefsson  <jas@extundo.com>
88352
88353         * modules/sysexits: New file.
88354         * MODULES.html.sh (func_all_modules): Add sysexits.
88355
88356 2003-06-11  Simon Josefsson  <jas@extundo.com>
88357
88358         * lib/sysexit_.h: New file.
88359
88360 2003-06-11  Derek Price  <derek@ximbiot.com>
88361
88362         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
88363         necessary.
88364
88365 2003-06-11  Bruno Haible  <bruno@clisp.org>
88366
88367         * m4/sysexits.m4: New file.
88368
88369 2003-06-10  Simon Josefsson  <jas@extundo.com>
88370
88371         * lib/argp.h: New file, from glibc.
88372         * lib/argp-ba.c: New file, from glibc.
88373         * lib/argp-eexst.c: New file, from glibc.
88374         * lib/argp-fmtstream.c: New file, from glibc.
88375         * lib/argp-fmtstream.h: New file, from glibc.
88376         * lib/argp-fs-xinl.c: New file, from glibc.
88377         * lib/argp-help.c: New file, from glibc.
88378         * lib/argp-namefrob.h: New file, from glibc.
88379         * lib/argp-parse.c: New file, from glibc.
88380         * lib/argp-pv.c: New file, from glibc.
88381         * lib/argp-pvh.c: New file, from glibc.
88382         * lib/argp-xinl.c: New file, from glibc.
88383
88384 2003-06-10  Simon Josefsson  <jas@extundo.com>
88385
88386         * modules/strchrnul: New file.
88387
88388 2003-06-10  Simon Josefsson  <jas@extundo.com>
88389
88390         * modules/argp: New file.
88391
88392 2003-06-10  Simon Josefsson  <jas@extundo.com>
88393
88394         * m4/strchrnul.m4: New file.
88395
88396 2003-06-10  Simon Josefsson  <jas@extundo.com>
88397
88398         * lib/strchrnul.h: New file.
88399         * lib/strchrnul.c: New file.
88400
88401 2003-06-10  Bruno Haible  <bruno@clisp.org>
88402
88403         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
88404
88405 2003-06-07  Karl Berry  <karl@gnu.org>
88406
88407         * config/config.{guess,sub}: update from prep.
88408
88409 2003-06-07  Jim Meyering  <jim@meyering.net>
88410
88411         * modules/strtod: Use $(...) notation, not @...@ for
88412         AC_REPLACE'd variables.
88413         * modules/localcharset: Likewise.
88414
88415 2003-06-07  Jim Meyering  <jim@meyering.net>
88416
88417         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
88418         in place of my name in the copyright comment.
88419         Remove definition and uses of __P.
88420
88421         From coreutils.
88422         * lib/stat.c: Don't declare xmalloc explicitly.
88423         Instead, include "xalloc.h".
88424         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
88425         xrealloc, and xcalloc return values.
88426         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
88427         Improve comment.
88428         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
88429
88430 2003-06-07  Bruno Haible  <bruno@clisp.org>
88431
88432         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
88433         avoid AC_CONFIG_LINKS.
88434         * modules/fnmatch (Makefile.am): Use explicit creation rule for
88435         fnmatch.h, to avoid AC_CONFIG_LINKS.
88436         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
88437
88438 2003-06-07  Bruno Haible  <bruno@clisp.org>
88439
88440         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
88441         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
88442         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
88443         directory.
88444         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
88445         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
88446         directory.
88447
88448 2003-06-06  Jim Meyering  <jim@meyering.net>
88449
88450         Merge from coreutils.
88451         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
88452         Consolidate declarations and initializations of *_base* locals.
88453
88454         Merge from coreutils.
88455         This avoids a core dump on systems without GNU putenv,
88456         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
88457         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
88458         (unsetenv): New static function, from GNU libc.
88459         (rpl_putenv): Use it.
88460
88461         * lib/modechange.c: Remove trailing blanks.
88462
88463         Merge from coreutils.
88464         * lib/fsusage.c: Remove declaration of statfs.
88465         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
88466
88467         * lib/posixtm.c: Include <stdbool.h> unconditionally.
88468
88469 2003-06-06  Jim Meyering  <jim@meyering.net>
88470
88471         * lib/stdbool_.h: Renamed from stdbool.h.in.
88472
88473 2003-06-06  Jim Meyering  <jim@meyering.net>
88474             Bruno Haible  <bruno@clisp.org>
88475
88476         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
88477         Adjust Makefile.am snippet not to redirect directly to target.
88478         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
88479
88480 2003-06-05  Paul Eggert  <eggert@twinsun.com>
88481
88482         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
88483         mismatch, look in future quarters as well as past.  This fixes a
88484         bug when processing fall-backwards gaps immediately after a long
88485         period of daylight-saving time.
88486
88487         * lib/mktime.c: Assume freestanding C89 or better.
88488         (HAVE_LIMITS_H): Remove.  Assume it's 1.
88489         (__P): Remove; not used.
88490         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
88491         (mktime, not_equal_tm, print_tm, check_result,
88492         main): Use prototypes.  Use const * where appropriate.
88493         (main): Fix typo in testing code that uncovered by above changes.
88494         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
88495
88496 2003-06-04  Paul Eggert  <eggert@twinsun.com>
88497
88498         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
88499         locale.h, localeconv.  This merges changes from coreutils.
88500
88501         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
88502         It can be removed after the next Autoconf is released.
88503         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
88504         needed.
88505
88506 2003-06-04  Paul Eggert  <eggert@twinsun.com>
88507
88508         * lib/mktime.c: Fix Debian bug 177940
88509         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
88510         (localtime_offset): Now long int, not time_t, because we want it
88511         to be guaranteed to be signed.  All uses changed.
88512         (__mktime_internal): If overflow would occur when adding offset,
88513         don't add it.
88514
88515         Merge 'human' changes from coreutils.  Rewrite to support
88516         locale-specific notations like thousands separators.
88517         * lib/human.c: Simplify authorship notice.
88518         Include human.h immediately after config.h.
88519         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
88520         <limits.h>: Do not include, since human.h does.
88521         (SIZE_MAX, UINTMAX_MAX): New macros.
88522         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
88523         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
88524         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
88525         (power_letter): Renamed from suffixes.
88526         (generate_suffix_backwards): Remove.
88527         (adjust_value): Now takes int style (because of human.h changes)
88528         and long double value (for greater precision on some platforms).
88529         (group_number): New function.
88530         (human_readable): Use it.  Use integer options, not enum.
88531         Put the options before the sizes in the arg list.
88532         Support all the new options.
88533         The old human_readable function has been removed;
88534         use inttostr.h instead.
88535         (human_readable, default_block_size, humblock):
88536         Use uintmax_t, not int, for block sizes.
88537         (human_readable_inexact, block_size_types): Remove.
88538         (block_size_opts): New constant.
88539         (human_options): Renamed from human_block_size, with new signature
88540         that allows block sizes up to UINTMAX_MAX.  All callers changed.
88541         * lib/human.h: Add copyright and authorship notice.
88542         Include <limits.h> and <stdbool.h> unconditionally.
88543         (PARAMS): Remove.  All uses removed.
88544         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
88545         (enum human_inexact_style): Remove tag; now a nameless enum.
88546         (human_floor, human_ceiling, human_round_to_even): Now have
88547         values 2, 0, 1 rather than -1, 1, 0.
88548         (human_group_digits, human_suppress_point_zero, human_autoscale,
88549         human_base_1024, human_SI, human_B): New constants.
88550         (human_readable_inexact, human_block_size): Remove.
88551         (human_readable): Size args are now uintmax_t, not int.
88552         (human_options): New decl.
88553
88554         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
88555         unnecessary now that we assume C89 or better.  This change
88556         imported from coreutils.
88557
88558         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
88559         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
88560         in the 2003-05-30 sync from glibc.
88561
88562         .h files should stand alone, but we shouldn't include <sys/types.h>
88563         if we can get away with just <stddef.h>.
88564
88565         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
88566         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
88567         rather than <sys/types.h>, as we merely need size_t.
88568         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
88569         to get size_t.
88570         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
88571         Include <stdio.h>, to get FILE.
88572         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
88573         memcasecmp.h has included <stddef.h> and all we need is size_t.
88574         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
88575         our interface, instead of including <sys/types.h>
88576
88577 2003-06-04  Paul Eggert  <eggert@twinsun.com>
88578
88579         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
88580         now, as glibc mktime is buggy on non-glibc systems.
88581
88582 2003-06-03  Karl Berry  <karl@gnu.org>
88583
88584         * config/config.sub: update from prep.
88585
88586 2003-06-02  Paul Eggert  <eggert@twinsun.com>
88587
88588         [from coreutils]
88589         Fix some minor time-related bugs with POSIX time arguments.
88590         Some valid time stamps were being rejected (notably -1, and
88591         time stamps before 1900 on 64-bit hosts).  And some invalid
88592         time stamps were being accepted, e.g. September 31.
88593
88594         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
88595         that we can return (time_t) -1 successfully.
88596         * lib/posixtm.c: Likewise.
88597         [HAVE_STDBOOL_H]: Include <stdbool.h>.
88598         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
88599         (t): Remove static var.
88600         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
88601         of static var.  All uses changed.
88602         (year): Do not reject years before 1900; they can occur with
88603         64-bit time_t.
88604         (posix_time_parse): Do not check for out-of-range components;
88605         that is now the caller's responsibility, since our checks were
88606         only approximations.
88607         (posixtime): Use mktime to check for out-of-range components,
88608         since it knows them exactly.
88609         If mktime returns (time_t) -1, check whether an error actually occurred
88610         by invoking localtime on -1.
88611         (main) [TEST_POSIXTIME]: Check for input data errors, and report
88612         posixtime failures better.
88613         Improve the test data (in comments only).
88614
88615 2003-06-02  Karl Berry  <karl@gnu.org>
88616
88617         * config/mkinstalldirs (version): new variable.
88618         (--version): new option.
88619         (usage): improve message.
88620
88621 2003-05-30  Karl Berry  <karl@gnu.org>
88622
88623         * lib/mktime.c: update from libc.
88624
88625 2003-05-30  Bruno Haible  <bruno@clisp.org>
88626
88627         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
88628         * config/config.rpath: Upgrade to gettext-0.12.1.
88629
88630 2003-05-30  Bruno Haible  <bruno@clisp.org>
88631
88632         * m4/gettext.m4: Upgrade to gettext-0.12.1.
88633         * m4/nls.m4: New file, from gettext-0.12.1.
88634         * m4/po.m4: New file, from gettext-0.12.1.
88635         * m4/progtest.m4: Upgrade to gettext-0.12.1.
88636
88637 2003-05-30  Bruno Haible  <bruno@clisp.org>
88638
88639         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
88640         * lib/localcharset.h: Likewise.
88641         * lib/localcharset.c: Likewise.
88642
88643 2003-05-29  Karl Berry  <karl@gnu.org>
88644
88645         * config/config.rpath: update from gettext.
88646
88647 2003-05-28  Paul Eggert  <eggert@twinsun.com>
88648
88649         Assume the headers required for C89 freestanding compilers.
88650         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
88651         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
88652         * m4/human.m4 (gl_HUMAN): Likewise.
88653         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
88654         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
88655         * m4/userspec.m4 (gl_USERSPEC): Likewise.
88656         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
88657         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
88658         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
88659
88660 2003-05-28  Paul Eggert  <eggert@twinsun.com>
88661
88662         Assume the headers required for C89 freestanding compilers.
88663         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
88664         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
88665         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
88666         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
88667         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
88668         define, since <limits.h> is guaranteed to do that.
88669         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
88670         * lib/exclude.c: Include <stdbool.h> unconditionally.
88671         * lib/tempname.c: Include <stddef.h> unconditionally.
88672         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
88673         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
88674         <stddef.h> does that.
88675         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
88676         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
88677         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
88678         needed.
88679         * lib/xstrtol.c: Likewise.
88680         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
88681         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
88682
88683         * lib/addext.c (addext): Use assignment rather than cast, to avoid
88684         warnings on some platforms.
88685
88686         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
88687         arbitrarily.
88688
88689 2003-05-26  Jim Meyering  <jim@meyering.net>
88690
88691         Merge in a change from coreutils:
88692         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
88693         that is guaranteed to be `no'.  Use `no_such_member' to indicate
88694         that condition, rather than `-1' which is slightly misleading.
88695         Change the name of the cache variable to have the gl_ prefix.
88696         Prompted by a patch from Richard Dawe for DJGPP.
88697
88698 2003-05-24  Karl Berry  <karl@gnu.org>
88699
88700         * config/config.guess: update from prep.
88701
88702 2003-05-22  Karl Berry  <karl@gnu.org>
88703
88704         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
88705
88706 2003-05-20  Karl Berry  <karl@gnu.org>
88707
88708         * config/config.guess: update from prep.
88709
88710 2003-05-18  Karl Berry  <karl@gnu.org>
88711
88712         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
88713         might actually be set by the user.
88714
88715         * config/depcomp, install-sh, mdate-sh: update from automake.
88716
88717 2003-05-17  Bruno Haible  <bruno@clisp.org>
88718
88719         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
88720         invalid expansion for AC_EGREP_CPP.
88721         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
88722         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
88723         Suggested by Akim Demaille <akim@epita.fr> in
88724         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
88725
88726 2003-05-12  Jim Meyering  <jim@meyering.net>
88727
88728         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
88729         the space-padded-by-default conversion specifiers, %e, %k, %l.
88730
88731 2003-05-12  Bruno Haible  <bruno@clisp.org>
88732
88733         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
88734         the string is longer than 4 KB.
88735
88736 2003-05-11  Karl Berry  <karl@gnu.org>
88737
88738         * config/config.{guess,sub}: update from prep.
88739
88740 2003-05-09  Bruno Haible  <bruno@clisp.org>
88741
88742         * modules/error: Add m4/strerror_r.m4 to file list.
88743
88744 2003-05-03  Bruno Haible  <bruno@clisp.org>
88745
88746         Upgrade to Unicode-4.0.
88747         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
88748         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
88749         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
88750         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
88751         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
88752         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
88753         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
88754         Change width of U+E0100..U+E01EF from 1 to 0.
88755
88756 2003-04-25  Jim Meyering  <jim@meyering.net>
88757
88758         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
88759         of type size_t, not int.
88760
88761 2003-04-25  Bruno Haible  <bruno@clisp.org>
88762
88763         * lib/copy-file.c: Include <stddef.h>, for size_t.
88764
88765 2003-04-21  Paul Eggert  <eggert@twinsun.com>
88766
88767         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
88768         code which expansion is under static control.  Patch imported from
88769         Akim Demaille's patch to Bison; see
88770         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
88771
88772 2003-04-14  Bruno Haible  <bruno@clisp.org>
88773
88774         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
88775
88776 2003-04-11  Jim Meyering  <jim@meyering.net>
88777
88778         Merge changes from Coreutils.
88779
88780         2003-03-22  Jim Meyering  <jim@meyering.net>
88781
88782         * lib/strftime.c (widen): Cast alloca return value to proper type.
88783
88784         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
88785
88786         From GNU libc.
88787         * lib/strftime.c (my_strftime): Handle very large width
88788         specifications for numeric values correctly.  Improve checks for
88789         overflow.
88790
88791         2003-01-19  Jim Meyering  <jim@meyering.net>
88792
88793         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
88794         definitions.
88795         (nl_get_alt_digit) [! defined my_strftime]: Define.
88796         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
88797         _nl_get_alt_digit and _nl_get_walt_digit.
88798
88799         * lib/strftime.c (my_strftime): Merge in locale-related changes from
88800         libc. These changes have no effect outside of _LIBC.
88801
88802 2003-04-10  Bruno Haible  <bruno@clisp.org>
88803
88804         * modules/findprog: New file.
88805         * MODULES.html.sh (func_all_modules): Add it.
88806
88807 2003-04-10  Bruno Haible  <bruno@clisp.org>
88808
88809         * m4/findprog.m4: New file.
88810         * m4/eaccess.m4: New file.
88811
88812 2003-04-10  Bruno Haible  <bruno@clisp.org>
88813
88814         * lib/findprog.h: New file, from GNU gettext.
88815         * lib/findprog.c: New file, from GNU gettext.
88816
88817 2003-04-05  Jim Meyering  <jim@meyering.net>
88818
88819         Merge changes from Coreutils.
88820
88821         * lib/exclude.h (PARAMS): Remove definition and uses.
88822         * lib/exclude.c: Remove uses of `PARAMS'.
88823
88824         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
88825         Add test-cases for DOS filenames. Declare program_name.
88826         (main): Set up program_name.  Patch by Rich Dawe.
88827
88828         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
88829         error from mntctl.
88830         Use mntctl's return value to drive the entry-processing loop, since
88831         we can't rely on the value of the vmt_length member in the last
88832         entry.  On some systems doing so could result in exhausting
88833         virtual memory.  Based in part on a patch from Mike Jetzer.
88834
88835 2003-04-04  Bruno Haible  <bruno@clisp.org>
88836
88837         * modules/linebreak: New file.
88838         * MODULES.html.sh (func_all_modules): Add it.
88839
88840 2003-04-04  Bruno Haible  <bruno@clisp.org>
88841
88842         * m4/linebreak.m4: New file.
88843
88844 2003-04-04  Bruno Haible  <bruno@clisp.org>
88845
88846         * lib/linebreak.h: New file, from GNU gettext.
88847         * lib/linebreak.c: New file, from GNU gettext with slight
88848         modifications.
88849         * lib/lbrkprop.h: New file, from GNU gettext.
88850
88851 2003-04-03  Bruno Haible  <bruno@clisp.org>
88852
88853         * modules/utf8-ucs4: New file.
88854         * modules/utf16-ucs4: New file.
88855         * modules/ucs4-utf8: New file.
88856         * modules/ucs4-utf16: New file.
88857         * MODULES.html.sh (func_all_modules): Add them.
88858
88859 2003-04-03  Bruno Haible  <bruno@clisp.org>
88860
88861         * m4/utf-ucs4.m4: New file.
88862         * m4/ucs4-utf.m4: New file.
88863
88864 2003-04-03  Bruno Haible  <bruno@clisp.org>
88865
88866         * lib/utf8-ucs4.h: New file, from GNU gettext.
88867         * lib/utf16-ucs4.h: New file, from GNU gettext.
88868         * lib/ucs4-utf8.h: New file, from GNU gettext.
88869         * lib/ucs4-utf16.h: New file, from GNU gettext.
88870
88871 2003-04-02  Bruno Haible  <bruno@clisp.org>
88872
88873         * modules/binary-io: New file.
88874         * MODULES.html.sh (func_all_modules): Add it.
88875
88876 2003-04-02  Bruno Haible  <bruno@clisp.org>
88877
88878         * lib/binary-io.h: New file, from GNU gettext.
88879
88880 2003-04-01  Bruno Haible  <bruno@clisp.org>
88881
88882         * modules/pathname: New file.
88883         * MODULES.html.sh (func_all_modules): Add it.
88884
88885 2003-04-01  Bruno Haible  <bruno@clisp.org>
88886
88887         * lib/pathname.h: New file, from GNU gettext.
88888         * lib/concatpath.c: New file, from GNU gettext.
88889
88890 2003-03-30  Bruno Haible  <bruno@clisp.org>
88891
88892         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
88893
88894 2003-03-30  Bruno Haible  <bruno@clisp.org>
88895
88896         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
88897         function chown() doesn't exist.
88898
88899 2003-03-28  Bruno Haible  <bruno@clisp.org>
88900
88901         * modules/copy-file: New file.
88902         * MODULES.html.sh (func_all_modules): Add it.
88903
88904 2003-03-28  Bruno Haible  <bruno@clisp.org>
88905
88906         * m4/copy-file.m4: New file.
88907
88908 2003-03-28  Bruno Haible  <bruno@clisp.org>
88909
88910         * lib/copy-file.h: New file, from GNU gettext.
88911         * lib/copy-file.c: New file, from GNU gettext.
88912
88913 2003-03-18  Jim Meyering  <jim@meyering.net>
88914
88915         * lib/quote.c (quote_n): Fix typo in comment.
88916
88917 2003-03-18  Bruno Haible  <bruno@clisp.org>
88918
88919         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
88920         checking.
88921         * m4/onceonly_2_57.m4: Likewise.
88922
88923 2003-03-17  Bruno Haible  <bruno@clisp.org>
88924
88925         * m4/onceonly.m4: Require autoconf 2.54 or newer.
88926         (m4_quote): Remove macro.
88927         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
88928
88929 2003-03-14  Jim Meyering  <jim@meyering.net>
88930
88931         Merge changes from Coreutils.
88932         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
88933         to be const, in order to avoid warnings.
88934         (obstack_room): Likewise.
88935         (obstack_empty_p): Likewise.
88936
88937 2003-03-14  Bruno Haible  <bruno@clisp.org>
88938
88939         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
88940         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
88941
88942 2003-03-13  Paul Eggert  <eggert@twinsun.com>
88943
88944         Merge changes from Bison.
88945         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
88946         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
88947         when compiling Bison 1.875's `bitset bset = obstack_alloc
88948         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
88949         * lib/hash.c: Include <stdbool.h> unconditionally.
88950
88951 2003-03-13  Paul Eggert  <eggert@twinsun.com>
88952
88953         * m4/onceonly.m4 (m4_quote): New macro.
88954         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
88955         Quote AC_FOREACH variable-expansions properly.
88956
88957 2003-03-13  Paul Eggert  <eggert@twinsun.com>
88958
88959         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
88960
88961 2003-03-09  Paul Eggert  <eggert@twinsun.com>
88962
88963         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
88964         Reported by Bruce Becker; see:
88965         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
88966
88967 2003-03-03  Paul Eggert  <eggert@twinsun.com>
88968             Bruno Haible  <bruno@clisp.org>
88969
88970         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
88971         Reported by John Hughes, see
88972         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
88973
88974 2003-02-20  Bruno Haible  <bruno@clisp.org>
88975
88976         * MODULES.html.sh (func_all_modules): Add poll.
88977
88978 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
88979
88980         * modules/poll: New file.
88981
88982 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
88983
88984         * lib/poll_.h: New file.
88985         * lib/poll.c: New file.
88986
88987 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
88988
88989         * m4/poll.m4: New file.
88990
88991 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
88992
88993         * modules/mathl: New file.
88994
88995 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
88996
88997         * lib/mathl.h: New file.
88998         * lib/acosl.c: New file.
88999         * lib/asinl.c: New file.
89000         * lib/atanl.c: New file.
89001         * lib/ceill.c: New file.
89002         * lib/cosl.c: New file.
89003         * lib/expl.c: New file.
89004         * lib/floorl.c: New file.
89005         * lib/frexpl.c: New file.
89006         * lib/ldexpl.c: New file.
89007         * lib/logl.c: New file.
89008         * lib/sincosl.c: New file.
89009         * lib/sinl.c: New file.
89010         * lib/sqrtl.c: New file.
89011         * lib/tanl.c: New file.
89012         * lib/trigl.c: New file.
89013         * lib/trigl.h: New file.
89014
89015 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
89016
89017         * m4/mathl.m4: New file.
89018
89019 2003-02-18  Bruno Haible  <bruno@clisp.org>
89020
89021         * MODULES.html.sh (func_all_modules): Add mathl.
89022
89023 2003-02-17  Bruno Haible  <bruno@clisp.org>
89024
89025         * modules/mkdtemp: New module.
89026         * MODULES.html.sh (func_all_modules): Add it.
89027
89028 2003-02-17  Bruno Haible  <bruno@clisp.org>
89029
89030         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
89031
89032 2003-02-17  Bruno Haible  <bruno@clisp.org>
89033
89034         * lib/mkdtemp.h: New file, from GNU gettext.
89035         * lib/mkdtemp.c: New file, from GNU gettext.
89036
89037 2003-02-02  Jim Meyering  <jim@meyering.net>
89038
89039         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
89040         e.g. glibc-2.2.93.
89041
89042 2003-01-31  Bruno Haible  <bruno@clisp.org>
89043
89044         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
89045         'rpl_rename'.
89046         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
89047         'rpl_strnlen'.
89048         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
89049         'rpl_strtod'.
89050         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
89051         'rpl_utime'.
89052
89053 2003-01-31  Bruno Haible  <bruno@clisp.org>
89054
89055         * lib/rename.c: #undef rename before defining rpl_rename.
89056         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
89057
89058 2003-01-30  Bruno Haible  <bruno@clisp.org>
89059
89060         * modules/vasnprintf, modules/vasprintf: New modules.
89061         * MODULES.html.sh (func_all_modules): Add them.
89062
89063 2003-01-30  Bruno Haible  <bruno@clisp.org>
89064
89065         * m4/signed.m4: New file, from GNU gettext.
89066         * m4/longdouble.m4: New file, from GNU gettext.
89067         * m4/wchar_t.m4: New file, from GNU gettext.
89068         * m4/wint_t.m4: New file, from GNU gettext.
89069         * m4/vasnprintf.m4: New file.
89070         * m4/vasprintf.m4: New file.
89071
89072 2003-01-30  Bruno Haible  <bruno@clisp.org>
89073
89074         * lib/printf-args.h: New file, from GNU gettext.
89075         * lib/printf-args.c: New file, from GNU gettext.
89076         * lib/printf-parse.h: New file, from GNU gettext.
89077         * lib/printf-parse.c: New file, from GNU gettext.
89078         * lib/vasnprintf.h: New file, from GNU gettext.
89079         * lib/vasnprintf.c: New file, from GNU gettext.
89080         * lib/asnprintf.c: New file, from GNU gettext.
89081         * lib/vasprintf.h: New file, from GNU gettext with modifications.
89082         * lib/vasprintf.c: New file, from GNU gettext.
89083         * lib/asprintf.c: New file, from GNU gettext.
89084
89085 2003-01-29  Bruno Haible  <bruno@clisp.org>
89086
89087         * modules/stpncpy: New module.
89088         * MODULES.html.sh (func_all_modules): Add it.
89089
89090 2003-01-29  Bruno Haible  <bruno@clisp.org>
89091
89092         * m4/stpncpy.m4: New file.
89093
89094 2003-01-29  Bruno Haible  <bruno@clisp.org>
89095
89096         * lib/stpncpy.h: New file, from GNU gettext with modifications.
89097         * lib/stpncpy.c: New file, from GNU gettext with modifications.
89098
89099 2003-01-28  Bruno Haible  <bruno@clisp.org>
89100
89101         * modules/c-ctype: New module.
89102         * MODULES.html.sh (func_all_modules): Add it.
89103
89104 2003-01-28  Bruno Haible  <bruno@clisp.org>
89105
89106         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
89107         Paul Eggert.
89108         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
89109         Paul Eggert.
89110
89111 2003-01-27  Bruno Haible  <bruno@clisp.org>
89112
89113         * modules/xsetenv: New module.
89114         * MODULES.html.sh (func_all_modules): Add it.
89115
89116 2003-01-27  Bruno Haible  <bruno@clisp.org>
89117
89118         * lib/xsetenv.h: New file, from GNU gettext.
89119         * lib/xsetenv.c: New file, from GNU gettext.
89120
89121 2003-01-23  Jim Meyering  <jim@meyering.net>
89122
89123         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
89124         from working on systems without dirfd (at least Irix and OSF1/Tru64).
89125
89126 2003-01-23  Bruno Haible  <bruno@clisp.org>
89127
89128         * modules/minmax: New module.
89129         * MODULES.html.sh (func_all_modules): Add it.
89130
89131 2003-01-23  Bruno Haible  <bruno@clisp.org>
89132
89133         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
89134         Eggert.
89135
89136 2003-01-22  Bruno Haible  <bruno@clisp.org>
89137
89138         * modules/exit: New module.
89139         * MODULES.html.sh (func_all_modules): Add it.
89140
89141 2003-01-22  Bruno Haible  <bruno@clisp.org>
89142
89143         * lib/exit.h: New file, from GNU gettext.
89144
89145 2003-01-19  Bruno Haible  <bruno@clisp.org>
89146
89147         * gnulib-tool: Recognize option --extract-maintainer.
89148         (func_get_maintainer): New function.
89149         * modules/*: Add Maintainer entry.
89150
89151 2003-01-16  Jim Meyering  <jim@meyering.net>
89152
89153         * m4/regex.m4: The `regex' struct is both input and output.
89154         Initialize it before each use.  Patch by Tim Waugh.
89155
89156 2003-01-16  Bruno Haible  <bruno@clisp.org>
89157
89158         * MODULES.html.sh: Add a table of contents. Add the module name as
89159         leftmost column. Add hyperlinks.
89160
89161 2003-01-15  Bruno Haible  <bruno@clisp.org>
89162
89163         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
89164
89165 2003-01-15  Bruno Haible  <bruno@clisp.org>
89166
89167         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
89168         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
89169         suffix.
89170
89171 2003-01-15  Bruno Haible  <bruno@clisp.org>
89172
89173         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
89174
89175 2003-01-15  Bruno Haible  <bruno@clisp.org>
89176
89177         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
89178         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
89179
89180 2003-01-14  Jim Meyering  <jim@meyering.net>
89181
89182         * lib/same.c (same_name): Tweak a comment.
89183
89184 2003-01-14  Bruno Haible  <bruno@clisp.org>
89185
89186         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
89187         when a string comparison is sufficient.
89188
89189 2003-01-14  Bruno Haible  <bruno@clisp.org>
89190
89191         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
89192         'unsigned int'.
89193
89194 2003-01-14  Bruno Haible  <bruno@clisp.org>
89195
89196         * lib/hash-pjw.c: Add comment about low quality of this function.
89197
89198 2003-01-13  Bruno Haible  <bruno@clisp.org>
89199
89200         * modules/stpcpy: Distribute lib/stpcpy.h.
89201         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
89202
89203 2003-01-13  Bruno Haible  <bruno@clisp.org>
89204
89205         * modules/*: Add a description.
89206         * modules/strpbrk: Fix Makefile.am snippet.
89207         * modules/strtoimax: Fix dependencies.
89208         * modules/strtoumax: Likewise.
89209
89210 2003-01-13  Bruno Haible  <bruno@clisp.org>
89211
89212         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
89213         * modules/alloca (Makefile.am): All object files depend on alloca.h.
89214         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
89215
89216 2003-01-13  Bruno Haible  <bruno@clisp.org>
89217
89218         * gnulib-tool (func_create_testdir): Store config/* files in the main
89219         directory.
89220         * config.rpath: Move to ...
89221         * config/config.rpath: ... here.
89222         * modules/gettext: Contains config/config.rpath, not config.rpath.
89223         * modules/iconv: Likewise.
89224
89225 2003-01-12  Paul Eggert  <eggert@twinsun.com>
89226
89227         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
89228         to avoid collisions with libcurses and libreadline.
89229
89230         * m4/getstr.m4: Remove.
89231         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
89232
89233 2003-01-12  Paul Eggert  <eggert@twinsun.com>
89234
89235         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
89236         to avoid collisions with libcurses and libreadline.
89237
89238         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
89239         * lib/getstr.h, getstr.c: Remove.
89240         * lib/getline.c: Include "getline.h", to check interface.
89241         Move body of old getstr.c here: this defines MIN_CHUNK and
89242         declares getdelim2, which is renamed from getstr.
89243         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
89244
89245         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
89246         All uses changed.
89247         * lib/linebuffer.h: Likewise.
89248         (readline): Remove backward-compatibility macro.
89249
89250 2003-01-12  Paul Eggert  <eggert@twinsun.com>
89251
89252         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
89253         to avoid collisions with libcurses and libreadline.
89254         * getstr: Remove.
89255         * MODULES.html.sh: Remove getstr.
89256         * modules/getline: Depend on unlocked-io, not getstr.
89257
89258 2003-01-12  Jim Meyering  <jim@meyering.net>
89259
89260         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
89261
89262 2003-01-10  Bruno Haible  <bruno@clisp.org>
89263
89264         * modules/alloca: Change Makefile.am requirements. Simplify Include
89265         requirements. Add lib/alloca_.h to file list.
89266
89267 2003-01-10  Bruno Haible  <bruno@clisp.org>
89268
89269         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
89270
89271 2003-01-10  Bruno Haible  <bruno@clisp.org>
89272
89273         * lib/alloca_.h: New file.
89274         * lib/getdate.y: Unconditionally include alloca.h.
89275         * lib/makepath.c: Likewise.
89276         * lib/setenv.c: Likewise.
89277         * lib/userspec.c: Likewise.
89278
89279 2003-01-09  Karl Berry  <karl@gnu.org>
89280
89281         * MODULES.html.sh: include `dirname $0` in PATH, to find
89282         gnulib-tool.
89283
89284 2003-01-09  Bruno Haible  <bruno@clisp.org>
89285
89286         * modules/stdbool: Change configure.ac, Makefile.am requirements.
89287         Simplify Include requirements. Add lib/stdbool.h.in to file list.
89288
89289 2003-01-09  Bruno Haible  <bruno@clisp.org>
89290
89291         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
89292
89293 2003-01-09  Bruno Haible  <bruno@clisp.org>
89294
89295         * lib/stdbool.h.in: New file.
89296
89297 2003-01-09  Bruno Haible  <bruno@clisp.org>
89298
89299         * gnulib-tool (func_all_modules): Ignore files ending in ~.
89300         * MODULES.html.sh: Likewise.
89301
89302 2003-01-08  Jim Meyering  <jim@meyering.net>
89303
89304         * lib/full-write.c: Undefine and define-away `const' after inclusion
89305         of errno.h, not before.  Suggestion from Bruno Haible.
89306
89307 2003-01-08  Bruno Haible  <bruno@clisp.org>
89308
89309         * modules/full-read: Depend on full-write.
89310
89311 2003-01-08  Bruno Haible  <bruno@clisp.org>
89312
89313         * lib/safe-read.c: Include specification header first, to ensure its
89314         selfcontainedness.
89315         * lib/full-write.c: Likewise.
89316
89317 2003-01-07  Jim Meyering  <jim@meyering.net>
89318
89319         * lib/full-write.c: Rework so that it may serve to define full_read,
89320         too.
89321         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
89322
89323 2003-01-07  Bruno Haible  <bruno@clisp.org>
89324
89325         * lib/strtoimax.c: Include <stdint.h> as an alternative to
89326         <inttypes.h>.
89327         * lib/xstrtol.h: Likewise.
89328         * lib/xstrtoimax.c: Likewise.
89329         * lib/xstrtoumax.c: Likewise.
89330         * lib/human.h: Likewise.
89331
89332         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
89333         on systems that have <inttypes.h> but not <stdint.h>.
89334
89335 2003-01-07  Bruno Haible  <bruno@clisp.org>
89336
89337         * MODULES.html.sh: Add copyright notice.
89338         (missed_files): Omit CVS directory entries.
89339         (func_module): Make it work with sed-3.02.
89340         * MODULES.txt: Remove file.
89341
89342 2003-01-06  Jim Meyering  <jim@meyering.net>
89343
89344         * lib/version-etc.c: Update year in translatable copyright string.
89345
89346 2003-01-03  Karl Berry  <karl@gnu.org>
89347
89348         * config/config.{guess,sub}: update from prep.
89349
89350 2003-01-02  Karl Berry  <karl@gnu.org>
89351
89352         * doc/COPYING.DOC: belatedly updated to 1.2.
89353
89354 2003-01-01  Karl Berry  <karl@gnu.org>
89355
89356         * gnulib-tool (func_verify_module): report module name $module in
89357         error message, not $1.
89358         * gnulib-tool (create-testdir): don't complain if destdir couldn't
89359         be created, only if it doesn't exist.
89360         * gnulib-tool (last_checkin_date): don't expand the $Date here.
89361
89362 2002-12-31  Paul Eggert  <eggert@twinsun.com>
89363
89364         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
89365
89366 2002-12-31  Paul Eggert  <eggert@twinsun.com>
89367
89368         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
89369         memcmp if strcoll doesn't work.
89370
89371 2002-12-31  Bruno Haible  <bruno@clisp.org>
89372
89373         * lib/utime.c (utime_null): No need to call ftruncate if the file was
89374         nonempty.
89375
89376 2002-12-31  Bruno Haible  <bruno@clisp.org>
89377
89378         * lib/memcoll.c (STRCOLL): New macro.
89379         (memcoll): Use it.
89380
89381 2002-12-31  Bruno Haible  <bruno@clisp.org>
89382
89383         * lib/localcharset.h: New file.
89384         * lib/localcharset.c: Include it.
89385         * lib/unicodeio.c: Likewise.
89386
89387 2002-12-31  Bruno Haible  <bruno@clisp.org>
89388
89389         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
89390         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
89391
89392 2002-12-31  Bruno Haible  <bruno@clisp.org>
89393
89394         * lib/getline.h: Include <stddef.h>, for size_t.
89395
89396         * lib/unicodeio.h: Include <stddef.h>, for size_t.
89397         * lib/unicodeio.c: Don't include <stddef.h>.
89398
89399 2002-12-31  Bruno Haible  <bruno@clisp.org>
89400
89401         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
89402         HAVE_TM_ZONE.
89403
89404 2002-12-24  Karl Berry  <karl@gnu.org>
89405
89406         * config/config.guess: update from prep.
89407
89408 2002-12-24  Bruno Haible  <bruno@clisp.org>
89409
89410         General infrasructure.
89411         * m4/README: Rewritten.
89412         * m4/onceonly.m4: New file.
89413         * m4/onceonly_2_57.m4: New file.
89414
89415         Module atexit.
89416         * m4/atexit.m4: New file.
89417
89418         Module strtod.
89419         * m4/strtod.m4: New file.
89420
89421         Module strtol.
89422         * m4/strtol.m4: New file.
89423
89424         Module strtoul.
89425         * m4/strtoul.m4: New file.
89426
89427         Module memchr.
89428         * m4/memchr.m4: New file.
89429
89430         Module memcmp.
89431         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
89432         (jm_FUNC_MEMCMP): Invoke it.
89433
89434         Module memcpy.
89435         * m4/memcpy.m4: New file.
89436
89437         Module memmove.
89438         * m4/memmove.m4: New file.
89439
89440         Module memset.
89441         * m4/memset.m4: New file.
89442
89443         Module strcspn.
89444         * m4/strcspn.m4: New file.
89445
89446         Module strpbrk.
89447         * m4/strpbrk.m4: New file.
89448
89449         Module strstr.
89450         * m4/strstr.m4: New file.
89451
89452         Module strerror.
89453         * m4/strerror.m4: New file.
89454
89455         Module mktime.
89456         * m4/mktime.m4: Renamed from jm-mktime.m4.
89457         (gl_PREREQ_MKTIME): New macro.
89458         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
89459
89460         Module malloc.
89461         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
89462         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
89463         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
89464
89465         Module realloc.
89466         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
89467         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
89468         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
89469
89470         Module strftime.
89471         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
89472         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
89473         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
89474         gl_TM_GMTOFF.
89475         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
89476
89477         Module xalloc.
89478         * m4/xalloc.m4: New file.
89479
89480         Module alloca.
89481         * m4/alloca.m4: New file.
89482
89483         Module putenv.
89484         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
89485         (jm_FUNC_PUTENV): Invoke it.
89486
89487         Module setenv.
89488         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
89489         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
89490         when invoked twice.
89491         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
89492         gt_FUNC_SETENV.
89493
89494         Module memrchr.
89495         * m4/memrchr.m4: New file.
89496
89497         Module stpcpy.
89498         * m4/stpcpy.m4: New file.
89499
89500         Module strcase.
89501         * m4/strcase.m4: New file.
89502
89503         Module strdup.
89504         * m4/strdup.m4: New file.
89505
89506         Module strnlen.
89507         * m4/strnlen.m4: New file.
89508
89509         Module strndup.
89510         * m4/strndup.m4: New file.
89511
89512         Module xstrtod.
89513         * m4/xstrtod.m4: New file.
89514
89515         Module xstrtol.
89516         * m4/xstrtol.m4: New file.
89517
89518         Module getdate.
89519         * m4/getdate.m4: New file.
89520
89521         Module unlocked-io.
89522         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
89523         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
89524         * m4/jm-glibc-io.m4n: Remove file.
89525
89526         Module long-options.
89527         * m4/long-options.m4: New file.
89528
89529         Module md5.
89530         * m4/md5.m4: New file.
89531
89532         Module sha.
89533         * m4/sha.m4: New file.
89534
89535         Module getstr.
89536         * m4/getstr.m4: New file.
89537
89538         Module getline.
89539         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
89540         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
89541         <sys/types.h>, for size_t. Use the function name gnu_getline, not
89542         simply getline. Infoke gl_PREREQ_GETLINE.
89543
89544         Module obstack.
89545         * m4/obstack.m4: New file.
89546
89547         Module hash.
89548         * m4/hash.m4: New file.
89549
89550         Module readtokens.
89551         * m4/readtokens.m4: New file.
89552
89553         Module strverscmp.
89554         * m4/strverscmp.m4: New file.
89555
89556         Module stdbool.
89557         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
89558         OSF/1.
89559
89560         Module strtoll.
89561         * m4/strtoll.m4: New file.
89562
89563         Module strtoull.
89564         * m4/strtoull.m4: New file.
89565
89566         Module strtoimax.
89567         * m4/strtoimax.m4: New file.
89568
89569         Module strtoumax.
89570         * m4/strtoumax.m4: New file.
89571
89572         Module xstrtoimax.
89573         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
89574         jm_AC_PREREQ_XSTRTOIMAX.
89575         Moved the strtol prerequisites to strtol.m4.
89576         Moved the strtoll prerequisites to strtoll.m4.
89577         Moved the strtoimax prerequisites to strtoimax.m4.
89578
89579         Module xstrtoumax.
89580         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
89581         jm_AC_PREREQ_XSTRTOUMAX.
89582         Moved the strtoul prerequisites to strtoul.m4.
89583         Moved the strtoull prerequisites to strtoull.m4.
89584         Moved the strtoumax prerequisites to strtoumax.m4.
89585
89586         Module chown.
89587         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
89588         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
89589
89590         Module dup2.
89591         * m4/dup2.m4: New file.
89592
89593         Module ftruncate.
89594         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
89595         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
89596
89597         Module getgroups.
89598         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
89599         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
89600
89601         Module gettimeofday.
89602         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
89603         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
89604         gl_PREREQ_GETTIMEOFDAY.
89605
89606         Module mkdir.
89607         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
89608         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
89609
89610         Module mkstemp.
89611         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
89612         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
89613         jm_AC_TYPE_UINTMAX_T.
89614         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
89615
89616         Module stat.
89617         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
89618         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
89619
89620         Module lstat.
89621         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
89622         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
89623
89624         Module timespec.
89625         * m4/timespec.m4 (gl_TIMESPEC): New macro.
89626         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
89627         * m4/st_mtim.m4: Indentation.
89628
89629         Module nanosleep.
89630         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
89631         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
89632         gl_PREREQ_NANOSLEEP.
89633
89634         Module regex.
89635         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
89636         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
89637         (gl_REGEX): New macro.
89638
89639         Module rename.
89640         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
89641         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
89642
89643         Module rmdir.
89644         * m4/rmdir.m4: New file.
89645
89646         Module utime.
89647         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
89648         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
89649         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
89650
89651         Module dirname.
89652         * m4/dirname.m4: New file.
89653
89654         Module getopt.
89655         * m4/getopt.m4: New file.
89656
89657         Module unistd-safer.
89658         * m4/unistd-safer.m4: New file.
89659
89660         Module fnmatch.
89661         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
89662         declaration.
89663         (gl_PREREQ_FNMATCH_EXTRA): New macro.
89664         (gl_FUNC_FNMATCH_POSIX): New macro.
89665         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
89666         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
89667         simply fnmatch.
89668
89669         Module exclude.
89670         * m4/exclude.m4: New file.
89671
89672         Module human.
89673         * m4/human.m4: New file.
89674
89675         Module acl.
89676         * m4/acl.m4: Nop.
89677
89678         Module backupfile.
89679         * m4/backupfile.m4: New file.
89680         * m4/d-ino.m4: Indentation.
89681
89682         Module fsusage.
89683         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
89684         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
89685         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
89686
89687         Module dirfd.
89688         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
89689         requirements.
89690
89691         Module euidaccess.
89692         * m4/euidaccess.m4: New file.
89693
89694         Module file-type.
89695         * m4/file-type.m4: New file.
89696
89697         Module fileblocks.
89698         * m4/fileblocks.m4: New file.
89699
89700         Module filemode.
89701         * m4/filemode.m4: New file.
89702
89703         Module isdir.
89704         * m4/isdir.m4: New file.
89705
89706         Module lchown.
89707         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
89708         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
89709
89710         Module makepath.
89711         * m4/makepath.m4: New file.
89712
89713         Module modechange.
89714         * m4/modechange.m4: New file.
89715
89716         Module mountlist.
89717         * m4/mountlist.m4: New file.
89718         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
89719         Indentation.
89720
89721         Module path-concat.
89722         * m4/path-concat.m4: New file.
89723
89724         Module pathmax.
89725         * m4/pathmax.m4: New file.
89726
89727         Module same.
89728         * m4/same.m4: New file.
89729
89730         Module save-cwd.
89731         * m4/save-cwd.m4: New file.
89732
89733         Module savedir.
89734         * m4/savedir.m4: New file.
89735
89736         Module xgetcwd.
89737         * m4/xgetcwd.m4: New file.
89738         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
89739
89740         Module xreadlink.
89741         * m4/xreadlink.m4: New file.
89742
89743         Module safe-read.
89744         * m4/safe-read.m4: New file.
89745
89746         Module safe-write.
89747         * m4/safe-write.m4: New file.
89748
89749         Module closeout.
89750         * m4/closeout.m4: New file.
89751
89752         Module stdio-safer.
89753         * m4/stdio-safer.m4: New file.
89754
89755         Module getpass.
89756         * m4/getpass.m4: New file.
89757
89758         Module getugroups.
89759         * m4/getugroups.m4: New file.
89760
89761         Module group-member.
89762         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
89763         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
89764
89765         Module idcache.
89766         * m4/idcache.m4: New file.
89767
89768         Module userspec.
89769         * m4/userspec.m4: New file.
89770
89771         Module gettime.
89772         * m4/clock_time.m4: New file.
89773         * m4/gettime.m4: New file.
89774
89775         Module settime.
89776         * m4/settime.m4: New file.
89777
89778         Module posixtm.
89779         * m4/posixtm.m4: New file.
89780
89781         Module gethostname.
89782         * m4/gethostname.m4: New file.
89783
89784         Module canon-host.
89785         * m4/canon-host.m4: New file.
89786
89787         Module gettext.
89788         * m4/codeset.m4: New file, from gettext-0.11.5.
89789         * m4/gettext.m4: New file, from gettext-0.11.5.
89790         * m4/glibc21.m4: New file, from gettext-0.11.5.
89791         * m4/iconv.m4: New file, from gettext-0.11.5.
89792         * m4/intdiv0.m4: New file, from gettext-0.11.5.
89793         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
89794         * m4/inttypes.m4: New file, from gettext-0.11.5.
89795         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
89796         * m4/isc-posix.m4: New file, from gettext-0.11.5.
89797         * m4/lcmessage.m4: New file, from gettext-0.11.5.
89798         * m4/lib-ld.m4: New file, from gettext-0.11.5.
89799         * m4/lib-link.m4: New file, from gettext-0.11.5.
89800         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
89801         * m4/progtest.m4: New file, from gettext-0.11.5.
89802         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
89803         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
89804         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
89805
89806         Module localcharset.
89807         * m4/localcharset.m4: New file.
89808
89809         Module hard-locale.
89810         * m4/hard-locale.m4: New file.
89811
89812         Module mbswidth.
89813         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
89814         onceonly macros.
89815         * m4/mbrtowc.m4: Add comment.
89816
89817         Module memcasecmp.
89818         * m4/memcasecmp.m4: New file.
89819
89820         Module memcoll.
89821         * m4/memcoll.m4: New file.
89822
89823         Module unicodeio.
89824         * m4/unicodeio.m4: New file.
89825
89826         Module rpmatch.
89827         * m4/rpmatch.m4: New file.
89828
89829         Module yesno.
89830         * m4/yesno.m4: New file.
89831
89832         Module exitfail.
89833         * m4/exitfail.m4: New file.
89834
89835         Module c-stack.
89836         * m4/c-stack.m4 (gl_C_STACK): New macro.
89837         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
89838
89839         Module error.
89840         * m4/error.m4 (gl_ERROR): New macro.
89841         (jm_PREREQ_ERROR): Use onceonly macros.
89842
89843         Module fatal.
89844         * m4/fatal.m4: New file.
89845
89846         Module getloadavg.
89847         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
89848         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
89849
89850         Module getpagesize.
89851         * m4/getpagesize.m4: New file.
89852
89853         Module getusershell.
89854         * m4/getusershell.m4: New file.
89855
89856         Module physmem.
89857         * m4/physmem.m4: New file.
89858
89859         Module posixver.
89860         * m4/posixver.m4: New file.
89861
89862         Module quotearg.
89863         * m4/quotearg.m4: New file.
89864
89865         Module quote.
89866         * m4/quote.m4: New file.
89867
89868         Module readutmp.
89869         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
89870
89871         Module sig2str.
89872         * m4/sig2str.m4: New file.
89873
89874         Other.
89875         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
89876         ulonglong.m4.
89877         * m4/intmax_t.m4: New file.
89878         * m4/d-type.m4: Indentation.
89879         * m4/jm-macros.m4: Update.
89880         * m4/prereq.m4 (jm_PREREQ): Update.
89881         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
89882         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
89883         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
89884         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
89885         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
89886         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
89887         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
89888         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
89889         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
89890         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
89891         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
89892         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
89893         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
89894         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
89895         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
89896         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
89897         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
89898         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
89899         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
89900
89901 2002-12-24  Bruno Haible  <bruno@clisp.org>
89902
89903         * MODULES.txt: Update according to m4/ changes.
89904
89905         Module gettext.
89906         * config.rpath: New file, from gettext-0.11.5.
89907
89908         * modules/*: New module descriptions.
89909         * gnulib-tool: New file.
89910         * MODULES.html.sh: New file.
89911
89912 2002-12-21  Karl Berry  <karl@gnu.org>
89913
89914         * doc/fdl.texi: update to version 1.2.
89915
89916 2002-12-19  Karl Berry  <karl@gnu.org>
89917
89918         * config/config.guess: update from prep.
89919
89920 2002-12-18  Bruno Haible  <bruno@clisp.org>
89921
89922         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
89923         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
89924
89925 2002-12-17  Bruno Haible  <bruno@clisp.org>
89926
89927         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
89928         stdlib.h, string.h.
89929
89930 2002-12-17  Bruno Haible  <bruno@clisp.org>
89931
89932         * lib/canon-host.c (strdup): Remove unused declaration.
89933
89934         * lib/fsusage.c: Include full_read.h.
89935         (get_fs_usage): Use full_read instead of safe_read.
89936
89937         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
89938
89939 2002-12-12  Karl Berry  <karl@gnu.org>
89940
89941         * config/config.guess: update from prep.
89942
89943 2002-12-11  Bruno Haible  <bruno@clisp.org>
89944
89945         * m4/setenv.m4: New file, from gettext-0.11.5.
89946
89947 2002-12-11  Bruno Haible  <bruno@clisp.org>
89948
89949         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
89950         not unsetenv().
89951         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
89952         modifications:
89953
89954         2002-12-11  Bruno Haible  <bruno@clisp.org>
89955
89956                 * setenv.c (alloca): Fall back to malloc.
89957                 (freea): New macro.
89958                 (setenv): Use freea() to free memory allocated with alloca().
89959
89960         2002-11-13  Bruno Haible  <bruno@clisp.org>
89961
89962                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
89963                 function declarations.
89964                 * unsetenv.c (unsetenv): Likewise.
89965
89966         2002-03-04  Bruno Haible  <bruno@clisp.org>
89967
89968                 Portability to AIX 4.3.3.
89969                 * unsetenv.c: New file, extracted from setenv.c.
89970                 * setenv.c: Move the unsetenv() function to unsetenv.c.
89971
89972         2001-12-20  Bruno Haible  <bruno@clisp.org>
89973
89974                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
89975                 use malloc instead. For SunOS 4.
89976
89977         2001-12-11  Bruno Haible  <bruno@clisp.org>
89978
89979                 * setenv.c: Declare alloca.
89980                 (compar_fn_t): New typedef.
89981                 (KNOWN_VALUE, STORE_VALUE): Use it.
89982
89983         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
89984         setenv.h.
89985
89986 2002-12-10  Paul Eggert  <eggert@twinsun.com>
89987
89988         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
89989         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
89990         Choose values that are less likely to collide with system fnmatch
89991         options.
89992         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
89993         defined (e.g., a pure POSIX system).
89994         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
89995         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
89996
89997 2002-12-06  Paul Eggert  <eggert@twinsun.com>
89998
89999         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
90000         a pain in practice to deal with generated m4 files.  This change
90001         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
90002
90003         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
90004         and jm-glibc-io.m4, as they are no longer a special case.
90005         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
90006         kludge and the auto-generation stuff.  Check only whether the
90007         functions are declared, not whether they exist, since older hosts
90008         that don't declare the functions can't use the optimization anyway.
90009
90010 2002-12-06  Jim Meyering  <jim@meyering.net>
90011
90012         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
90013
90014         Merge in changes from libc's misc/error.c, in preparation
90015         for the merge of gnulib's changes back into libc.
90016
90017         * lib/error.c (_): Define only if not already defined.
90018         Move definition to follow all #include directives.
90019         Include unlocked-io.h only if !_LIBC.
90020         [_LIBC]: Include <libio/libioP.h>.
90021         [USE_IN_LIBIO]: Include <libio/iolibio.h>
90022         (fflush): Tweak definition to use INTUSE.
90023         (putc): Define.
90024
90025 2002-12-05  Paul Eggert  <eggert@twinsun.com>
90026
90027         * lib/alloca.c [defined emacs]: Include "lisp.h".
90028         (xalloc_die) [defined emacs]: New macro.
90029         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
90030         [! defined emacs]: Include <xalloc.h>.
90031         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
90032         (pointer): Typedef to POINTER_TYPE *.
90033         (malloc): Remove decl; we now always use xmalloc.
90034         (alloca): Use old-style definition, since Emacs needs this.
90035         Check for arithmetic overflow when computing combined size.
90036
90037 2002-12-04  Paul Eggert  <eggert@twinsun.com>
90038
90039         Do not generate unlocked-io.h automatically, since it's easier to
90040         maintain it by hand.
90041
90042         * lib/unlocked-io.h: New file, from GNU diffutils,
90043         but with proper copyright notice and attribution.
90044         * lib/gen-uio: Remove.
90045         * lib/Makefile.am: Add copyright notice.
90046         (libfetish_a_SOURCES): Add unlocked-io.h.
90047         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
90048         (DISTCLEANFILES, io_functions): Remove macros.
90049         (EXTRA_DIST): Remove gen_uio.
90050         (unlocked-io.h): Remove rule.
90051
90052 2002-12-04  Jim Meyering  <jim@meyering.net>
90053
90054         Reflect the fact that stat.c and lstat.c are no longer generated.
90055         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
90056         (DISTCLEANFILES): Likewise.
90057         (EXTRA_DIST): Likewise.
90058         (all_local): Don't depend on stat.c or lstat.c.
90059         (stat.c, lstat.c): Remove rules.
90060         (EXTRA_DIST): Remove xstat.in.
90061
90062         * lib/xstat.in: Remove file.  Contents moved into stat.c.
90063         * lib/stat.c: New file.  Contents mostly from xstat.in.
90064         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
90065         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
90066
90067         * lib/safe-read.c: Rework so that it may serve to define safe_write,
90068         too.
90069         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
90070
90071 2002-12-03  Jim Meyering  <jim@meyering.net>
90072
90073         * lib/safe-read.c, safe-write.c: Change variable names and comments,
90074         but not semantics, to minimize the differences between these two files.
90075         (safe_read): Change comment to mention SAFE_READ_ERROR.
90076
90077         * lib/safe-read.c (IS_EINTR): Define.
90078         (safe_read): Use IS_EINTR in place of in-function cpp directives.
90079
90080 2002-12-02  Jim Meyering  <jim@meyering.net>
90081
90082         * lib/safe-read.c (EINTR): Define.
90083         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
90084         (INT_MAX): Provide fallback.
90085         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
90086
90087         * lib/safe-read.h (SAFE_READ_ERROR): Define.
90088
90089 2002-12-02  Bruno Haible  <bruno@clisp.org>
90090
90091         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
90092         Define, taken from safe-read.c.
90093         (INT_MAX): Provide fallback.
90094         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
90095         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
90096
90097         * lib/safe-read.c (EINTR): Remove definition.
90098         (safe_read): Don't use EINTR if it is absent.
90099
90100 2002-12-01  Jim Meyering  <jim@meyering.net>
90101
90102         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
90103         zero.
90104         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
90105
90106 2002-11-27  Paul Eggert  <eggert@twinsun.com>
90107
90108         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
90109         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
90110         with `if (! (value < limit)) abort ();', for readability.
90111
90112 2002-11-26  Karl Berry  <karl@gnu.org>
90113
90114         * lib/strdup.c: copy from libc again, with jim's ok.
90115         * lib/.cppi-disable: re-add strdup.c
90116
90117 2002-11-25  Karl Berry  <karl@gnu.org>
90118
90119         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
90120         instead of "strtol.c".
90121
90122 2002-11-25  Karl Berry  <karl@gnu.org>
90123
90124         * config/install-sh: update from automake for variable quoting, $0 in
90125         error msgs, etc.
90126
90127         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
90128         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
90129         entry.
90130
90131 2002-11-25  Jim Meyering  <jim@meyering.net>
90132
90133         * lib/mktime.c: Sync from libc, now that it has the latest fix.
90134
90135 2002-11-24  Karl Berry  <karl@gnu.org>
90136
90137         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
90138         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
90139
90140 2002-11-24  Jim Meyering  <jim@meyering.net>
90141
90142         Update from coreutils:
90143
90144         * lib/mktime.c: Merge in changes from libc.
90145
90146         Avoid a link-time failure on some Linux systems.
90147         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
90148         (otherwise).
90149         (__mon_yday): Declare with the STATIC attribute.
90150         (__mktime_internal): Likewise.
90151         Based on a report from Greg Schafer.
90152
90153 2002-11-23  Jim Meyering  <jim@meyering.net>
90154
90155         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
90156         Use `unsigned', not `int', as type of index.
90157
90158         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
90159
90160         * lib/fsusage.c: Remove unneeded parentheses around operands of
90161         `defined'.
90162
90163 2002-11-22  Paul Eggert  <eggert@twinsun.com>
90164
90165         * lib/quotearg.h: Allow multiple inclusion by surrounding with
90166         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
90167         so that we can be included first.
90168         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
90169         * lib/quotearg.c: Include quotearg.h immediately after config.h.
90170         No need to include stddef.h or sys/types.h any more.
90171         Surround local include files with "", not "<>".
90172         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
90173         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
90174         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
90175         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
90176         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
90177         (ISPRINT): Remove; no longer needed now that we assume C89.
90178
90179         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
90180         Preserve errno.
90181
90182         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
90183         quotearg_char): Use SIZE_MAX rather than
90184         (size_t) -1 when we are talking about "infinity".
90185
90186         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
90187
90188 2002-11-22  Paul Eggert  <eggert@twinsun.com>
90189
90190         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
90191         hint that one should use `if (! x) abort ();' rather than `assert
90192         (x);', and anyway it's one less thing to worry about configuring.
90193         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
90194         hash_rehash, hash_insert): Use abort rather than assert.
90195
90196 2002-11-22  Bruno Haible  <bruno@clisp.org>
90197
90198         * lib/safe-read.h: Assume C89. Add comments.
90199         (safe_read): Change return type to size_t.
90200         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
90201         byte counts > SSIZE_MAX correctly.
90202         * lib/safe-write.h: New file.
90203         * lib/safe-write.c: New file.
90204         * lib/full-read.h: New file.
90205         * lib/full-read.c: New file.
90206         * lib/full-write.h: Assume C89. Add comments.
90207         * lib/full-write.c: Include safe-write.h.
90208         (full_write): Rewritten to use safe_write.
90209         Suggested by Jim Meyering and Paul Eggert.
90210
90211 2002-11-21  Jim Meyering  <jim@meyering.net>
90212
90213         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
90214
90215         Merge in changes from the coreutils.
90216
90217         2002-09-25  Paul Eggert  <eggert@twinsun.com>
90218         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
90219         <stdint.h>.
90220         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
90221         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
90222         int.  Work more efficiently if X is the same width as uintmax_t.
90223         Do not compare X to -1, to avoid bogus compiler warning.
90224         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
90225         Don't assume that f_frsize and f_bsize are the same type.
90226
90227         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
90228         warning on FreeBSD.
90229
90230         * lib/makepath.c (make_path): Restore umask *before* creating the final
90231         component.
90232         (make_path): Minor reformatting.
90233
90234         * lib/xmalloc.c: Adjust to work with new autoconf macros,
90235         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
90236         HAVE_MALLOC/HAVE_REALLOC.
90237
90238         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
90239         dummy ones.  At least on GNU/Linux systems, `auto' means something
90240         else.
90241         From Michael Stone.
90242
90243 2002-11-21  Bruno Haible  <bruno@clisp.org>
90244
90245         Remove case insensitive option matching.
90246         * lib/argmatch.h (argcasematch): Remove declaration.
90247         (ARGCASEMATCH): Remove macro.
90248         (__xargmatch_internal): Remove case_sensitive argument.
90249         (XARGMATCH): Update.
90250         (XARGCASEMATCH): Remove macro.
90251         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
90252         case_sensitive argument.
90253         (argcasematch): Remove function.
90254         (__xargmatch_internal): Remove case_sensitive argument.
90255         (main): Use XARGMATCH instead of XARGCASEMATCH.
90256
90257         * lib/xmalloc.c: Change compile-time error message. Add comment about
90258         required autoconf version.
90259
90260 2002-11-20  Paul Eggert  <eggert@twinsun.com>
90261
90262         Merge argmatch cleanups from Bison.  Assume C89.
90263
90264         * lib/argmatch.c: Include config.h here, not in argmatch.h.
90265         Include stdlib.h, for EXIT_FAILURE.
90266         Always include <string.h>, since we assume C89.
90267         (EXIT_FAILURE): Remove pre-C89 bug workaround.
90268         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
90269         Include <stddef.h> instead, since it's all we need for size_t.
90270         (PARAMS): Remove.  All uses removed.
90271         (ARRAY_CARDINALITY): Do not bother to #undef.
90272         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
90273         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
90274         Remove unnecessary parentheses.
90275         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
90276         Insert necessary parentheses.
90277         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
90278         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
90279
90280 2002-11-19  Bruno Haible  <bruno@clisp.org>
90281
90282         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
90283         * lib/mbswidth.h: Include <stddef.h>, for size_t.
90284
90285         * lib/mbswidth.h (PARAMS): Remove macro.
90286         (mbswidth, mbsnwidth): Use ANSI C function declarations.
90287         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
90288
90289         * lib/gcd.h (PARAMS): Remove macro.
90290         (gcd): Use ANSI C function declarations.
90291         * lib/gcd.c (gcd): Likewise.
90292
90293 2002-11-15  Bruno Haible  <bruno@clisp.org>
90294
90295         * lib/strcspn.c: Include <stddef.h>.
90296         (strcspn): Use ANSI C function declaration. Change return type to
90297         size_t. Use NULL.
90298         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
90299         (strpbrk): Use NULL.
90300         * lib/strpbrk.h (PARAMS): Remove macro.
90301         (strpbrk): Use ANSI C function declaration.
90302         * lib/strstr.c: Don't include <sys/types.h>.
90303         * lib/strstr.h (PARAMS): Remove macro.
90304         (strstr): Use ANSI C function declarations.
90305
90306 2002-11-14  Karl Berry  <karl@gnu.org>
90307
90308         * config/mkinstalldirs: `do' on separate line, instead of
90309         `for var; do'.
90310
90311 2002-11-06  Bruno Haible  <bruno@clisp.org>
90312
90313         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
90314         * lib/gcd.c (gcd): Likewise.
90315
90316 2002-11-05  Bruno Haible  <bruno@clisp.org>
90317
90318         * lib/gcd.h: New file, from gettext-0.11.5.
90319         * lib/gcd.c: New file, from gettext-0.11.5.
90320
90321 2002-11-05  Bruno Haible  <bruno@clisp.org>
90322
90323         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90324         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90325         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90326         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
90327
90328         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
90329         <libintl.h>.
90330         * lib/makepath.c: Include gettext.h instead of <locale.h> and
90331         <libintl.h>.
90332
90333         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
90334         * lib/human.c: Include gettext.h instead of <libintl.h>.
90335         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
90336         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
90337         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
90338         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
90339         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
90340         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
90341         (textdomain): Remove definition.
90342         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
90343
90344         * lib/long-options.c: Remove include of <libintl.h> and definition of
90345         _.
90346         * lib/same.c: Remove include of <libintl.h> and definition of _.
90347
90348 2002-11-04  Owen Taylor  <otaylor@redhat.com>
90349
90350         * lib/config.charset: A few additions for Solaris.
90351
90352 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
90353
90354         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
90355         * lib/localcharset.c (locale_charset): Declare as extern "C".
90356
90357 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
90358
90359         * lib/config.charset: msdos in uk_UA uses CP1125.
90360
90361 2002-11-04  Bruno Haible  <bruno@clisp.org>
90362
90363         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
90364         * lib/strcase.h: New file, from GNU gettext-0.11.5.
90365         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
90366         * lib/strstr.h: New file, from GNU gettext-0.11.5.
90367         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
90368
90369 2002-11-04  Bruno Haible  <bruno@clisp.org>
90370
90371         * lib/localcharset.c (locale_charset): Don't return an empty string.
90372
90373 2002-11-04  Bruno Haible  <bruno@clisp.org>
90374
90375         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
90376         aliases.
90377
90378 2002-11-04  Bruno Haible  <bruno@clisp.org>
90379
90380         * lib/config.charset: Update for newest glibc. Add canonical names
90381         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
90382
90383 2002-11-04  Bruno Haible  <bruno@clisp.org>
90384
90385         * lib/config.charset: Add support for NetBSD.
90386
90387 2002-11-04  Bruno Haible  <bruno@clisp.org>
90388
90389         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
90390
90391 2002-11-01  Bruno Haible  <bruno@clisp.org>
90392
90393         * configure.in: Add AC_CONFIG_AUX_DIR call.
90394         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
90395         test/Makefile.
90396         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
90397
90398 2002-09-28  Karl Berry  <karl@gnu.org>
90399
90400         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
90401         installed automake until the next release, since changes have been
90402         made.
90403
90404 2002-09-25  Karl Berry  <karl@gnu.org>
90405
90406         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
90407         * lib/getopt*: copy from libc/posix.
90408         * lib/gettext.h: copy from gettext.
90409         * lib/.cppi-disable: add strdup.c, gettext.h.
90410
90411 2002-09-25  Karl Berry  <karl@gnu.org>
90412
90413         * config/srclist.txt: enable gettext.h check.
90414         * config/config.{guess,sub}: update from prep.
90415         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
90416                 from automake 1.6.3.
90417         See srclist*.
90418
90419 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
90420
90421         * regex.c (PATFETCH): Remove the translating fetch.
90422         (PATFETCH_RAW): Rename to PATFETCH.
90423         (set_image_of_range): New fun.
90424         (SET_RANGE_TABLE_WORK_AREA): Use it.
90425         (regex_compile): Don't translate the pattern chars so eagerly.
90426         Only do it when inserting an `exactn' bytecode or when handling
90427         a char-range.
90428         (mutually_exclusive_p): Avoid empty statement.
90429
90430 2002-07-06  Jim Meyering  <meyering@lucent.com>
90431
90432         * m4/README: Don't mention Makefile.am.in.
90433         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
90434
90435 2002-07-01  Jim Meyering  <meyering@lucent.com>
90436
90437         * lib/c-stack.c: Include sys/time.h.
90438         From Volker Borchert.
90439
90440 2002-06-26  Paul Eggert  <eggert@twinsun.com>
90441
90442         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
90443
90444 2002-06-26  Paul Eggert  <eggert@twinsun.com>
90445
90446         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
90447         New macro.  Use it uniformly instead of
90448         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
90449         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
90450         reported by Vin Shelton.
90451
90452 2002-06-22  Paul Eggert  <eggert@twinsun.com>
90453
90454         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
90455         Do not assume SA_SIGINFO behavior.
90456         Bug reported by Jim Meyering on NetBSD 1.5.2.
90457
90458 2002-06-22  Jim Meyering  <meyering@lucent.com>
90459
90460         * m4/c-stack.m4: New file, from diffutils-2.8.2.
90461         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
90462
90463         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
90464         now that configure.ac uses AC_GNU_SOURCE.
90465         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
90466         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
90467
90468         Update to latest tools.  Suggestions from Paul Eggert.
90469         * m4/stdbool.m4: New file, from diffutils-2.8.2.
90470         * m4/gnu-source.m4: Update from diffutils-2.8.2.
90471         * m4/fnmatch.m4: Likewise.
90472         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
90473         to AC_HEADER_STDBOOL
90474
90475 2002-06-22  Jim Meyering  <meyering@lucent.com>
90476
90477         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
90478         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
90479
90480 2002-06-22  Jim Meyering  <meyering@lucent.com>
90481
90482         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
90483
90484         * lib/exitfail.c, exitfail.h: Likewise.
90485         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
90486
90487         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
90488         of fnmatch.h.
90489         (EXTRA_DIST): Add fnmatch_loop.c.
90490         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
90491
90492         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
90493         * lib/fnmatch.c: Update from diffutils-2.8.2.
90494         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
90495         * lib/fnmatch.h: Remove file.
90496
90497 2002-06-21  Jim Meyering  <meyering@lucent.com>
90498
90499         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
90500         * m4/mbrtowc.m4: Likewise.
90501
90502         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
90503         * m4/mbswidth.m4: Reflect name change:
90504         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
90505         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
90506
90507         * m4/lib-link.m4: Update from gettext-0.11.2.
90508         * m4/gettext.m4: Likewise.
90509
90510         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
90511         From Alfred M. Szmidt.
90512
90513 2002-06-18  Paul Eggert  <eggert@twinsun.com>
90514
90515         * lib/file-type.h: Report an error if neither S_ISREG nor
90516         S_IFREG is defined, instead of using a test specific to glibc
90517         2.2.  This should be safe, since POSIX requires S_ISREG and
90518         Unix Version 7 had S_IFREG.  We don't need to check for
90519         <sys/types.h> since we don't use any symbols that it defines.
90520
90521 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
90522
90523         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
90524         $@-t, so that each temporary file name is unique and valid in the first
90525         8 characters, for operation under DOS.
90526
90527 2002-06-15  Paul Eggert  <eggert@twinsun.com>
90528
90529         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
90530
90531 2002-06-15  Jim Meyering  <meyering@lucent.com>
90532
90533         Work even with DJGPP 2.03, which lacks support for symlinks.
90534         From Richard Dawe.
90535         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
90536         is defined.
90537         * lib/lchown.c (S_ISLNK): Likewise.
90538
90539 2002-06-15  Jim Meyering  <meyering@lucent.com>
90540
90541         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
90542         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
90543         have been included before this file.
90544
90545 2002-06-14  Jim Meyering  <meyering@lucent.com>
90546
90547         * lib/file-type.h: Use the version from diffutils-2.8.2.
90548         * lib/file-type.c: Likewise.
90549
90550 2002-06-07  Jim Meyering  <meyering@lucent.com>
90551
90552         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
90553         They're needed at least for NetBSD 1.5.2.
90554         ($statxfs_includes): Include those same headers.
90555         ($statxfs_includes): Include sys/vfs.h if available.
90556         ($statxfs_includes): Likewise for sys/statvfs.h.
90557         Check for the following members in both structs statfs and statvfs:
90558         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
90559
90560 2002-06-01  Jim Meyering  <meyering@lucent.com>
90561
90562         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
90563         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
90564
90565 2002-05-28  Jim Meyering  <meyering@lucent.com>
90566
90567         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
90568         Reported by Volker Borchert.
90569
90570 2002-05-27  Jim Meyering  <meyering@lucent.com>
90571
90572         Fix a problem seen only on nonconforming systems whereby ls.c's
90573         use of localtime, and then of gettimeofday would cause trouble:
90574         the localtime call used to initialize rpl_gettimeofday's save
90575         mechanism would clobber ls's current local time information so
90576         that in any long listing the first file would always be listed
90577         with date 1970-01-01.  Analysis by Volker Borchert.
90578
90579         * lib/gettimeofday.c (localtime): Undefine.
90580         (rpl_localtime): New function.
90581
90582 2002-05-27  Jim Meyering  <meyering@lucent.com>
90583
90584         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
90585         localtime.
90586
90587         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
90588         use the replacement function; it wouldn't resolve at link time.
90589         Reported by Volker Borchert.
90590
90591 2002-05-22  Jim Meyering  <meyering@lucent.com>
90592
90593         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
90594         file-type.h.
90595         * lib/file-type.h: New file.
90596         * lib/file-type.c (file_type): New file/function.  Extracted from
90597         diffutils.
90598
90599 2002-04-30  Jim Meyering  <meyering@lucent.com>
90600
90601         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
90602
90603 2002-04-29  Paul Eggert  <eggert@twinsun.com>
90604
90605         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
90606
90607 2002-04-29  Paul Eggert  <eggert@twinsun.com>
90608
90609         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
90610         Do not check for alloca.h (no longer used) or stdbool.h (was never
90611         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
90612
90613 2002-04-29  Paul Eggert  <eggert@twinsun.com>
90614
90615         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
90616
90617 2002-04-29  Jim Meyering  <meyering@lucent.com>
90618
90619         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
90620         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
90621         Use AC_FUNC_STRNLEN here instead.
90622
90623         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
90624         With autoconf-2.53a, it's part of AC_PROG_CC.
90625
90626 2002-04-28  Paul Eggert  <eggert@twinsun.com>
90627
90628         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
90629         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
90630
90631 2002-04-28  Paul Eggert  <eggert@twinsun.com>
90632
90633         * lib/sig2str.h, lib/sig2str.c: New files.
90634         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
90635
90636 2002-04-28  Paul Eggert  <eggert@twinsun.com>
90637
90638         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
90639         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
90640         of 127, since 64 is the largest conceivable number for ancient
90641         nonstandard hosts.
90642         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
90643
90644 2002-04-28  Jim Meyering  <meyering@lucent.com>
90645
90646         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
90647
90648 2002-04-24  Jim Meyering  <meyering@lucent.com>
90649
90650         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
90651         (jm_PREREQ): Use it.
90652
90653         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
90654         mach/mach.h fcntl.h.
90655         Check for this function: setlocale.
90656
90657 2002-04-24  Jim Meyering  <meyering@lucent.com>
90658
90659         * lib/gettext.h: New file, from Gettext.
90660         * lib/Makefile.am (INCLUDES): Remove -I../intl.
90661         (libfetish_a_SOURCES): Add gettext.h.
90662
90663 2002-04-16  Jim Meyering  <meyering@lucent.com>
90664
90665         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
90666         ut_pid, ut_id, ut_exit.
90667
90668 2002-04-16  Jim Meyering  <meyering@lucent.com>
90669
90670         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
90671         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
90672         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
90673
90674 2002-04-12  Jim Meyering  <meyering@lucent.com>
90675
90676         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
90677         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
90678         existence of the getmntinfo function.  Needed for Darwin 5.3.
90679
90680         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
90681         This is necessary at least on Darwin 5.3.
90682
90683         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
90684         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
90685         strnlen.o in the library, and that makes some versions of ranlib
90686         object.
90687
90688 2002-04-12  Jim Meyering  <meyering@lucent.com>
90689
90690         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
90691
90692 2002-04-09  Jim Meyering  <meyering@lucent.com>
90693
90694         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
90695         to be more precise.  Rather than saying we're checking whether the
90696         function `works', say what we're testing.
90697         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
90698         Reported by Bruno Haible.
90699
90700 2002-03-10  Jim Meyering  <meyering@lucent.com>
90701
90702         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
90703         Suggestion from Santiago Vila.
90704
90705 2002-03-08  Jim Meyering  <meyering@lucent.com>
90706
90707         * lib/rename.c: Mention that this wrapper is needed also on
90708         mips-dec-ultrix4.4 systems.
90709
90710 2002-03-02  Jim Meyering  <meyering@lucent.com>
90711
90712         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
90713         not HAVE_CLOCK_SETTIME.
90714
90715 2002-02-27  Paul Eggert  <eggert@twinsun.com>
90716
90717         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
90718         Check for clock_settime.
90719
90720 2002-02-27  Paul Eggert  <eggert@twinsun.com>
90721
90722         * lib/nanosleep.h: Rename to....
90723         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
90724
90725         * lib/gettime.c: New file.
90726         * lib/settime.c: New file.
90727         * lib/stime.c: Remove.
90728
90729         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
90730         timespec.h.  Remove nanosleep.h.
90731
90732 2002-02-25  Paul Eggert  <eggert@twinsun.com>
90733
90734         * m4/acl.m4: New file.
90735         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
90736         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
90737
90738 2002-02-25  Paul Eggert  <eggert@twinsun.com>
90739
90740         * lib/acl.c, lib/acl.h: New files.
90741         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
90742
90743 2002-02-24  Jim Meyering  <meyering@lucent.com>
90744
90745         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
90746         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
90747         cause trouble.  Reported by Nelson Beebe.
90748
90749 2002-02-23  Paul Eggert  <eggert@twinsun.com>
90750
90751         * lib/path-concat.c (xpath_concat): Reorder code to pacify
90752         compilers that don't know that xalloc_die never returns.
90753
90754 2002-02-20  Jim Meyering  <meyering@lucent.com>
90755
90756         * lib/getdate.c: Regenerate using bison-1.33.
90757
90758 2002-02-17  Jim Meyering  <meyering@lucent.com>
90759
90760         * config/config.guess (main): Don't use `head -1'; it's no longer
90761         portable. Use `sed 1q' instead.
90762
90763 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
90764
90765         * m4/codeset.m4: Upgrade to gettext-0.11.
90766         * m4/gettext.m4: Upgrade to gettext-0.11.
90767         * m4/glibc21.m4: Upgrade to gettext-0.11.
90768         * m4/iconv.m4: Upgrade to gettext-0.11.
90769         * m4/isc-posix.m4: Upgrade to gettext-0.11.
90770         * m4/lcmessage.m4: Upgrade to gettext-0.11.
90771         * m4/lib-ld.m4: New file, from gettext-0.11.
90772         * m4/lib-link.m4: New file, from gettext-0.11.
90773         * m4/lib-prefix.m4: New file, from gettext-0.11.
90774         * m4/progtest.m4: Upgrade to gettext-0.11.
90775
90776 2002-02-15  Paul Eggert  <eggert@twinsun.com>
90777
90778         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
90779         (jm_PREREQ): Use it.
90780
90781 2002-02-15  Paul Eggert  <eggert@twinsun.com>
90782
90783         * lib/posixver.c, lib/posixver.h: New files.
90784         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
90785
90786 2002-02-02  Paul Eggert  <eggert@twinsun.com>
90787             Bruno Haible  <bruno@clisp.org>
90788
90789         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
90790         (fwrite_success_callback): New declaration.
90791         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
90792         print_unicode_char. Call failure callback instead of error.
90793         (fwrite_success_callback): New function.
90794         (exit_failure_callback): New function.
90795         (fallback_failure_callback): New function.
90796         (print_unicode_char): Call unicode_to_mb.
90797
90798 2002-01-26  Jim Meyering  <meyering@lucent.com>
90799
90800         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
90801         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
90802
90803 2002-01-26  Jim Meyering  <meyering@lucent.com>
90804
90805         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
90806
90807 2002-01-22  Paul Eggert  <eggert@twinsun.com>
90808
90809         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
90810
90811 2002-01-22  Jim Meyering  <meyering@lucent.com>
90812
90813         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
90814         Otherwise, some versions of automake would omit the rule that makes
90815         Makefile from Makefile.in.
90816
90817 2002-01-21  Paul Eggert  <eggert@twinsun.com>
90818
90819         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
90820         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
90821         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
90822         (memcoll): Set errno to zero if there is no error.
90823
90824         * lib/quotearg.c (quotearg_buffer_restyled):
90825         Fix bug with quoting buffers containing NUL when backslashing escapes.
90826         This bug was exposed by the other changes in this patch.
90827         (quotearg_n_options): New arg ARGSIZE.
90828         All callers changed.
90829         (quoting_options_from_style): New function.
90830         (quotearg_n_style): Use it.
90831         (quotearg_n_style_mem): New function.
90832
90833         * lib/quotearg.h (quotearg_n_style_mem): New function.
90834
90835 2002-01-19  Jim Meyering  <meyering@lucent.com>
90836
90837         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
90838         Remove useless quotes: DF_PROG="df".
90839         * m4/strnlen.m4: New file.
90840
90841 2002-01-16  Paul Eggert  <eggert@twinsun.com>
90842
90843         * lib/backupfile.c (ISDIGIT): Comment fix.
90844         * lib/getdate.y (ISDIGIT): Likewise.
90845         * lib/posixtm.c (ISDIGIT, year): Likewise.
90846         * lib/strverscmp.c (ISDIGIT): Likewise.
90847         * lib/userspec.c (ISDIGIT): Likewise.
90848
90849 2002-01-16  Jim Meyering  <meyering@lucent.com>
90850
90851         * lib/getdate.y: Add three semicolons, each just before a closing
90852         brace. Bison (as of version 1.31) no longer papers over that mistake.
90853
90854 2002-01-05  Jim Meyering  <meyering@lucent.com>
90855
90856         * lib/version-etc.c (version_etc_copyright): Update copyright year.
90857
90858 2001-12-19  Paul Eggert  <eggert@twinsun.com>
90859
90860         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
90861         not silently exit merely because the output buffer happens to
90862         have nothing pending.
90863
90864 2001-12-18  Paul Eggert  <eggert@twinsun.com>
90865
90866         See the big note in ../ChangeLog.
90867         * lib/human.c (suffixes): Prefer K to k for 1024.
90868         (generate_suffix_backwards): New function.
90869         (human_readable_inexact): Use it.
90870         * lib/xstrtol.c (__xstrtol): If there is no number but there
90871         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
90872         Accept 'K' as well as 'k'.
90873
90874 2001-12-15  Jim Meyering  <meyering@lucent.com>
90875
90876         * lib/regex.h (__restrict_arr): Update from libc.
90877
90878         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
90879         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
90880         (STREQ): Define.
90881
90882 2001-12-14  Jim Meyering  <meyering@lucent.com>
90883
90884         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
90885         Suggestion from Bruno Haible.
90886
90887 2001-12-10  Jim Meyering  <meyering@lucent.com>
90888
90889         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
90890         xrealloc, Instead, include "xalloc.h".
90891         (initbuffer): Don't cast xmalloc return value to char*.
90892         (readline): Reword comment.
90893         Don't cast xrealloc return value to char*
90894         Return NULL, not 0.
90895
90896 2001-12-09  Jim Meyering  <meyering@lucent.com>
90897
90898         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
90899         about `signed and unsigned type in conditional expression'.
90900         * lib/posixtm.c (posix_time_parse): Likewise.
90901
90902         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
90903
90904         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
90905         to avoid a pedantic warning.
90906
90907         * lib/getstr.c: Don't include assert.h.
90908         (getstr): Remove warning-evoking assertions.
90909         Return -1 if offset parameter is out of bounds.
90910         Change the type of a local from int to size_t.
90911
90912         * lib/strftime.c (my_strftime_localtime_r): Include this function
90913         definition in the `#if ! HAVE_TM_GMTOFF' block.
90914
90915         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
90916         Include xalloc.h instead.
90917
90918 2001-12-02  Jim Meyering  <meyering@lucent.com>
90919
90920         * lib/tempname.c: Don't declare getenv, thus reverting the change of
90921         2001-11-18.  It's no longer necessary, now that stdlib.h is always
90922         included.
90923
90924         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
90925         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
90926
90927 2001-11-30  Akim Demaille  <akim@epita.fr>
90928
90929         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
90930         before being defined.
90931
90932 2001-11-27  Paul Eggert  <eggert@twinsun.com>
90933
90934         * lib/quotearg.h (quotearg_n, quotearg_n_style):
90935         First arg is int, not unsigned.
90936         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
90937         (SIZE_MAX, UINT_MAX): New macros.
90938         (quotearg_n_options): Abort if N is negative.
90939         Avoid overflow check on hosts where size_t is 64 bits and int
90940         is 32 bits, as overflow is impossible there.
90941         Fix off-by-one typo that caused unnecessary reallocation.
90942
90943 2001-11-27  Jim Meyering  <meyering@lucent.com>
90944
90945         * lib/tempname.c: Merge with version from libc.
90946         * lib/regex.c: Likewise.
90947
90948         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
90949         systems for which STDC_HEADERS is 0, it was not included, resulting in
90950         a warning about an integer-to-pointer conversion problem with getenv.
90951         Reported by Volker Borchert.
90952
90953 2001-11-26  Jim Meyering  <meyering@lucent.com>
90954
90955         * lib/gtod.h: Remove file.
90956         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
90957         * lib/gettimeofday.c: Don't include gtod.h.
90958         (GTOD_init): Remove function.
90959         (rpl_gettimeofday): Do its job here instead, rather than aborting.
90960         Suggestion from Volker Borchert.
90961
90962 2001-11-23  Jim Meyering  <meyering@lucent.com>
90963
90964         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
90965         it.
90966         * lib/hash.c (struct hash_table): Define it here instead.
90967
90968 2001-11-22  Jim Meyering  <meyering@lucent.com>
90969
90970         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
90971
90972 2001-11-20  Jim Meyering  <meyering@lucent.com>
90973
90974         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
90975         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
90976
90977 2001-11-19  Jim Meyering  <meyering@lucent.com>
90978
90979         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
90980         directory.  Use "conftestXXXXXX" as the template.
90981         Suggestion from Paul Eggert.
90982
90983         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
90984         immediately, so the test doesn't mistakenly hit the max-open-files
90985         limit.
90986
90987 2001-11-18  Paul Eggert  <eggert@twinsun.com>
90988
90989         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
90990         (TEMPORARIES): New macro.
90991         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
90992         removes an artificial limitation (e.g. HP-UX 10.20, where
90993         TMP_MAX is 17576).
90994
90995 2001-11-18  Jim Meyering  <meyering@lucent.com>
90996
90997         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
90998
90999 2001-11-18  Jim Meyering  <meyering@lucent.com>
91000
91001         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
91002         on SunOS 4.
91003
91004         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
91005         files will be created before anything else.
91006
91007 2001-11-17  Paul Eggert  <eggert@twinsun.com>
91008
91009         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
91010         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
91011
91012 2001-11-17  Jim Meyering  <meyering@lucent.com>
91013
91014         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
91015         Prompted by a report from Bob Proulx.
91016
91017         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
91018         Instead, require UTILS_FUNC_MKSTEMP.
91019
91020 2001-11-17  Jim Meyering  <meyering@lucent.com>
91021
91022         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
91023         Now, that's done as part of AC_FUNC_STRTOD.
91024
91025 2001-11-17  Jim Meyering  <meyering@lucent.com>
91026
91027         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
91028         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
91029         rather than group writable.  Patch by Juan F. Codagnone.
91030
91031         * lib/readtokens.c: Remove explicit declarations of xmalloc and
91032         xrealloc, Instead, include "xalloc.h".
91033
91034         * lib/mountlist.c: Include unlocked-io.h after all system headers.
91035         Remove explicit declarations of xmalloc, xrealloc,
91036         and xstrdup.  Instead, include "xalloc.h".
91037
91038         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
91039         unlocked-io.h.
91040         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
91041         Likewise.
91042         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
91043
91044         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
91045         Reported by Padraig Brady.
91046
91047         * lib/mkstemp.c: #undef mkstemp.
91048         Include config.h.
91049         (rpl_mkstemp): Rename from mkstemp.
91050         Protoize.
91051
91052 2001-11-16  Jim Meyering  <meyering@lucent.com>
91053
91054         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
91055         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
91056         determine the amount of total physical memory, use pstat_getstatic.
91057         HPUX-11 doesn't define _SC_PHYS_PAGES.
91058         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
91059         If sysconf couldn't be used to determine the amount of available
91060         physical memory, use both pstat_getstatic and pstat_getdynamic.
91061         Based on a patch from Bob Proulx.
91062
91063 2001-11-10  Jim Meyering  <meyering@lucent.com>
91064
91065         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
91066         (jm_PREREQ): Use it.
91067
91068 2001-11-09  Jim Meyering  <meyering@lucent.com>
91069
91070         * m4/jm-macros.m4: Require autoconf-2.52f.
91071         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
91072         Use these AC_-prefixed names, not the AM_-prefixed ones.
91073
91074         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
91075
91076 2001-11-05  Jim Meyering  <meyering@lucent.com>
91077
91078         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
91079
91080 2001-11-04  Jim Meyering  <meyering@lucent.com>
91081
91082         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
91083         $DEFS.
91084
91085 2001-11-03  Jim Meyering  <meyering@lucent.com>
91086
91087         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
91088         of AC_DEFUN.
91089
91090         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
91091         know the name of the variable in the macro definition.
91092
91093 2001-11-03  Jim Meyering  <meyering@lucent.com>
91094
91095         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
91096         in argmatch_to_argument call.
91097
91098         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
91099         argument.
91100
91101         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
91102         e.g., a fault due to an attempt to free a NULL pointer.
91103
91104 2001-11-01  Jim Meyering  <meyering@lucent.com>
91105
91106         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
91107         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
91108
91109 2001-11-01  Jim Meyering  <meyering@lucent.com>
91110
91111         * lib/dirfd.c, lib/dirfd.h: New files.
91112         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
91113
91114         * lib/hash.c (hash_print) [TESTING]: Clean up.
91115
91116 2001-10-22  Paul Eggert  <eggert@twinsun.com>
91117
91118         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
91119         to avoid a warning if -Wall.
91120
91121 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
91122
91123         * README: New file
91124         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
91125         (per RMS's instructions, this is now the canonical source)
91126         * lgpl/, gpl/: New directories.
91127
91128 2001-10-21  Paul Eggert  <eggert@twinsun.com>
91129
91130         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
91131
91132 2001-10-21  Jim Meyering  <meyering@lucent.com>
91133
91134         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
91135         this code would end up calling gettext even in packages built
91136         with --disable-nls.
91137         * lib/getopt.c (_): Likewise.
91138         * lib/regex.c (_): Likewise.
91139
91140 2001-10-20  Paul Eggert  <eggert@twinsun.com>
91141
91142         * m4/error.m4 (jm_PREREQ_ERROR):
91143         Do not invoke AC_CHECK_FUNCS with strerror_r, as
91144         AC_FUNC_STRERROR_R does that.
91145         Check for strerror declaration.
91146
91147         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
91148         are supposed to have them these days.
91149         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
91150         Merge changes from latest Autoconf CVS.
91151         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
91152         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
91153         POSIX decided to standardize on the int flavor of strerror_r.
91154
91155 2001-10-20  Paul Eggert  <eggert@twinsun.com>
91156
91157         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
91158         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
91159         Use strerror_r that is only a macro, even if it is not a function.
91160         (strerror): Check for HAVE_DECL_STRERROR before declaring.
91161         (private_strerror): Use prototypes, not old-style function definition.
91162         (print_errno_message): New function.
91163         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
91164         char*-flavored one.
91165         (error_tail, error, error_at_line): Use it.
91166
91167 2001-10-11  Jim Meyering  <meyering@lucent.com>
91168
91169         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
91170         and quote_n (1, ... to avoid clobbering a buffer.
91171
91172 2001-10-05  Jim Meyering  <meyering@lucent.com>
91173
91174         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
91175         hash-pjw.h.
91176         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
91177         * lib/hash-pjw.h: New file.
91178
91179 2001-09-30  Jim Meyering  <meyering@lucent.com>
91180
91181         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
91182         `struct fsstat' has the `f_fstypename' member.
91183         Use that to define FS_TYPE, which is now used to make
91184         the getfsstat link test tighter.
91185
91186 2001-09-30  Jim Meyering  <meyering@lucent.com>
91187
91188         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
91189         Include <sys/ucred.h>, for Apple Darwin.
91190         Include sys/mount.h and sys/fs_types.h only if available.
91191         (FS_TYPE): Define.
91192         (read_filesystem_list): Use FS_TYPE.
91193
91194 2001-09-29  Paul Eggert  <eggert@twinsun.com>
91195
91196         * lib/exclude.c (excluded_filename): 0 -> false, since it's
91197         a boolean context.
91198
91199 2001-09-29  Jim Meyering  <meyering@lucent.com>
91200
91201         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
91202         [one-argument getmntent function]): Include stdio.h before mntent.h.
91203         SunOS 4.1.x needs it for the declaration of `FILE'.
91204         Patch by Volker Borchert.
91205
91206         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
91207         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
91208         sys/fs_types.h, and make the link-test for getfsstat guard #include
91209         directives with appropriate #if HAVE_*_H tests so that we can
91210         detect getfsstat on Apple Darwin1.3.7 systems.
91211         Reported by Nelson Beebe.
91212         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
91213
91214 2001-09-28  Paul Eggert  <eggert@twinsun.com>
91215
91216         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
91217         #defines strtoimax.  Also treat the other strto* functions
91218         like strtoimax.
91219
91220         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
91221         Check for strtoul and strtoumax,
91222         as those declarations are made even in the signed case.
91223         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
91224         Likewise, for strtol and strtoimax.
91225
91226 2001-09-28  Paul Eggert  <eggert@twinsun.com>
91227
91228         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
91229         #defines strtoimax.  Also treat the other strto* functions
91230         like strtoimax.
91231
91232         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
91233         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
91234         (strtoimax, strtoumax): Do not declare if already defined as a macro.
91235
91236 2001-09-26  Jim Meyering  <meyering@lucent.com>
91237
91238         Most macros in unlocked-io.h had the wrong number of arguments.
91239         * lib/gen-uio: New script.
91240         (USE_UNLOCKED_IO): Define to 1 if not already defined.
91241         * lib/unlocked-io.hin: Remove file.
91242         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
91243         rather than trying to embed it here.
91244         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
91245         Reported by Padraig Brady.
91246
91247 2001-09-25  Volker Borchert  <bt@teknon.de>
91248
91249         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
91250         `result'.
91251
91252 2001-09-24  Jim Meyering  <meyering@lucent.com>
91253
91254         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
91255
91256 2001-09-23  Jim Meyering  <meyering@lucent.com>
91257
91258         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
91259         instead of the mere test for existence of mntent.h.  The latter
91260         would get a false-positive on AIX 3.4 systems.
91261         In the outer getmntent if-block, don't die if neither of the getmntent
91262         tests succeeds.  Instead, just fall through and continue with the
91263         remaining tests.
91264
91265 2001-09-23  Jim Meyering  <meyering@lucent.com>
91266
91267         * lib/mountlist.c: Remove useless parentheses in #if directives.
91268         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
91269         the deprecated MOUNTED symbol is no longer defined in mntent.h.
91270
91271 2001-09-22  Jim Meyering  <meyering@lucent.com>
91272
91273         * m4/gettext.m4: New file.  From gettext.
91274         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
91275         * m4/progtest.m4: Likewise
91276         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
91277         * m4/glibc21.m4: Likewise.
91278
91279         * m4/libintl.m4: Remove.  No longer used.
91280
91281 2001-09-22  Jim Meyering  <meyering@lucent.com>
91282
91283         * lib/localcharset.c: Update from latest gettext.
91284         * lib/config.charset: Likewise.
91285
91286 2001-09-20  Jim Meyering  <meyering@lucent.com>
91287
91288         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
91289         strtoimax.
91290         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
91291         strtoumax.
91292
91293 2001-09-20  Jim Meyering  <meyering@lucent.com>
91294
91295         * lib/xstrtol.c (strtoimax): Guard declaration with
91296         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
91297         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
91298         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
91299         (strtoumax): Likewise, for completeness (it wasn't necessary).
91300
91301 2001-09-17  Paul Eggert  <eggert@twinsun.com>
91302
91303         * lib/strtoimax.c (HAVE_LONG_LONG):
91304         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
91305         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
91306         to work around bug in IBM C compiler.
91307
91308 2001-09-17  Jim Meyering  <meyering@lucent.com>
91309
91310         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
91311         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
91312         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
91313         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
91314         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
91315         whenever the right hand side need not be expanded by the shell.
91316
91317 2001-09-16  Paul Eggert  <eggert@twinsun.com>
91318
91319         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
91320         library.  It's not correct, as some older glibcs are buggy.
91321         fnmatch wasn't fixed until glibc 2.2.
91322
91323         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
91324         special shell magic here.
91325
91326 2001-09-16  Jim Meyering  <meyering@lucent.com>
91327
91328         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
91329         * m4/jm-macros.m4: Require it.
91330
91331 2001-09-16  Jim Meyering  <meyering@lucent.com>
91332
91333         * lib/mkdir.c: New file.
91334
91335 2001-09-15  Jim Meyering  <meyering@lucent.com>
91336
91337         * m4/jm-macros.m4: Check for help2man.
91338
91339 2001-09-11  Jim Meyering  <meyering@lucent.com>
91340
91341         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
91342         The body, by Paul Eggert, was moved here from configure.in.
91343         * m4/jm-macros.m4: Require UTILS_HOST_OS.
91344
91345 2001-09-04  Paul Eggert  <eggert@twinsun.com>
91346
91347         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
91348         (jm_PREREQ): Use it.
91349
91350 2001-09-04  Paul Eggert  <eggert@twinsun.com>
91351
91352         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
91353         Use ssize_t, not int, to store result of readlink.
91354         Check for ssize_t overflow as well as size_t overflow,
91355         as POSIX says the result of readlink is implementation-defined
91356         when ssize_t overflows.
91357         Remove unnecessary cast to char*.
91358         Use free+malloc instead of realloc, as the storage doesn't need
91359         to be preserved and it's clearer and can be more efficient that way.
91360         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
91361         * lib/xreadlink.h (xreadlink): Update prototype.
91362
91363 2001-09-04  Paul Eggert  <eggert@twinsun.com>
91364
91365         * lib/xgetcwd.c: Revert some of the previous change; intead,
91366         fix the HAVE_GETCWD_NULL code to behave more like the
91367         !HAVE_GETCWD_NULL code used to.
91368
91369         Include "xalloc.h".
91370         (xgetcwd): Do not return NULL when memory is exhausted; instead,
91371         invoke xalloc_die.
91372
91373 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91374
91375         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
91376         sys/param.h, as pathmax.h includes them.
91377
91378 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91379
91380         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
91381         (jm_PREREQ_XGETCWD): New macro.
91382
91383         * m4/getcwd.m4: New file.
91384
91385 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91386
91387         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
91388         like the HAVE_GETCWD_NULL code.
91389         Include pathmax.h if not HAVE_GETCWD.
91390         Do not include xalloc.h.
91391         (INITIAL_BUFFER_SIZE): New symbol.
91392         Do not use xmalloc / xrealloc, since the caller is responsible for
91393         handling errors.  Preserve errno around `free' during failure.
91394         Do not overrun buffer when using getwd.
91395
91396 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91397
91398         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
91399         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
91400         getcwd (NULL, 0).
91401
91402 2001-09-03  Paul Eggert  <eggert@twinsun.com>
91403
91404         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
91405         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
91406         spotted by Jim Meyering.
91407
91408 2001-09-03  Jim Meyering  <meyering@lucent.com>
91409
91410         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
91411         failure.
91412
91413 2001-09-02  Jim Meyering  <meyering@lucent.com>
91414
91415         * lib/error.c: Update from GNU libc.
91416
91417 2001-09-01  Jim Meyering  <meyering@lucent.com>
91418
91419         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
91420         Used by df.
91421
91422 2001-09-01  Jim Meyering  <meyering@lucent.com>
91423
91424         * lib/xreadlink.c: New file.
91425         * lib/xreadlink.h: New file.
91426         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
91427         xreadlink.h.
91428
91429         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
91430         doesn't conflict with sparc Solaris 7's definition in
91431         /usr/include/sys/int_types.h.
91432
91433         * lib/exclude.c: Use `""', not `<>' to #include non-system header
91434         files.
91435         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
91436         and strncasecmp as r-values.  Unixware didn't have declarations.
91437
91438 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91439
91440         * lib/xstrtol.h: Add copyright notice.
91441         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
91442         LONGINT_INVALID_SUFFIX_CHAR.
91443
91444 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91445
91446         * lib/xstrtol.c (strtoimax): New decl.
91447
91448 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91449
91450         * lib/xgetcwd.c: Don't include pathmax.h.
91451         Include stdlib.h and unistd.h if available.
91452         Include xalloc.h.
91453         (xmalloc, xstrdup, free): Remove decls.
91454         (xgetcwd): Don't assume sizes fit in unsigned.
91455         Check for overflow when computing sizes.
91456         Simplify reallocation code.
91457
91458 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91459
91460         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
91461         a directory's st_size can have an arbitrary value, so the old
91462         usage could waste an arbitrary amount of memory.  All uses
91463         changed.
91464         * lib/savedir.h: Update prototype.
91465
91466 2001-08-31  Paul Eggert  <eggert@twinsun.com>
91467
91468         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
91469
91470         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
91471         old strtoimax.c.
91472
91473         Also, make the following further changes to make this file's
91474         configuration more similar to that of strtol.c:
91475         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
91476         (strtoumax, uintmax_t, strtoull, strtol): Remove.
91477         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
91478         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
91479         changed to signed values.
91480
91481         And make the following changes as well:
91482         Fix copyright notice, as 1999 was missing.
91483         (verify): New macro.
91484         (strtoimax): Check sizes at compile-time, not run-time.
91485         Prefer strtol to strtoll if both work.
91486         (main): Remove; it was not that useful and was a pain to maintain.
91487
91488         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
91489
91490 2001-08-31  Jim Meyering  <meyering@lucent.com>
91491
91492         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
91493         Use an initial, malloc'd, buffer of length 128 rather than
91494         a statically allocated one of length 1024.
91495
91496 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91497
91498         Simplify code, partly by assuming autoconf 2.52 semantics.
91499
91500         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
91501
91502         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
91503         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
91504         All uses removed.
91505         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
91506         Move AC_REQUIRE to next-to-top level, to avoid confusion.
91507         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
91508         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
91509         jm_AC_HEADER_INTTYPES_H.
91510         * m4/jm-macros.m4 (jm_MACROS): Likewise.
91511
91512         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
91513
91514         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
91515         Quote first arg of AC_DEFUN.
91516         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
91517         since they are needed to parse the include file even if we need
91518         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
91519         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
91520         but with opposite signedness.
91521
91522 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91523
91524         Merge 'exclude' changes from tar 1.13.22.
91525         This fixes one or two unlikely storage allocation overflow bugs,
91526         but doesn't change user-visible behavior otherwise.
91527
91528 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91529
91530         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
91531         (jm_PREREQ_EXCLUDE): New macro.
91532
91533 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91534
91535         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
91536         tm to be declared.
91537
91538 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91539
91540         * lib/hash.c: Remove '2001' from copyright notice.
91541
91542 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91543
91544         * lib/full-write.h: New file.
91545         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
91546         * lib/full-write.c: Correct credits, as cccp.c no longer
91547         exists and anyway it was so heavily changed from the old cccp
91548         code as to be unrecognizable.  Include full-write.h.
91549         (full_write): Return size_t, with short writes meaning failure.
91550         All callers changed.  This fixes a bug with large buffers
91551         on 64-bit hosts.
91552         * lib/utime.c: Include full-write.h.
91553
91554 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91555
91556         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
91557         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
91558         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
91559         Include if available.
91560         (<xalloc.h>): Include
91561         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
91562         (verify): New macro.  Use it to verify that EXCLUDE macros do not
91563         collide with FNM macros.
91564         (struct patopts): New struct.
91565         (struct exclude): Use it, as exclude patterns now come with options.
91566         (new_exclude): Support above changes.
91567         (new_exclude, add_exclude_file):
91568         Initial size must now be a power of two to simplify overflow checking.
91569         (free_exclude, fnmatch_no_wildcards): New function.
91570         (excluded_filename): No longer requires options arg, as the options
91571         are determined by add_exclude.  Now returns bool, not int.
91572         (excluded_filename, add_exclude):
91573         Add support for the fancy new exclusion options.
91574         (add_exclude, add_exclude_file): Now takes int options arg.
91575         Check for arithmetic overflow when computing sizes.
91576         (add_exclude_file): xrealloc might modify errno, so don't
91577         realloc until after errno might be used.
91578
91579         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
91580         New macros.
91581         (free_exclude): New decl.
91582         (add_exclude, add_exclude_file): Now takes int options arg.
91583         (excluded_filename): No longer requires options arg, as the options
91584         are determined by add_exclude.  Now returns bool, not int.
91585
91586 2001-08-30  Paul Eggert  <eggert@twinsun.com>
91587
91588         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
91589
91590 2001-08-27  Jim Meyering  <meyering@lucent.com>
91591
91592         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
91593
91594         * lib/version-etc.c (N_): Remove definition.
91595         Revert most of last change.
91596         Instead, simply don't mark the `Copyright...' string for translation.
91597         Based on advice from Paul Eggert.
91598
91599         * lib/strtoxmax.c: Tweak comment.
91600
91601 2001-08-26  Jim Meyering  <meyering@lucent.com>
91602
91603         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
91604
91605         * m4/xstrtoimax.m4: New file.
91606         * m4/xstrtoumax.m4: Add comments explaining why we
91607         AC_REPLACE_FUNCS(strtol).
91608
91609 2001-08-26  Jim Meyering  <meyering@lucent.com>
91610
91611         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
91612         of copyright with `%s' so translators don't get an untranslated
91613         message in 2002.
91614         (COPYRIGHT_YEAR): Define.
91615         (version_etc): Use fprintf rather than fputs.
91616         Suggestion from Ulrich Drepper.
91617
91618         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
91619
91620         * lib/strtoll.c: New file, from GNU libc.
91621         * lib/xstrtoimax.c: New file.
91622
91623         * lib/xstrtol.h: Add xstrtoimax.
91624         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
91625         * lib/strtoimax.c: New file.  Likewise, but first define
91626         STRTOUXMAX_SIGNED.
91627
91628         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
91629         ...
91630         * lib/strtoxmax.c: ... then renamed to this.
91631
91632 2001-08-18  Paul Eggert  <eggert@twinsun.com>
91633
91634         * m4/inttypes.m4: Add AC_PREREQ(2.13).
91635         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
91636         (jm_AC_TYPE_INTMAX_T): New macro.
91637         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
91638
91639         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
91640
91641         * m4/longlong.m4: Renamed from ulonglong.m4.
91642         * m4/inttypes.m4: Renamed from inttypes_h.m4.
91643         * m4/uintmax_t.m4: Removed.
91644
91645 2001-08-13  Paul Eggert  <eggert@twinsun.com>
91646
91647         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
91648         Port to Solaris 8, where 'sed' requires a space after the 'r'
91649         command, and where sh dislikes "$/".  Clean up the spacing a bit.
91650         Redirect output to $tmp just once.
91651
91652 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
91653
91654         * lib/addext.c (<errno.h>): Include.
91655         (errno): Declare if not defined.
91656         (addext): Work correctly when pathconf returns -1 and leaves
91657         errno alone because there is no limit.  Also, work even if
91658         pathconf returns a value greater than SIZE_MAX.
91659
91660 2001-08-12  Jim Meyering  <meyering@lucent.com>
91661
91662         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
91663         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
91664         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
91665         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
91666         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
91667         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
91668         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
91669         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
91670         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
91671         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
91672         utime.m4, utimes.m4, xstrtoumax.m4:
91673         Quote the first argument in each use of AC_DEFUN.
91674
91675 2001-08-12  Jim Meyering  <meyering@lucent.com>
91676
91677         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
91678         Simply `return getcwd (NULL, 0);'.
91679         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
91680         Use 1300 as initial value for length, not PATH_MAX.
91681
91682         * lib/pathmax.h: Clean up cpp syntax.
91683
91684 2001-08-12  Jim Meyering  <meyering@lucent.com>
91685
91686         * lib/gettimeofday.c: New file.
91687         * lib/gtod.h: New file.
91688         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
91689
91690 2001-08-05  Jim Meyering  <meyering@lucent.com>
91691
91692         * m4/jm-macros.m4: Require autoconf-2.52.
91693
91694 2001-08-04  Jim Meyering  <meyering@lucent.com>
91695
91696         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
91697         stmt, to get in sync with glibc.
91698
91699 2001-08-03  Paul Eggert  <eggert@twinsun.com>
91700
91701         The following changes are from gettext 0.10.39 as maintained by
91702         Bruno Haible.
91703
91704         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
91705         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
91706         with inverted sense.  All uses changed.
91707
91708         * lib/mbswidth.c: Don't include <limits.h>.
91709         Include <stdlib.h> and <string.h> unconditionally.
91710         (iswcntrl, mbsinit, ISCNTRL): New macros.
91711         (mbsnwidth): Use K&R style function declarations.
91712         Don't bother checking for MB_LEN_MAX == 1, since the compiler
91713         can optimize it when MB_CUR_MAX == 1.
91714         The width of control characters is zero, not 1.
91715
91716 2001-08-03  Paul Eggert  <eggert@twinsun.com>
91717
91718         The following changes are from gettext 0.10.39 as maintained by
91719         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
91720
91721         * m4/codeset.m4: Upgrade to serial AM1.
91722         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
91723         all uses changed.  Quote first arg of AC_DEFUN.
91724         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
91725
91726         * m4/iconv.m4: Upgrade to serial AM2.
91727         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
91728         Add --with-libconv-prefix.
91729         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
91730         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
91731         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
91732         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
91733         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
91734
91735         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
91736         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
91737         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
91738         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
91739         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
91740         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
91741         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
91742         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
91743         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
91744
91745         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
91746         string.h any more.
91747
91748         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
91749         not the default value.
91750
91751         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
91752         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
91753         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
91754         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
91755         Also check for iswcntrl, used for wcwidth fallback.
91756         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
91757         to Autoconf 2.13.
91758
91759 2001-08-03  Jim Meyering  <meyering@lucent.com>
91760
91761         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
91762         as it was in the original.  Reported by Paul Eggert.
91763
91764 2001-07-16  Jim Meyering  <meyering@lucent.com>
91765
91766         * m4/gettimeofday.m4: New file.
91767         Prompted by a report from Bernhard Baehr.
91768
91769 2001-07-15  Jim Meyering  <meyering@lucent.com>
91770
91771         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
91772         stuff. Now it's in ../Makefile.cfg.
91773
91774 2001-07-15  Jim Meyering  <meyering@lucent.com>
91775
91776         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
91777         (BUILT_SOURCES): Add unlocked-io.h.
91778         (io_functions): Define.
91779         (unlocked-io.h): New rule.
91780         (DISTCLEANFILES): Add unlocked-io.h.
91781         (all-local): Depend on unlocked-io.h, to ensure it is created.
91782
91783         * lib/unlocked-io.hin: New file
91784
91785         * lib/regex.c: Update from glibc.
91786
91787 2001-07-05  Jim Meyering  <meyering@lucent.com>
91788
91789         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
91790         recommendation.
91791         (libfetish_a_SOURCES): Put all .h files here instead.
91792         Remove a thus-exposed (better checks in automake) duplicate and
91793         two unnecessary .h files.
91794
91795 2001-07-04  Jim Meyering  <meyering@lucent.com>
91796
91797         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
91798         that generates jm-glibc-io.m4 so that it doesn't trigger any make
91799         distcheck failure.
91800
91801 2001-07-02  Jim Meyering  <meyering@lucent.com>
91802
91803         The following changes were prompted by suggestions from Bruno Haible.
91804
91805         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
91806         is now generated.
91807         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
91808         definition of EXTRA_DIST.
91809         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
91810         ensure that the generated file is created/updated whenever the list
91811         of $(unlocked_functions) is changed.
91812         (jm-glibc-io.m4): New rule.
91813         (unlocked-io.h): New rule -- currently unused.
91814
91815 2001-06-24  Jim Meyering  <meyering@lucent.com>
91816
91817         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
91818         unmatched right bracket, rather than kludging it with an extra,
91819         falsely-matching quote in a comment.  Patch by Akim Demaille.
91820
91821 2001-06-11  Jim Meyering  <meyering@lucent.com>
91822
91823         * lib/regex.c: Update from GNU libc.
91824
91825 2001-05-27  Jim Meyering  <meyering@lucent.com>
91826
91827         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
91828         Check for ut_type in struct utmp.
91829
91830 2001-05-27  Jim Meyering  <meyering@lucent.com>
91831
91832         * lib/readutmp.h (UT_TYPE): Define.
91833
91834 2001-05-24  Jim Meyering  <meyering@lucent.com>
91835
91836         * lib/argmatch.c: Include "quote.h".
91837         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
91838         quote function.  Reported by Göran Uddeborg.
91839
91840 2001-05-22  Jim Meyering  <meyering@lucent.com>
91841
91842         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
91843         now that we use the package-supplied version unconditionally.
91844         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
91845
91846 2001-05-21  Jim Meyering  <meyering@lucent.com>
91847
91848         * m4/regex.m4: Change a couple backticks to single quotes to avoid
91849         shell syntax errors.
91850
91851 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
91852
91853         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
91854
91855 2001-05-20  Paul Eggert  <eggert@twinsun.com>
91856
91857         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
91858         Don't bother to check library strftime, since
91859         we'll be using our own my_strftime function anyway.
91860         Define my_strftime instead of strftime.
91861
91862 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
91863
91864         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
91865         which is not yet declared.
91866
91867 2001-05-15  Jim Meyering  <meyering@lucent.com>
91868
91869         * m4/regex.m4: Use proper quoting so brackets appear in the test
91870         program.
91871         Reported by, and with help from, Bruno Haible.
91872
91873 2001-05-13  Jim Meyering  <meyering@lucent.com>
91874
91875         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
91876         undefined.
91877
91878 2001-05-11  Paul Eggert  <eggert@twinsun.com>
91879
91880         dirname code cleanup.  base_name now behaves more compatibly
91881         with POSIX basename when given file names that have trailing
91882         slashes, and similarly for dir_name.  Add new primitives
91883         base_len and dir_len.  Put the directory-name-related decls
91884         into dirname.h.
91885
91886         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
91887         * lib/backupfile.c (base_name): Likewise.
91888         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
91889         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
91890         * lib/makepath.c (strip_trailing_slashes): Likewise.
91891         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
91892         ISSLASH): Likewise.
91893         * lib/rename.c (strip_trailing_slashes): Likewise.
91894         * lib/same.c (base_name): Likewise.
91895         * lib/stripslash.c (ISSLASH): Likewise.
91896
91897         * lib/addext.c: Include <dirname.h> after size_t is defined.
91898         * lib/backupfile.c: Likewise.
91899
91900         * lib/addext.c (addext): Use base_len to trim redundant
91901         trailing slashes instead of doing it ourselves.
91902         But do not trim the last slash if it is not redundant.
91903
91904         * lib/backupfile.c (find_backup_file_name,
91905         max_backup_version): Use base_len instead of rolling it ourselves.
91906         Handle the case of "" and (on DOS) "C:" correctly.
91907
91908         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
91909         needed. Include <string.h>, <dirname.h>.
91910         (base_name): Allow file names ending in slashes, other than names
91911         that are all slashes.  In this case, return the basename followed
91912         by the slashes.  This is more general, and can be used in places
91913         where the original base_name purposely had an assertion failure.
91914         (base_len): New function.
91915
91916         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
91917         Do not include <assert.h>; no longer needed.
91918         Include xalloc.h.
91919         (memrchr): Remove decl.
91920         (dir_name_r): Remove.
91921         (dir_len): Renamed from dirlen.  All callers changed.
91922         Rewrite in terms of base_name, for simplicity and consistency.
91923         (dir_name): Never return NULL.  All callers changed.
91924         Do not include <stdlib.h> in test program; no longer needed.
91925         return 0; is fine for test program.
91926
91927         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
91928         New macros.
91929         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
91930
91931         * lib/path-concat.c (path_concat): Use base_len to compute
91932         base length, not strlen; this means we cannot rely on memcpy
91933         to null-terminate.
91934
91935         * lib/same.c (STREQ): Remove.
91936         (same_name): Handle the case where the basename ends in trailing '/'.
91937
91938         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
91939         a slash was stripped.  Do not strip the last slash after a
91940         file system prefix.
91941
91942 2001-05-11  Paul Eggert  <eggert@twinsun.com>
91943
91944         * lib/Makefile.am (libfetish_a_SOURCES):
91945         Add strftime.c, since we now compile it on all hosts.
91946
91947         * lib/strftime.c (my_strftime):
91948         Define to nstrftime if emacs, but only if my_strftime is not defined.
91949         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
91950         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
91951         Add one more extra argument: a nanoseconds value.
91952         All uses changed.
91953         (ns): New macro.
91954         (my_strftime function): Add %N format.
91955         (emacs_strftimeu): Renamed from emacs_strftime,
91956         with extra ut argument.
91957
91958 2001-05-09  Paul Eggert  <eggert@twinsun.com>
91959
91960         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
91961
91962 2001-04-21  Jim Meyering  <meyering@lucent.com>
91963
91964         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
91965         doesn't interfere.
91966
91967 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
91968
91969         * m4/ftruncate.m4: Check for chsize.
91970         Link with ftruncate.o unconditionally if ftruncate is missing.
91971         This was required when cross-compiling to i586-mingw32msvc.
91972
91973 2001-04-08  Jim Meyering  <meyering@lucent.com>
91974
91975         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
91976         recomputed; that's necessary when the offset spans a DST transition.
91977         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
91978
91979 2001-04-02  Jim Meyering  <meyering@lucent.com>
91980
91981         * lib/regex.h, regex.c: Update from GNU libc.
91982
91983 2001-03-24  Jim Meyering  <meyering@lucent.com>
91984
91985         * m4/jm-macros.m4: Require autoconf-2.49d.
91986
91987 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
91988
91989         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
91990
91991 2001-03-19  Paul Eggert  <eggert@twinsun.com>
91992
91993         * lib/version-etc.c (version_etc_copyright): Update to 2001.
91994
91995 2001-03-17  Jim Meyering  <meyering@lucent.com>
91996
91997         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
91998         now that the version in autoconf is equivalent.
91999         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
92000
92001         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
92002         Suggestion from Akim Demaille.
92003
92004         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
92005         (jm_PREREQ_TEMPNAME): New function.
92006
92007 2001-03-16  Paul Eggert  <eggert@twinsun.com>
92008
92009         * lib/tempname.c (uint64_t): Define to uintmax_t if
92010         not defined, and if UINT64_MAX is not defined.
92011         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
92012         Reported by John David Anglin.
92013
92014 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
92015
92016         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
92017         resolve alias if codeset is empty.
92018         * lib/config.charset (BeOS): Use wildcard syntax.
92019
92020 2001-03-13  Jim Meyering  <meyering@lucent.com>
92021
92022         * lib/path-concat.c (path_concat)
92023         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
92024         concatenating e.g., `C:' and `foo'.
92025         From Bruno Haible.
92026
92027 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
92028
92029         * lib/localcharset.c (locale_charset): Don't use
92030         setlocale(LC_CTYPE,NULL). Don't return NULL.
92031         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
92032
92033 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
92034
92035         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
92036         support for DOS/DJGPP.
92037
92038 2001-03-01  Paul Eggert  <eggert@twinsun.com>
92039
92040         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
92041         lacks mkstemp.  Compile our own tempname.c if we compile our own
92042         mkstemp.c, as mkstemp relies on tempname.
92043
92044 2001-03-01  Jim Meyering  <meyering@lucent.com>
92045
92046         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
92047         AH_VERBATIM really does output its argument verbatim.
92048
92049 2001-02-28  Paul Eggert  <eggert@twinsun.com>
92050
92051         * lib/Makefile.am (libfetish_a_SOURCES):
92052         Add dup-safer.c, fopen-safer.c.
92053         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
92054
92055         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
92056         * lib/unistd-safer.h: New files.
92057
92058 2001-02-25  Paul Eggert  <eggert@twinsun.com>
92059
92060         The mkstemp replacement is taken from glibc 2.2.2, with some
92061         portability fixes for use outside glibc, as follows:
92062
92063         * lib/tempname.c (struct_stat64): New macro.
92064         (direxists, __gen_tempname): Use it.
92065         This avoids a portability problem with Solaris 8.
92066
92067         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
92068         (<stddef.h>, <stdint.h>, <string.h>):
92069         Include only if STDC_HEADERS || _LIBC.
92070         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
92071         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
92072         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
92073         (__set_errno): Define this macro if <errno.h> doesn't.
92074         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
92075         Define these macros if <stdio.h> doesn't.
92076         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
92077         Define these macros if <sys/stat.h>
92078         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
92079         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
92080         __xstat64): Define if not _LIBC.
92081         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
92082         (__gen_tempname): Invoke gettimeofday only if
92083         HAVE_GETTIMEOFDAY || _LIBC;
92084         otherwise, fall back on plain "time".
92085         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
92086
92087         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
92088
92089         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
92090
92091 2001-02-18  Paul Eggert  <eggert@twinsun.com>
92092
92093         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
92094
92095 2001-02-17  Paul Eggert  <eggert@twinsun.com>
92096
92097         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
92098         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
92099         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
92100         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
92101
92102 2001-02-17  Paul Eggert  <eggert@twinsun.com>
92103
92104         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
92105         Remove workaround macros for hosts that have mbrtowc but not
92106         mbstate_t, as we now insist on proper declarations for both
92107         before using mbrtowc.
92108
92109 2001-02-17  Jim Meyering  <meyering@lucent.com>
92110
92111         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
92112         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
92113         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
92114         UnixWare 7.1.1.
92115
92116         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
92117         rather than AC_CACHE_VAL.
92118
92119 2001-02-17  Jim Meyering  <meyering@lucent.com>
92120
92121         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
92122         around included file name.
92123
92124         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
92125
92126         * lib/strftime.c: Update from GNU libc (the only changes were to
92127         comments).
92128
92129 2001-02-17  Jim Meyering  <meyering@lucent.com>
92130
92131         * lib/regex.c: Update from libc.
92132
92133 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
92134
92135         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
92136         clash.
92137
92138 2001-02-16  Paul Eggert  <eggert@twinsun.com>
92139
92140         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
92141         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
92142         Reported by Mark Hounschell via Paul Eggert.
92143
92144 2001-02-07  Jim Meyering  <meyering@lucent.com>
92145
92146         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
92147
92148 2001-02-05  Jim Meyering  <meyering@lucent.com>
92149
92150         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
92151         it includes the patch required for `large file' support with at least
92152         HP-UX's 10.20 /bin/cc.
92153
92154 2001-02-03  Jim Meyering  <meyering@lucent.com>
92155
92156         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
92157         AS_IF, now that it works once again (mysteriously).
92158         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
92159
92160 2001-01-30  Jim Meyering  <meyering@lucent.com>
92161
92162         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
92163         * m4/chown.m4: Rename conftestchown to conftest.chown.
92164         * m4/rename.m4: s/conftestdir/conftest.d1/ and
92165         s/conftestdir2/conftest.d2/.
92166         * m4/utimes.m4: s/conftestdata/conftest.data/
92167         Inspired by Pavel Roskin's change in autoconf.
92168
92169 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
92170
92171         * lib/config.charset: Update for FreeBSD 4.2.
92172
92173 2001-01-27  Jim Meyering  <meyering@lucent.com>
92174
92175         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
92176         a use of AS_IF.
92177         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
92178
92179 2001-01-26  Jim Meyering  <meyering@lucent.com>
92180
92181         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
92182         quotearg.c includes it.
92183
92184 2001-01-26  Jim Meyering  <meyering@lucent.com>
92185
92186         * lib/quotearg.c: Include stddef.h.
92187         * lib/quote.c: Include stddef.h.
92188         Reported by Axel Kittenberger.
92189
92190         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
92191         line in double quotes so that it evokes a better diagnostic.
92192         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
92193         Reported by Axel Kittenberger.
92194
92195 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
92196
92197         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
92198         as if it was a `charset'.
92199
92200 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
92201
92202         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
92203         has const.
92204
92205 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
92206
92207         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
92208         to avoid a warning.  Add back 'const' to inptr.
92209
92210 2001-01-20  Jim Meyering  <meyering@lucent.com>
92211
92212         Be sure that headers are checked before used in code compiled
92213         for the type checks.
92214         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
92215         In place of that, invoke jm_CHECK_ALL_TYPES.
92216         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
92217         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
92218         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
92219         The check for ssize_t was mistakenly run before the test for unistd.h.
92220
92221         The configure-time check for stdbool.h was missing.
92222         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
92223         (jm_PREREQ_HASH): New function.
92224
92225 2001-01-17  Jim Meyering  <meyering@lucent.com>
92226
92227         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
92228         for autoconf-2.49c.
92229         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
92230
92231 2001-01-16  Jim Meyering  <meyering@lucent.com>
92232
92233         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
92234         From Bruno Haible.
92235
92236 2001-01-14  Jim Meyering  <meyering@lucent.com>
92237
92238         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
92239         foo and bar.  Create conftestdir/ in the script, not in the C code.
92240         Remove directories in the script, not in the C code.
92241         Remove conftestdir{,2} before trying to create the directory.
92242         Make the entire configure script fail if the mkdir fails.
92243
92244 2001-01-14  Jim Meyering  <meyering@lucent.com>
92245
92246         * lib/rename.c: New file.  From Volker Borchert.
92247         Include stdlib.h, string.h or strings.h, and xalloc.h.
92248         Use strip_trailing_slashes rather than open-coding it.
92249
92250 2001-01-03  Paul Eggert  <eggert@twinsun.com>
92251
92252         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
92253
92254 2001-01-03  Jim Meyering  <meyering@lucent.com>
92255
92256         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
92257         of local `inptr' to avoid warning with some system declarations of
92258         iconv.
92259
92260 2001-01-02  Volker Borchert  <bt@teknon.de>
92261
92262         * m4/rename.m4: New file.
92263         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
92264
92265 2001-01-01  Jim Meyering  <meyering@lucent.com>
92266
92267         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
92268         even on systems with utmpx.h.  It's necessary for the declaration of
92269         utmp's ut_user member.  Reported by Andreas Jaeger.
92270
92271         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
92272         available. They are required for the declarations of getgrgid and
92273         getpwuid resp.
92274         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
92275         Reported by Andreas Jaeger.
92276
92277 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
92278
92279         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
92280         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
92281         so `make install' also works in VPATH builds.
92282
92283 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
92284
92285         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
92286         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
92287         can be used in subdirectories.
92288
92289 2000-12-29  Paul Eggert  <eggert@twinsun.com>
92290
92291         * lib/modechange.c: Do not assume that mode_t uses the
92292         traditional octal encoding.  E.g. "chmod 1 FOO" should set
92293         the other-execute bit of FOO even if S_IXOTH != 1.
92294
92295         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
92296         WOTH, XOTH, ALLM): New macros.
92297         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
92298          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
92299         Use them.
92300         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
92301         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
92302         (mode_compile):
92303         No need to use uintmax_t; unsigned long is long enough.
92304         Don't bother to get suffix since we don't use it.
92305
92306 2000-12-26  Jim Meyering  <meyering@lucent.com>
92307
92308         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
92309         better with autoheader.
92310
92311 2000-12-24  Jim Meyering  <meyering@lucent.com>
92312
92313         * lib/hash.c (is_prime): Return explicit boolean values.
92314         (hash_get_first): Return NULL to appease Irix5.6's 89.
92315         Reported by Nelson Beebe.
92316
92317 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
92318
92319         * lib/localcharset.c (locale_charset): Add support for Win32.
92320
92321 2000-12-18  Paul Eggert  <eggert@twinsun.com>
92322
92323         * lib/physmem.h, lib/physmem.c: New files.
92324
92325         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
92326         (noinst_HEADERS): Add physmem.h.
92327
92328         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
92329         't' for compatibility with Solaris 8 sort.
92330
92331 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
92332
92333         * lib/config.charset: Add support for BeOS.
92334
92335 2000-12-17  Jim Meyering  <meyering@lucent.com>
92336
92337         * m4/dos.m4 (jm_AC_DOS): New file and macro.
92338         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
92339
92340 2000-12-16  Jim Meyering  <meyering@lucent.com>
92341
92342         This bug had a serious impact on chown: `chown N:M FILE' (for integer
92343         N and M) would have treated it like `chown N:N FILE'.
92344
92345         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
92346
92347 2000-12-16  Jim Meyering  <meyering@lucent.com>
92348
92349         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
92350         SHELLS_FILE to a file name that's useful on djgpp systems.
92351         Include stdlib.h.
92352         (ADDITIONAL_DEFAULT_SHELLS): Define.
92353         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
92354         Based mostly on a patch from Prashant TR.
92355
92356 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
92357
92358         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
92359         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
92360         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
92361
92362 2000-12-08  Andreas Schwab  <schwab@suse.de>
92363
92364         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
92365         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
92366
92367 2000-12-07  Jim Meyering  <meyering@lucent.com>
92368
92369         * lib/stripslash.c (ISSLASH): Define.
92370         (strip_trailing_slashes): Use ISSLASH rather than comparing against
92371         `/'.
92372         From Prashant TR.
92373
92374         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
92375         (dir_name_r): Declare this function as static.
92376         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
92377         manifest itself on a name containing a mix of slashes and
92378         backslashes.
92379         Make this function work with names starting with a DOS-style
92380         drive letter and colon prefix.
92381         (dir_name): Append `.' if necessary.
92382         Based mostly on patches from Prashant TR and Eli Zaretskii.
92383
92384         * lib/dirname.h (dir_name_r): Remove prototype.
92385
92386 2000-12-06  Paul Eggert  <eggert@twinsun.com>
92387
92388         * m4/off_t-format.m4: Remove this file.
92389         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
92390
92391 2000-12-06  Jim Meyering  <meyering@lucent.com>
92392
92393         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
92394         replacement strtoull, we may well need the replacement strtoul, too.
92395         Check for declarations of strtoul and strtoull.
92396         Check for strtol.  Mainly as a cue to cause automake to include
92397         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
92398         Check for limits.h -- strtol.c needs it.
92399
92400 2000-12-05  Jim Meyering  <meyering@lucent.com>
92401
92402         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
92403
92404 2000-12-04  Jim Meyering  <meyering@lucent.com>
92405
92406         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
92407         Also include memory.h, stdlib.h, unistd.h if appropriate.
92408         Reported by Andreas Jaeger (conflicting declaration of malloc).
92409
92410 2000-12-02  Jim Meyering  <meyering@lucent.com>
92411
92412         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
92413         * m4/jm-macros.m4 (jm_MACROS): require it.
92414
92415 2000-12-02  Jim Meyering  <meyering@lucent.com>
92416
92417         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
92418
92419 2000-12-01  Paul Eggert  <eggert@twinsun.com>
92420
92421         * lib/memrchr.c: Include <config.h> before any system include file.
92422
92423 2000-11-30  Jim Meyering  <meyering@lucent.com>
92424
92425         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
92426
92427 2000-11-30  Jim Meyering  <meyering@lucent.com>
92428
92429         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
92430
92431 2000-11-29  Paul Eggert  <eggert@twinsun.com>
92432
92433         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
92434
92435 2000-11-26  Jim Meyering  <meyering@lucent.com>
92436
92437         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
92438
92439 2000-11-22  Paul Eggert  <eggert@twinsun.com>
92440
92441         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
92442         size of (size_t) -1; it's not portable.
92443
92444 2000-11-17  Jim Meyering  <meyering@lucent.com>
92445
92446         * lib/strstr.c: Update from GNU libc.
92447
92448 2000-11-17  Akim Demaille  <akim@epita.fr>
92449
92450         * lib/obstack.h: Formatting changes.
92451         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
92452         prevent type checking.
92453         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
92454         cast the value to (void *): assigning a `foo *' to a `void *'
92455         variable is valid.
92456         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
92457
92458 2000-11-16  Jim Meyering  <meyering@lucent.com>
92459
92460         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
92461
92462 2000-11-11  Jim Meyering  <meyering@lucent.com>
92463
92464         * lib/error.c: Add a couple #includes, merging from GNU libc version.
92465
92466 2000-11-10  Jim Meyering  <meyering@lucent.com>
92467
92468         * lib/obstack.h: Update from GNU libc.
92469         * lib/obstack.c: Likewise.
92470
92471 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
92472
92473         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
92474
92475 2000-11-06  Paul Eggert  <eggert@twinsun.com>
92476
92477         * lib/getusershell.c (setusershell): Use rewind rather than
92478         fseek/fseeko, to avoid configuration hassles with fseeko.
92479         Don't bother opening SHELLS_FILE if shellstream is NULL;
92480         it's not necessary.
92481
92482 2000-11-05  Jim Meyering  <meyering@lucent.com>
92483
92484         * lib/makepath.h (make_dir): Declare.
92485         * lib/makepath.c (make_dir): Remove `static' attribute.
92486         Tweak a comment.
92487
92488 2000-11-04  Jim Meyering  <meyering@lucent.com>
92489
92490         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
92491
92492 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
92493
92494         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
92495         last one in a bucket, advance to the next bucket.
92496
92497 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
92498
92499         * lib/fnmatch.c: Do not comment out all the code if we are using
92500         the GNU C library, because in some cases we are replacing buggy
92501         code in the GNU C library itself.
92502
92503 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
92504
92505         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
92506         (regex_compile): Catch bogus \(\1\).
92507
92508 2000-10-30  Paul Eggert  <eggert@twinsun.com>
92509
92510         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
92511         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
92512         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
92513
92514 2000-10-30  Paul Eggert  <eggert@twinsun.com>
92515
92516         * lib/error.h, getline.h, modechange.h:
92517         Remove "2000" from Copyright line, as the file hasn't been
92518         changed this year other than in the copyright notice.
92519
92520         * lib/xalloc.h: Add "2000" to Copyright line, as this file
92521         was changed this year.
92522
92523 2000-10-29  Jim Meyering  <meyering@lucent.com>
92524
92525         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
92526         renaming.
92527         * m4/ls-mntd-fs.m4: Likewise
92528
92529 2000-10-29  Jim Meyering  <meyering@lucent.com>
92530
92531         * lib/xstat.in: Fix grammar in comment.
92532
92533 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
92534
92535         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
92536         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
92537         doesn't define __restrict_arr.
92538
92539 2000-10-28  Jim Meyering  <meyering@lucent.com>
92540
92541         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
92542         (jm_PREREQ_MEMCHR): New function.
92543
92544 2000-10-28  Jim Meyering  <meyering@lucent.com>
92545
92546         * lib/memchr.c: Update from libc.
92547         Adjust for portability:
92548         [HAVE_STDLIB_H]: Include stdlib.h.
92549         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
92550         Undef __memchr, too.
92551         [!weak_alias]: Define __memchr to memchr.
92552
92553         * lib/regex.c: Update from libc.
92554         * lib/regex.h: Likewise.
92555         * lib/getopt1.c: Likewise.
92556         * lib/memcmp.c: Likewise.
92557
92558         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
92559         Avoid using fseek, when possible -- it's broken by design.
92560         Patch by Ulrich Drepper.
92561
92562 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
92563
92564         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
92565         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
92566         Giving in to popular pressure to shut up the compiler with casts.
92567
92568 2000-10-26  Jim Meyering  <meyering@lucent.com>
92569
92570         * lib/strftime.c: Update from libc.
92571
92572 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
92573
92574         * regex.c: More `unsigned char' -> `re_char' changes.
92575         Also change several `int' into `re_wchar_t'.
92576         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
92577         (PUSH_FAILURE_POINTER): Don't cast any more.
92578         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
92579         We want GCC to complain, since this piece of code makes
92580         re_match non-reentrant, which *should* be fixed.
92581         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
92582         (EXTEND_BUFFER): Use RETALLOC.
92583         (SET_LIST_BIT): Don't cast.
92584         (re_wchar_t): New type.
92585         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
92586         that those two functions will always properly return.
92587         (IMMEDIATE_QUIT_CHECK): Cast to void.
92588         (analyse_first): Use recursion rather than an explicit stack.
92589         (re_compile_fastmap): Can't fail anymore.
92590         (re_search_2): Don't check re_compile_fastmap for failure.
92591         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
92592         Now also sets the new value (passed in a new argument).
92593         (re_match_2_internal): Use it.
92594         Also, use a new var `reg' of type size_t when looping through regs
92595         rather than reuse the inappropriate `mcnt'.
92596
92597 2000-10-25  Jim Meyering  <meyering@lucent.com>
92598
92599         * lib/obstack.c: Update from libc.
92600
92601 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
92602
92603         * regex.c (regex_compile): Change the way of handling a range from
92604         a char less than 256 to a char not less than 256.
92605
92606 2000-10-24  Andrew Innes  <andrewi@gnu.org>
92607
92608         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
92609         NT-Emacs only.
92610         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
92611         so that re_search functions only quit when callers expect them to.
92612
92613 2000-10-23  Jim Meyering  <meyering@lucent.com>
92614
92615         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
92616         wrong.  That set_locale call must not have any side effects.
92617         From Paul Eggert.
92618
92619 2000-10-22  Jim Meyering  <meyering@lucent.com>
92620
92621         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
92622         [CYCLIC]: Remove now-unused definition.
92623
92624         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
92625         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
92626         Suggestion from Ulrich Drepper.
92627
92628 2000-10-21  Jim Meyering  <meyering@lucent.com>
92629
92630         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
92631         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
92632         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
92633
92634 2000-10-21  Jim Meyering  <meyering@lucent.com>
92635
92636         * lib/dirname.c (memrchr): Declare if necessary.
92637         (dir_name): Remove the restriction that there be no
92638         trailing slashes.  Now, this code skips past them, effectively
92639         ignoring them.
92640         [TEST_DIRNAME] (main): New unit tests.
92641
92642         * lib/memrchr.c: New file from GNU libc.
92643         Undef __memrchr, too.
92644         [!weak_alias]: Define __memrchr to memrchr.
92645         Guard weak_alias use with `#ifdef weak_alias'.
92646
92647 2000-10-21  Jim Meyering  <meyering@lucent.com>
92648
92649         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
92650         (dir_name): Use dir_name_r.
92651         * lib/dirname.h (dir_name_r): Declare it.
92652
92653 2000-10-17  Jim Meyering  <meyering@lucent.com>
92654
92655         * lib/quote.h (PARAMS): Define and use.
92656         Reported by Akim Demaille.
92657
92658         * lib/getopt.c: Update from libc.
92659
92660 2000-10-16  Jim Meyering  <meyering@lucent.com>
92661
92662         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
92663         setlocale.
92664         From Jan Fedak.
92665
92666 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
92667
92668         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
92669
92670 2000-09-25  Jim Meyering  <meyering@lucent.com>
92671
92672         * lib/md5.h (rol): Define (from GnuPG).
92673
92674         * lib/sha.c: Give credit (GnuPG) where due.
92675         (M): Use rol rather than open-coding it.
92676         Add a FIXME comment.
92677
92678 2000-09-21  Jim Meyering  <meyering@lucent.com>
92679
92680         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
92681         Reported by Michael Stone.
92682
92683 2000-09-20  Jim Meyering  <meyering@lucent.com>
92684
92685         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
92686         (noinst_HEADERS): Add sha.h.
92687         Based on code from Scott G. Miller and from GnuPG.
92688
92689 2000-09-18  Jim Meyering  <meyering@lucent.com>
92690
92691         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
92692         LIBS. Otherwise, everyone ends up linking with -lelf for some
92693         configurations.
92694         Reported by Mike Stone.
92695
92696 2000-09-15  Jim Meyering  <meyering@lucent.com>
92697
92698         * lib/regex.c: Update from libc.
92699
92700 2000-09-10  Jim Meyering  <meyering@lucent.com>
92701
92702         * lib/getopt.c (_getopt_internal): Update from glibc.
92703
92704 2000-09-09  Jim Meyering  <meyering@lucent.com>
92705
92706         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
92707         think it should be used as a general replacement for isascii.
92708         * lib/fnmatch.c: Likewise.
92709         * lib/mbswidth.c: Likewise
92710         * lib/regex.c: Likewise.
92711
92712         Don't use atoi.
92713         * lib/userspec.c: Include sys/param.h and limits.h.
92714         Include xstrtol.h.
92715         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
92716         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
92717         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
92718         UID, GID.  Check range.
92719
92720 2000-09-06  Jim Meyering  <meyering@lucent.com>
92721
92722         * lib/getopt.c (_getopt_internal): Update from glibc.
92723
92724 2000-08-30  Jim Meyering  <meyering@lucent.com>
92725
92726         * lib/strftime.c: Merge in changes from GNU libc.
92727
92728 2000-08-26  Jim Meyering  <meyering@lucent.com>
92729
92730         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
92731         * m4/fpending.m4: New file.
92732
92733 2000-08-26  Jim Meyering  <meyering@lucent.com>
92734
92735         * lib/closeout.c: Include "__fpending.h".
92736         (close_stdout_status): Return right away if there's nothing to flush.
92737
92738         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
92739         * lib/__fpending.c: New file.
92740         * lib/__fpending.h: New file.
92741
92742 2000-08-20  Jim Meyering  <meyering@lucent.com>
92743
92744         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
92745         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
92746         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
92747
92748 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
92749
92750         Improve fileutils installation on systems where running
92751         programs (like install) can't be unlinked.
92752         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
92753         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
92754
92755 2000-08-07  Paul Eggert  <eggert@twinsun.com>
92756
92757         Standardize on "memory exhausted" instead of "Memory exhausted"
92758         or "virtual memory exhausted".
92759         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
92760         "virtual memory exhausted".
92761         * lib/same.c (same_name): Invoke xalloc_die instead of printing
92762         our own message.
92763         * lib/userspec.c (parse_user_spec): Likewise.
92764         * lib/bumpalloc.h: comment fix
92765         * lib/same.c, userspec.c: Include xalloc.h.
92766
92767         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
92768         not char *const and pointing to a constant array.
92769         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
92770         (xrealloc): Comment fix.
92771
92772         * lib/userspec.c (parse_user_spec):
92773         Don't translate a message until just before returning,
92774         to avoid unnecessary translation.
92775
92776 2000-08-07  Jim Meyering  <meyering@lucent.com>
92777
92778         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
92779         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
92780         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
92781         getgroups.c, gethostname.c, getopt.h, group-member.c,
92782         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
92783         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
92784         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
92785         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
92786         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
92787         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
92788         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
92789         yesno.c: Back out Copyright date changes for each file with no change
92790         this year.  This eases coordination with other programs using the same
92791         source code modules.  From Paul Eggert.
92792
92793 2000-08-06  Paul Eggert  <eggert@twinsun.com>
92794
92795         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
92796         not char, for compatibility with glibc 2.1.3 strftime.c.
92797
92798 2000-08-03  Greg McGary  <greg@mcgary.org>
92799
92800         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
92801         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
92802         (EXTEND_BUFFER): Use them.
92803
92804 2000-08-01  Jim Meyering  <meyering@lucent.com>
92805
92806         * lib/dirname.c (ISSLASH): Define.
92807         (BACKSLASH_IS_PATH_SEPARATOR): Define.
92808         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
92809         both `\' and `/' may be use as path separators.
92810         Based on a patch from Prashant TR.
92811
92812 2000-07-31  Paul Eggert  <eggert@twinsun.com>
92813
92814         * lib/quotearg.c (quotearg_n_options): Don't make the initial
92815         slot vector a constant, since it might get modified.
92816
92817 2000-07-31  Jim Meyering  <meyering@lucent.com>
92818
92819         * lib/xmalloc.c: Use `virtual memory exhausted', not
92820         `Memory exhausted'.
92821         * lib/obstack.c (print_and_abort): Likewise.
92822
92823 2000-07-30  Paul Eggert  <eggert@twinsun.com>
92824
92825         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
92826         buffer, so that the caller can always quote one small
92827         component of a "memory exhausted" message in slot 0.
92828         From a suggestion by Jim Meyering.
92829
92830 2000-07-30  Jim Meyering  <meyering@lucent.com>
92831
92832         * lib/makepath.c (make_path): Quote the other instance, too.
92833
92834         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
92835         (STATIC_BUF_SIZE): Define.
92836         (quotearg_n_options): Use only statically allocated storage when
92837         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
92838         than STATIC_BUF_SIZE.
92839
92840 2000-07-29  Jim Meyering  <meyering@lucent.com>
92841
92842         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
92843         * lib/dirname.c (dir_name): Likewise.
92844
92845         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
92846         `/'.
92847
92848         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
92849         (dir_name): Assert that there are no trailing slashes.
92850
92851 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
92852
92853         * lib/mbswidth.h (mbswidth): Add a flags argument.
92854         (mbswidth): New declaration.
92855         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
92856         * lib/mbswidth.c (mbswidth): Add a flags argument.
92857         (mbsnwidth): New function.
92858
92859 2000-07-24  Jim Meyering  <meyering@lucent.com>
92860
92861         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
92862
92863 2000-07-23  Paul Eggert  <eggert@twinsun.com>
92864
92865         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
92866
92867 2000-07-23  Paul Eggert  <eggert@twinsun.com>
92868
92869         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
92870         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
92871         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
92872         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
92873         invoke multibyte primitives.
92874
92875 2000-07-23  Paul Eggert  <eggert@twinsun.com>
92876
92877         * lib/quotearg.c:
92878         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
92879         so that mbstate_t is always defined.
92880
92881         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
92882         be 1 in at least one GCC installation, and this configuration
92883         error is likely to be common.  Ignoring MB_LEN_MAX hurts
92884         performance on hosts that have mbrtowc but have only unibyte
92885         locales, but I assume these hosts are rare.
92886
92887 2000-07-23  Paul Eggert  <eggert@twinsun.com>
92888
92889         * lib/mbswidth.c (_XOPEN_SOURCE):
92890         Don't define; this causes problems on Solaris 7.
92891         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
92892
92893 2000-07-23  Jim Meyering  <meyering@lucent.com>
92894
92895         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
92896         too: getgrgid, getpwuid, getuid.
92897
92898 2000-07-23  Jim Meyering  <meyering@lucent.com>
92899
92900         * lib/basename.c (base_name): Add an assertion.
92901
92902 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
92903
92904         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
92905         shadow its mbsinit function.
92906
92907 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
92908
92909         * lib/mbswidth.h: New file.
92910         * lib/mbswidth.c: New file.
92911         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
92912         (noinst_HEADERS): Add mbswidth.h.
92913
92914 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
92915
92916         * lib/config.charset: Add support for FreeBSD. Improve support for
92917         HP-UX and IRIX 6.
92918
92919 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
92920
92921         * m4/mbswidth.m4: New file.
92922         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
92923
92924 2000-07-15  Jim Meyering  <meyering@lucent.com>
92925
92926         * lib/makepath.c: Include quote.h.
92927         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
92928         corresponding argument in a `quote (...)' call.
92929         Give better diagnostics.
92930
92931         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
92932         (noinst_HEADERS): Add quote.h.
92933
92934         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
92935         from tar's src/misc.c.
92936         * lib/quote.h: New file.  Prototypes for same.
92937
92938 2000-07-14  Paul Eggert  <eggert@twinsun.com>
92939
92940         From a suggestion by Bruno Haible.
92941         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
92942         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
92943         to decide whether to define the BeOS workaround macro;
92944         this adjusts to the change to AC_MBSTATE_T.
92945
92946 2000-07-14  Jim Meyering  <meyering@lucent.com>
92947
92948         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
92949         jm_AC_TYPE_UINTMAX_T.
92950
92951 2000-07-13  Paul Eggert  <eggert@twinsun.com>
92952
92953         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
92954
92955         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
92956         quotearg_buffer_restyled): Add support for
92957         clocale_quoting_style.  Undo previous change to
92958         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
92959         and "{RIGHT QUOTATION MARK}" msgids.
92960
92961 2000-07-10  Paul Eggert  <eggert@twinsun.com>
92962
92963         From a suggestion by Bruno Haible.
92964         * m4/mbstate_t.m4 (AC_MBSTATE_T):
92965         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
92966         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
92967         and mbstate_t, to a single-part test that simply defines mbstate_t.
92968         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
92969         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
92970
92971 2000-07-10  Jim Meyering  <meyering@lucent.com>
92972
92973         * m4/strerror_r.m4: Mirror the correction made in autoconf.
92974
92975         * m4/gnu-source.m4: Output to confdefs.h directly.
92976         Suggestion from Akim Demaille.
92977
92978 2000-07-09  Paul Eggert  <eggert@twinsun.com>
92979
92980         The old behavior of quoting `like this' doesn't look good with
92981         newer, ISO-style fonts.  See:
92982         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
92983
92984         Instead, quote "like this" by default.  Let the translator
92985         tailor the locale-specific quoting behavior by providing
92986         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
92987
92988         * lib/quotearg.c (N_): New macro.
92989         (gettext_default): New function.
92990         (quotearg_buffer_restyled): Use
92991         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
92992         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
92993
92994 2000-07-09  Jim Meyering  <meyering@lucent.com>
92995
92996         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
92997         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
92998
92999         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
93000         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
93001
93002 2000-07-09  Jim Meyering  <meyering@lucent.com>
93003
93004         * lib/Most files: Update copyright dates to include 2000.
93005
93006 2000-07-08  Jim Meyering  <meyering@lucent.com>
93007
93008         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
93009         if not defined.
93010         (xgethostname): Remove now-unnecessary #ifdef.
93011         Move declaration of `err' into loop where it's used.
93012
93013 2000-07-05  Paul Eggert  <eggert@twinsun.com>
93014         and Bruno Haible  <haible@clisp.cons.org>
93015
93016         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
93017         only if the test for an object-type mbstate_t fails.  This
93018         prevents us from mistakenly reporting that mbstate_t is a
93019         system object type after we "#define mbstate_t int" to work
93020         around its lack.
93021
93022 2000-07-05  Paul Eggert  <eggert@twinsun.com>
93023         and Bruno Haible  <haible@clisp.cons.org>
93024
93025         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
93026
93027 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93028
93029         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
93030         to strerror_r.
93031         Include <ctype.h> for use of isalpha.
93032
93033 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93034
93035         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
93036         by allocating a larger buffer. Test the gethostname return value for
93037         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
93038         returns an error and ENAMETOOLONG isn't defined.
93039
93040 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
93041
93042         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
93043         dimension.
93044
93045 2000-07-04  Jim Meyering  <meyering@lucent.com>
93046
93047         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
93048         of the deprecated AC_CHECKING.
93049
93050 2000-07-04  Jim Meyering  <meyering@lucent.com>
93051
93052         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
93053         Reported by Bruno Haible.
93054
93055 2000-07-04  Jim Meyering  <meyering@lucent.com>
93056
93057         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
93058         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
93059         lacks mbrtowc.
93060
93061 2000-07-03  Paul Eggert  <eggert@twinsun.com>
93062
93063         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
93064         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
93065
93066 2000-07-03  Paul Eggert  <eggert@twinsun.com>
93067         and Bruno Haible  <haible@clisp.cons.org>
93068
93069         * lib/quotearg.c (mbrtowc):
93070         Assign to *pwc, and return 1 only if result is nonzero.
93071         (iswprint): Use ISPRINT when substituting our own mbrtowc.
93072
93073 2000-07-03  Jim Meyering  <meyering@lucent.com>
93074
93075         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
93076
93077 2000-07-03  Jim Meyering  <meyering@lucent.com>
93078
93079         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
93080         This is necessary to get a definition of e.g., UTMP_FILE on
93081         HP-UX 10.20.
93082         From Bob Proulx.
93083
93084 2000-07-02  Jim Meyering  <meyering@lucent.com>
93085
93086         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
93087
93088         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
93089         AC_LIBOBJ(function_name).
93090         * m4/chown.m4: Likewise.
93091         * m4/fnmatch.m4: Likewise.
93092         * m4/ftruncate.m4: Likewise.
93093         * m4/getgroups.m4: Likewise.
93094         * m4/getline.m4: Likewise.
93095         * m4/group-member.m4: Likewise.
93096         * m4/jm-macros.m4: Likewise.
93097         * m4/lstat.m4: Likewise.
93098         * m4/malloc.m4: Likewise.
93099         * m4/memcmp.m4: Likewise.
93100         * m4/nanosleep.m4: Likewise.
93101         * m4/putenv.m4: Likewise.
93102         * m4/realloc.m4: Likewise.
93103         * m4/regex.m4: Likewise.
93104         * m4/stat.m4: Likewise.
93105         * m4/strftime.m4: Likewise.
93106
93107 2000-07-02  Jim Meyering  <meyering@lucent.com>
93108
93109         * lib/quotearg.c (mbstate_t): Don't define here.
93110
93111 2000-07-02  Jim Meyering  <meyering@lucent.com>
93112
93113         * lib/nanosleep.c (SIGCONT): Define if not already defined.
93114
93115 2000-07-01  Jim Meyering  <meyering@lucent.com>
93116
93117         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
93118
93119 2000-07-01  Jim Meyering  <meyering@lucent.com>
93120
93121         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
93122         problem.
93123
93124 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
93125
93126         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
93127         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
93128
93129 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
93130
93131         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
93132         per change in ../m4/ls-mntd-fs.m4.
93133         (read_filesystem_list): Ignore symbolic links.
93134
93135 2000-06-29  Jim Meyering  <meyering@lucent.com>
93136
93137         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
93138         for declaration of strcmp.
93139
93140         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
93141
93142         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
93143         Avoid warning by casting result to `char *' to remove `const'.
93144
93145 2000-06-28  Jim Meyering  <meyering@lucent.com>
93146
93147         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
93148         included by quotearg.c, for which we perform this test.  From
93149         Bruno Haible.
93150
93151 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
93152
93153         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
93154         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
93155         <utmpx.h> exists, put readutmp.o into LIBOBJS.
93156
93157 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
93158
93159         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
93160
93161 2000-06-26  Paul Eggert  <eggert@twinsun.com>
93162
93163         savedir now sets errno on failure and invokes xmalloc to get memory.
93164         Fix a couple of other minor bugs while we're at it.
93165
93166         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
93167         (NAMLEN): Remove macro.
93168         (malloc, realloc): Remove decls.
93169         (stpcpy): Likewise.
93170         ("xalloc.h"): Include.
93171         (NAME_SIZE_DEFAULT): New macro.
93172         (savedir): Use xmalloc / xrealloc to allocate memory.
93173         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
93174         Skip "" directory entries.
93175         Use strlen to calculate directory entry length, since the old method
93176         is rarely used these days and isn't worth supporting.
93177         Don't use a pointer after freeing it.
93178         Check for integer overflow when calculating allocation size.
93179         Use memcpy to copy entries, instead of stpcpy.
93180         Set errno properly when returning NULL.
93181         Check for readdir error.
93182
93183 2000-06-26  Jim Meyering  <meyering@lucent.com>
93184
93185         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
93186
93187 2000-06-25  Jim Meyering  <meyering@lucent.com>
93188
93189         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
93190         Linux header bug when _XOPEN_SOURCE is defined to 500.
93191
93192 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
93193
93194         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
93195         deficiency.
93196
93197 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
93198
93199         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
93200         Include xalloc.h.
93201         Don't include <stdlib.h>.  Don't declare malloc, realloc.
93202
93203 2000-06-24  Jim Meyering  <meyering@lucent.com>
93204
93205         * m4/strerror_r.m4: Revive this file -- to try out an experimental
93206         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
93207         for which strerror does return char*, but which lacks a conveniently
93208         accessible declaration of the function.  If the compile-test says
93209         strerror_r doesn't work, then resort to a `run'-test that works on
93210         BeOS and segfaults on DEC Unix.
93211
93212 2000-06-24  Jim Meyering  <meyering@lucent.com>
93213
93214         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
93215
93216 2000-06-23  Paul Eggert  <eggert@twinsun.com>
93217
93218         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
93219         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
93220
93221 2000-06-23  Paul Eggert  <eggert@twinsun.com>
93222
93223         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
93224         (mbrtowc, mbstate_t): Define substitutes if
93225         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
93226         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
93227         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
93228
93229 2000-06-23  Jim Meyering  <meyering@lucent.com>
93230
93231         * m4/afs.m4: Add missing AC_MSG_RESULT.
93232         Reported by Bruno Haible.
93233
93234         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
93235         Suggestion from Bruno Haible.
93236
93237 2000-06-23  Jim Meyering  <meyering@lucent.com>
93238
93239         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
93240
93241 2000-06-21  Jim Meyering  <meyering@lucent.com>
93242
93243         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
93244
93245 2000-06-21  Jim Meyering  <meyering@lucent.com>
93246
93247         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
93248         (noinst_HEADERS): Add getstr.h.
93249
93250         * lib/getline.c (getstr): Move into a separate file.
93251         * lib/getstr.c (getstr): New file, extracted from getline.c, with
93252         the following changes: new parameter, delim2; both delim[12]
93253         parameters have type `int', not `char'.  The latter would lose
93254         with 8-bit delimiters.
93255         * lib/getstr.h: New file.
93256
93257 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
93258
93259         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
93260         than 1024, return a memory chunk of least possible size, instead
93261         of size PATH_MAX + 2. In the loop, increment the size proportionally.
93262         Use free/xmalloc instead of xrealloc to avoid copying for very long
93263         paths.
93264
93265 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
93266
93267         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
93268         the empty string.
93269
93270 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
93271
93272         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
93273         address, not strdup.  Include <stdlib.h> and don't declare free().
93274
93275 2000-06-19  Jim Meyering  <meyering@lucent.com>
93276
93277         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
93278
93279 2000-06-18  Jim Meyering  <meyering@lucent.com>
93280
93281         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
93282
93283         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
93284         `checking whether...' message to be consistent with that of the
93285         lstat test.
93286
93287 2000-06-18  Jim Meyering  <meyering@lucent.com>
93288
93289         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
93290         Besides, these days every porting target provides a mkdir function.
93291
93292         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
93293         needed. (this snippet comes from src/system.h).
93294
93295 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
93296
93297         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
93298
93299 2000-06-15  Paul Eggert  <eggert@twinsun.com>
93300
93301         * lib/human.c (adjust_value): New function.
93302         (human_readable_inexact): Apply rounding style even when
93303         printing approximate values.
93304
93305 2000-06-14  Paul Eggert  <eggert@twinsun.com>
93306
93307         * lib/human.c (human_readable_inexact): Allow an input block
93308         size that is not a multiple of the output block size, and vice versa.
93309         Reported by Piergiorgio Sartor.
93310
93311 2000-06-14  Paul Eggert  <eggert@twinsun.com>
93312
93313         * lib/getdate.y (get_date): Apply relative times after time
93314         zone indicator, not before.  Reported by Todd A. Jacobs.
93315
93316 2000-06-13  Jim Meyering  <meyering@lucent.com>
93317
93318         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
93319
93320         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
93321
93322 2000-06-12  Paul Eggert  <eggert@twinsun.com>
93323
93324         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
93325
93326 2000-06-12  Jim Meyering  <meyering@lucent.com>
93327
93328         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
93329         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
93330         optional argument.
93331         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
93332         the optional argument, `lib'.
93333
93334 2000-06-08  Jim Meyering  <meyering@lucent.com>
93335
93336         * m4/largefile.m4: Remove file (now that it's part of autoconf).
93337
93338 2000-06-04  Paul Eggert  <eggert@twinsun.com>
93339
93340         Rewrite largefile configuration so that we don't need to run
93341         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
93342         AC_CANONICAL_HOST in configure.in -- jmm]
93343
93344         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
93345         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
93346         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
93347         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
93348         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
93349         All uses changed.
93350         Instead of inspecting the output of getconf, try to compile the
93351         test program without and with the macro definition.
93352         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
93353         for getconf.  Instead, check for the needed flags by compiling
93354         test programs.
93355
93356 2000-06-04  Paul Eggert  <eggert@twinsun.com>
93357
93358         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
93359
93360 2000-06-04  Jim Meyering  <meyering@lucent.com>
93361
93362         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
93363         SunOS 4.1.4 for which gid_t is an unsigned type.
93364
93365 2000-06-03  Jim Meyering  <meyering@lucent.com>
93366
93367         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
93368         now that autoconf requires that.
93369
93370         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
93371         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
93372         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
93373
93374 2000-06-03  Jim Meyering  <meyering@lucent.com>
93375
93376         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
93377
93378 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
93379
93380         * m4/glibc21.m4: New file.
93381         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
93382
93383 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
93384
93385         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
93386         newer, don't install charset.alias.
93387         * lib/config.charset: Change the Linux/glibc rules so they become empty
93388         on glibc-2.1 or newer.
93389
93390 2000-06-02  Jim Meyering  <meyering@lucent.com>
93391
93392         * lib/mountlist.c: Back out last change.  Instead, do this...
93393         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
93394         me_dummy member using the same `ignore'-testing code.
93395         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
93396         fs_type strings.
93397         From Mark D. Roth.
93398
93399 2000-05-29  Jim Meyering  <meyering@lucent.com>
93400
93401         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
93402         mounts with the `ignore' attribute.  Based on a patch from
93403         Mark D. Roth.
93404
93405 2000-05-28  Jim Meyering  <meyering@lucent.com>
93406
93407         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
93408         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
93409         * m4/stat.m4: Likewise.
93410         * m4/lstat.m4: Likewise.
93411         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
93412
93413         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
93414         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
93415
93416 2000-05-26  Jim Meyering  <meyering@lucent.com>
93417
93418         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
93419
93420 2000-05-24  Jim Meyering  <meyering@lucent.com>
93421
93422         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
93423         autoconf requires that.
93424         * m4/lib-check.m4: Likewise.
93425         * m4/jm-macros.m4: Likewise.
93426         * m4/strftime.m4: Likewise.
93427
93428         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
93429         AC_CHECK_DECLS, now that autoconf requires that.
93430
93431 2000-05-22  Jim Meyering  <meyering@lucent.com>
93432
93433         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
93434         * m4/lstat.m4: Likewise.
93435
93436 2000-05-22  Jim Meyering  <meyering@lucent.com>
93437
93438         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
93439
93440 2000-05-20  Jim Meyering  <meyering@lucent.com>
93441
93442         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
93443         (jm_PREREQ): Use it.
93444
93445 2000-05-18  Jim Meyering  <meyering@lucent.com>
93446
93447         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
93448         back, too, since it may have been modified by allocate_entry.
93449         (hash_delete): Rewrite to use neither the assignment operator
93450         nor the comma operator in an if-expression.
93451
93452 2000-05-15  Paul Eggert  <eggert@twinsun.com>
93453
93454         * lib/closeout.c:
93455         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
93456         Remove; no longer needed.
93457         "quotearg.h": Add include.
93458         (file_name): Do not bother to explicitly initialize to NULL; it's less
93459         efficient on some hosts.
93460         (close_stdout_status): Remove test as to whether stdout was already
93461         closed; it breaks for the case "echo x | sort >&-".
93462         Quote file name colons.
93463         Do not assume that _("write error") lacks format strings.
93464
93465 2000-05-15  Jim Meyering  <meyering@lucent.com>
93466
93467         * lib/version-etc.c (version_etc_copyright): Update the copyright
93468         string used in all --version output.
93469
93470 2000-05-14  Jim Meyering  <meyering@lucent.com>
93471
93472         * lib/closeout.c (close_stdout_set_file_name): New function.
93473         (close_stdout_status): Use new file-scoped global.
93474         Return right away if fstat says the stdout file descriptor is invalid.
93475         * lib/closeout.h (close_stdout_set_file_name): Declare.
93476
93477 2000-05-10  Jim Meyering  <meyering@lucent.com>
93478
93479         * lib/closeout.c [default_exit_status]: New file-scoped variable.
93480         (close_stdout_set_status): New function.
93481         * lib/closeout.h (close_stdout_set_status): Declare.
93482
93483 2000-05-09  Jim Meyering  <meyering@lucent.com>
93484
93485         * m4/gettext.m4: Rename this...
93486         * m4/libintl.m4: ...to this.
93487
93488 2000-05-08  Jim Meyering  <meyering@lucent.com>
93489
93490         * lib/long-options.c: Don't include closeout.h.
93491         (parse_long_options): Don't call close_stdout for --version.
93492
93493 2000-05-06  Paul Eggert  <eggert@twinsun.com>
93494
93495         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
93496         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
93497         2.1.3 bug.  This avoids a clash when files like regex.c define
93498         _GNU_SOURCE.
93499
93500 2000-05-06  Jim Meyering  <meyering@lucent.com>
93501
93502         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
93503         (AC_REPLACE_FUNCS): Add strnlen.
93504
93505         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
93506         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
93507
93508         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
93509         AC_SEARCH_LIBS call for nanosleep.
93510         (LIB_NANOSLEEP): Set and AC_SUBST.
93511
93512 2000-05-06  Jim Meyering  <meyering@lucent.com>
93513
93514         * lib/strnlen.c: Undefine __strnlen and strnlen.
93515         [!weak_alias]: Define __strnlen to strnlen.
93516
93517         * lib/atexit.c: New file, from libiberty.
93518
93519 2000-05-06  Jim Meyering  <meyering@lucent.com>
93520
93521         * lib/closeout.c (close_stdout_status): Also check for errors on the
93522         stderr stream.
93523
93524 2000-05-05  Jim Meyering  <meyering@lucent.com>
93525
93526         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
93527         AC_SEARCH_LIBS call for clock_gettime.
93528         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
93529
93530         * m4/search-libs.m4: Update from autoconf.
93531
93532         su doesn't work on Solaris 2.6.
93533         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
93534         <shadow.h>.  Reported by Dragos Harabor.
93535
93536 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
93537
93538         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
93539         memcpy instead of xmalloc, xrealloc, path_concat.
93540         (locale_charset): Treat empty environment variables as absent.
93541         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
93542
93543 2000-05-04  Jim Meyering  <meyering@lucent.com>
93544
93545         * lib/getopt.c: Update from glibc.
93546         * lib/obstack.c: Likewise.
93547         * lib/obstack.h: Likewise.
93548         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
93549         file
93550
93551         * lib/regex.h: Likewise.
93552         * lib/strndup.c: Likewise.
93553         * lib/strnlen.c: New file, from glibc.
93554
93555 2000-05-03  Jim Meyering  <meyering@lucent.com>
93556
93557         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
93558
93559 2000-05-02  Paul Eggert  <eggert@twinsun.com>
93560
93561         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
93562         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
93563         compile-time test, rather than inspecting host and OS, to
93564         decide whether to define _LARGEFILE_SOURCE.
93565
93566 2000-05-01  Jim Meyering  <meyering@lucent.com>
93567
93568         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
93569
93570         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
93571         Based on a patch from Bruno Haible.
93572
93573 2000-05-01  Jim Meyering  <meyering@lucent.com>
93574
93575         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
93576
93577 2000-04-29  Jim Meyering  <meyering@lucent.com>
93578
93579         * lib/path-concat.c: Declare strdup only if it's not defined.
93580         * lib/canon-host.c: Likewise.
93581
93582 2000-04-28  Jim Meyering  <meyering@lucent.com>
93583
93584         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
93585         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
93586         is included first, then limits.h is included by locale.h by libintl.h.
93587         From John David Anglin.
93588
93589 2000-04-25  Jim Meyering  <meyering@lucent.com>
93590
93591         * lib/makepath.c (S_IRWXUGO): Define.
93592         (make_path): Always perform explicit chmod if MODE specifies any
93593         of the `special' permission bits.  Prompted by a bug report against
93594         install from Mate Wierdl and Joost van Baal.
93595
93596 2000-04-18  Jim Meyering  <meyering@lucent.com>
93597
93598         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
93599         (jm_PREREQ): Use it.
93600
93601 2000-04-18  Jim Meyering  <meyering@lucent.com>
93602
93603         * lib/README: New file.
93604
93605         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
93606         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
93607
93608 2000-04-17  Jim Meyering  <meyering@lucent.com>
93609
93610         Get it right :-)
93611         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
93612         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
93613         Suggestion from Akim Demaille.
93614
93615 2000-04-17  Jim Meyering  <meyering@lucent.com>
93616
93617         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
93618         the definition of it to rpl_strftime also defined-away the system's
93619         declaration.
93620
93621 2000-04-15  Jim Meyering  <meyering@lucent.com>
93622
93623         Use `C' to denote so-called `contiguous' files, the same way
93624         that tar does.
93625         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
93626         (ftypelet): Use S_ISCTG.
93627         From Michael Deutschmann.
93628
93629 2000-04-14  Jim Meyering  <meyering@lucent.com>
93630
93631         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
93632         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
93633         clobbered.
93634
93635 2000-04-14  Jim Meyering  <meyering@lucent.com>
93636
93637         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
93638
93639 2000-04-13  Jim Meyering  <meyering@lucent.com>
93640
93641         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
93642         AH_VERBATIM to insert required #ifndef into config.h.in.
93643         Suggestion from Akim Demaille.
93644
93645 2000-04-12  Jim Meyering  <meyering@lucent.com>
93646
93647         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
93648         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
93649         Christian Krackowizer.
93650
93651         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
93652         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
93653         (AC_SYS_LARGEFILE): Require.
93654         (AM_C_PROTOTYPES): Require.
93655
93656 2000-04-08  Jim Meyering  <meyering@lucent.com>
93657
93658         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
93659         names don't conflict.  Reported by Eli Zaretskii.
93660
93661 2000-04-07  Jim Meyering  <meyering@lucent.com>
93662
93663         * lib/putenv.c: Move inclusion of errno.h so it follows that of
93664         sys/types.h, to work around system header problems on AIX 3.2.5.
93665         From Bruno Haible.
93666
93667 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
93668
93669         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
93670         bug.  Deal with the different error behavior of Irix iconv.
93671
93672 2000-04-05  Paul Eggert  <eggert@twinsun.com>
93673
93674         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
93675         IRIX if the installer said otherwise.
93676
93677 2000-04-05  Jim Meyering  <meyering@lucent.com>
93678
93679         Portability tweaks required for ultrix4.3.
93680         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
93681         (jm_CHECK_DECLS): Add getutent to the list of functions.
93682         (_jm_DECL_HEADERS): Add utmpx.h.
93683         From John David Anglin.
93684
93685         * m4/strftime.m4: Back out the 2000-04-02 change.
93686         Instead of that change, simply undefine putenv in the test program.
93687
93688 2000-04-05  Jim Meyering  <meyering@lucent.com>
93689
93690         Portability tweaks required for ultrix4.3.
93691         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
93692         getutent.
93693         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
93694         * lib/canon-host.c: Declare strdup.
93695         * lib/path-concat.c: Likewise.
93696         From John David Anglin.
93697
93698 2000-04-04  Jim Meyering  <meyering@lucent.com>
93699
93700         Be more DOS 8.3-friendly.
93701         * lib/ref-add.sin: Renamed from ref-add.sed.in.
93702         * lib/ref-del.sin: Renamed from ref-del.sed.in.
93703         * lib/Makefile.am: Reflect renaming.
93704         Reported by Eli Zaretskii.
93705
93706         Use a temporary file name that won't clash with `charset.alias'
93707         in the DOS 8.3 name space.
93708         * lib/Makefile.am (charset_tmp): Define.
93709         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
93710         (uninstall-local): Likewise.
93711         Reported by Eli Zaretskii.
93712
93713 2000-04-03  Jim Meyering  <meyering@lucent.com>
93714
93715         * m4/gettext.m4: Fix typo in comment.
93716
93717         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
93718         textutils/configure.in).  Suggestion from Paul Eggert.
93719         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
93720
93721 2000-04-02  Paul Eggert  <eggert@twinsun.com>
93722
93723         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
93724         variable in the shell rather than using putenv, which isn't
93725         portable.  This avoids the configure-time inter-test dependency
93726         on the potentially-renamed putenv function.
93727
93728 2000-03-30  Paul Eggert  <eggert@twinsun.com>
93729
93730         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
93731         before checking struct stat.st_blksize, so that
93732         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
93733
93734 2000-03-29  Paul Eggert  <eggert@twinsun.com>
93735
93736         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
93737         since strftime.c uses HAVE_STRFTIME to decide whether to use
93738         the underlying strftime.
93739
93740 2000-03-29  Paul Eggert  <eggert@twinsun.com>
93741
93742         * lib/time/strftime.c (my_strftime): Make sure we call the system
93743         strftime, not ourselves, when invoking the underlying strftime.
93744
93745 2000-03-24  Jim Meyering  <meyering@lucent.com>
93746
93747         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
93748         (charset_alias): Define.
93749         (install-exec-local): Factor out common code.
93750         (uninstall-local): Split lines longer than 80.
93751         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
93752         (SUFFIXES): Define.
93753         (.sed.in.sed): New rule.  Don't redirect directly to $@.
93754         (CLEANFILES): Add ref-add.sed and ref-del.sed.
93755
93756 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
93757
93758         * lib/config.charset: Output a line containing "Packages using this
93759         file".
93760         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
93761         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
93762         ref-del.sed): New rules.
93763
93764 2000-03-17  Jim Meyering  <meyering@lucent.com>
93765
93766         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
93767         Otherwise, include <strings.h>
93768
93769 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
93770
93771         * lib/unicodeio.c (utf8_wctomb): New function.
93772         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
93773         format instead of in UCS-4 with platform dependent endianness.
93774
93775 2000-03-10  Jim Meyering  <meyering@lucent.com>
93776
93777         * m4/lib-check.m4: Look for getspnam in -lgen, too.
93778         From Marco Franzen.
93779
93780 2000-03-07  Paul Eggert  <eggert@twinsun.com>
93781
93782         * lib/savedir.c (savedir): Work even if directory size is
93783         negative; this can happen with some screwy NFS configurations.
93784
93785 2000-03-06  Jim Meyering  <meyering@lucent.com>
93786
93787         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
93788         if it's NULL (because we ran out of memory).  From Bruno Haible.
93789
93790 2000-03-05  Jim Meyering  <meyering@lucent.com>
93791
93792         * lib/localcharset.c ("path-concat.h"): Include.
93793         (get_charset_aliases): Use path_concat instead of ANSI string
93794         concatenation.
93795
93796         * lib/unicodeio.h (PARAMS): Define.
93797         Use it to guard prototype.
93798
93799 2000-03-04  Jim Meyering  <meyering@lucent.com>
93800
93801         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
93802         for lib/localcharset.c.
93803
93804 2000-03-04  Jim Meyering  <meyering@lucent.com>
93805
93806         * lib/Makefile.am (install-exec-local): Create $(libdir) before
93807         installing into it.
93808         (uninstall-local): Uncomment this rule so `make distcheck' works
93809         once again.
93810
93811         * lib/unicodeio.c (<errno.h>): Include it.
93812         (errno): Declare if not defined.
93813
93814         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
93815
93816         * lib/config.charset: New version, incorporating remarks from a linux
93817         i18n mailing list.  From Bruno Haible.
93818
93819 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
93820
93821         * m4/codeset.m4: New file.
93822         * m4/iconv.m4: New file.
93823         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
93824
93825 2000-03-03  Jim Meyering  <meyering@lucent.com>
93826
93827         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
93828
93829 2000-03-02  Jim Meyering  <meyering@lucent.com>
93830
93831         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
93832         the messages come out on separate lines.
93833
93834         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
93835         rather than jm_CHECK_DECLARATIONS.
93836         * m4/decl.m4: Remove now-unused file.
93837
93838         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
93839         geteuid.
93840
93841 2000-03-02  Jim Meyering  <meyering@lucent.com>
93842
93843         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
93844
93845 2000-03-01  Jim Meyering  <meyering@lucent.com>
93846
93847         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
93848         * lib/unicodeio.c: Likewise.
93849
93850 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
93851
93852         * lib/config.charset: New file.
93853         * lib/localcharset.c: New file.
93854         * lib/unicodeio.h, lib/unicodeio.c: New files.
93855         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
93856         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
93857         (noinst_HEADERS): Add unicodeio.h.
93858         (all-local, install-exec-local, charset.alias): New targets.
93859
93860 2000-02-28  Paul Eggert  <eggert@twinsun.com>
93861
93862         * lib/quotearg.c (ALERT_CHAR): New macro.
93863         (quotearg_buffer_restyled): Use it.
93864
93865 2000-02-27  Jim Meyering  <meyering@lucent.com>
93866
93867         * m4/check-decl.m4: Add getenv to the list.
93868
93869 2000-02-27  Jim Meyering  <meyering@lucent.com>
93870
93871         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
93872         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
93873
93874         * lib/backupfile.c: Guard inclusion of stdlib.h with
93875         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
93876         Declare malloc if needed.
93877
93878         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
93879         `#ifndef HAVE_DECL..'
93880         now that autoconf always defines the HAVE_DECL_ symbols.
93881         * lib/human.c: Likewise.
93882         * lib/same.c: Likewise.
93883         * lib/strtoumax.c: Likewise.
93884
93885         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
93886         declaration check was not run.
93887         * lib/hash.c: Likewise.
93888         * lib/human.c: Likewise.
93889         * lib/same.c: Likewise.
93890         * lib/strtoumax.c: Likewise.
93891
93892         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
93893         `.', then first look up the entire `.'-containing string as a login
93894         name.
93895
93896 2000-02-23  Jim Meyering  <meyering@lucent.com>
93897
93898         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
93899         in place of my hack.
93900
93901 2000-02-18  Paul Eggert  <eggert@twinsun.com>
93902
93903         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
93904         (textint): New typedef.
93905         (parser_control): Member year changed from int to textint.
93906         All uses changed.
93907         (YYSTYPE): Removed; replaced by %union with int and textint members.
93908         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
93909         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
93910         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
93911         (tSNUMBER, tUNUMBER): Now of type <textintval>.
93912         (date, number, to_year): Use width of number in digits, not its value,
93913         to determine whether it's a 2-digit year, or a 2-digit time.
93914         (yylex): Store number of digits of numeric tokens.
93915         Reported by John Kendall.
93916
93917         (parser_control): Changed from struct parser_control to typedef (for
93918         consistency).  All uses changed.
93919
93920         (tID): Removed; not used.
93921         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
93922
93923 2000-02-14  Paul Eggert  <eggert@twinsun.com>
93924
93925         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
93926         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
93927
93928 2000-02-12  Jim Meyering  <meyering@lucent.com>
93929
93930         * lib/userspec.c (ISDIGIT): Define it.
93931         (isdigit): Remove definition.
93932         (is_number): Use ISDIGIT, not isdigit.
93933         <libintl.h>: Include.
93934         (_ and N_): Define.
93935         (parse_user_spec): Mark translatable strings.
93936
93937 2000-02-10  Jim Meyering  <meyering@lucent.com>
93938
93939         With these changes, nanosleep.[ch] are finally enough like the other
93940         lib/* replacement files to compile on a few more losing systems.
93941
93942         * lib/nanosleep.h: Don't include config.h.
93943         Remove prototype from declaration of nanosleep.
93944         (PARAMS): Remove now-unneeded definition.
93945         * lib/nanosleep.c: #undef nanosleep.
93946         (rpl_nanosleep): Rename from nanosleep.
93947
93948 2000-02-10  Jim Meyering  <meyering@lucent.com>
93949
93950         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
93951         gnu_nanosleep to rpl_nanosleep.
93952
93953 2000-02-09  Jim Meyering  <meyering@lucent.com>
93954
93955         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
93956         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
93957
93958 2000-02-08  Akim Demaille  <akim@epita.fr>
93959
93960         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
93961         `[' and `]' and remove uses of `changequote'.
93962         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
93963         (AC_SYS_LARGEFILE): Likewise.
93964         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
93965         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
93966         of changequote.
93967         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
93968         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
93969         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
93970         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
93971
93972 2000-02-05  Jim Meyering  <meyering@lucent.com>
93973
93974         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
93975         Remove explicit use of AC_HEADER_TIME.  It is required by
93976         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
93977         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
93978         in autoconf whereby the expansion of the latter ended up preceding
93979         the expansion of its prerequisite, AC_HEADER_TIME.
93980         Reported by Volker Borchert.
93981
93982 2000-02-03  Jim Meyering  <meyering@lucent.com>
93983
93984         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
93985
93986 2000-02-03  Jim Meyering  <meyering@lucent.com>
93987
93988         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
93989         rather than with `#if HAVE_UTMPNAME'.
93990
93991 2000-02-02  Jim Meyering  <meyering@lucent.com>
93992
93993         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
93994         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
93995         Reported by Eli Zaretskii.
93996
93997 2000-02-01  Jim Meyering  <meyering@lucent.com>
93998
93999         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
94000
94001 2000-01-31  Jim Meyering  <meyering@lucent.com>
94002
94003         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
94004         functions.  Add the time.h and sys/time.h headers along with the
94005         AC_REQUIRE'ment of AC_HEADER_TIME.
94006
94007 2000-01-31  Jim Meyering  <meyering@lucent.com>
94008
94009         * lib/nanosleep.h (nanosleep): Guard declaration with
94010         `#if ! HAVE_DECL_NANOSLEEP'.
94011         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
94012         the declaration in that vendor's sys/timers.h.
94013         Reported by Christian Krackowizer.
94014
94015         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
94016         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
94017         (ISPRINT): Likewise.
94018         Reported by Tom Tromey.
94019
94020 2000-01-30  Jim Meyering  <meyering@lucent.com>
94021
94022         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
94023
94024         * m4/prereq.m4 (utmp_includes): Define.
94025         Check for ut_user and ut_name members in both struct utmpx
94026         and struct utmp.
94027
94028 2000-01-30  Jim Meyering  <meyering@lucent.com>
94029
94030         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
94031         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
94032         header files where only utmpx.ut_user is declared.
94033
94034         * lib/readutmp.h (UT_USER): Define.
94035
94036 2000-01-29  Jim Meyering  <meyering@lucent.com>
94037
94038         * m4/lib-check.m4: New file containing library-related checks from
94039         fileutils and sh-utils (textutils had none).
94040
94041 2000-01-28  Jim Meyering  <meyering@lucent.com>
94042
94043         * m4/perl.m4: Change format of warning message to look more like that
94044         from the missing script.  Suggestion from François Pinard.
94045
94046 2000-01-25  Jim Meyering  <meyering@lucent.com>
94047
94048         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
94049         well as time.h in the compile check.
94050         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
94051         Fix typo in cross-compiling case: s/yes/no/.
94052
94053 2000-01-23  Jim Meyering  <meyering@lucent.com>
94054
94055         * m4/jm-macros.m4: Move df-related tests here from
94056         fileutils/configure.in
94057
94058         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
94059         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
94060
94061         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
94062         s/space/ac_fsusage_space/.
94063         (jm_FILE_SYSTEM_USAGE): Take two parameters.
94064
94065         * m4/ftruncate.m4: New file (derived from part of
94066         fileutils/configure.in).
94067         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
94068         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
94069
94070         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
94071         AC_SUBST these here, rather than just in sh-util/configure.in, so
94072         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
94073         all the same.
94074         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
94075         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
94076         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
94077         (AC_SUBST(POW_LIBM)): Likewise.
94078         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
94079
94080 2000-01-23  Jim Meyering  <meyering@lucent.com>
94081
94082         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
94083         obstack.c.
94084
94085 2000-01-22  Jim Meyering  <meyering@lucent.com>
94086
94087         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
94088
94089         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
94090
94091         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
94092         configure.in
94093         (AC_CHECK_HEADERS): Likewise for sh-utils.
94094         (AC_CHECK_HEADERS): Likewise for textutils.
94095         Merge the three lists of headers.
94096
94097         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
94098         from fileutils' configure.in.
94099
94100         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
94101         code. Moved tests into their own function (_jm_DECL_HEADERS) in
94102         check-decl.m4.
94103
94104         * m4/check-decl.m4: Use #if rather than #ifdef.
94105         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
94106         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
94107         (_jm_DECL_HEADERS): Define new function.
94108         (jm_CHECK_DECLARATIONS): Require it.
94109
94110 2000-01-22  Jim Meyering  <meyering@lucent.com>
94111
94112         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
94113         [! HAVE_DECL_STRTOULL]: Declare strtoull.
94114         Required for some AIX systems.  Reported by Christian Krackowizer.
94115         [TESTING] (main): New function.
94116
94117         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
94118         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
94119         letters.
94120
94121         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
94122         iswprint.
94123
94124         * lib/strverscmp.c (ISDIGIT): Define.
94125         (strverscmp): Use ISDIGIT, not isdigit.
94126
94127 2000-01-19  Jim Meyering  <meyering@lucent.com>
94128
94129         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
94130         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
94131         defines `struct timespec' in <sys/time.h>
94132
94133         * m4/c-bs-a.m4: Remove uses of changequote altogether.
94134         Thanks to Akim for explaining.
94135
94136 2000-01-17  Paul Eggert  <eggert@twinsun.com>
94137
94138         * lib/nanosleep.c (nanosleep):
94139         Don't use SA_INTERRUPT to decide whether to call sigaction, as
94140         POSIX.1 doesn't require SA_INTERRUPT and some systems
94141         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
94142         it's been part of POSIX.1 since day 1 (in 1988).
94143
94144 2000-01-17  Jim Meyering  <meyering@lucent.com>
94145
94146         * lib/interlock: Remove unused file.  Reported by François Pinard.
94147
94148 2000-01-16  Paul Eggert  <eggert@twinsun.com>
94149
94150         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
94151         alert, backslash, formfeed, and vertical tab unnecessarily in
94152         shell quoting style.
94153
94154 2000-01-16  Jim Meyering  <meyering@lucent.com>
94155
94156         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
94157         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
94158         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
94159         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
94160
94161 2000-01-16  Jim Meyering  <meyering@lucent.com>
94162
94163         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
94164         because the latter didn't work.
94165
94166 2000-01-15  Jim Meyering  <meyering@lucent.com>
94167
94168         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
94169         (AC_REPLACE_FUNCS): Add memcpy and memset.
94170         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
94171         Add strpbrk.
94172         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
94173
94174 2000-01-12  Jim Meyering  <meyering@lucent.com>
94175
94176         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
94177         (jm_PREREQ): Use it.
94178         (jm_PREREQ_READUTMP): New macro.
94179         (jm_PREREQ): Use it.
94180
94181 2000-01-11  Paul Eggert  <eggert@twinsun.com>
94182
94183         Quote multibyte characters correctly.
94184         * m4/c-bs-a.m4: New file.
94185         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
94186         (jm_PREREQ): Use it.
94187
94188 2000-01-11  Paul Eggert  <eggert@twinsun.com>
94189
94190         * m4/uintmax_t.m4: Port to autoconf 2.13.
94191
94192 2000-01-08  Jim Meyering  <meyering@ascend.com>
94193
94194         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
94195         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
94196
94197 2000-01-04  Jim Meyering  <meyering@ascend.com>
94198
94199         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
94200         jm_STRUCT_DIRENT_D_TYPE.
94201         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
94202         jm_STRUCT_DIRENT_D_INO.
94203         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
94204         jm_STRUCT_UTIMBUF.
94205         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
94206         renamings.
94207         * m4/utime.m4: Likewise.
94208
94209         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
94210         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
94211
94212 2000-01-03  Paul Eggert  <eggert@twinsun.com>
94213
94214         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
94215         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
94216
94217 2000-01-02  Jim Meyering  <meyering@ascend.com>
94218
94219         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
94220         remember if this is necessary.
94221
94222 1999-12-26  Jim Meyering  <meyering@ascend.com>
94223
94224         * m4/jm-macros.m4: Use it here.
94225         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
94226
94227 1999-12-23  Jim Meyering  <meyering@ascend.com>
94228
94229         * m4/jm-macros.m4: Check for clock_gettime (moved from
94230         fileutils/configure.in)
94231         Check for gettimeofday.
94232
94233 1999-12-20  Jim Meyering  <meyering@ascend.com>
94234
94235         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
94236         autoconf-2.14a-1999-12-20.
94237
94238 1999-12-19  Jim Meyering  <meyering@ascend.com>
94239
94240         * m4/lstat-slash.m4: New file.
94241         * m4/jm-macros.m4: Use the new macro:
94242         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
94243
94244 1999-12-07  Jim Meyering  <meyering@ascend.com>
94245
94246         * m4/perl.m4: Require that File::Compare be available, too.
94247         Too many systems seem to lack it.
94248
94249         * m4/strftime.m4: Add checks for most of the cpp macros tested in
94250         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
94251
94252 1999-11-18  Paul Eggert  <eggert@twinsun.com>
94253
94254         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
94255         problem with the QNX 4.25 shell, which doesn't propagate exit
94256         status of failed commands inside shell assignments.
94257
94258 1999-11-17  Jim Meyering  <meyering@ascend.com>
94259
94260         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
94261
94262 1999-11-07  Jim Meyering  <meyering@ascend.com>
94263
94264         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
94265
94266 1999-11-06  Jim Meyering  <meyering@ascend.com>
94267
94268         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
94269         * m4/jm-macros.m4 (jm_MACROS): Use it here.
94270
94271 1999-11-05  Jim Meyering  <meyering@ascend.com>
94272
94273         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
94274         configure.in of textutils, fileutils, and sh-utils into this one
94275         (shared between those packages) file.
94276         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
94277         AC_STRUCT_ST_BLKSIZE.
94278
94279 1999-11-03  Jim Meyering  <meyering@ascend.com>
94280
94281         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
94282         of AC_CHECK_TYPE checks includes unistd.h.
94283         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
94284         Suggestion from Akim Demaille.
94285
94286 1999-10-30  Jim Meyering  <meyering@ascend.com>
94287
94288         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
94289         m4-quoted string.
94290         * m4/ls-mntd-fs.m4: Likewise.
94291         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
94292         * m4/jm-winsz1.m4: Likewise.
94293
94294         * m4/const.m4: Remove file, since the fix made it into the experimental
94295         version of autoconf.
94296         * m4/mktime.m4: Likewise.
94297
94298         * m4/check-type.m4: Remove file, now that the latest version of
94299         AC_CHECK_TYPE takes a third arg to specify additional #includes.
94300
94301         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
94302         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
94303         AC_CHECK_TYPE.
94304
94305 1999-10-04  Jim Meyering  <meyering@ascend.com>
94306
94307         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
94308
94309 1999-09-22  Paul Eggert  <eggert@twinsun.com>
94310
94311         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
94312         2.95.1 bug with HP-UX 10.20.
94313
94314 1999-09-17  Jim Meyering  <meyering@ascend.com>
94315
94316         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
94317         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
94318         due to missing strdup (against sh-utils-2.0).
94319
94320 1999-08-29  Jim Meyering  <meyering@ascend.com>
94321
94322         * m4/jm-macros.m4: Require jm_BISON.
94323         * m4/bison.m4: New file.
94324
94325 1999-08-17  Paul Eggert  <eggert@twinsun.com>
94326
94327         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
94328         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
94329
94330 1999-08-05  Jim Meyering  <meyering@ascend.com>
94331
94332         * m4/getline.m4: Rename test file from conftestdata to conftest.data
94333         to avoid conflicts with `conftest' on 8+3 filesystems.
94334         Suggestion from Eli Zaretskii.
94335
94336 1999-08-04  Jim Meyering  <meyering@ascend.com>
94337
94338         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
94339         fileutils and sh-utils (textutils's getline test was inadequate).
94340         (AM_FUNC_GETLINE): Run this test.
94341         (AC_CHECK_FUNCS): Check for getdelim.
94342         Reported by Bob Proulx.
94343
94344 1999-08-02  Jim Meyering  <meyering@ascend.com>
94345
94346         * m4/jm-macros.m4: Add a comment.
94347
94348 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94349
94350         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
94351         <inttypes.h> defines strtoumax as a macro (and not as a
94352         function).
94353
94354 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94355
94356         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
94357         that we can shift, multiply and divide unsigned long long
94358         values; Ultrix cc can't do it.
94359
94360 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94361
94362         * m4/mktime.m4: New file, which is a preview of what should appear
94363         in the next public autoconf release.
94364
94365 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94366
94367         * m4/lfs.m4: Remove this file.
94368         * m4/largefile.m4: New file.  It contains the old contents of
94369         lfs.m4, except that all names with prefix AC_LFS have been
94370         changed to use the prefix AC_SYS_LARGEFILE instead, to be
94371         compatible with future autoconf versions.  Also, some minor m4
94372         quoting problems have been fixed.
94373
94374 1999-08-01  Paul Eggert  <eggert@twinsun.com>
94375
94376         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
94377         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
94378         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
94379         and simplify the shell code.
94380
94381 1999-08-01  Jim Meyering  <meyering@ascend.com>
94382
94383         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
94384         m4.
94385
94386 1999-07-20  Jim Meyering  <meyering@ascend.com>
94387
94388         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
94389
94390 1999-07-15  Jim Meyering  <meyering@ascend.com>
94391
94392         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
94393
94394 1999-05-22  Jim Meyering  <meyering@ascend.com>
94395
94396         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
94397
94398 1999-05-20  Jim Meyering  <meyering@ascend.com>
94399
94400         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
94401         Add a colon after each `then' in case $4 is empty.
94402
94403 1999-05-16  Jim Meyering  <meyering@ascend.com>
94404
94405         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
94406
94407 1999-05-10  Jim Meyering  <meyering@ascend.com>
94408
94409         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
94410
94411         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
94412         AC_FUNC_MKTIME.
94413
94414 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
94415
94416         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
94417
94418 1999-05-04  Paul Eggert  <eggert@twinsun.com>
94419
94420         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
94421         not CPPFLAGS, so that linking works correctly in IRIX.
94422
94423 1999-04-30  Paul Eggert  <eggert@twinsun.com>
94424
94425         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
94426
94427 1999-04-20  Paul Eggert  <eggert@twinsun.com>
94428
94429         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
94430         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
94431         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
94432         jm_AC_TYPE_UNSIGNED_LONG_LONG.
94433         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
94434
94435         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
94436
94437 1999-04-20  Jim Meyering  <meyering@ascend.com>
94438
94439         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
94440         AC_REPLACE xstroull if necessary.  From Paul Eggert.
94441         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
94442
94443 1999-04-18  Jim Meyering  <meyering@ascend.com>
94444
94445         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
94446         * m4/jm-macros.m4: Use it.
94447
94448 1999-04-06  Jim Meyering  <meyering@ascend.com>
94449
94450         * m4/strftime.m4: Remove test for %f.
94451
94452 1999-03-29  Jim Meyering  <meyering@ascend.com>
94453
94454         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
94455         superset of the AC_TYPE_* checks in the textutils, fileutils,
94456         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
94457         AC_TYPE_PID_T.
94458
94459 1999-03-28  Jim Meyering  <meyering@ascend.com>
94460
94461         * m4/jm-macros.m4: Define GNU_PACKAGE here.
94462         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
94463         replaced e.g., in the *.sh files of the sh-utils.
94464
94465 1999-03-20  Jim Meyering  <meyering@ascend.com>
94466
94467         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
94468         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
94469         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
94470
94471 1999-03-19  Jim Meyering  <meyering@ascend.com>
94472
94473         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
94474
94475 1999-03-12  Jim Meyering  <meyering@ascend.com>
94476
94477         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
94478
94479 1999-03-07  Jim Meyering  <meyering@ascend.com>
94480
94481         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
94482         declared.
94483
94484 1999-02-17  Jim Meyering  <meyering@ascend.com>
94485
94486         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
94487         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
94488
94489 1999-02-07  Jim Meyering  <meyering@ascend.com>
94490
94491         * m4/group-member.m4: New file -- extracted from sh-utils'
94492         configure.in.
94493
94494         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
94495         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
94496
94497 1999-02-06  Jim Meyering  <meyering@ascend.com>
94498
94499         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
94500         * m4/fnmatch.m4: Likewise.
94501         * m4/getgroups.m4: Likewise.
94502         * m4/lstat.m4: Likewise.
94503         * m4/malloc.m4: Likewise.
94504         * m4/putenv.m4: Likewise.
94505         * m4/realloc.m4: Likewise.
94506         * m4/regex.m4: Likewise.
94507         * m4/stat.m4: Likewise.
94508         * m4/strftime.m4: Likewise.
94509         Suggestion from Alain Magloire.
94510
94511         * m4/chown.m4: Use `.$ac_objext', not `.o'.
94512         * m4/fnmatch.m4: Likewise.
94513         * m4/getgroups.m4: Likewise.
94514         * m4/getline.m4: Likewise.
94515         * m4/lstat.m4: Likewise.
94516         * m4/malloc.m4: Likewise.
94517         * m4/memcmp.m4: Likewise.
94518         * m4/putenv.m4: Likewise.
94519         * m4/realloc.m4: Likewise.
94520         * m4/regex.m4: Likewise.
94521         * m4/stat.m4: Likewise.
94522         * m4/strftime.m4: Likewise.
94523         Suggestion from Alain Magloire.
94524
94525         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
94526         an argument.
94527
94528         * m4/regex.m4: Add a run-time Test for proper operation of
94529         re_compile_pattern.
94530
94531 1999-01-31  Jim Meyering  <meyering@ascend.com>
94532
94533         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
94534
94535 1999-01-30  Jim Meyering  <meyering@ascend.com>
94536
94537         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
94538
94539         * m4/jm-mktime.m4: Make this a wrapper around the official
94540         AM_FUNC_MKTIME rather than my private copy, now that the official one
94541         is up to date.
94542         * m4/mktime.m4: Remove file.
94543
94544         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
94545         * m4/uptime.m4: Likewise.
94546         * m4/uintmax_t.m4: Likewise.
94547
94548 1999-01-28  Jim Meyering  <meyering@ascend.com>
94549
94550         * m4/jm-macros.m4: Use jm_AFS.
94551         * m4/afs.m4: New file (from fileutils' configure.in).
94552
94553         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
94554         * m4/chown.m4: Likewise.
94555         * m4/d-ino.m4: Likewise.
94556         * m4/d-type.m4: Likewise.
94557         * m4/fnmatch.m4: Likewise.
94558         * m4/getgroups.m4: Likewise.
94559         * m4/gettext.m4: Likewise.
94560         * m4/jm-mktime.m4: Likewise.
94561         * m4/jm-winsz2.m4: Likewise.
94562         * m4/lcmessage.m4: Likewise.
94563         * m4/ls-mntd-fs.m4: Likewise.
94564         * m4/malloc.m4: Likewise.
94565         * m4/memcmp.m4: Likewise.
94566         * m4/putenv.m4: Likewise.
94567         * m4/realloc.m4: Likewise.
94568         * m4/st_mtim.m4: Likewise.
94569         * m4/strftime.m4: Likewise.
94570
94571 1999-01-16  Jim Meyering  <meyering@ascend.com>
94572
94573         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
94574         (ARGMATCH_DIE_DECL): Define.
94575
94576 1999-01-12  Jim Meyering  <meyering@ascend.com>
94577
94578         * m4/Makefile.am.in: Rewrite to avoid using fmt.
94579         Reported by Lars Hecking.
94580
94581 1999-01-10  Jim Meyering  <meyering@ascend.com>
94582
94583         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
94584         gross kludge.
94585         * m4/inttypes_h.m4: Likewise.
94586         * m4/lstat.m4: Likewise.
94587         * m4/malloc.m4: Likewise.
94588         * m4/readdir.m4: Likewise.
94589         * m4/realloc.m4: Likewise.
94590         * m4/st_dm_mode.m4: Likewise.
94591         * m4/stat.m4: Likewise.
94592         * m4/utimbuf.m4: Likewise.
94593         * m4/utimes.m4: Likewise.
94594
94595         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
94596         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
94597         comments in config.h.in are meaningful.
94598
94599         * m4/jm-macros.m4: Require autoconf-2.13 here.
94600
94601         * m4/regex.m4: By default, don't use the included regex.c on systems
94602         with glibc 2.  Suggestion from Uli Drepper.
94603
94604 1999-01-02  Jim Meyering  <meyering@ascend.com>
94605
94606         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
94607
94608 1998-12-18  Jim Meyering  <meyering@ascend.com>
94609
94610         * m4/Makefile.am.in (Makefile.am): Simplify rule.
94611         Based on a suggestion from Lars Hecking.
94612
94613 1998-11-16  Paul Eggert  <eggert@twinsun.com>
94614
94615         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
94616
94617 1998-11-16  Jim Meyering  <meyering@ascend.com>
94618
94619         * m4/lfs.m4: Double-quote the `uname...` expression.
94620
94621 1998-11-14  Jim Meyering  <meyering@ascend.com>
94622
94623         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
94624         * m4/stat.m4: Likewise.
94625
94626 1998-11-03  Jim Meyering  <meyering@ascend.com>
94627
94628         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
94629         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
94630
94631 1998-10-18  Jim Meyering  <meyering@ascend.com>
94632
94633         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
94634
94635 1998-10-17  Jim Meyering  <meyering@ascend.com>
94636
94637         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
94638         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
94639         calls for those previously hard-coded headers.  Instead, take a new
94640         parameter.
94641         (jm_CHECK_DECLARATIONS): Reflect interface change.
94642         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
94643         (jm_CHECK_DECL_LOCALTIME_R): New macro.
94644
94645         * m4/mktime.m4: Test for spring-forward gap before long-running test.
94646
94647 1998-10-14  Jim Meyering  <meyering@ascend.com>
94648
94649         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
94650         instead of "TZ=America/Vancouver".  From Paul Eggert.
94651
94652 1998-10-11  Jim Meyering  <meyering@ascend.com>
94653
94654         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
94655         This adds a test for a recently added compatibility fix for mktime.c.
94656         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
94657
94658 1998-09-27  Jim Meyering  <meyering@ascend.com>
94659
94660         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
94661
94662         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
94663         ../configure.in, including a change from Gordon Matzigkeit to allow
94664         cross-compiling for the Hurd.
94665
94666         * m4/glibc.m4: New file/macro to test for the GNU C Library
94667         versions 1 and 2.  From Gordon Matzigkeit.
94668         Indent.
94669
94670 1998-09-21  Jim Meyering  <meyering@ascend.com>
94671
94672         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
94673
94674 1998-08-18  Paul Eggert  <eggert@twinsun.com>
94675
94676         Port nanosecond-resolution times to UnixWare 2.1.2 and
94677         pedantic Solaris 2.6.
94678
94679         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
94680         AC_STRUCT_ST_MTIM.
94681         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
94682         Generate name of ns member, instead of just 1 or undef.
94683         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
94684
94685 1998-08-15  Jim Meyering  <meyering@ascend.com>
94686
94687         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
94688         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
94689         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
94690         instead of jm_TYPE_SSIZE_T.
94691
94692 1998-08-12  Jim Meyering  <meyering@ascend.com>
94693
94694         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
94695
94696 1998-08-02  Jim Meyering  <meyering@ascend.com>
94697
94698         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
94699         in acconfig.h manually.
94700
94701 1998-07-31  Paul Eggert  <eggert@twinsun.com>
94702
94703         * m4/st_mtim.m4: New file.
94704
94705 1998-07-28  Jim Meyering  <meyering@ascend.com>
94706
94707         * m4/utimes.m4: Undef stat.
94708
94709 1998-07-25  Jim Meyering  <meyering@ascend.com>
94710
94711         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
94712         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
94713
94714 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
94715
94716         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
94717         uid and gid actually remain unchanged.
94718
94719 1998-07-07  Jim Meyering  <meyering@ascend.com>
94720
94721         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
94722
94723 1998-07-04  Jim Meyering  <meyering@ascend.com>
94724
94725         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
94726         to prove that this macro can be used in packages without regex.c.
94727
94728 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
94729
94730         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
94731         is to be used.
94732
94733 1998-07-03  Jim Meyering  <meyering@ascend.com>
94734
94735         * m4/gettext.m4: Add -lintl if it's found to be necessary.
94736
94737         * m4/gettext.m4: New file -- from gettext-0.10.35.
94738         * m4/lcmessage.m4: Likewise.
94739         * m4/progtest.m4: Likewise.
94740
94741         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
94742         * m4/jm-macros.m4: Require the new macro.
94743
94744 1998-06-29  Jim Meyering  <meyering@ascend.com>
94745
94746         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
94747         for the definition of NGROUPS (used in a system header included
94748         by sys/mount.h).
94749
94750 1998-06-28  Jim Meyering  <meyering@ascend.com>
94751
94752         * m4/ls-mntd-fs.m4: New file.
94753         * m4/fstypename.m4: New file.
94754
94755         * m4/jm-macros.m4: Require the new macro.
94756         * m4/jm-glibc-io.m4: New file.
94757
94758 1998-05-19  Jim Meyering  <meyering@ascend.com>
94759
94760         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
94761         * m4/lchown.m4: New file.
94762
94763         * m4/Makefile.am.in: New file.
94764         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
94765
94766 1998-05-14  Jim Meyering  <meyering@ascend.com>
94767
94768         * m4/Makefile.am (EXTRA_DIST): Add them.
94769         * m4/jm-macros.m4: New file.
94770         * m4/utimbuf.m4: New file.
94771
94772 1998-05-12  Jim Meyering  <meyering@ascend.com>
94773
94774         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
94775
94776 1998-05-11  Jim Meyering  <meyering@ascend.com>
94777
94778         * m4/isc-posix.m4: New file.
94779
94780 1998-05-10  Jim Meyering  <meyering@ascend.com>
94781
94782         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
94783
94784 1998-05-09  Jim Meyering  <meyering@ascend.com>
94785
94786         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
94787         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
94788         with automake.
94789
94790         * m4/ssize_t.m4: New file.
94791         * m4/mktime.m4: Remove file -- the new automake has this now.
94792
94793 1998-04-26  Jim Meyering  <meyering@ascend.com>
94794
94795         * m4/assert.m4: New file.
94796         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
94797
94798 1998-04-05  Jim Meyering  <meyering@ascend.com>
94799
94800         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
94801         (jm_PREREQ): Use it here.
94802
94803 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
94804
94805         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
94806         in acconfig.h.
94807
94808 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
94809
94810         * m4/prereq.m4: New file.
94811         * m4/error.m4: New file.
94812         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
94813
94814 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
94815
94816         * m4/getline.m4: Don't set am_cv_func_working_getline before the
94817         cache-check for the same variable -- that defeated the purpose of
94818         the test; the test program was never run.  This was a problem only
94819         on systems with losing getline functions -- HP-UX 10.20 is one.
94820         Reported by Bjorn Helgaas.
94821
94822 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
94823
94824         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
94825
94826 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
94827
94828         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
94829
94830         * m4/const.m4: New file.  Use an initializer in this declaration
94831         typedef int charset[2]; const charset x;
94832         Reported by Bob Glickstein.
94833
94834 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
94835
94836         * m4/chown.m4: Fix reversed types on -1 args to chown.
94837         From Kaveh Ghazi.
94838
94839 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
94840
94841         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
94842         Add lseek and memchr.
94843
94844         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
94845         T.E.Dickey <dickey@clark.net> said that some older preprocessors
94846         have a 20-character limit on names.
94847
94848 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
94849
94850         * m4/inttypes_h.m4: New file.
94851         * m4/uintmax_t.m4: New file.
94852         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
94853
94854
94855         -----
94856
94857         Local Variables:
94858         coding: utf-8
94859         End:
94860
94861         Copyright (C) 1997-2012 Free Software Foundation, Inc.
94862
94863         Copying and distribution of this file, with or without
94864         modification, are permitted provided the copyright notice
94865         and this notice are preserved.